Summary: | 'equery uses' report misses flags in use.defaults | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michael Wilcox <wilcox.michael> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Suggested patch |
Description
Michael Wilcox
2005-08-26 14:18:16 UTC
Created attachment 66939 [details, diff]
Suggested patch
What version of gentoolkit to you have installed? I'm fairly positive that this bug is fixed in gentoolkit-0.2.1* Version 0.2.0 was installed. Just now emerged 0.2.1_pre7 and equery(0.1.4) has the same result as had equery(0.1.3) in 0.2.0. Strange, I'm not getting the same results. Please attach your make.conf and I'll keep looking at it. Sorry, it's been a while since I looked at this. The missing settings are not in make.conf, but in use.defaults - changed the summary above. emerge --info reports 61 flags on my system. In equery, p.get_settings("USE") reports 50 and p.get_use_flags() reports the same flags as emerge --info. The 11 flags that p.get_settings("USE") does not list are all in /usr/portage/profiles/base/use.defaults. ufed finds them by looking in /etc/make.profile/../../../base/use.defaults. Perhaps p.get_settings("USE") is confused about where to look. It is working for me with gentoolkit-0.2.1_pre10 pvarner@garath ~/src/equery $ grep tiff /etc/make.conf pvarner@garath ~/src/equery $ emerge -pv gimp These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-gfx/gimp-2.2.9 -aalib (-altivec) -debug -doc -gimpprint -gtkhtml -hardened +jpeg +lcms +mmx +mng +png +python -smp +sse -svg +tiff -wmf 0 kB Total size of downloads: 0 kB pvarner@garath ~/src/equery $ equery uses gimp [ Searching for packages matching gimp... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for media-gfx/gimp-2.2.9 ] U I - - aalib : Adds support for media-libs/aalib (ASCII-Graphics Library) - - altivec : Adds support for optimizations for G4 and G5/ppc970 processors - - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too - - doc : Adds extra documentation (API, Javadoc, etc) - - gimpprint : Enable gimp-print printing support - - gtkhtml : Adds support for gnome-extra/gtkhtml - - hardened : activate default security enhancements for toolchain (gcc, glibc, binutils) + + jpeg : Adds JPEG image support + + lcms : Adds lcms support (color management engine) + + mmx : Adds support for optimizations for Pentium MMX and Athlon class processors + + mng : Adds support for libmng (MNG images) + + png : Adds support for libpng (PNG images) + + python : Adds support/bindings for the Python language - - smp : Enable support for multiprocessors + + sse : fast floating point optimization for PentiumIII+ class chips - - svg : Adds support for SVG (Scalable Vector Graphics http://www.w3.org/TR/SVG ). This option is mainly intended for users that tend to browse multimedia sites frequently. + + tiff : Adds support for the tiff image format - - wmf : Adds support for the wmf vector image format I installed gentoolkit-0.2.1_pre10 and the behavior is the same. What results do you get if you run these: import sys sys.path.insert(0, "/usr/lib/gentoolkit/pym") import gentoolkit p=gentoolkit.find_installed_packages("gimp", True)[0] len(p.get_settings("USE").split()) len(p.get_use_flags().split()) and this: emerge info | grep USE | cut -f2 -d\" | wc -w |