I wrote a perl script that shows how long time it took to emerge packages by parsing the log file (/var/log/emerge.log). It may be useful when you emerge big packages like mozilla or xfree. Reproducible: Always Steps to Reproduce:
Created attachment 14704 [details] pkg-time - Show how long time it took to emerge packages. This script shows how long time it took to emerge packages by parsing the log file (typically /var/log/emerge.log). You can sort result by package name, emerged date or time took to emerge. Type pkg-time -h for detail.
Created attachment 14705 [details] pkg-time - Show how long time it took to emerge packages. This script shows how long time it took to emerge packages by parsing the log file (typically /var/log/emerge.log). You can sort result by package name, emerged date or time took to emerge. Type pkg-time -h for detail.
I'm sorry I submitted same file twice. I submitted twice because the following error was displayed: Status: 400 Bad request (malformed multipart POST) Content-type: text/html Software error: Undefined subroutine &main::ThrowCodeError called at Bugzilla/CGI.pm line 78. For help, please send mail to the webmaster (webmaster@gentoo.org), giving this error message and the time and date of the error. Content-type: text/html Software error: [Sat Jul 19 07:54:55 2003] processmail: Undefined subroutine &main::ThrowCodeError called at Bugzilla/CGI.pm line 78. Compilation failed in require at ./processmail line 31. For help, please send mail to the webmaster (webmaster@gentoo.org), giving this error message and the time and date of the error.
Well, fixed a bug parsing package names like mysql++ or bonnie++. BTW nobody is interested in this script?
Created attachment 15193 [details] fixed a bit
Might want to check out the 'splat' package (in portage already (v0.6 as of this writing)) which does a similar job
Created attachment 15244 [details] emerge.log.bz2 l8nite@dell l8nite $ splat mozilla * net-www/mozilla-1.4-r2 Emerged at: Tue Jul 29 09:34:59 2003 Build time: 57 minutes, and 1 second l8nite@dell l8nite $ perl pkg-time.pl mozilla No match! Attached emerge logfile for debugging purposes
Created attachment 15309 [details, diff] A patch for splat I found splat several days ago. Now I know why there were no reaction :) Avoiding to reinvent the wheel, I added sorting routines and others that pkg-time features. And I extracted the Gentoo::Ebuild class from pkg-time. It may help Perl guys to write utilities for Gentoo (or not).
Created attachment 15310 [details] Gentoo::Ebuild This is a simple Perl class to handle ebuilds of Gentoo Linux. Place this file to the directory like /usr/lib/perl5/site_perl/5.8.0/Gentoo.
Shaun, I'll leave it to you if you use the patch or not for splat (= I won't add it to the ebuild). Hagihara, I'm not touching the dev-perl area, if you think the class is useful file a new bug for the perl team.
There is also genlop: $ genlop -t mozilla [...] Thu Nov 27 20:01:02 2003 --> net-www/mozilla-1.5-r1 merge time: 2 hours, 5 minutes, and 56 seconds. Sat Feb 7 14:40:25 2004 --> net-www/mozilla-1.6 merge time: 1 hour, 24 minutes, and 28 seconds. Tue Mar 9 14:12:45 2004 --> net-www/mozilla-1.6-r1 merge time: 1 hour, 31 minutes, and 7 seconds. merged totally 13 ebuilds in 23 hours, 47 minutes, and 16 seconds. average merge time: 1 hour, 49 minutes, and 47 seconds. $