Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805488 - media-sound/pulseaudio-15.0[system-wide] fails to compile (dies on successful unifdef)
Summary: media-sound/pulseaudio-15.0[system-wide] fails to compile (dies on successful...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
: 806196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-31 10:55 UTC by Herbert Wantesh
Modified: 2021-08-18 19:39 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,282.54 KB, text/x-log)
2021-08-01 17:19 UTC, Herbert Wantesh
Details
build.log on aarch64 (build.log,393.17 KB, text/plain)
2021-08-17 11:56 UTC, Spekadyon
Details
emerge --info (aarch64) (file_805488.txt,6.09 KB, text/plain)
2021-08-17 11:58 UTC, Spekadyon
Details

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