I think this is a good point. Today I did aI usually tend to find out about those sort of things from forum stickies etc (often in varying forums), but was wonderring if there's any one place that I'm not aware of that warns about any upcoming updates that require (or might require) special user action...say just before they get marked stable for example.
Code: Select all
emerge -DuavN worldCode: Select all
emerge glibcCode: Select all
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"This is something that's bugged me for a long time now. That technique creates a new file for every package emerged, which I've found is not very convenient, especially if a lot of packages have been updated. There is a way to have it all go in one file, which would be much easier to inspect after every update, but I've never managed to get it to work. Does anyone have a good hand-holding how-to on how to achieve this?chuanshi wrote:putting that in your make.conf will log all those messages in your /var/log/portage/elog folderCode: Select all
# This sets what to log PORTAGE_ELOG_CLASSES="warn error log" # And this is how to do it PORTAGE_ELOG_SYSTEM="save"
Easiest option is probably to use (untested)tabanus wrote:This is something that's bugged me for a long time now. That technique creates a new file for every package emerged, which I've found is not very convenient, especially if a lot of packages have been updated. There is a way to have it all go in one file, which would be much easier to inspect after every update, but I've never managed to get it to work. Does anyone have a good hand-holding how-to on how to achieve this?chuanshi wrote:putting that in your make.conf will log all those messages in your /var/log/portage/elog folderCode: Select all
# This sets what to log PORTAGE_ELOG_CLASSES="warn error log" # And this is how to do it PORTAGE_ELOG_SYSTEM="save"
Code: Select all
PORTAGE_ELOG_SYSTEM=custom
PORTAGE_ELOG_COMMAND="somescript.sh \${LOGFILE} \${PACKAGE}"Code: Select all
#!/bin/sh
logfile=/var/log/portage/lastmerge.elog
date >> $logfile
echo $2 >> $logfile
cat $1 >> $logfile
Great. That works. At last an easy to manage post-install log file. ThanksGenone wrote:Easiest option is probably to use (untested)in make.conf and write a small script likeCode: Select all
PORTAGE_ELOG_SYSTEM=custom PORTAGE_ELOG_COMMAND="somescript.sh \${LOGFILE} \${PACKAGE}"Code: Select all
#!/bin/sh logfile=/var/log/portage/lastmerge.elog date >> $logfile echo $2 >> $logfile cat $1 >> $logfile
Code: Select all
# PORTAGE_ELOG_COMMAND: only used with the "custom" logging module. Specifies a command
# to process log messages. Two variables are expanded:
# ${PACKAGE} - expands to the cpv entry of the processed
# package (see $PVR in ebuild(5))
# ${LOGFILE} - absolute path to the logfile
# Both variables have to be quoted with single quotes
#PORTAGE_ELOG_COMMAND="/path/to/logprocessor -p '\${PACKAGE}' -f '\${LOGFILE}'"
Code: Select all
# Emerge logging: this sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# Emerge logging: and this is how to do it
#PORTAGE_ELOG_SYSTEM="save custom"
PORTAGE_ELOG_SYSTEM="custom"
# Emerge logging: a command to process log messages
PORTAGE_ELOG_COMMAND="/usr/local/bin/elog-single '\${PACKAGE}' '\${LOGFILE}'"Code: Select all
#!/bin/sh
LOGFILE=/var/log/portage/single.elog
(echo -n ">>> " ; date) >> ${LOGFILE}
echo ">>> $1" >> ${LOGFILE}
cat $2 >> ${LOGFILE}Code: Select all
#
# elog-single logrotate snippet for Gentoo Linux
#
/var/log/portage/single.elog {
rotate 3
size=512k
}