Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135429

Summary: PORTAGE_ELOG_COMMAND does not work as documented
Product: Portage Development Reporter: P Purkayastha <ppurka>
Component: DocumentationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    

Description P Purkayastha 2006-06-03 12:24:44 UTC
PORTAGE_ELOG_COMMAND does not seem to work as documented.  Steps followed are as shown below:

1. Excerpt from /etc/make.conf:

PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save custom"
PORTAGE_ELOG_COMMAND="/bin/cp '${LOGFILE}' /root/log"

2. Relevant output from emerge -av hotplug:

 * WARNING: All firmware loaded by the hotplug scripts needs to be
 * WARNING: moved to the /lib/firmware directory, as the scripts now
 * WARNING: expect it to be in that location.

 * If you still have the file /etc/hotplug/isapnp.rc on your system,
 * please delete it by hand, the file /etc/hotplug/pnp.rc supercedes it.
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/hotplug-20040923-r2 merged.
/bin/cp: cannot stat `': No such file or directory
'!!! PORTAGE_ELOG_COMMAND failed with exitcode 1'

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...


Instead, if I provide the variable ${LOGFILE} as \${LOGFILE}, the PORTAGE_ELOG_COMMAND works. Modified steps are shown below:

1. Modified excerpt from /etc/make.conf
PORTAGE_ELOG_COMMAND="/bin/cp '\${LOGFILE}' /root/log"

2. Relevant Output of env-update && emerge -av hotplug:

 * WARNING: moved to the /lib/firmware directory, as the scripts now
 * WARNING: expect it to be in that location.

 * If you still have the file /etc/hotplug/isapnp.rc on your system,
 * please delete it by hand, the file /etc/hotplug/pnp.rc supercedes it.
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/hotplug-20040923-r2 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

3. /root/log is created and has the elog output.


My emerge --info:
Portage 2.1_rc4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16-ck11 i686)
=================================================================
System uname: 2.6.16-ck11 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -mmmx -msse -m3dnow -fforce-addr -ftracer -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -mmmx -msse -m3dnow -fforce-addr -ftracer -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu ftp://gentoo.ccccom.com ftp://gentoo.mirrors.pair.com ftp://ftp.ndlug.nd.edu/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzlib cairo cdr cli crypt curl curlwrappers dri dvd dvdr encode flac foomaticdb gdbm gif glitz gpm gtk gtk2 imap imlib isdnlog jpeg ldap lesstif libg++ libwww mad mikmod mmx mmx2 motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl pic png pppd python qt quicktime readline reflection sdl session spl sse ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2006-06-03 17:31:53 UTC
Thanks, this is in svn r3452.
Comment 2 Zac Medico gentoo-dev 2006-06-03 22:18:25 UTC
This has been released in 2.1_rc4-r1.