Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291200 - Emerge quiet is too quiet
Summary: Emerge quiet is too quiet
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 288499
  Show dependency tree
 
Reported: 2009-10-30 17:51 UTC by Guillaume Bouchard
Modified: 2009-11-16 10:25 UTC (History)
1 user (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 Guillaume Bouchard 2009-10-30 17:51:59 UTC
I use -q (--quiet) in emerge to remove all compilation output, but it also remove some important messages. (for me, perhaps people have other idea of what is important). For example, -q removes listings of portage tree and overlays in emerge -(a,p)

Reproducible: Always

Steps to Reproduce:
1. Try to emerge something (like mutter, from overlay gnome) with -v (verbose) and -q (quiet) and also -a


Actual Results:  
Portage asks me if I want to install mutter,

guillaume@hal ~ $ sudo emerge -a -q -v  mutter
[ebuild  N    ] x11-wm/mutter-2.28.0  USE="introspection -debug -test -xinerama" 

Would you like to merge these packages? [Yes/No] 

It does not show the information that mutter is from an overlay (which is important to know when you emerging stuff, I have more trust in gentoo officials ebuilds than overlay's ones

But if i do emerge -a -v mutter

guillaume@hal ~ $ sudo emerge -a -v  mutter
Password: 

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild  N    ] media-libs/clutter-1.0.8  USE="gtk introspection opengl -debug -doc" 0 kB [1]
[ebuild  N    ] x11-wm/mutter-2.28.0  USE="introspection -debug -test -xinerama" 0 kB [1]

Total: 2 packages (2 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/gnome

Would you like to merge these packages? [Yes/No] 

I have the interesting informations, but then I have the really long build output during all the processing.



Expected Results:  
guillaume@hal ~ $ sudo emerge -a -v -q  mutter

[ebuild  N    ] media-libs/clutter-1.0.8  USE="gtk introspection opengl -debug -doc" 0 kB [1]
[ebuild  N    ] x11-wm/mutter-2.28.0  USE="introspection -debug -test -xinerama" 0 kB [1]

Total: 2 packages (2 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/gnome

Would you like to merge these packages? [Yes/No] 


Portage 2.1.7.1 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r3-i686-AMD_Athlon-tm-_XP_2000+-with-gentoo-2.0.1
Timestamp of tree: Wed, 28 Oct 2009 23:45:02 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA ut2003-demo Q3AEULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="intel8x0"
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"
ARCH="x86"
AUDIODEV="default"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-4FGIyqU04k,guid=17dbc3339221119c6cb23c1f4aead644"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v"
EMERGE_WARNING_DELAY="10"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GDK_USE_XFT="1"
GDMSESSION="gnome"
GDM_LANG="en_US.UTF-8"
GDM_XSERVER_LOCATION="local"
GENERATION="2"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_PID="2274"
GNOME_KEYRING_SOCKET="/tmp/keyring-X22oRU/socket"
HG="/usr/bin/hg"
HOME="/home/guillaume"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.20/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/info:/usr/share/info/emacs-23"
INPUT_DEVICES="evdev"
JAVAC="/opt/blackdown-jdk-1.4.2.03/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JDK_HOME="/opt/blackdown-jdk-1.4.2.03"
KERNEL="linux"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="en fr"
LOGNAME="guillaume"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.20/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/man:/opt/blackdown-jdk-1.4.2.03/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="nvidia"
ORBIT_SOCKETDIR="/tmp/orbit-guillaume"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/lib/subversion/bin:/usr/games/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo save_summary"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="10"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/misc /usr/local/portage/soya"
PRELINK_PATH_MASK="/opt:/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/guillaume"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/lib/subversion/bin"
RPMDIR="/usr/portage/rpm"
SANE_CONFIG_DIR="/etc/sane.d"
SDL_AUDIODRIVER="alsa"
SESSION_MANAGER="local/hal:@/tmp/.ICE-unix/2286,unix/hal:/tmp/.ICE-unix/2286"
SHELL="/bin/bash"
SHLVL="1"
SSH_AUTH_SOCK="/tmp/keyring-X22oRU/socket.ssh"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TCL_LIBRARY="/usr/lib/tcl8.4"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow 3dnowext X a52 aac acl acpi alsa ansi applet asf avahi blender-game branding bzip2 cairo cdr cli consolekit cracklib crypt cups cupsddk dbus deskbar dri dts dvd dvdr emacs emboss encode extra extras fam fbcon ffmpeg flac fortran fuse gd gdbm gif glitz gnome gnome-keyring graphviz gstreamer gtk gtk2 iconv idle imagemagick imap introspection ipv6 isdnlog jabber jingle jpeg keyring kpathsea libburn libnotify lm_sensors mad mikmod mmx mmxext modules moznocompose moznoirc mp3 mp4 mpeg mudflap musicbrainz nautilus ncurses nls nowin nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit poppler ppds pppd preview-latex python quicktime readline reflection scanner sdl session spell spl sqlite sqlite3 sse ssl startup-notification svg sysfs tcltk tcpd theora threads thunar tiff tk toolkit-scroll-bars totem trayicon truetype unicode usb v4l v4l2 vdpau vim-syntax vorbis webkit win32codecs wmp x264 x86 xattr xcb xft xml xorg xv xvid zlib" ALSA_CARDS="intel8x0" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" USERLAND="GNU" VIDEO_CARDS="nvidia" 
USER="guillaume"
USERLAND="GNU"
USERNAME="guillaume"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia"
VMHANDLE="blackdown-jdk-1.4.2"
WINDOWID="41963030"
WINDOWPATH="7"
XAUTHORITY="/home/guillaume/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="586a7a15c4c27aef5acc4200458a855c-1256904259.914285-497271863"
XPSERVERLIST=""
_="/usr/bin/emerge"
bash4="4.0.35(2)-release"
Comment 1 Zac Medico gentoo-dev 2009-11-05 08:36:37 UTC
I guess we can add a --quiet-build option which just quiets the build output. You'll be able to set that in EMERGE_DEFAULT_OPTS in make.conf.
Comment 2 Zac Medico gentoo-dev 2009-11-06 23:14:39 UTC
This is in svn r14783.
Comment 3 Zac Medico gentoo-dev 2009-11-07 02:40:04 UTC
This is fixed in 2.1.7.4 and 2.2_rc49.
Comment 4 Guillaume Bouchard 2009-11-13 14:35:22 UTC
Thank for your work,

By the way, this is not perfect. The use of -q is to remove useless informations (build output, spinner, stuff that can be compacted in only one line), the use of -v is to add usefull informations (use flags, overlays info, ...)

Currently, the introduced command line switch only remove build output. But unmerging and syncing output are still there.

Moreover, If the output is still clutered with useless informations (such as spinner, informations on multiples lines instead of one), take a look on my emerge -C output :

hal ~ # emerge -C openexr_viewers

 media-gfx/openexr_viewers
    selected: 1.0.1 
   protected: none 
     omitted: none 

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1 
>>> Unmerging media-gfx/openexr_viewers-1.0.1...
No package files given... Grabbing a set.
<<<          obj /usr/share/doc/openexr_viewers-1.0.1/README.bz2
<<<          obj /usr/share/doc/openexr_viewers-1.0.1/NEWS.bz2
<<<          obj /usr/share/doc/openexr_viewers-1.0.1/ChangeLog.bz2
<<<          obj /usr/share/doc/openexr_viewers-1.0.1/AUTHORS.bz2
<<<          obj /usr/include/OpenEXR/OpenEXR_ViewersConfig.h
<<<          obj /usr/bin/exrdisplay
<<<          dir /usr/share/doc/openexr_viewers-1.0.1
--- !empty   dir /usr/share/doc
--- !empty   dir /usr/share
--- !empty   dir /usr/include/OpenEXR
--- !empty   dir /usr/include
--- !empty   dir /usr/bin
--- !empty   dir /usr

 * GNU info directory index is up-to-date.


hal ~ # emerge -Cq openexr_viewers
media-gfx/openexr_viewers: 1.0.1 none none 
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1 
>>> Unmerging media-gfx/openexr_viewers-1.0.1...
 * GNU info directory index is up-to-date.


I like quiet output, with reduced useless informations and useless debug. But I also want usefull information like overlays names and stuff like that.

Proposal : put back some usefull information in -q (like overlays name), and (if needed), add a --realyquiet which remove them. You can also play with verbose and quiet.

if no verbose and no quiet: as usuall
if verbose and quiet: the more quiet possible, but with usefull information displayed
if only quiet: the more quiet possible without verbose informations
if only verbose: as usuall

Thank a lot.
Comment 5 Zac Medico gentoo-dev 2009-11-14 20:37:26 UTC
In svn r14821 fixed --quiet-build to make --unmerge quiet.

I'm reluctant to change current -q behavior (and add --really-quiet) as you suggest, since it might not satisfy all users. I think what's really needed is a separate configuration file for ui details like this, so that the user has more fine-grained control over the various details.
Comment 6 Zac Medico gentoo-dev 2009-11-16 01:20:09 UTC
(In reply to comment #5)
> In svn r14821 fixed --quiet-build to make --unmerge quiet.

This is fixed in portage-2.1.7.5 and 2.2_rc50.
Comment 7 Guillaume Bouchard 2009-11-16 10:25:39 UTC
Thank you, I'll survive with non-compact layout.

Good luck with "separate config file for ui layout" ;)