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

Bug 805488

Summary: media-sound/pulseaudio-15.0[system-wide] fails to compile (dies on successful unifdef)
Product: Gentoo Linux Reporter: Herbert Wantesh <rauchwolke>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: 89q1r14hd, christian, geoffrey+gentoo, igor.v.kovalenko, ionen, jstein, sam, steve
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/22013
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
build.log on aarch64
emerge --info (aarch64)

Description Herbert Wantesh 2021-07-31 10:55:44 UTC
When trying to compile pulseaudio with:

[ebuild     U ~] media-sound/pulseaudio-15.0::gentoo [13.0-r1::gentoo] USE="alsa alsa-plugin asyncns daemon%* gdbm glib ipv6 ssl system-wide tcpd udev -X -bluetooth -dbus -doc -elogind -equalizer -gstreamer% -gtk -jack -lirc -native-headset -ofono-headset (-orc) (-oss) (-selinux) -sox -systemd -test (-webrtc-aec) -zeroconf (-caps%*) (-gconf%) (-libsamplerate%) (-qt5%) (-realtime%)" CPU_FLAGS_ARM="(-neon%)" 0 KiB

I get this error:

Running custom install script '/usr/bin/python3.9 /tmp/tmerge/portage/media-sound/pulseaudio-15.0/work/pulseaudio-15.0/src/modules/gsettings/meson_post_install.py /usr/s
hare'                                                                                                                                                                    
Running custom install script '/bin/sh -c ln -fs pacat $DESTDIR/usr/bin/pamon'
Running custom install script '/bin/sh -c ln -fs pacat $DESTDIR/usr/bin/paplay'     
Running custom install script '/bin/sh -c ln -fs pacat $DESTDIR/usr/bin/parec'                                                                                           
Running custom install script '/bin/sh -c ln -fs pacat $DESTDIR/usr/bin/parecord'
 * ERROR: media-sound/pulseaudio-15.0::gentoo failed (install phase):                                                                                                     *   (no error message)                                                                                                                                                   *                                                                                                                                                                       
 * Call stack:                                                                                                                                                           
 *     ebuild.sh, line  127:  Called src_install                                                                                                                         
 *   environment, line 3511:  Called meson-multilib_src_install                                                                                                          
 *   environment, line 2182:  Called multilib-minimal_src_install                                                                                                        
 *   environment, line 2451:  Called multilib_src_install_all
 *   environment, line 2936:  Called die
 * The specific snippet of code:
 *           unifdef $(use_define zeroconf AVAHI) $(use_define alsa) $(use_define bluetooth) $(use_define udev) "${FILESDIR}"/pulseaudio.init.d-5 > "${T}"/pulseaudio || 
die;
 * 


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 05:42:50 UTC
Could you please attach the full build.log and emerge --info?
Comment 2 Herbert Wantesh 2021-08-01 17:19:16 UTC
Created attachment 729399 [details]
build.log
Comment 3 Jonas Stein gentoo-dev 2021-08-01 17:33:50 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. Please provide
* the complete build.log as attachment and
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 4 Ionen Wolkens gentoo-dev 2021-08-02 15:52:13 UTC
|| die was added to unifdef:

        unifdef \
            [...]
            > "${T}"/pulseaudio \
            || die

But similarly to diff(1) it'll return non-zero if the output changed, aka success unless set exit mode `-x 2` in which case it'll only return non-zero on errors and can keep the || die.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-02 17:23:20 UTC
*** Bug 806196 has been marked as a duplicate of this bug. ***
Comment 6 Spekadyon 2021-08-17 11:53:53 UTC
I'm hit by the same bug on a raspberry pi 4 (aarch64). I've attached the build.log and emerge --info output for this machine, if it may help you.
Comment 7 Spekadyon 2021-08-17 11:56:58 UTC
Created attachment 733539 [details]
build.log on aarch64
Comment 8 Spekadyon 2021-08-17 11:58:33 UTC
Created attachment 733541 [details]
emerge --info (aarch64)
Comment 9 Larry the Git Cow gentoo-dev 2021-08-18 19:39:24 UTC
The bug has been closed via the following commit(s):

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

commit 6d063e7a4a82ff651b950298756d74b9d026f591
Author:     Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com>
AuthorDate: 2021-08-17 14:00:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-18 19:22:54 +0000

    media-sound/pulseaudio: fixes unifdef failure
    
    This bug got introduced because no one tests system-wide setups.
    This is still untested but according to Ionen unifdef call should now
    fail if there wasn't anything to modify which is exactly what we want.
    
    Closes: https://bugs.gentoo.org/805488
    Thanks-to: Ionen Wolkens <ionen@gentoo.org>
    Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com>
    Closes: https://github.com/gentoo/gentoo/pull/22013
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/pulseaudio/pulseaudio-15.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)