Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76404 - ufed does not handle '-' in use flags
Summary: ufed does not handle '-' in use flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-02 06:55 UTC by Toralf Förster
Modified: 2006-08-24 01:52 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 Toralf Förster gentoo-dev 2005-01-02 06:55:44 UTC
I have '-acl -ipv6' in my use flags. After using ufed I got:

nhh221 /etc # diff make.conf make.conf.old
11c11
< USE="-* acpi cddb cdparanoia doc dvd dvdr dvdread ethereal font-server \
---
> USE="acpi cddb cdparanoia doc dvd dvdr dvdread ethereal font-server \
13,14c13
<      nagios-ping nagios-s network pcmcia sse sse2 truetype-fonts \
<      type1-fonts usb xfs"
---
>      nagios-ping nagios-s network pcmcia sse sse2 usb xfs -acl -ipv6"

The '-*' at the beginning breaks a lot If I would do an 'emerge -p depclean' or so.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Handle '-acl -ipv6' correctly

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -mfpmath=sse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.zie.pg.gda.pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acpi cddb cdparanoia doc dvd dvdr dvdread ethereal font-server innodb
java joystick live mbox mmx mmx2 nagios-dns nagios-ntp nagios-ping nagios-s
network pcmcia sse sse2 truetype-fonts type1-fonts usb xfs linguas_de"
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2005-01-02 07:53:52 UTC
Hi, this is another effect of a bug that has been fixed in ufed 0.35-r3 (not yet marked stable). The problem is that ufed gets confused when make.defaults is empty. ufed 0.35-r2 only reads /etc/make.profile/make.defaults, which can be empty, but ufed 0.35-r3 also reads the make.defaults of parent directories (as it should), and won't encounter only empty files. Could you try installing 0.35-r3 to confirm that it works for you too?
Comment 2 Toralf Förster gentoo-dev 2005-01-02 08:08:27 UTC
-r3 solves this bug
Comment 3 Jesse Adelman 2005-02-17 16:46:45 UTC
Is something holding this back from being marked STABLE? Thanks.
Comment 4 Colin Tinker 2005-04-09 06:04:58 UTC
The upgrade to 2005.0 shows the effect of this bug and totally breaks the use flags unless you install -r3 of ufed and as 2004.3 has beed marked deprecated should be resolved asap.
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2005-04-09 06:26:26 UTC
Yeah, I know, 0.36 should be marked stable on the remaining archs one of the next days (it already is stable for most archs). Sorry for the delay.
Comment 6 Toralf Förster gentoo-dev 2005-04-09 09:01:55 UTC
> ... unless you install -r3 of ufed...

tfoerste@nhh221 ~ $ qpkg -I -v -nc ufed
app-portage/ufed-0.35-r3

?
Comment 7 Jesse Adelman 2005-04-09 10:57:02 UTC
Had this bug delete my USE flags entirely on one box. Luckily, make.conf.old got created by UFED (thanks for the foresight!). Looking formward to the release.
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2005-04-23 12:04:12 UTC
0.36 has been stable for a little while now; I forgot to close this.
Comment 9 Grégoire Favre 2006-08-24 01:19:27 UTC
I don't know if that's related or not but starting ufed remove those here :
-video_cards_i810 -video_cards_mga
-video_cards_s3virge -video_cards_savage -video_cards_sis
-video_cards_tdfx -video_cards_trident -video_cards_via -video_cards_apm
-video_cards_ark -video_cards_chips -video_cards_cirrus
-video_cards_cyrix -video_cards_dummy -video_cards_glint
-video_cards_i128 -video_cards_neomagic -video_cards_rendition
-video_cards_s3 -video_cards_siliconmotion -video_cards_sisusb
-video_cards_tga -video_cards_tseng -video_cards_voodoo
And leaves only "-kde" ???

Any idea why ?
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2006-08-24 01:52:29 UTC
(In reply to comment #9)
> I don't know if that's related or not

It's not.

> but starting ufed remove those here :
> -video_cards_i810 -video_cards_mga
> -video_cards_s3virge -video_cards_savage -video_cards_sis
> -video_cards_tdfx -video_cards_trident -video_cards_via -video_cards_apm
> -video_cards_ark -video_cards_chips -video_cards_cirrus
> -video_cards_cyrix -video_cards_dummy -video_cards_glint
> -video_cards_i128 -video_cards_neomagic -video_cards_rendition
> -video_cards_s3 -video_cards_siliconmotion -video_cards_sisusb
> -video_cards_tga -video_cards_tseng -video_cards_voodoo
> And leaves only "-kde" ???
> 
> Any idea why ?

It's because there is no such USE flag as video_cards_tseng etc. as far as ufed is concerned. They are special flags set by portage, and you shouldn't normally set them yourself. You should set the VIDEO_CARDS variable instead (manually, since ufed can't do this yet).