Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316961 - app-portage/gentoolkit-0.3.0_rc10-r1: "equery d gnome-mount" doesn't output proper information
Summary: app-portage/gentoolkit-0.3.0_rc10-r1: "equery d gnome-mount" doesn't output p...
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:
: 328453 (view as bug list)
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2010-04-24 18:26 UTC by Pacho Ramos
Modified: 2010-11-22 21:39 UTC (History)
4 users (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 Pacho Ramos gentoo-dev 2010-04-24 18:26:18 UTC
I get:
$ equery d gnome-mount
 * These packages depend on gnome-mount:
app-arch/file-roller-2.28.2 (gnome-base/gnome-common)
dev-util/subversion-1.6.9 (gnome-keyring ? gnome-base/gnome-keyring)
gnome-base/gnome-panel-2.28.0 (gnome-base/gnome-common)
gnome-base/gnome-vfs-2.24.3-r1 (gnome-base/gnome-common)
gnome-extra/avant-window-navigator-extras-0.3.2.2 (gnome ? gnome-base/gnome-menus)
                                                  (gnome ? gnome-base/gnome-menus[python])
gnome-extra/polkit-gnome-0.96 (gnome-base/gnome-common)
gnome-extra/yelp-2.28.1-r2 (gnome-base/gnome-common)
mail-client/mail-notification-5.4-r3 (pop ? gnome-base/gnome-keyring)
^C

I would expect it to show packages depending on gnome-mount instead :-/

Thanks a lot


Reproducible: Always




Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.13
Timestamp of tree: Sat, 24 Apr 2010 15:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests autoaddcvs ccache cvs distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log strict test unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/suka /usr/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cddb cdinstall cdr cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif glitz gnome gnome-keyring gpm gstreamer gtk hal iconv imagemagick java jpeg kdehiddenvisibility kpathsea latex lcms libnotify lyx lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reflection reiserfs scanner sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs t1lib tcpd threads tiff truetype unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xinetd xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2010-04-25 07:16:22 UTC
I can confirm this in -rc10-r1 and genscripts/trunk.

Further testing seems to indicate it may be truncating it to "gnome" as it comes up with identical output for any gnome, gnome-, ... gnome-* queries.

I'll start debugging it in the morning.  need zzzzzzzZZZZZZZZzzz's
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2010-04-25 17:30:25 UTC
Confirmed it is the new CPV class that is not working correctly and it indeed is truncating it.

brian@big_daddy ~/Dev/genscripts/gentoolkit $ python
Python 2.6.4 (r264:75706, Mar 15 2010, 16:22:53) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gentoolkit
>>> from gentoolkit.cpv import *
>>> n=CPV('gnome-mount')
>>> n.name
'gnome'
>>> n.version
'mount'
>>> 

Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2010-04-25 19:25:14 UTC
fixed.  I don't know why he had all the validation in the split_cpv(),  isvalid_pkg_name() was failing for an installed pkg on my system.  I disabled it for now.  Need to find out why it exists and if is really needed.


brian@big_daddy ~/Dev/genscripts/gentoolkit $ svn commit -m " fix bug 316961. commented out the pkgname validation due to a false result. Why is it necessary anyway?"
Authentication realm: <https://genscripts.googlecode.com:443> Google Code Subversion Repository
Password for 'brian.dolbec': 
Sending        gentoolkit/pym/gentoolkit/cpv.py
Transmitting file data .
Committed revision 430.
brian@big_daddy ~/Dev/genscripts/gentoolkit $ 
Comment 4 Pacho Ramos gentoo-dev 2010-04-25 19:58:48 UTC
Thanks a lot :-)
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2010-05-04 07:28:15 UTC
Fixed a small regression due to pkgsplit returning '-r0'. I discovered it while fixing bug 317899.

brian@big_daddy ~/Dev/genscripts/gentoolkit $ svn commit
Authentication realm: <https://genscripts.googlecode.com:443> Google Code Subversion Repository
Password for 'brian.dolbec': 
Sending        gentoolkit/pym/gentoolkit/cpv.py
Transmitting file data .
Committed revision 433.
Comment 6 Douglas Anderson 2010-07-18 14:18:44 UTC
*** Bug 328453 has been marked as a duplicate of this bug. ***
Comment 7 Sebastian Luther (few) 2010-07-20 07:43:33 UTC
What exactly is the reason that gentoolkit needs its own cpv class?
Comment 8 Douglas Anderson 2010-07-20 14:40:28 UTC
(In reply to comment #7)
> What exactly is the reason that gentoolkit needs its own cpv class?
> 

Specifically, it provides string splitting and sorting. It's subclassed by Query, Atom, Dependency, and Package classes (IOW, most of the core classes of gentoolkit), so it reduces code duplication.

But I assume you're wondering why gentoolkit's CPV class has its own logic to do this splitting and sorting, instead of using Portage's offerings. You can look back through the revisions of the cpv module and even Package class in genscripts and notice that I tried hard to use Portage's native cpv splitting functions like pkgsplit.

Compare the input that gentoolkit gets from the various equery modules to the input that Portage allows from emerge. Portage's functions simply weren't designed to be as flexible as gentoolkit required them to be. It worked out better for me to use a modified version of the class used by pkgcore, which beats Portage's offerings in speed and has a complete unit test to boot.

So, why not?
Comment 9 Sebastian Luther (few) 2010-07-20 16:10:59 UTC
Thank you for the explanation.

(In reply to comment #8)
> (In reply to comment #7)
> > What exactly is the reason that gentoolkit needs its own cpv class?
> > 
> 
> Specifically, it provides string splitting and sorting. It's subclassed by
> Query, Atom, Dependency, and Package classes (IOW, most of the core classes of
> gentoolkit), so it reduces code duplication.
> 
> But I assume you're wondering why gentoolkit's CPV class has its own logic to
> do this splitting and sorting, instead of using Portage's offerings. You can
> look back through the revisions of the cpv module and even Package class in
> genscripts and notice that I tried hard to use Portage's native cpv splitting
> functions like pkgsplit.
> 
> Compare the input that gentoolkit gets from the various equery modules to the
> input that Portage allows from emerge. Portage's functions simply weren't
> designed to be as flexible as gentoolkit required them to be. It worked out
> better for me to use a modified version of the class used by pkgcore, which
> beats Portage's offerings in speed and has a complete unit test to boot.
> 

If the stuff portage offers does not suits your needs, why not file a feature request bug? This way more people would benefit from the stuff you do.

> So, why not?
> 

Comment 10 Paul Varner (RETIRED) gentoo-dev 2010-11-22 21:39:43 UTC
Released in gentoolkit-0.3.0_rc11