I'm having trouble determining use flags with equery, it fails if the package does not exist. root@pts/2 root # equery u =x11-base/xorg-x11-6.8.0-r2 [ Searching for packages matching =x11-base/xorg-x11-6.8.0-r2... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] !!! No installed packages found for =x11-base/xorg-x11-6.8.0-r2 I'm using gentoolkit-0.2.0_pre10-r1 Reproducible: Always Steps to Reproduce: Perhaps this bug is somehow related to #71736, I'm not sure though...
fixed in 0.2.0_rc1 (at least it works for me here, reopen if it doesn't work for you)
No, I'm sorry it doesn't work here. I'm using gentoolkit-0.2.0. --> The versions available: diederik@pts/1 diederik $ etcat -v xorg-x11 [ Results for search key : xorg-x11 ] [ Candidate applications found : 5 ] Only printing found installed programs. * x11-base/xorg-x11 : [ ] 6.7.0-r2 (0) [ ] 6.7.0-r3 (0) [ ] 6.8.0-r1 (0) [ I] 6.8.0-r3 (0) [M~ ] 6.8.0-r4 (0) --> This is correct: diederik@pts/1 diederik $ equery u =xorg-x11-6.8.0-r2 [ Searching for packages matching =xorg-x11-6.8.0-r2... ] !!! No matching packages found for "=xorg-x11-6.8.0-r2" --> This is also correct, an installed package: diederik@pts/1 diederik $ equery u =xorg-x11-6.8.0-r3 [ Searching for packages matching =xorg-x11-6.8.0-r3... ] [ 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 x11-base/xorg-x11-6.8.0-r3 ] U I - - 3dfx : Adds support for 3dfx video cards to XFree86. See: voodoo3 + + 3dnow : Adds support for 3dnow multimedia processor instructions <snip> --> But this doesn't work at all! diederik@pts/1 diederik $ equery u =xorg-x11-6.8.0-r1 [ Searching for packages matching =xorg-x11-6.8.0-r1... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] !!! No installed packages found for =xorg-x11-6.8.0-r1
I have a similar problem (could be the same): marge root # emerge -puv screen These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] app-misc/screen-4.0.2-r1 [4.0.2] -debug -nethack +pam (-uclibc) 0 kB Total size of downloads: 0 kB marge root # equery uses screen [ Searching for packages matching screen... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] !!! No installed packages found for screen marge root #
i've had the same problem a long time now. but now i've found this thread. http://forums.gentoo.org/viewtopic-t-269395-highlight-equery+uses.html this works for me great. just run: equery uses -a 'pkg' but this option is not documented. not via "man equery" nor with "equery -h" would be great to see this doc in the next release :) i guess there are much more guys who make complicated "emerge -pv;euse;equery" combinations to get these infos because the dont know about the great "-a" option .... :( the2nd
oh and there is already a patch for this.... http://bugs.gentoo.org/show_bug.cgi?id=73893
i have the same problem. it depends on whether there is an ebuild or not (for the installed package) if there is an ebuild, everything is ok. for example: gaim installed: 1.0.0 gaim ebulds: 1.1.4, 1.2.0 #equery uses gaim -> error #emerge gaim -> gaim installed: 1.2.0 #equery uses gaim -> no error #mv gaim-1.2.0.ebuild gaim-1.2.0.ebuild-save #equery uses gaim -> "!!! No installed packages found for gaim" i think equery needs the ebuild but should warn if there isnt one if i'm right: it should print "!!! No ebuild for installed package XXX" never the less i think equery is mostly useless if it depends on ebuilds of installed packages
Fix is in subversion
# equery list gentoolkit [ Searching for package 'gentoolkit' in all categories among: ] * installed packages [I--] [ ] app-portage/gentoolkit-dev-0.2.5 (0) [I--] [ ] app-portage/gentoolkit-0.2.0-r2 (0) # equery list qt [ Searching for package 'qt' in all categories among: ] * installed packages [I--] [M ] x11-libs/qt-3.3.4-r2 (3) # equery uses qt [ Searching for packages matching qt... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] !!! No installed packages found for qt But also: $ ls /var/db/pkg/x11-libs/gtk+-2.6.8/ ASFLAGS CDEPEND COUNTER DEPEND EXTRA_MAKE IUSE LICENSE PROVIDE USE CATEGORY CFLAGS CTARGET environment.bz2 FEATURES LDFLAGS PDEPEND RDEPEND CBUILD CHOST CXX EXTRA_ECONF gtk+-2.6.8.ebuild LIBCFLAGS PF RESTRICT CC CONTENTS CXXFLAGS EXTRA_EINSTALL INHERITED LIBCXXFLAGS PKGUSE SLOT But # equery list gtk # equery list "gtk+" [ Searching for package 'gtk+' in all categories among: ] * installed packages [I--] [M ] x11-themes/gtk-engines-2.2.0 (2) equery list 'x11-libs/gtk+' Probably it doesn't consider the "+" as a valid character in package names...
Sorry, again I confirm that the present example (the one with "qt" is still valid). And I also confirm Comment #6, because I the ebuild for the installed QT version has been deleted. Finally, the ebuild is present in /var/db/pkg, so it could be fixed easily. The bug with "gtk+" is not a _real_ bug: instead, it interprets arguments as regexps, which is nor documented nor that obvious (I don't know how much useful it is): Quoting from the manpage: Most commands require a 'pkgspec' option, which is described by <cat/ >packagename<-version>; namely, the package name is mandatory, while the category and version are optional. And list is documented as requiring a "pkgspec". So there's a different kind of bug.
*** Bug 111153 has been marked as a duplicate of this bug. ***
I had this problem for a while, but it seems to be fixed in gentoolkit-0.2.1_pre10.
Fixed in >=gentoolkit-0.2.1_pre9
Ok, verified for me... thanks!