Added solved. Thanks
Code: Select all
2006/11/24 14:40:38 >>> emerge (1 of 1) net-ftp/ftp-0.17-r6 to /
2006/11/24 14:41:16 *** exiting successfully.Code: Select all
1164288247: >>> emerge (1 of 1) net-ftp/ftp-0.17-r6 to /
1164288271: *** exiting successfully.

Agreed.lenkki wrote:Why aint elog save enabled by default in the make config and when an emerge is finnished just automatically echo the saved contents to the user? Isn't this what most users want? To actually see the important warnings/info for each package without having to watch the compile. To me it seems as all the required code for doing this is in place allready. The additions to the emerge script shouldn't be that overwhelming, to my understanding.
I also would like to know how to do precisely this.Crono81 wrote:I only want to see the * BLA BLA and * BLA BLA informations of an ebuild, having it installed or not. How to do that?
Code: Select all
# This sets where to log
PORT_LOGDIR=/var/log/portage
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log info"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
Code: Select all
mkdir /var/log/portage
mkdir /var/log/portage/elog

Code: Select all
# emerge tmpwatchCode: Select all
PORT_LOGDIR="$(portageq envvar PORT_LOGDIR)"Code: Select all
${TMPWATCH} --mtime 168 $PORT_LOGDIRCode: Select all
${TMPWATCH} --exclude $PORT_LOGDIR/elog --mtime 168 $PORT_LOGDIRCode: Select all
${TMPWATCH} --mtime 720 $PORT_LOGDIR/elog
Where would a user figure out they need to make an elog directory? I mean other than searching here? I happened to know that I could set the log directory to gain more information. And I did read the entry in make.conf.sample (or is it example?) that talks about needing to create the /var/log/portage directory for this to work. But I didn't see anything about needing to make an elog directory too. And without it I get a list of what compiled, but not the after ebuild instructions.jphein wrote:It looks like this is now in portage.
You just need to add some variables to your make.confYou may need to create the directoriesCode: Select all
# This sets where to log PORT_LOGDIR=/var/log/portage # This sets what to log PORTAGE_ELOG_CLASSES="warn error log info" # And this is how to do it PORTAGE_ELOG_SYSTEM="save"GUIs for viewing the "elogs" are available in portage: http://packages.gentoo.org/search/?sstring=elogsCode: Select all
mkdir /var/log/portage mkdir /var/log/portage/elog
Well, you can put the log where you're up to, of course. Knowing the FHS and the ideas behind it helps a lot and is basic preconditioned Unix knowledge.OneOfMany wrote:Where would a user figure out they need to make an elog directory? I mean other than searching here?
I had to read 3 pages to find that.By default, emerge messages are logged here:
/var/log/portage/elog
Code: Select all
PORT_LOGDIR='var/log/portage/build'Code: Select all
/etc/portage/make.confCode: Select all
/var/log/portage/elog/summary.logCode: Select all
Elogv is a simple tool written in python that allow you to easy read
portage elog files. To launch it, type on a console:
$ elogv
Inside the program, you can use these keys:
- Down arrow -> Scroll the list of files down by 1 unit
- Up arrow -> opposite of Down arrow
- Pag Down -> Scroll the list down by 10 unit
- Pag Up -> opposite of Pag Down
- End -> Go to the last file of the list
- Home -> Go to the first file of the list
- t -> order the list of files by date, most recent on top
- a -> order the list of files alphabetically
- r -> reverse the list of files
- SpaceBar -> scroll the selected file
- h or F1 -> show the help screen, press Page Up/Down to scroll up and down,
h and F1 again to hide
- d -> removes log files, usage is similar to vim "d" command, here are
same examples:
da -> removes all files
de -> removes from selected item to the end of the list
ds -> remove from selected item to the start of the list
d1d or dd -> removes selected file only
d4d -> removes 4 files starting from selected one
- q -> quit
Note:
To use this software you need the portage elog system configured on your
/etc/portage/make.conf, this is a simply configuration:
---- /etc/portage/make.conf
# Logging
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"
----