Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126370 - elog display script
Summary: elog display script
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Default Assignee for New Packages
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay, PMASKED
Depends on:
Reported: 2006-03-15 17:27 UTC by Mike Pagano
Modified: 2010-08-23 21:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

elog-list script to help view and delete portage generated elogs (elog-list,2.93 KB, application/octet-stream)
2006-03-15 17:28 UTC, Mike Pagano
elog display script version 0.0.3 (elog-list,2.93 KB, application/octet-stream)
2006-03-17 13:44 UTC, Mike Pagano
elog display script version 0.0.4 (elog-list,2.97 KB, application/octet-stream)
2006-04-03 18:04 UTC, Mike Pagano
elog display script version 0.0.5 (elog-list,2.94 KB, application/x-shellscript)
2006-04-05 17:33 UTC, Mike Pagano

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Pagano gentoo-dev 2006-03-15 17:27:17 UTC

I tend to let the log files generated by the newer version of portage to build 
up without getting much more than a glance from me.

I wanted a script to easily display the log files and have the ability to delete them from a list.

It's a fairly small script with not much complication.

Places were I have borrowed code have been noted and credited.

At this time (March/06) the version of portage that contains the code that ebuilds use to generate elogs is masked. (At least for x86).


This script borrows from etc-update and attempts to provide a somewhat familiar interface for the easy viewing/deleting of elog generated log files


# elog-list  

portage elog files located in /var/tmp/elogs

1) net-wireless:madwifi-tools-0.1443.20060207:20060306-142252.log

2) net-wireless:madwifi-driver-0.1443.20060207:20060306-142458.log

3) net-wireless:wpa_supplicant-0.5.0-r1:20060306-143833.log

4) app-text:acroread-7.0.5-r2:20060307-130529.log

5) sys-fs:device-mapper-1.02.02:20060307-130637.log

6) app-arch:tar-1.15.1-r1:20060308-135801.log

7) app-crypt:gnupg-

Please select a file to view by entering the corresponding number.
              (-1 to exit)
Comment 1 Mike Pagano gentoo-dev 2006-03-15 17:28:19 UTC
Created attachment 82252 [details]
elog-list script to help view and delete portage generated elogs
Comment 2 Mike Pagano gentoo-dev 2006-03-17 13:44:07 UTC
Created attachment 82405 [details]
elog display script version 0.0.3

Fixed a bug when the elog directory does not exist and tried to make the output nicer.
Comment 3 moesasji 2006-04-01 22:38:44 UTC
I gave this script a try...I noticed strange behavior that looks like a bug. 

1) I have a reasonable large number of log files (~200).
If I try to display the first 49-files it works as it should. 
However, for every number >49 it does not display the content of the logfile as it should. This is definitely unexpected behavior. Unfortunately I don't see where it goes wrong in the script, so I can't fix it.

2) My impression after giving this a try is that it is too much trouble to deal with this on a file by file basis. I would prefer to have something that shows me the content of these log-files for xx-files at the same time. Any suggestions for a script/tool to do this are welcome. 
Comment 4 Mike Pagano gentoo-dev 2006-04-03 18:04:12 UTC
Created attachment 83854 [details]
elog display script version 0.0.4

Thanks, moesasji that was a bug. I have corrected that in the attached ebuild.

elog-list version 0.0.4
Comment 5 Mike Pagano gentoo-dev 2006-04-05 17:33:33 UTC
Created attachment 84042 [details]
elog display script version 0.0.5

Removed a debug message
Comment 6 Mike Pagano gentoo-dev 2007-08-13 19:33:24 UTC
Now maintained in the sunrise overlay:

Comment 7 Mike Pagano gentoo-dev 2007-10-19 19:18:54 UTC
resolving as effort has been duplicated with eread