Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256103 - app-portage/gentoolkit - glsa-check -m: /usr/$libdir/portage/pym/portage/__init__.py:2749: DeprecationWarning: portage.config.has_key() is deprecated, use the in operator instead
Summary: app-portage/gentoolkit - glsa-check -m: /usr/$libdir/portage/pym/portage/__in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964 268001
  Show dependency tree
 
Reported: 2009-01-23 17:04 UTC by William Arlofski
Modified: 2009-05-18 22:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glsa-check_no_has_key.patch (glsa-check_no_has_key.patch,1.40 KB, patch)
2009-01-24 22:21 UTC, michael@smith-li.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Arlofski 2009-01-23 17:04:46 UTC
"glsa-check -m affected" on several machines started to fail with the following error/warning message:

--[snip]--
# glsa-check -m affected
/usr/lib64/portage/pym/portage/__init__.py:2749: DeprecationWarning: portage.config.has_key() is deprecated, use the in operator instead
  DeprecationWarning)
--[snip]--

And of course, on 32 bit machines "/usr/lib/portage" is listed rather than "/usr/lib64/portage"

Oddly, glsa-check -l affected works as expected on each of the machines that -m fails on.

glsa-check from app-portage/gentoolkit-0.2.4.2-r1 on one 64bit machine
and 
app-portage/gentoolkit-0.2.4.2 on one 32bit machine



Reproducible: Always

Steps to Reproduce:
1. glsa-check -m affected

Actual Results:  
/usr/lib/portage/pym/portage/__init__.py:2749: DeprecationWarning: portage.config.has_key() is deprecated, use the in operator instead
  DeprecationWarning)


Expected Results:  
email information regarding affected packages to the admin

From on 64-bit machine here is the emerge --info output, 32-bit output follows after:

# emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-3.4.6, glibc-2.6.1-r0, 2.6.27-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Fri, 23 Jan 2009 08:00:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
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"
SYNC="rsync://newby.revpol.com/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt dbus dri gdbm hal iconv imlib ipv6 isdnlog logrotate midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode userlocales xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


emerge --info from a 32-bit machine where glsa-check -m affected is failing:

# emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.23-gentoo-r6-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-glibc2.0
Timestamp of tree: Fri, 23 Jan 2009 16:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
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.1-r1
sys-devel/binutils:  2.18-r3
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="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm iconv ipv6 isdnlog ldap midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session spl ssl sysfs tcpd unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="unique_id filter access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 michael@smith-li.com 2009-01-24 22:21:33 UTC
Created attachment 179598 [details, diff]
glsa-check_no_has_key.patch
Comment 2 michael@smith-li.com 2009-01-24 22:23:53 UTC
oops, attachment 179598 [details, diff] also contains the fix to bug 256013 -- forgot to take it out.
Comment 3 William Arlofski 2009-01-28 12:28:57 UTC
Michael, sorry it took so long to get back to you.    I was able to to manually patch glsa-check and glsa-py with the patch you provided and that seems to have taken care of the problem. 

Of course, this is on one machine.   I look forward to the fix making it into the gentoolkit ebuild. :)

Thanks. 
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2009-04-29 08:10:25 UTC
Dear tools-portage team, any news on this one? TIA.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2009-05-07 01:42:11 UTC
gentoolkit-0.3.0_rc5 released.  Thanks to djanderson for the hard work on equery and gentoolkit.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2009-05-18 22:12:46 UTC
gentoolkit-0.2.4.4 and gentoolkit-0.3.0_rc6 released.