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

Bug 2307

Summary: emerge will ignore USE in some cases.
Product: Portage Development Reporter: Cal Evans <cal>
Component: CoreAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: enhancement CC: mholzer
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Cal Evans 2002-05-01 08:21:27 UTC
when EMERGing an ebuild that has a DEPENDS package that conflicts with a USE
variable. EMERGE needs to abort with a warning instead of installing the
unwanted package.

i.e. nmap
nmap requires gtk.  gtk requires X. My make.conf file has USE="-X". Therefore
emerge nmap should about and warn me that it will have to install unwanted
packages before it can install nmap. To override, I could export USE="X" to
resolve the conflict and then re-emerge.

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-01 08:24:09 UTC
Does your conf file also have "-gtk"?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-01 08:25:28 UTC
In fact, I know you don't have "-gtk" in your USE string in /etc/make.conf
Please read the USE variable HOWTO document at http://www.gentoo.org/use-howto.html

Comment 3 Cal Evans 2002-05-01 08:42:52 UTC
No, I did not. (Do now) (and I have read the USE document
at:http://www.gentoo.org/doc/use-howto.html)

This doesn't resolve the issue though. I have -X in my USE. emerge does (or at
least can) resolve dependencies before installing.  If a dependency has been
disabled by a USE variable, no matter how deep in the tree, the entire ebuild
should abort with a warning. (IMHO, etc.)

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*