Since the last update of the portage package, the default behaviour of emerge breaks the graphical package manager "kportage" (app-admin/kportage). As far as I could track it down, there is a problem with the new "set xterm title" emerge feature. When activating this feature (which seems to be the default), an rsync call from within kportage fails immediately: --8<-- snip --8<-- Traceback (most recent call last): File "/usr/bin/emerge", line 279, in ? emergelog("Started emerge on: "+time.strftime("%b %d, %Y %H:%M:%S", time.localtime())) File "/usr/bin/emerge", line 186, in emergelog xtermTitle(mystr) File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle myt=os.environ["TERM"] File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: TERM Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs apply(func, targs, kargs) File "/usr/bin/emerge", line 201, in emergeexit emergelog(" *** terminating.") File "/usr/bin/emerge", line 186, in emergelog xtermTitle(mystr) File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle myt=os.environ["TERM"] File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: TERM -->8-- snap -->8-- Unfortunately, even when turning off the status update by saying "FEATURES=<myfeatures> notitles", the following happens after the rsync process itself is complete: --8<-- snip --8<-- Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs apply(func, targs, kargs) File "/usr/bin/emerge", line 202, in emergeexit xtermTitle(os.environ["TERM"]) File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: TERM -->8-- snap -->8-- Please fix this -- or write a kpackage plugin for portage ;) -- as the most useful feature of kportage is the "what's new" overview after running emerge sync... Thanks in advance. Reproducible: Always Steps to Reproduce: 1. Install app-admin/kportage 2. Update to the most recent version of portage/emerge 3. From within kportage, run emerge sync 4. Edit /etc/make.conf: add "notitles" to the FEATURES variable 5. Restart kportage and try again Actual Results: kportage fails to sync regardless how "FEATURES" is set. Expected Results: At least when saying "FEATURES=<myfeatures> notitles", kportage should work correctly. hostname # emerge info Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-xfs-r3 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.linux.no/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="directfb aalib nas ggi 3dnow acl acpi alsa -apm arts avi berkdb -bonobo -cdr crypt cups dga dvd -encode -esd fbcon -gdbm gif -gnome gpm -gtk -gtkhtml -guile -imlib -java jikes jpeg kde -ldap -libg++ libwww maildir -mikmod mmx motif -mpeg mpi ncurses nls oav oggvorbis opengl -oss pam pda -pdflib -perl png -python qt quicktime readline samba -scanner sdl -slang spell ssl -svga tcpd -tetex truetype usb X x86 xml2 -xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -finline-functions -falign-jumps=4 -falign-loops=4 -falign-functions=64 -fprefetch-loop-arrays " CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -finline-functions -falign-jumps=4 -falign-loops=4 -falign-functions=64 -fprefetch-loop-arrays " ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 12575 [details, diff] Fix for the stated bug This is a (trivial) fix for the borked behaviour of emerge with kportage. Note that I wasn't sure about the diff format you use, so I tried "diff -u". It seems that the portage dev team just forgot to check the "notitles" FEATURE in the emergeexit() function. Please review the patch, notify me and incorporate it to portage ASAP. Regards, Alexander Papaspyrou
*** Bug 22084 has been marked as a duplicate of this bug. ***
The issues described by this bug report have been addressed to in the recent version of portage, which is 2.0.48-r1. After some testing, I am quite sure that the stated problems have been fixed. I would suggest to mark this bug as resolved/fixed. Regards, Alexander
I am using Kportage 0.6.1, KDE 3.1.2, and Portage 2.0.48-R1. Emerge sync works fine. However when emerging multiple programs/files, kportage will go into a loop at the end of the processe using almost 100% of system resources. I then need to kill kportage.
reported as fixed by author.