Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816702 - media-plugins/gst-plugins-opus-1.18.4-r2: fails to compile if /var/tmp/portage is a symlink
Summary: media-plugins/gst-plugins-opus-1.18.4-r2: fails to compile if /var/tmp/portag...
Status: RESOLVED DUPLICATE of bug 805020
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-06 19:38 UTC by Doug Nazar
Modified: 2022-03-26 22:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
convert BUILD_DIR to realpath before subst. (gstreamer-meson.patch,598 bytes, patch)
2021-10-06 19:39 UTC, Doug Nazar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)