Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 816702

Summary: media-plugins/gst-plugins-opus-1.18.4-r2: fails to compile if /var/tmp/portage is a symlink
Product: Gentoo Linux Reporter: Doug Nazar <nazard>
Component: EclassesAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED DUPLICATE    
Severity: normal CC: floppym, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=805020
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: convert BUILD_DIR to realpath before subst.

Description Doug Nazar 2021-10-06 19:38:09 UTC
When compiling more than one plugin, gstreamer_multilib_src_compile() strips the $BUILD_DIR from the path. However the paths in meson-info/intro-targets.json contain the realpath, not the symlink path.


Reproducible: Always

Steps to Reproduce:
1. Use a symlink for /var/tmp/portage
2. Compile package
 

Actual Results:  
Fails calling ninja with the symlink path in front of the real filename
Comment 1 Doug Nazar 2021-10-06 19:39:07 UTC
Created attachment 743556 [details, diff]
convert BUILD_DIR to realpath before subst.
Comment 2 Mike Gilbert gentoo-dev 2021-10-06 19:47:17 UTC
Instead of using a symlink for /var/tmp/portage, I would suggest setting PORTAGE_TMPDIR in make.conf.
Comment 3 Ionen Wolkens gentoo-dev 2021-10-06 19:54:14 UTC
I guess same as bug #805020 but hadn't gotten a confirmation.
Comment 4 Doug Nazar 2021-10-06 20:13:05 UTC
(In reply to Mike Gilbert from comment #2)
> Instead of using a symlink for /var/tmp/portage, I would suggest setting
> PORTAGE_TMPDIR in make.conf.

At the time, I was configuring several directories to be off the sdcard and it was the easiest to just keep them all the same style.

Didn't actually realize that was the issue until I'd debugged it all.

It's worked fine for several years but you're right, I probably should do it the correct way.
Comment 5 Doug Nazar 2021-10-06 20:16:13 UTC
(In reply to Ionen Wolkens from comment #3)
> I guess same as bug #805020 but hadn't gotten a confirmation.

Looks similar. 

I'd searched for 'gstreamer' & 'gst-plugins-opus' but didn't find any matches. Sorry about that.
Comment 6 Jim Beckner 2021-10-20 10:12:30 UTC
I just confirmed what was suggested in bug 805020. /var/tmp/portage being a symlink was causing the issue.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 22:36:16 UTC

*** This bug has been marked as a duplicate of bug 805020 ***
Comment 8 Larry the Git Cow gentoo-dev 2022-03-26 22:38:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47be33c8409b81e5116794952bf194d5710d15b

commit a47be33c8409b81e5116794952bf194d5710d15b
Author:     Tony Lee <rufq99@gmail.com>
AuthorDate: 2021-11-19 10:57:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-26 22:38:27 +0000

    gstreamer-meson.eclass: fix symlink issue for WORKDIR
    
    Fixes symlink issue with a variety of gstreamer plugin packages.
    
    Bug: https://bugs.gentoo.org/820416
    Bug: https://bugs.gentoo.org/816702
    Closes: https://bugs.gentoo.org/805020
    Closes: https://github.com/gentoo/gentoo/pull/22967
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/gstreamer-meson.eclass | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)