Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135856 - portage logs some sequential merges into the same logfile
Summary: portage logs some sequential merges into the same logfile
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-06-06 21:16 UTC by Robin Johnson
Modified: 2006-06-07 10:25 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-06 21:16:32 UTC
If you have a merge of a package that fails, and you attempt to merge it again, portage logs both instances to the same logfile.

1. emerge gcc
2. // above item fails at some point (eg out of space)
3. repeat command #1

Both cases logged to /var/log/portage/XXXX-gcc-4.1.1.log. where XXXX did not change. If failure happens repeatedly, you get a very large single file.

Additionally, if #1 completes fine, there will be sequential files, one with the compile, and another with the pkg_postinst stuff. If you run the emerge again at that point for the same package, it will merge to the same logfile that the pkg_postinst just went to.

Desired behavior:
Each invocation of a package being emerged (all phases), should not be in  logfile(s) that also contains the phases of another invocation.

Hack to get desire behavior:
Each time emerge is run in a system-changing mode (eg not --info/--search/--pretend), increment the counter as the very first action, before processing any package.

Portage 2.1_rc4-r2 (!/usr/portage/profiles/default-linux/ppc/ppc64/2006.0/32bit-userland/970/pmac, gcc-4.1.1, glibc-2.4-r3, 2.6.17-rc4-gd525a074-dirty ppc64)
=================================================================
System uname: 2.6.17-rc4-gd525a074-dirty ppc64 PPC970MP, altivec supported
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests autoaddcvs autoconfig buildpkg ccache collision-protect confcache cvs digest distlocks distlockss metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j7"
PKGDIR="/home/gentoo/packages/buck-int"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/devel/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC=""
USE="ppc X a52 aac aalib acl aio alsa altivec amd apache2 apm ares async automount berkdb bitmap-fonts bluetooth bzip2 cairo calendar caps cdb cdda cdr cgi cjk clamav clearpasswd cli crypt cscope ctype cups curl curlwrappers daap divx4linux dri dts dv dvd dvdr dvdread dynagraph emboss encode ethereal examples exif expat f77 fam fame fastcgi ffmpeg fftw flac flash foomaticdb fortran fpx frxp gcc64 gd gdbm geoip gif glitz glx gmp gnokii gnults gnuplot gnutls gpm graphviz gs gstreamer gzip hpn ical ieee1394 imap imlib innodb insecure-savers ipalias ipod ipv6 irda isdnlog jbig joystick jpeg jpeg2k lcms ldap libwww lirc live logitech-mouse lzo mad maildir mbox mcal md5sum mikmod mjpeg mod motif mp3 mpeg mpm-prefork multicall musicbrainz mysql ncurses network nptl nptlonly numeric offensive ogg oggvorbis openexr opengl osd ospfapi pam pcap pcre pdf pdflib perl plotutils png pnp postgres ppds pppd python qmail quicktime quotas rdesktop readline reflection rtc ruby samba scanner screen sdl session shout skins slang slp sms snmp socks5 speex spell spl sqlite ssl stream svg swat syslog t1lib tcltk tetex theora tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode usb userlocales utf8 v4l v4l2 vcd vhosts vidix vlm vorbis winbind wmf wxwindows xanim xcomposite xinerama xml xml2 xmms xorg xosd xprint xrandr xscreensaver xv xvid xvmc yv12 zeroconf zlib elibc_glibc input_devices_dmc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_void kernel_linux userland_GNU video_cards_fbdev video_cards_nv video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2006-06-07 03:36:47 UTC
This is fixed in svn r3464.
Comment 2 SpanKY gentoo-dev 2006-06-07 03:57:31 UTC
why is this # based on something that has no real meaning to a user ?

what about something *useful* like:
yyyy-mm-dd-<tick>-PF.log
Comment 3 Zac Medico gentoo-dev 2006-06-07 04:55:39 UTC
Maybe some third party tools require the current naming scheme?  The mtime on the file itself has the date anyway....
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-06-07 04:58:09 UTC
(In reply to comment #3)
> Maybe some third party tools require the current naming scheme?  The mtime on
> the file itself has the date anyway....
> 

While i think changing the filename for 2.1 stable is bad idea for the reason stated above, the tick value is useless to anyone actually *looking* at the logfiles.  I'd prefer a date format myself, I'm not going to sit there and stat all the files to figure out which one to read ;)
Comment 5 Zac Medico gentoo-dev 2006-06-07 10:25:30 UTC
This has been released in 2.1_rc4-r4.