Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222021 - [Regression] app-portage/portage-utils-0.1.29+: qatom gives incorrect version number in certain cases
Summary: [Regression] app-portage/portage-utils-0.1.29+: qatom gives incorrect version...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 05:07 UTC by P Purkayastha
Modified: 2011-01-18 03:12 UTC (History)
0 users

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 P Purkayastha 2008-05-14 05:07:26 UTC
qatom from app-portage/portage-utils-0.1.29 gives incorrect version number usually when there is  a number in the package name and when we give only the package name as an argument to qatom.

This is a regression since qatom in app-portage/portage-utils-0.1.28 gives the correct output.
Examples of such package names are v86d, lm1100.

Reproducible: Always

Steps to Reproduce:
1. emerge "=portage-utils-0.1.29"
2. qatom v86d
3.

Actual Results:  
(null) v86d 86d

Expected Results:  
(null) v86d (null)

~> emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.25-tuxonice-r1 i686)
=================================================================
System uname: 2.6.25-tuxonice-r1 i686 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
Timestamp of tree: Fri, 09 May 2008 06:06:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/xsessions"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.umoss.org/gentoo http://gentoo.oregonstate.edu ftp://gentoo.mirrors.pair.com http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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/enlightenment /usr/portage/local/layman/wschlich-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa bash-completion berkdb branding bzip2 bzlib cairo cdr cli cpus cracklib crypt cups curl curlwrappers dbus djvu dmx dri dts dvd dvdr dvdread encode exif fam fbcon fbcondecor ffmpeg fftw firefox flac fontconfig gdbm gif glibc-omitfp glitz gnutls gphoto2 gpm gs gtk gtkhtml hal hdaps hdri iconv ieee1394 imlib ipw3945 isdnlog jpeg kde lame lcms ldap mad mmap mmx mmx2 mng mp3 mp4 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pch pcmcia pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection savedconfig sdl session smp speex spell spl sse sse2 ssl ssse3 startup-notification svg tcpd tetex theora threads tiff truetype unicode vim-pager vim-syntax vim-with-x vorbis win32codecs wmf x264 x86 xattr xcb xcf xcomposite xft xine xinerama xml xorg xosd xpm xv xvid xvmc yv12 zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="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 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jacek Sowiński 2011-01-17 18:42:01 UTC
(In reply to comment #0)
> qatom from app-portage/portage-utils-0.1.29 gives incorrect version number
> usually when there is  a number in the package name and when we give only the
> package name as an argument to qatom.

Bug is still present in app-portage/portage-utils-0.4 and corrupts
output also if we give some-category/package as an argument.

> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge "=portage-utils-0.1.29"
> 2. qatom v86d
> 3.
> 
> Actual Results:  
> (null) v86d 86d
> 
> Expected Results:  
> (null) v86d (null)
> 

(yet another) Steps to Reproduce
1. qatom dev-python/PyQt4

Actual results
1. dev-python PyQt4 4

Expected results
1. dev-python PyQt4 (null)
Comment 2 Jacek Sowiński 2011-01-17 19:29:47 UTC
Further investigation shows that bug concerns packages with number in
package name but only if this number is last or penultimate char.

Qatom produces buggy output at for example:
* number as penultimate char of package name:
    app-arch/q7z
    app-cdr/k3b
    www-client/w3m
    sys-fs/ntfs3g
* number as ultimate char of package name:
    x11-base/xorg-x11
    x11-libs/libX11
    sys-apps/memtest86

Currently there are 478 packages in official portage tree that are
connected with this issue.