First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 169929
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dustin Polke <gentoobugsie.20.dsurawicz@spamgourmet.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
equery.patch Patch to generate traceback patch Paul Varner 2007-03-08 20:24 0000 464 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 169929 depends on: Show dependency tree
Bug 169929 blocks: 170220
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-08 12:12 0000
After gentoolkit-0.2.3 has gone stable, I receive the following output of
equery while checking for dependencies:

solaris dustin # equery depends esound
[ Searching for packages depending on esound... ]
!!! Warning: No packages found matching esound
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!    >  >=  =  <=  <
!!! Example to only match gcc versions greater or equal 3.2:
!!!    >=sys-devel/gcc-3.2
!!! 
!!! Note: The symbols > and < are used for redirection in the shell
!!! and must be quoted if either one is used.
solaris dustin # eix gentoolkit
[I] app-portage/gentoolkit 
     Available versions:  0.2.2 0.2.3
     Installed:           0.2.3 (07-03-08 12:22)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo


With gentoolkit-0.2.2, I receive results as expected:

solaris dustin # equery depends esound
[ Searching for packages depending on esound... ]
x11-misc/xlockmore-5.21-r1
gnome-base/nautilus-2.16.3
gnome-base/libgnome-2.16.0
gnome-extra/gnome-media-2.16.1
media-sound/mpg123-0.59s-r11
media-libs/libsdl-1.2.11
media-libs/libao-0.8.6-r3
media-libs/xine-lib-1.1.3
media-plugins/audacious-plugins-1.2.2-r1
media-video/mplayer-1.0_rc1-r2
solaris dustin # eix gentoolkit
[U] app-portage/gentoolkit 
     Available versions:  0.2.2 0.2.3
     Installed:           0.2.2 (07-03-08 12:09)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo

BR,
Dustin

Reproducible: Always

Steps to Reproduce:
1.emerge gentoolkit-0.2.3
2.type 'equery depends foo
3.

Actual Results:  
equery complains about wrong syntax, though it is according to the one
described in man page. No dependencies are found.

Expected Results:  
Find and display the dependencies of the queried package

Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0,
2.6.18-gentoo-r6.agp3 i686)
=================================================================
System uname: 2.6.18-gentoo-r6.agp3 i686 mobile AMD Athlon(tm) XP 1500+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 08 Mar 2007 08:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/
cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks fixpackages
metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv
usersandbox
"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ f
tp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.inode.at/source/"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/d
istfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/modified /usr/local/portage/own
/usr/local/portage/layman/webapps-experimental
/usr/local/portage/layman/science /usr/local
/portage/layman/pda"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acpi alsa amr amrr apache2 apm asf
async audacious audiofile bash-completion berkdb bindist bl bonobo bzip2 cap
cardb
us cjk cli cracklib crypt ctype cups dba dbus dga dlloader dri dvd dvdread eds
encode evo exif expat extensions fam fbcon ffmpeg flac foomaticdb
force-cgi-redi
rect fortran ftp gd gdbm gif gimpprint glibc-omitfp glut gs gstreamer gtk gtk2
gtkhtml guile hal icq idn imagemagick imap imlib iproute2 java javascript jikes 
jpeg jpeg2k kerberos lcms ldap libcaca libg++ libwww live lm_sensors logrotate
lzo mad madwifi memlimit mikmod mime mjpeg mmx mmxext mng motif moznocompose
moz
noirc moznomail moznoroaming mp3 mp4 mpeg musepack mysql nas ncurses nls nntp
nptl nptlonly nsplugin ogg opengl pam pam_timestamp pcmcia pcre pda pdf perl
php 
plotutils png posix postgres print python qt3support qt4 quicktime readline
real ruby samba sasl sdl seamonkey server session simplexml slang smbkrb5passwd
snd
file soap sockets sox speex spell spl sse ssl suhosin svga swat symlink syslog
tcltk tcpd test tetex theora tiff truetype unicode usb userlocales vcd
vim-with-
x vorbis wifi win32codecs winbind wma wmf x264 x86 xanim xine xinetd xml xorg
xosd xpm xsl xv xvid zlib" ALSA_CARDS="via82xx via82xx-modem mpu401"
ALSA_PCM_PLU
GINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958
ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm
soft
vol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="e
n de" USERLAND="GNU" VIDEO_CARDS="savage"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS

------- Comment #1 From Paul Varner 2007-03-08 15:00:51 0000 -------
It works for me.  The only thing that I can think of is that you possibly have
a corrupted install.  Please reinstall using the following and let me know if
you continue to have the issue.

1. emerge -Ca gentoolkit
2. cd /usr/lib
3. rm -rf gentoolkit
4. emerge gentoolkit

------- Comment #2 From Dustin Polke 2007-03-08 18:22:48 0000 -------
This did not help. Same error. I tried latest python version (2.4.4) as well,
but that's not the reason either.

------- Comment #3 From Paul Varner 2007-03-08 20:24:22 0000 -------
Created an attachment (id=112618) [details]
Patch to generate traceback

This patch to equery should cause to print a traceback of the error.

------- Comment #4 From Dustin Polke 2007-03-08 21:39:26 0000 -------
After applying the patch, output contains the following additional line:

!!! "Specific key requires an operator (x11-themes/gnome-icon-theme-2.16.1)
(try adding an '=')"

------- Comment #5 From Dustin Polke 2007-03-08 21:49:58 0000 -------
I played around using different packages.
equery dies always with the same package:

x11-themes/gnome-icon-theme-2.16.1

Maybe you should there for the error.

------- Comment #6 From Petteri Räty 2007-03-08 22:20:53 0000 -------
(In reply to comment #5)
> I played around using different packages.
> equery dies always with the same package:
> 
> x11-themes/gnome-icon-theme-2.16.1
> 
> Maybe you should there for the error.
> 

grep x11-themes/gnome-icon-theme-2.16.1 -r /var/db/pkg

This should give you the package with a broken dependency atom. Just reinstall
this one. equery depends could probably be modified to tell you this
information.

------- Comment #7 From Dustin Polke 2007-03-08 22:58:47 0000 -------
I found the package, reemerged it and now equery behaves as it should.
Any idea why it was broken? The ebuild a slightly altered one from my overlay.
I checked the {R}DEPEND syntax, but it contains the '=' in front of
'x11-themes/gnome-icon-theme-2.16.1'...

------- Comment #8 From Petteri Räty 2007-03-08 23:10:35 0000 -------
(In reply to comment #7)
> I found the package, reemerged it and now equery behaves as it should.
> Any idea why it was broken? The ebuild a slightly altered one from my overlay.
> I checked the {R}DEPEND syntax, but it contains the '=' in front of
> 'x11-themes/gnome-icon-theme-2.16.1'...
> 

The syntax was broken at the time when you emerged it. Nowadays Portage refuses
to emerge packages that have broken syntaxes.

------- Comment #9 From Dustin Polke 2007-03-08 23:14:52 0000 -------
I emerge the affected package on Feb 11, 2007. And I did not change it since.

------- Comment #10 From Paul Varner 2007-03-09 04:10:19 0000 -------
svn commit -m "Improved handling of KeyError in equery depends command (Bug
#169929)."
Sending        equery/equery
Transmitting file data .
Committed revision 353.

Thanks for the bug report, here is the new output:

$ ./equery depends sys-apps/portage
[ Searching for packages depending on sys-apps/portage... ]
app-admin/logrotate-3.7.2 (>=sys-apps/portage-2.0.47-r10)
app-emulation/vmware-modules-1.0.0.11-r1 (>=sys-apps/portage-2.0.54)
app-portage/esearch-0.7.1-r4 (>=sys-apps/portage-2.0.50)
!!!
!!! Package: app-portage/gentoolkit-0.2.3 contains invalid dependency
specification.
!!! Portage error: "Specific key requires an operator
(sys-apps/portage-2.1.1_pre1) (try adding an '=')"
!!!
app-portage/gentoolkit-0.2.3 (>=sys-apps/portage-2.1.1_pre1)

------- Comment #11 From Paul Varner 2007-03-10 04:13:08 0000 -------
Released in gentoolkit-0.2.4_pre1

First Last Prev Next    No search results available      Search page      Enter new bug