# emerge --search portage Traceback (most recent call last): File "/usr/bin/emerge", line 3723, in ? emerge_main() File "/usr/bin/emerge", line 3708, in emerge_main action_search(myopts, myfiles) TypeError: action_search() takes exactly 3 arguments (2 given) Reverting to portage-2.1.1_pre1-r2 restored the search functionality. Problem exists on both amd64 and x86 platforms. # emerge --info Portage 2.1.1_pre1-r3 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo x86_64) ================================================================= System uname: 2.6.17-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://bower/gentoo ftp://ftp.iinet.com.au/pub/Gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_AU" LC_ALL="en_AU" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://bower/gentoo-portage" USE="amd64 X a52 aac alsa arts audiofile bash-completion berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr cdrom chroot cli crypt cups curl dpms dri dts dv dvb dvd dvdr dvdread eds emboss encode exif expat fame fbcon ffmpeg flac foomaticdb fortran gdbm gif gimpprint gpm gps gsl gstreamer gtk gtk2 hal idn imagemagick imap imlib ipv6 isdnlog jack java jpeg jpeg2k junit kde lcms lirc lm_sensors lzo lzw lzw-tiff mad mmap mng mp3 mpeg mpeg4 musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pam pcre pda pdflib perl pic png ppds pppd python qt qt3 qt4 quicktime readline reflection sdk sdl session slang sndfile speex spell spl sqlite ssl svg tcpd test theora threads tiff truetype truetype-fonts type1-fonts usb userlocales vcd vorbis vorbis-psy wmf xcomposite xine xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc yv12 zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux lirc_devices_livedrive_midi userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Another problem with sys-apps/portage-2.1.1_pre1-r3: # emerge --sync [snip] >>> Updating Portage cache: 100% Traceback (most recent call last): File "/usr/bin/emerge", line 3723, in ? emerge_main() File "/usr/bin/emerge", line 3693, in emerge_main action_sync(myopts, myaction) File "/usr/bin/emerge", line 2734, in action_sync chk_updated_cfg_files() TypeError: chk_updated_cfg_files() takes exactly 2 arguments (0 given)
Got the same thing, amd64 fwiw W
Same for x86 (--search fails) Portage 2.1.1_pre1-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.15 dev-lang/python: 2.3.5-r2, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium4 -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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
Created attachment 90255 [details, diff] fix TypeError for action_search() and chk_updated_cfg_files() These errors are pretty harmless. Anyway, I'm sorry. :) I'll have a pre1-r4 in the tree pretty soon... If you save this patch as /tmp/TypeError.patch, then you can apply it as follows: cd /usr/lib/portage patch -p0 < /tmp/TypeError.patch
This is fixed in svn r3673 and 3674. It has been released in 2.1.1_pre1-r4.
*** Bug 138193 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > This is fixed in svn r3673 and 3674. It has been released in 2.1.1_pre1-r4. No, it is not: >>> Updating Portage cache: 100% Traceback (most recent call last): File "/usr/bin/emerge", line 3724, in ? emerge_main() File "/usr/bin/emerge", line 3693, in emerge_main action_sync(myopts, myaction) File "/usr/bin/emerge", line 2734, in action_sync chk_updated_cfg_files("/", settings.get("CONFIG_PROTECT","").split()) NameError: global name 'settings' is not defined # emerge --info OK... Portage 2.1.1_pre1-r4 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-ck1 i686)
(In reply to comment #7) > (In reply to comment #5) > > This is fixed in svn r3673 and 3674. It has been released in 2.1.1_pre1-r4. > > No, it is not: Sorry, it's fixed in svn but the patch isn't complete when applied against 2.1.1_pre1-r3. Anyway, it's pretty harmless. See bug #138195.
*** Bug 138333 has been marked as a duplicate of this bug. ***