Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71737 - `equery uses` complains the package is not installed.
Summary: `equery uses` complains the package is not installed.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 111153 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-19 02:19 UTC by Diederik van der Boor
Modified: 2005-11-10 03:52 UTC (History)
1 user (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 Diederik van der Boor 2004-11-19 02:19:56 UTC
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...
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 03:48:00 UTC
fixed in 0.2.0_rc1 (at least it works for me here, reopen if it doesn't work for you)
Comment 2 Diederik van der Boor 2004-12-16 10:52:33 UTC
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
Comment 3 Christophe Garault 2004-12-18 07:34:31 UTC
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 #
Comment 4 Heiko Baumann 2005-03-20 03:06:32 UTC
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
Comment 5 Heiko Baumann 2005-03-20 03:14:22 UTC
oh and there is already a patch for this....

http://bugs.gentoo.org/show_bug.cgi?id=73893

Comment 6 Michael Heide 2005-03-31 03:45:04 UTC
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
Comment 7 Paul Varner (RETIRED) gentoo-dev 2005-10-12 22:04:10 UTC
Fix is in subversion
Comment 8 BlaisorBlade 2005-11-01 06:55:27 UTC
# 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...
Comment 9 BlaisorBlade 2005-11-01 07:59:54 UTC
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.
Comment 10 Paul Varner (RETIRED) gentoo-dev 2005-11-01 11:44:45 UTC
*** Bug 111153 has been marked as a duplicate of this bug. ***
Comment 11 Luke Sandell 2005-11-08 10:08:37 UTC
I had this problem for a while, but it seems to be fixed in 
gentoolkit-0.2.1_pre10. 
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-11-09 15:30:19 UTC
Fixed in >=gentoolkit-0.2.1_pre9
Comment 13 BlaisorBlade 2005-11-10 03:52:50 UTC
Ok, verified for me... thanks!