Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

General question on updates that require special action

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
12 posts • Page 1 of 1
Author
Message
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

General question on updates that require special action

  • Quote

Post by tld » Tue Sep 19, 2006 12:49 am

The other day I did my usual emerge -auD world, and just by chance I happened to notice the message that the openssl upgrade required two specific revdep-rebuilds (before the subsequent emerge scrolled it away). Maybe there's something here I've just missed that mentions that, but I could have easily missed that altogether.

I 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.

Thanks in advance.

Tom
Top
Omega21
l33t
l33t
User avatar
Posts: 788
Joined: Sat Feb 14, 2004 11:37 pm
Location: Canada (brrr. Its cold up here)
Contact:
Contact Omega21
Website

  • Quote

Post by Omega21 » Tue Sep 19, 2006 1:15 am

I just keep in mind that if you dont often update world, you may very well need some special action.
Im not saying you dont do it often, but for those of you who do it once every 6 months like me. XD
iMac G4 1GHz :: q6600 //2x 500GB//2GB RAM//8600GT//Gentoo :: MacBook Pro//2.53GHz
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Tue Sep 19, 2006 11:15 am

I generally update world at least once a week, but either way there are occasionally updates that aren't completely automatic.

Tom
Top
hitachi
Guru
Guru
Posts: 478
Joined: Mon Feb 20, 2006 11:24 am
Location: Freiburg / Deutschland

  • Quote

Post by hitachi » Tue Sep 19, 2006 1:33 pm

tld said:
I 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.
I think this is a good point. Today I did a

Code: Select all

emerge -DuavN world
and had a experiance like you. Said I need to

Code: Select all

emerge glibc
- I think -. It was so fast while cooking so I was not able to realy read it.

Or dose anyone has a script which keeps all these mesages and one can read them after emerge is ready?
Top
chuanshi
n00b
n00b
Posts: 38
Joined: Wed Feb 01, 2006 1:11 am

  • Quote

Post by chuanshi » Tue Sep 19, 2006 2:03 pm

Code: Select all

# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
putting that in your make.conf will log all those messages in your /var/log/portage/elog folder
Top
tabanus
l33t
l33t
User avatar
Posts: 638
Joined: Fri Jun 11, 2004 4:07 pm
Location: UK

  • Quote

Post by tabanus » Tue Sep 19, 2006 3:49 pm

chuanshi wrote:

Code: Select all

# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
putting that in your make.conf will log all those messages in your /var/log/portage/elog folder
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?
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Sep 19, 2006 4:05 pm

tabanus wrote:
chuanshi wrote:

Code: Select all

# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
putting that in your make.conf will log all those messages in your /var/log/portage/elog folder
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?
Easiest option is probably to use (untested)

Code: Select all

PORTAGE_ELOG_SYSTEM=custom
PORTAGE_ELOG_COMMAND="somescript.sh \${LOGFILE} \${PACKAGE}"
in make.conf and write a small script like

Code: Select all

#!/bin/sh
logfile=/var/log/portage/lastmerge.elog

date >> $logfile
echo $2 >> $logfile
cat $1 >> $logfile
Other options could use the syslog module or writing a custom elog module.
Top
mpagano
Developer
Developer
User avatar
Posts: 200
Joined: Tue Apr 27, 2004 4:23 pm
Location: USA

  • Quote

Post by mpagano » Tue Sep 19, 2006 8:23 pm

I wrote a small script to assist in viewing these logs since I also felt it was a bit unwieldly to go through each file manually.

The script is on bugzilla and it's called elog-list.

hth,
Mike
Top
tabanus
l33t
l33t
User avatar
Posts: 638
Joined: Fri Jun 11, 2004 4:07 pm
Location: UK

  • Quote

Post by tabanus » Tue Sep 19, 2006 10:07 pm

Genone wrote:Easiest option is probably to use (untested)

Code: Select all

PORTAGE_ELOG_SYSTEM=custom
PORTAGE_ELOG_COMMAND="somescript.sh \${LOGFILE} \${PACKAGE}"
in make.conf and write a small script like

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. Thanks :)
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Wed Sep 20, 2006 1:11 pm

Thanks! I just noticed that the current make.conf.example shows examples like that. Note however that they indicate you should make sure to single quote the variables:

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}'"
Thanks again for all the replies.

Tom
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Mon Nov 27, 2006 8:15 pm

This is really useful stuff!
Finally no more hand-made /root/messages/* files! :D
(yeah, that's a poor man's elog substitute ;))

I've ended up with this:

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}'"
whereas the custom logging script is:

Code: Select all

#!/bin/sh
LOGFILE=/var/log/portage/single.elog

(echo -n ">>> " ; date) >> ${LOGFILE}
echo ">>> $1" >> ${LOGFILE}
cat $2 >> ${LOGFILE}
It works, at least for me. Thousand thanks, Genone!

[Edit]
I also added this logrotate script:

Code: Select all

#
# elog-single logrotate snippet for Gentoo Linux
#

/var/log/portage/single.elog {
  rotate 3
  size=512k
}
My blog: In search for ultimate programming language
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sat Mar 24, 2007 1:47 pm

A bit late, but should note that portage-2.1.2 has a new "save_summary" module that stores all messages in /var/log/portage/elog/summary.log (therefore making the script I posted above obsolete).
Top
Post Reply
  • Print view

12 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy