Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21703 - recent version of emerge breaks kportage
Summary: recent version of emerge breaks kportage
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 22084 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-26 05:23 UTC by Alexander Papaspyrou
Modified: 2011-10-30 22:17 UTC (History)
2 users (show)

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


Attachments
Fix for the stated bug (emerge.diff,426 bytes, patch)
2003-05-30 09:11 UTC, Alexander Papaspyrou
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Papaspyrou 2003-05-26 05:23:19 UTC
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"
Comment 1 Alexander Papaspyrou 2003-05-30 09:11:25 UTC
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
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-06-02 08:11:59 UTC
*** Bug 22084 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Papaspyrou 2003-06-08 07:49:33 UTC
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 
Comment 4 Ralph De Witt 2003-06-11 19:07:39 UTC
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. 
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2003-08-27 08:36:53 UTC
reported as fixed by author.