Pulseaudio ebuilds are missing dependency against x11-lib/libXau when compiled with USE="X".
One of the affected executables is: "/usr/bin/pax11publish".
Please find a patch against pulseaudio-0.9.18-r50.ebuild attached.
Steps to Reproduce:
Created attachment 205508 [details, diff]
sample patch against pulseaudio-0.9.18-r50.ebuild
Learn how to check for dependencies; libXau is brought in by some other X11 library, and it's _not_ a dependency of PulseAudio.
Firstly I politely ask you to stop insulting.
Secondly I checked with objdump, now I'm checking LDFLAGS around.
I know how to deal with this stuff, just give me some time to dive into the build system a bit more.
I will reopen this bug if I find something worth fixing then.
At the moment, I know that objdump -d reports libXau among NEEDED metadata.
And I politely ask you to stop wasting my time.
You already demonstrated you don't know how to check dependencies that are NOT in NEEDED, now you demonstrate you're not even able to confirm dependencies that ARE in NEEDED.
The bloody package does not build with --as-needed, because of a binutils bug I haven't gone fixing yet, the NEEDED entries are unreliable.
Sorry if I'm not as good as you, really.
I'm just trying to help out and find out issues.
I'm checking the build system, if it's not PA related, good. Where's the problem?
The problem is in our little friends the .la files:
And, I was saving this for tomorrow, but might be useful:
Thanks for pointing out .la files, it's definitely libX11 (and thus also libXtst) related. libXau is not pulled in as dep when xcb is enabled. I will open a new bug then.
Just for the sake of completion, libX11.la contains:
# Libraries that this one depends upon.
dependency_libs=' /usr/lib64/libxcb.la /usr/lib64/libXau.la /usr/lib64/libXdmcp.la -ldl'
Note: xcb _is_ bringing in xau:
/usr/lib/pkgconfig/xcb.pc:Requires.private: pthread-stubs xau >= 0.99.2 xdmcp
and libxcb depends on xau itself (although not with the same version specification).
Yes, I am too tired to go through all the .la and deps now, I'll file a bug tomorrow or as soon as I have time, hopefully.
Thanks a lot for your help.