Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71136 - etcat -u fails with: no attribute 'get_use_vars'
Summary: etcat -u fails with: no attribute 'get_use_vars'
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
: 74546 80606 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-14 03:50 UTC by Kimmo Sundqvist
Modified: 2005-04-24 21:23 UTC (History)
8 users (show)

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


Attachments
Fixes call to get_use_vars that was renamed to get_use_flags (gentoolkit-0.2.0_pre10-get_use_vars.patch,448 bytes, patch)
2004-12-10 17:11 UTC, Maurice van der Pot (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Sundqvist 2004-11-14 03:50:27 UTC
# etcat -u eog
[ Colour Code : set unset ]
[ Legend   : (U) Col 1 - Current USE flags        ]
[          : (I) Col 2 - Installed With USE flags ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 670, in ?
    main()
  File "/usr/bin/etcat", line 666, in main
    function(query, matches)
  File "/usr/bin/etcat", line 357, in uses
    used = p.get_use_vars().split()
AttributeError: Package instance has no attribute 'get_use_vars'

# etcat -u xorg-x11
[ Colour Code : set unset ]
[ Legend   : (U) Col 1 - Current USE flags        ]
[          : (I) Col 2 - Installed With USE flags ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 670, in ?
    main()
  File "/usr/bin/etcat", line 666, in main
    function(query, matches)
  File "/usr/bin/etcat", line 357, in uses
    used = p.get_use_vars().split()
AttributeError: Package instance has no attribute 'get_use_vars'

This happens with gentoolkit-0.2.0_pre8-r1 and 0.2.0_pre10-r1 and some other versions I've cared to try out.  This also happens with multiple versions of portage.  Both xorg-x11 and eog are installed in my system.

With packages that are not installed, I never get anything else than 
# etcat -u libffi
[ Colour Code : set unset ]
[ Legend   : (U) Col 1 - Current USE flags        ]
[          : (I) Col 2 - Installed With USE flags ]

# etcat -u xfree
[ Colour Code : set unset ]
[ Legend   : (U) Col 1 - Current USE flags        ]
[          : (I) Col 2 - Installed With USE flags ]

Reproducible: Always
Steps to Reproduce:
1. Type "etcat -u" and the name of an installed package
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20041102-r0,     2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3    /env /usr/kde/
3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /us    r/lib/mozilla/defaults/pref /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mcpu=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/g    entoo/"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts bonobo crypt cups encode esd f77 fa    m flac foomaticdb 
fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk    2 gtkhtml guile imagemagick imlib jack 
java jpeg jpg junit kde ladcca libg++ lib    www mad mikmod mmx motif mozilla mpeg nas ncurses nls nptl 
objc oggvorbis opengl     oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang spell   
  sse ssl svga tcltk tcpd tiff truetype wmf x86 xml xml2 xmms xv zlib"
Comment 1 Carl Michal 2004-11-27 15:44:36 UTC
I get this too, but only on systems that were upgraded to portage 2.0.51.

Comment 2 Maurice van der Pot (RETIRED) gentoo-dev 2004-12-10 17:11:32 UTC
Created attachment 45714 [details, diff]
Fixes call to get_use_vars that was renamed to get_use_flags

This small change should fix it.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2004-12-22 15:37:43 UTC
*** Bug 74546 has been marked as a duplicate of this bug. ***
Comment 4 Sophie Hamilton 2005-02-02 12:16:05 UTC
I was also having this problem, and I can confirm that the above patch fixes it.
Comment 5 Kimmo Sundqvist 2005-02-03 10:40:56 UTC
The patch also fixed it for me
Comment 6 Maurice van der Pot (RETIRED) gentoo-dev 2005-02-03 11:23:03 UTC
Kimmo, please don't close bug reports until fixes are available through portage.
I have provided a patch, but it still has to be checked into the archive by 
the gentoolkit developers.
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2005-02-25 14:07:53 UTC
can confirm this issue with gentoolkit-0.2.0
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 17:15:41 UTC
*** Bug 80606 has been marked as a duplicate of this bug. ***
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2005-04-24 21:23:06 UTC
fixed in 0.2.1_pre1. Sorry for the long delay.