Since portage-2.2_rc12 the default output of wget for fetches which are not done in background changed from 100%[======================================>] 5,291 --.-K/s in 0.03s to 0K .......... .......... .......... .......... .......... 3% 542K 2s 50K .......... .......... .......... .......... .......... 7% 827K 2s 100K .......... .......... .......... .......... .......... 11% 767K 2s 150K .......... .......... .......... .......... .......... 15% 743K 2s 200K .......... .......... .......... .......... .......... 19% 805K 1s 250K .......... .......... .......... .......... .......... 23% 522K 1s 300K .......... .......... .......... .......... .......... 26% 1.31M 1s 350K .......... .......... .......... .......... .......... 30% 727K 1s 400K .......... .......... .......... .......... .......... 34% 818K 1s ... like it is used when fetching parallel and in background. Honestly this just looks plain ugly when files are fetched in foreground... Cheers Poly-C Reproducible: Always Steps to Reproduce: barcelona:~ # emerge --info Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.26.6 x86_64) ================================================================= System uname: Linux-2.6.26.6-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2354-with-glibc2.2.5 Timestamp of tree: Fri, 10 Oct 2008 06:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=barcelona -mtune=barcelona -O2 -finline-functions -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bash_completion.d /etc/bonobo-activation /etc/ca-certificates.conf /etc/cups /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fish /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gtk /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/imlib /etc/init.d /etc/iproute2 /etc/nas /etc/ntop /etc/pam.d /etc/pango /etc/profile.d /etc/revdep-rebuild /etc/sasl2 /etc/sgml /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/udev/rules.d /etc/xinetd.d /etc/xml /etc/zsh" CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -finline-functions -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --jobs=1 --with-bdeps=y" FEATURES="collision-protect distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed" LINGUAS="de" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amd64codecs asf avi berkdb branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dvd dvdr dvdread emboss encode fam ffmpeg flac gdbm gif gnutls gpg gtk gtk2 iconv idn imagemagick imlib isdnlog jpeg kde kdehiddenvisibility lame libwww mad midi mikmod mjpeg mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcre pdf png pppd qt3 qt3support quicktime readline reflection sdl session silc slang smp spell spl sse sse2 ssl startup-notification svg sysfs tga theora threads tiff truetype usb v4l2 vcd vorbis x264 xcomposite xml xml2 xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Ugly, plus all sorts of scrolling... especially with KDE-4.1 just unmasked to ~arch and fetching! A patch to apply would be appreciated. =;^)
Some additional information: I guess that the reason is that wget thinks that the output is not going to a terminal. (Probably for the same reason there are also less colors in the outputs for the checksum tests). The problem did not occur with portage-2.2_rc11, so I guess that something concerning redirection of output was changed.
I agree with the latest comment. I'd change the bug summary in something more descriptive (like "sys-apps/portage-2.2_rc12 not recognizing standard output as a terminal") and raise the priority to normal, as this is certainly a regression.
Sorry, I meant "Severity" and not "Priority". Anyway, the problems seems to occur in the fetching phase only (colors are correctly displayed in the compiling phase, at least).
summary and severity changed
This is fixed in svn r11680.
Maybe could you update portage in tree then!?
A new version of portage will be released when he feels like doing one (and there is cause for it). If you're really impatient, feel free to grab the diff for that revision from SVN and apply it to your local portage.
Created attachment 168580 [details, diff] portage-2.2_rc12-use-fetchers-progressbar-if-possible.diff Try this (slightly modified) patch for now.
And what exactly is modified about it? Is it a change that needs to go in SVN?
No, this patch is derived from the one zmedico already applied to SVN. But the original patch doesn't apply to portage-2.2_rc12 as there were other changes in __init__.py as well. So I modified the patch to apply to portage-2.2_rc12.
Created attachment 168590 [details, diff] patch applies cleanly against portage-2.2_rc12 If this patch is saved as /tmp/fetch_pty.patch, then it can be applied as follows: patch /usr/lib/portage/pym/_emerge/__init__.py /tmp/fetch_pty.patch
*** Bug 244604 has been marked as a duplicate of this bug. ***
This is fixed in 2.2_rc13.