Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525290 - =media-sound/pulseaudio-5.0-r3 fails to build (leftover 'avahi' USE flag usage)
Summary: =media-sound/pulseaudio-5.0-r3 fails to build (leftover 'avahi' USE flag usage)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-13 15:18 UTC by Elias Probst
Modified: 2014-11-09 15:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2014-10-13 15:18:19 UTC
Now that the usage of the 'avahi' USE flag was replaced with 'zeroconf' in media-sound/pulseaudio (see #477620), media-sound/pulseaudio-5.0-r3 fails to build, because in one use_define statement 'avahi' is still used. 

The following patch fixes the issue for me:

--- pulseaudio-5.0-r3.ebuild.orig       2014-10-13 17:05:59.761189665 +0200
+++ pulseaudio-5.0-r3.ebuild    2014-10-13 17:06:08.026347590 +0200
@@ -290,7 +290,7 @@
                        use "$1" && echo "-D$define" || echo "-U$define"
                }
 
-               unifdef $(use_define avahi) \
+               unifdef $(use_define zeroconf avahi) \
                        $(use_define alsa) \
                        $(use_define bluetooth) \
                        $(use_define udev) \


Relevant build.log lines of failing build:
make[2]: Leaving directory '/var/tmp/portage/media-sound/pulseaudio-5.0-r3/work/pulseaudio-5.0-abi_x86_64.amd64'     make[1]: Leaving directory '/var/tmp/portage/media-sound/pulseaudio-5.0-r3/work/pulseaudio-5.0-abi_x86_64.amd64'
* ERROR: media-sound/pulseaudio-5.0-r3::gentoo failed (install phase):                                               
*   USE Flag 'avahi' not in IUSE for media-sound/pulseaudio-5.0-r3                                                   
*                                                                                                                    
* Call stack:                                                                                                        
*          ebuild.sh, line   93:  Called src_install                                                                 
*        environment, line 5042:  Called multilib-minimal_src_install                                                
*        environment, line 3988:  Called multilib_src_install_all                                                    
*        environment, line 4435:  Called use_define 'avahi'                                                          
*        environment, line 4433:  Called use 'avahi'                                                                 
*   phase-helpers.sh, line  200:  Called die                                                                        
* The specific snippet of code:                                                                                     
*                  die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
Comment 1 Eric Grüttefien 2014-10-23 07:54:27 UTC
same here +1
Comment 2 Maxime de Roucy 2014-11-02 08:43:55 UTC
I would rather suggest :
-               unifdef $(use_define avahi) \
+               unifdef $(use_define zeroconf AVAHI) \
Comment 3 Ivan Iraci 2014-11-06 08:23:36 UTC
Same here.
Any news?
Comment 4 Sander Sweers 2014-11-08 13:41:13 UTC
I am stumped why this problem persists for 2 version bumps as we have -r5 now... Maintainer can not have tested this at *all* and bumped blindly.
Comment 5 Elias Probst 2014-11-08 15:55:03 UTC
(In reply to Sander Sweers from comment #4)
> I am stumped why this problem persists for 2 version bumps as we have -r5
> now... Maintainer can not have tested this at *all* and bumped blindly.

The maintainer most likely just doesn't use 'zeroconf', so he doesn't run into this.
As it is impossible for a maintainer to test all possible USE flag combinations, things like this happen.

That's also one of the reason, why there's ~arch, so that people like use can find and report these issues.

Besides that, the formatting of the most recent ChangeLog entry is screwed up and can't be read properly by tools like 'equery c media-sound/pulseaudio'.
Comment 6 Elias Probst 2014-11-08 15:58:34 UTC
(In reply to Maxime de Roucy from comment #2)
> I would rather suggest :
> -               unifdef $(use_define avahi) \
> +               unifdef $(use_define zeroconf AVAHI) \

You're completely  right - I screwed that up, it should be an uppercase AVAHI.
Comment 7 Maxim Koltsov (RETIRED) gentoo-dev 2014-11-09 15:00:08 UTC
Fixed in -r5. Thanks.