Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125261 - emerge --quiet --sync has output
Summary: emerge --quiet --sync has output
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 162453
  Show dependency tree
 
Reported: 2006-03-06 09:39 UTC by Preston Crow
Modified: 2007-01-29 03:23 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 Preston Crow 2006-03-06 09:39:53 UTC
If you run:
  emerge -q --sync
or
  emerge -q --metadata

there should be no output on success.  For the sync operation, three blank lines are printed.  For the metadata option, it also prints out that it's skipping the sync.
Comment 1 solar (RETIRED) gentoo-dev 2006-03-06 10:34:30 UTC
You failed to post. 'emerge info'
Please do that now.
Comment 2 Preston Crow 2006-03-06 10:38:16 UTC
# emerge --info

Portage 2.1_pre5-r4 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15.4 i686)
=================================================================
System uname: 2.6.15.4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
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.15.92.0.2-r1, 2.16.1-r2
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="-mtune=athlon-xp -march=athlon-xp -O3 -funroll-loops -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/app-defaults /etc/X11/fs /etc/X11/rstart /etc/X11/twm /etc/X11/xdm /etc/gconf /etc/sound /usr/X11R6/lib /usr/kde /usr/lib/X11/xkb /etc/env.d"
CXXFLAGS="-mtune=athlon-xp -march=athlon-xp -O3 -funroll-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks notitles sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.noved.org/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/"
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 3dnow 3dnowex X aac alsa apache2 apm avi berkdb bitmap-fonts bzip2 crypt cups dba dga dvb dvd eds emboss encode exif fam ffmpeg flac foomaticdb gd gdbm gif gpm gtk gtk2 guile imap imlib java jpeg kerberos libg++ libwww lirc lm_sensors mad md5sum mikmod mjpeg mmx mmx2 mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg mysql mythtv ncurses no-htdocs nvidia ogg oggvorbis opengl oss parse-clocks pdflib perl png python qt quicktime readline real sdl session spell sse ssl svg tcltk tcpd theora tiff transcode truetype truetype-fonts type1-fonts vcd vorbis win32codecs xml2 xmms xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

#
Comment 3 Preston Crow 2006-07-22 08:22:53 UTC
Now with portage-2.1.1_pre3-r3, I get more than blank lines:

# emerge -q --sync

q: Updating ebuild cache ... 
q: Finished 24156 entries in 0.213428 seconds
# 

One blank line and two lines of output.
Comment 4 Zac Medico gentoo-dev 2006-07-22 15:22:34 UTC
(In reply to comment #3)
> q: Updating ebuild cache ... 
> q: Finished 24156 entries in 0.213428 seconds

That's caused by /etc/portage/postsync.d/q-reinitialize which is installed by portage-utils.
Comment 5 solar (RETIRED) gentoo-dev 2006-07-24 13:08:48 UTC
I'll hunt for the variable which portage exports and make the next 
portage-utils respect that directly as if it was invoked with the -q option also.
Comment 6 solar (RETIRED) gentoo-dev 2006-07-24 13:30:16 UTC
(In reply to comment #5)
> I'll hunt for the variable which portage exports and make the next 
> portage-utils respect that directly as if it was invoked with the -q option
> also.
fixed in portage-utils/main.c: revision: 1.122; When q* detects the variable 
PORTAGE_QUIET it will behave the same as q -q -r vs q -r

In the mean time to can either remove the executable bit from q-reinitialize or 
edit the script to pass the -q option.

I don't know where that other echo is comming from. Somewhere within 
portage or ebuild.sh probably.
Comment 7 Rick Altherr 2006-10-25 19:30:14 UTC
I'm still seeing this with portage-2.1.1-r1.  It means I get an email from cron nightly.  This should be an easy fix.  Could we have this escalated above a p5?
Comment 8 Zac Medico gentoo-dev 2006-10-25 20:14:55 UTC
I thought they fixed portage-utils to honor --quiet.  What version of portage-utils do you have?  Anyway you can completely disable post-sync cruft like this:

chmod -x /etc/portage/bin/post_sync
Comment 9 Preston Crow 2006-10-26 05:42:02 UTC
sys-apps/portage-2.1.2_pre3-r8
app-portage/portage-utils-0.1.21

It is noisier than when I created this bug report--it used to just be blank lines; not there are text lines, too.
Comment 10 Rick Warner 2007-01-27 03:36:51 UTC
As of portage 2.1.1-r2, I get 1 blank line of output.  Editting /usr/bin/emerge and removing the print command from line 2536 resolved it for me.
Comment 11 solar (RETIRED) gentoo-dev 2007-01-27 06:54:55 UTC
(In reply to comment #10)
> As of portage 2.1.1-r2, I get 1 blank line of output.  Editting /usr/bin/emerge
> and removing the print command from line 2536 resolved it for me.

Thats not related to this bug is it? I don't think so.. 
Problems with portage/emerge should be handled via another bug.. 
please. line # and patches please.

Or if this bug should cover non portage-utils then please reassign it.
Comment 12 Rick Warner 2007-01-27 23:54:46 UTC
The original problem report was of getting output from running "emerge --quiet --sync".  That's the same problem that I was having, and removing that print statement resolved it.
Comment 13 Zac Medico gentoo-dev 2007-01-28 01:10:10 UTC
(In reply to comment #10)
> As of portage 2.1.1-r2, I get 1 blank line of output.  Editting /usr/bin/emerge
> and removing the print command from line 2536 resolved it for me.

Thanks, I've removed that in svn r5799.
Comment 14 Zac Medico gentoo-dev 2007-01-29 03:23:43 UTC
This has been released in 2.1.2-r5.