I entered: emerge --ask depclean, answered 'no', after that I got the following Traceback. Do you want me to unmerge these packages? [Yes/No] no Traceback (most recent call last): File "/usr/bin/emerge", line 2469, in ? unmerge("unmerge", cleanlist) File "/usr/bin/emerge", line 1833, in unmerge __main__.myopts+=["--pretend"] NameError: global name '__main__' is not defined Reproducible: Always Steps to Reproduce: 1.emerge --ask depclean 2.answer no 3. Actual Results: It spitted out a traceback Expected Results: Said nothing ;-)
Not reproducible here, can you add the emerge info output to this bug please (Danny, Jason, can we bounce this to portage maintainers?)
Meanwhile it isn't reproducable by me anymore. Probably after I did the transition from amd64 to ~amd64. It works now.
This happened to me too. I tried it again and it happened again. The complete shell output follows: root>emerge --ask --verbose depclean *** WARNING *** : DEPCLEAN CAN SERIOUSLY IMPAIR YOUR SYSTEM . USE CAUTION. *** WARNING *** : (Cancel: CONTROL-C) -- ALWAYS VERIFY ALL PA CKAGES IN THE *** WARNING *** : CANDIDATE LIST FOR SANITY BEFORE ALLOWIN G DEPCLEAN TO *** WARNING *** : UNMERGE ANY PACKAGES. *** WARNING *** : *** WARNING *** : USE FLAGS MAY HAVE AN EXTREME EFFECT ON THE OUTPUT. *** WARNING *** : SOME LIBRARIES MAY BE USED BY PACKAGES BUT ARE NOT *** WARNING *** : CONSIDERED TO BE A DEPEND DUE TO USE FLAG S ETTINGS. *** WARNING *** : *** WARNING *** : Packages in the list that are desired m ay be added *** WARNING *** : directly to the world file to cause them to be ignored *** WARNING *** : by depclean and maintained in the future. B REAKAGES DUE *** WARNING *** : TO UNMERGING AN ==IN-USE LIBRARY== MAY BE REPAIRED BY *** WARNING *** : MERGING *** THE PACKAGE THAT COMPLAINS *** ABOUT THE *** WARNING *** : MISSING LIBRARY. Calculating depclean dependencies ... done! >>> These are the packages that I would unmerge: net-mail/mailwrapper selected: 0.1 protected: none omitted: none dev-java/blackdown-jre selected: 1.4.1 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Do you want me to unmerge these packages? [Yes/No] no Traceback (most recent call last): File "/usr/bin/emerge", line 2469, in ? unmerge("unmerge", cleanlist) File "/usr/bin/emerge", line 1833, in unmerge __main__.myopts+=["--pretend"] NameError: global name '__main__' is not defined Here's my emerge info output: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Doesn't happen with portage 2.0.51_pre20... Someone tell me why i didn't see this one earlier ? :-/ Reassigning to portage devs!
Funny, after all these time I can reproduce the error again, root@psychotic /home/helios # emerge info Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6 .8-gentoo) ================================================================= System uname: 2.6.8-gentoo x86_64 4 Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp. du.se/pub/os/gentoo http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/ gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang snmp spell ssl tcpd tetex truetype xml2 xmms xv zlib" And the result is still: Do you want me to unmerge these packages? [Yes/No] No Traceback (most recent call last): File "/usr/bin/emerge", line 2469, in ? unmerge("unmerge", cleanlist) File "/usr/bin/emerge", line 1833, in unmerge __main__.myopts+=["--pretend"] NameError: global name '__main__' is not defined Happens when typing N,No or no
This bug exists in the 2.0.50 series. Not present in 2.0.51
Bug has been fixed and released in stable portages on or before 2.0.51-r2