Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117275 - portage-2.1_pre3 prompt weirdness in some terminal emulators when emerge terminates
Summary: portage-2.1_pre3 prompt weirdness in some terminal emulators when emerge term...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-12-31 06:37 UTC by David Morgan
Modified: 2005-12-31 22:52 UTC (History)
3 users (show)

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


Attachments
Kill the double xterm title sequence (prompt_command.patch,502 bytes, patch)
2005-12-31 21:34 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Morgan 2005-12-31 06:37:00 UTC
Using rxvt-unicode, whenever emerge termintes successfully it prints "0;user@host:~" before what's usually my prompt, like so:

djm@sif ~ $ sudo emerge --resume
emerge: It seems we have nothing to resume...
0;root@sif:~djm@sif ~ $

<2.1_pre3 works fine, and this doesn't happen when using xterm

I'm told that similar things happen in gnome-terminal, but the 0; is replaced by 2;.

Not sure if this is actually a portage bug, but since it happens in at least two different terminal emulators I figured emerge must be doing something strange
Comment 1 Ana Andrés 2005-12-31 08:54:29 UTC
this is hapenning here too using gnome-terminal after doing some operation with emerge like emerge -s something:

SunLight ~ # emerge -s something
Searching...
[ Results for search key : something ]
[ Applications found : 0 ]


]2;SunLight ~ #


this is happenig in ~x86 and ~amd64. my emerge --info:

 emerge --info
Portage 2.1_pre3 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r6 i686)
=================================================================
System uname: 2.6.14-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre12
dev-lang/python:     2.3.5, 2.4.2
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/hda2/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  http://pandemonium.tiscali.de/pub/gentoo/  ftp://pandemonium.tiscali.de/pub/gentoo/  http://ftp.caliu.info/pub/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ "
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi alsa apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bmp bonobo bzip2 cairo cdparanoia cdr crypt cups curl dbus dga doc dri dts dvb dvd dvdr eds emboss encode esd evo exif expat fam fbsplash ffmpeg flac fontconfig foomaticdb fortran ftp gcj gd gdbm ggi ghkhtml gif gimp glitz glut gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal howl idn ieee1394 imagemagick imlib ipv6 java javascript jikes joystick jpeg kde lcms ldap libg++ libwww lm_sensors mad mikmod mmx mng motif mozilla mp3 mpeg msn ncurses nls nptl nsplugin objc ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl png ppds pwdb python qt quicktime readline ruby samba scanner sdl sharedmem slp spell sse sse2 ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd verbose videos vorbis win32codecs wmf xface xine xinerama xml xml2 xmms xpm xprint xv xvid xvmc zlib elibc_glibc kernel_linux linguas_es userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, LDFLAGS



Comment 2 Gary Kwong [:gkw] [:nth10sd] 2005-12-31 18:56:13 UTC
I have a similar problem:

cm63 ~ # emerge -pv portage

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/portage-2.1_pre3  USE="-build -doc" 0 kB

Total size of downloads: 0 kB
]2;cm63 ~ #

That ']2;' before the cm63 definitely wasn't there in 2.1_pre2.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-12-31 21:34:31 UTC
Created attachment 75895 [details, diff]
Kill the double xterm title sequence

This fixes it for eterm and works correctly on xterm as well. Rather than me compiling the 40 packages required for gnome-terminal, could somebody running it quickly check that it works for them please?
Comment 4 Ben Skeggs 2005-12-31 21:39:45 UTC
(In reply to comment #3)
> Created an attachment (id=75895) [edit]
> Kill the double xterm title sequence
> 
> This fixes it for eterm and works correctly on xterm as well. Rather than me
> compiling the 40 packages required for gnome-terminal, could somebody running
> it quickly check that it works for them please?
> 
Appears to fix the issue in gnome-terminal also.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-12-31 22:52:24 UTC
Fixed in 2.1_pre3-r1