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

Bug 126370

Summary: elog display script
Product: Portage Development Reporter: Mike Pagano <mpagano>
Component: Third-Party ToolsAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED WONTFIX    
Severity: normal CC: sunrise, tools-portage
Priority: High Keywords: EBUILD, InOverlay, PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.mpagano.com/blog/?page_id=29
Whiteboard: [sunrise-overlay]
Package list:
Runtime testing required: ---
Attachments: elog-list script to help view and delete portage generated elogs
elog display script version 0.0.3
elog display script version 0.0.4
elog display script version 0.0.5

Description Mike Pagano gentoo-dev 2006-03-15 17:27:17 UTC
Motivation:

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

Script:

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

Example:

# 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-1.4.2.2:20060310-141131.log

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:

http://overlays.gentoo.org/proj/sunrise/browser/sunrise/app-portage/elog-list

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