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

Bug 105685

Summary: sys-apps/portage-2.0.51.22-r2: wrong use flag in /etc/portage/package.use
Product: Portage Development Reporter: Toralf Förster <toralf>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2005-09-12 06:46:54 UTC
If I defined 2 use flags for the package www-servers/tomcat-5.0.27-r6
portage ignores the correct use flag "doc", if the other flag is wrong
("examples") is not used in the ebuild:

n22 /opt/tomcat5 # grep tomcat /etc/portage/package.use
www-servers/tomcat              doc
#www-servers/tomcat             examples
n22 /opt/tomcat5 # emerge -pv tomcat

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] www-servers/tomcat-5.0.27-r6  +doc -jikes 0 kB

Total size of downloads: 0 kB
n22 /opt/tomcat5 #
n22 /opt/tomcat5 #
n22 /opt/tomcat5 #
n22 /opt/tomcat5 # grep tomcat /etc/portage/package.use
www-servers/tomcat              doc
www-servers/tomcat              examples
n22 /opt/tomcat5 # emerge -pv tomcat

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] www-servers/tomcat-5.0.27-r6  -doc* -jikes 0 kB

Total size of downloads: 0 kB


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Wegener gentoo-dev 2005-09-12 06:55:30 UTC
The second flag doesn't have to be invalid. If the atom in the second line is the
same as in the first line, it overwrites the first.
Comment 2 Toralf Förster gentoo-dev 2005-09-12 07:38:07 UTC
Ough, so I have to specify all use flags at one line ?
Comment 3 SpanKY gentoo-dev 2005-09-12 07:41:24 UTC
yes, as the manpage says