Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21335 - Piping/redirection in portage_2.0.48_pre6 gives errors
Summary: Piping/redirection in portage_2.0.48_pre6 gives errors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 09:07 UTC by Narada Sage
Modified: 2011-10-30 22:22 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 Narada Sage 2003-05-20 09:07:33 UTC
From 2.0.48_pre6 onwards piping or redirection of output produces strange
characters or error messages even when the spinner is disabled.

$ emerge '.*' -s | less        (after pressing 'q' gives: )

Traceback (most recent call last):
  File "/usr/bin/emerge", line 1747, in ?
    searchinstance.output()
  File "/usr/bin/emerge", line 447, in output
    print "     ", darkgreen("Size of downloaded files:"),mysum[0]
IOError: [Errno 32] Broken pipe

$ emerge lsof | tee /tmp/emerge.log

^[]1;^G^[]2; >>> unmerge success: sys-apps/lsof-4.64^G >>> Regenerating /etc/ld.
so.cache...
^[]1;^G^[]2; ::: completed emerge (1 of 1) sys-apps/lsof-4.67 to /^G ^[]1;^G^[]2
; *** Finished. Cleaning up...^G >>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
^[]1;^G^[]2; *** exiting successfully.^G  * GNU info directory index is up-to-da
te.        
^[]1;^G^[]2; *** terminating.^G ^[]1;^G^[]2;Eterm^G

I'm not sure if this is a problem but it seems only to have occurred with pre6.

$ emerge info

  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.11/sites/www.ibiblio.org/gentoo/ rsync://ftp.belnet.be/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /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="x86 3dnow avi cups encode gif jpeg mmx mpeg ncurses pdflib png quicktime
truetype xml2 xmms xv zlib directfb alsa slang readline aalib svga java X sdl
tcpd pam libwww ssl perl python imlib oggvorbis gtk motif opengl mozilla cdr
acpi acpi4linux dvd fbcon imap maildir moznocompose moznoirc moznomail moznoxft
mozsvg sse tiff usb xml -oss -apm -crypt -libg++ -mikmod -nls -spell -gtkhtml
-gdbm -berkdb -arts -tetex -bonobo -tcltk -guile -gpm -esd -gnome -qt -kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
FEATURES="sandbox distcc ccache"

Also, emerge info now has two spaces on the first line of information as can be
seen above.  This is a trivial one but it would be nice not to have the spaces.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-08-23 15:47:38 UTC
Reason - No longer a problem with new portage (.49).