Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69321 - emerge fails to restore proper xterm title on exit
Summary: emerge fails to restore proper xterm title on exit
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-28 14:16 UTC by Seth Robertson
Modified: 2005-02-28 09:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth Robertson 2004-10-28 14:16:18 UTC
With the latest emerge and the latest xterm, emerge fails to restore the xterm title after a successful exit, instead setting the title to my $TERM variable setting.

I am running xterm-196 and portage-2.0.51-r2.  My $TERM is set to "xterm-xfree86"

Using `xtermcontrol` before and after the emerge properly retrieves and restores the xterm title, so the problem is definately with 

Some potentially related bugs, for your pleasure:

bug 22664 (emerge doesn't change the xterm title back to original after being killed)
bug 62918 (xtermTitle() does not change title of advanced xterms)

Reproducible: Always
Steps to Reproduce:
1. emerge xterm portage
2. xterm
3. export TERM=xterm-xfree86
4. xtermcontrol --title "foo bar"
5. OLDTITLE=`xtermcontrol --get-title`
6. emerge app-emacs/psgml  <or any package>
7. NEWTITLE=`xtermcontrol --get-title`
8. if [ "$OLDTITLE" != "$NEWTITLE" ]; then echo TITLE MISMATCH $OLDTITLE to $NEWTITLE; xtermcontrol --title "$OLDTITLE"; fi

Actual Results:  
TITLE MISMATCH foo bar to xterm-xfree86

Title was set to "xterm-xfree86" between steps 7 and 8

Expected Results:  
Should not have produced "TITLE MISMATCH" and title should have been "foo bar"
after step 7.


Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/
ftp://chod.cwru.edu/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm arts audiofile avi berkdb bitmap-fonts
caps cdr crypt cscope cups curl dga directfb emacs encode esd ethereal f77 fdftk
flac foomaticdb gd gdbm gif gmp gnome gphoto2 gpm gtk gtk2 imagemagick imlib
java joystick jpeg kde lcms ldap lesstif libg++ libwww mad mbox mikmod mmx motif
mozilla mpeg mysql ncurses nls nocardbus nocd oggvorbis opengl oss pam pdflib
perl plotutils png postgres ppds prelude python qt quicktime readline samba sdl
slang snmp socks5 speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype
unicode usb videos wmf x86 xinerama xml xml2 xmms xosd xprint xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2005-02-28 09:32:24 UTC
Non-trivial to remedy. Disable titles if you don't want that to happen.