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

Bug 760774

Summary: media-sound/apulse-0.1.13[sdk] doesn't put libs in /usr/lib64/apulse/ where firefox take them to link
Product: Gentoo Linux Reporter: Christophe PEREZ <chris>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: RESOLVED INVALID    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=529098
Whiteboard:
Package list:
Runtime testing required: ---

Description Christophe PEREZ 2020-12-19 20:29:08 UTC
Seems to be same bug as closed one #529098

When installing media-sound/apulse-0.1.13 with USE=sdk, libs are put in /usr/lib64, and not in /usr/lib/64/apulse, and firefox links them in /usr/lib64/firefox from ../apulse

                for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
                        # A quickpkg rolled by hand will grab symlinks as part of the package,
                        # so we need to avoid creating them if they already exist.
                        if [[ ! -L ${lib##*/} ]] ; then
                                ln -s "${lib}" ${lib##*/} || die
                        fi
                done

So no sound in firefox.

I manually created /usr/lib64/apulse containing :
lrwxrwxrwx 1 root root 21 19 déc.  10:47 libpulse-simple.so -> ../libpulse-simple.so
lrwxrwxrwx 1 root root 23 19 déc.  10:47 libpulse-simple.so.0 -> ../libpulse-simple.so.0
lrwxrwxrwx 1 root root 14 19 déc.  10:47 libpulse.so -> ../libpulse.so
lrwxrwxrwx 1 root root 16 19 déc.  10:47 libpulse.so.0 -> ../libpulse.so.0

to not have to create links at each firefox update.
Comment 1 Andrew Savchenko gentoo-dev 2020-12-20 09:38:12 UTC
In sdk mode apulse tries to be a drop-in replacement for pulseaudio: it installs libraries and headers the same way as pulseaudio does.

Of course in this mode apulse is still NOT a full pulseaudio replacement as it lacks full pulseaudio functionality. Also please note that apulse[sdk] is Gentoo enhancement and it was *rejected* by upstream:
https://github.com/i-rinat/apulse/pull/93

So, if you are using apulse[sdk], just use it as you would use pulseaudio in yor package. If you need a stock upstream apulse, install it without sdk and provide necessary headers yourself (e.g. install pulseaudio) or use pre-build firefox-bin.