Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24670 - ufed ignores -* in USE
Summary: ufed ignores -* in USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Fred Van Andel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 07:45 UTC by Marius Mauch (RETIRED)
Modified: 2003-07-22 12:27 UTC (History)
0 users

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


Attachments
Screenshot of ufed output (ufed-bug.jpeg,140.79 KB, image/jpeg)
2003-07-17 17:00 UTC, Marius Mauch (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-07-17 07:45:02 UTC
When I set USE="-*" in make.conf ufed still shows the default USE flags, but
portage does not set them, so ufed is not reliable. This is with
portage-2.0.48-r1 and ufed-0.32.

Reproducible: Always
Steps to Reproduce:
1. set USE="-*" in make.conf
2. run ufed
3. compare ufed output with emerge -pv
Comment 1 Fred Van Andel (RETIRED) gentoo-dev 2003-07-17 15:39:26 UTC
I am sorry but I am having diffuculty understanding the problem.  

Can you please give me a specific example of what package you are installing and which flags are set.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-07-17 16:59:13 UTC
This is the output of "emerge info | grep USE":

USE="x86 3dnow aavm acl acpi acpi4linux crypt cups curl dga dnd dvd encode ethereal evo fbcon fbdev gb gd gif gnomedb gphoto2 gstreamer gtk2 imap ipv6 java jpeg junit libgda mad maildir mbox mcal md5sum mmx mng mozinterfaceinfo moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm music ncurses openal opengl pda pdflib pic plotutils pnp quicktime samba sasl slp tiff truetype type1 usagi usb v4l wmf wxwindows Xaw3d xface xinerama xml xml2 xmms xv xvid zlib gnome png python"

I also made a screenshot of the ufed screen (see attachment). As you can see there are several flags shown activated in ufed that are not set for portage (aalib, alsa, arts, berkdb, bonobo, cdr, directfb and more that are not on the screenshot). All flags shown by emerge info are set in make.conf (except for x86), my USE settings there is:

USE="-* 3dnow aavm acl acpi acpi4linux crypt cups curl dga dnd dvd encode \
     ethereal evo fbcon fbdev gb gd gif gnomedb gphoto2 gstreamer gtk2 \
     imap ipv6 java jpeg junit libgda mad maildir mbox mcal md5sum mmx mng \
     mozinterfaceinfo moznocompose moznoirc moznomail mozp3p mozsvg \
     mozxmlterm music ncurses openal opengl pda pdflib pic plotutils pnp \
     quicktime samba sasl slp tiff truetype type1 usagi usb v4l wmf \
     wxwindows Xaw3d xface xinerama xml xml2 xmms xv xvid zlib gnome png python"

The same behavior can be reproduced with a simple USE="-*" in make.conf, ufed still shows the default flags.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-07-17 17:00:04 UTC
Created attachment 14642 [details]
Screenshot of ufed output
Comment 4 Fred Van Andel (RETIRED) gentoo-dev 2003-07-17 21:43:41 UTC
Ufed and portage are both behaving exactly as they are supposed to.  
  
Looking at the ufed screen shot you can see the following notation (+++), if the first  
symbol after the flag is a + it means that flag was enabled in  
/etc/make.profile/make.defaults. In your example they are all blank because the "-*" 
notation cancels them.   
 
The second symbol represents use flags that are set because you have installed the 
package that provided those functions.  For instance if you install aalib then portage 
will automatically enable the aalib use flag.  The "-*" does not effect how ufed or 
portage interprets those flags, "-*" will not disable those flags, it will only disable the 
the make.defaults flags.  The mapping between use flags and packages is controlled 
by the /etc/make.profile/use.defaults file. 
 
The third flag represents the contents of the USE variable.  This is the only variable 
that you should be changing.  If you dont want the aalib flag enabled then reset it in 
ufed and ufed will add the -aalib flag to your USE variable. The next time you run ufed 
you will notice a - sign in the third column for aalib. 
 
If you run: 
   emerge -pv --emptytree world  
you will notice that the flags that are set ( ie +flag) are the ones that ufed shows with a 
+ in the second column.	 
 
There are a few execptions. the x86, bootstrap and build flags are use internally by 
portage and should not be played with.   
 
 
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2003-07-18 06:01:21 UTC
The behavior is not as you described, because I have aalib, alsa, arts and the other packages installed (I added the -* thing only recently) but portage does not show them as activated.

Example: "emerge -pv mplayer" gives
[ebuild    U ] media-video/mplayer-0.90-r2 [0.90_rc5] +dga -oss +xmms +jpeg -3dfx -sse -matrox -sdl -X -svga -ggi -oggvorbis +3dnow -aalib +gnome +xv +opengl +truetype +dvd -gtk +gif -esd +fbcon +encode -alsa -directfb -arts -dvb 

ufed shows alsa, arts, ggi, X, sdl, oggvorbis, aalib, esd, gtk and directfb as active, but mplayer would be compiled wihtout them. The packages for these flags in use.defaults are installed.

Ok, after a little portage debugging it seems that it is rather a portage bug or change in behavior (autouse is not merged into usesplit), still present in portage-2.0.49_pre11. 
Comment 6 Fred Van Andel (RETIRED) gentoo-dev 2003-07-18 15:23:42 UTC
I agree, it sounds like portage has a bug or the default behavior changed and nobody told me.

I will check with the portage maintainer this weekend and either file a portage bug if thats what it is or change ufed if its a feature change.
Comment 7 Fred Van Andel (RETIRED) gentoo-dev 2003-07-21 18:04:04 UTC
I just checked with the maintainer of portage, its a bug in portage and not ufed, I will 
start fixing tonight. 
 
Comment 8 Fred Van Andel (RETIRED) gentoo-dev 2003-07-22 12:27:18 UTC
Fixed with version 0.33