Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278336 - app-portage/portage-utils-0.2: "emerge --sync --quiet" incorrectly prints informational messages
Summary: app-portage/portage-utils-0.2: "emerge --sync --quiet" incorrectly prints inf...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 17:43 UTC by Aaron Ten Clay
Modified: 2010-06-08 05:28 UTC (History)
2 users (show)

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 Aaron Ten Clay 2009-07-19 17:43:22 UTC
Running "emerge --sync --quiet" results in informational output bring printed, sometimes to stderr. One example:

= snip =
somebox ~ # emerge --sync --quiet >/dev/null
q: Updating ebuild cache ... 
q: Finished 26538 entries in 0.160697 seconds
= snip =

At the very least, informational messages should go to stdout, but really they should probably not be printed at all with --quiet.

Reproducible: Always

Steps to Reproduce:
1. Run "emerge --sync --quiet"
2. Observe output which should be hidden


Actual Results:  
somebox ~ # emerge --sync --quiet >/dev/null
q: Updating ebuild cache ... 
q: Finished 26538 entries in 0.160697 seconds
somebox ~ #

Expected Results:  
somebox ~ # emerge --sync --quiet
somebox ~ #

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 i686)
=================================================================                                    
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.0   
Timestamp of tree: Sun, 19 Jul 2009 11:00:01 +0000                                                   
ccache version 2.4 [enabled]                                                                         
app-shells/bash:     3.2_p39                                                                         
dev-java/java-config: 2.1.7                                                                          
dev-lang/python:     2.5.4-r2                                                                        
dev-util/ccache:     2.4-r7                                                                          
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.portlandcomputerguys.com/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa aotuv async audiofile automount autostart bash-completion berkdb bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi cli cracklib crypt cups curl daap dbus djbfft dmi dri dts dv dvb dvd dvdr dvdread encode exif extensions fam fastcgi ffmpeg fftw flac fortran ftp gd gdbm gif glitz gpm gtk hal http httpd icecast iconv ieee1394 imagemagick imlib iproute2 ipv6 isdnlog java javascript jbig jpeg jpeg2k jpgraph justify kde lame live lzo mad matroska md5sum memcache midi mikmod mjpeg mmap mmx mmxext mng mod modplug mono mp2 mp3 mp4 mpeg mplayer mudflap multiuser musepack musicbrainz mysql ncurses nethack network nls no-old-linux nptl nptlonly nsplugin nvidia offensive ogg openal opengl openmp pam pcre pdf perl php physfs png posix pppd python qt3 qt4 quicktime rar rdesktop readline reflection rrdcgi rrdtool rtc rtsp ruby samba sasl scanner sdl server session shout skins slp sndfile speex spell spl sqlite srt sse sse2 sse3 ssl stream svg sysfs tcpd theora threads tiff transcode transmitter truetype unicode usb utempter v4l v4l2 vcd vchroot vidix vlm vorbis wavpack webdav win32codecs wmf wxwindows x264 x86 xanim xattr xcb xine xinerama xml xmlrpc xorg xosd xsl xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="imon" LIRC_DEVICES="atiusb" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Zac Medico gentoo-dev 2009-07-19 20:01:17 UTC
It's actually the portage-utils sync hook located in /etc/portage/bin/post_sync that does that. I guess we need to past the --quiet option down there somehow. Typically we use the PORTAGE_QUIET=1 environment variable to signify this. That environment variable should be available in the post_sync environment.
Comment 2 Zac Medico gentoo-dev 2009-07-19 20:04:23 UTC
Reassigning to portage-utils since PORTAGE_QUIET=1 should work fine as far as the emerge side is concerned.
Comment 3 Dustin C. Hatch 2009-11-09 15:56:35 UTC
Any word on this? I have a postsync.d script that calls layman, and I would like to be able to tell it whether or not to be quiet.

As a test, I called set inside my script, and PORTAGE_QUIET is not there.
Comment 4 Zac Medico gentoo-dev 2009-11-09 20:52:09 UTC
(In reply to comment #3)
> As a test, I called set inside my script, and PORTAGE_QUIET is not there.

Thanks, that's fixed in svn r14805.
Comment 5 Zac Medico gentoo-dev 2009-11-16 01:17:11 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > As a test, I called set inside my script, and PORTAGE_QUIET is not there.
> 
> Thanks, that's fixed in svn r14805.

That's released in portage-2.1.7.5 and 2.2_rc50.
Comment 6 SpanKY gentoo-dev 2010-06-08 05:28:19 UTC
the postsync logic should respect that envvar now too

http://sources.gentoo.org/app-portage/portage-utils/files/q-reinitialize?r1=1.1&r2=1.2