Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45023 - genlop reports incorrect time of emerge
Summary: genlop reports incorrect time of emerge
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2004-03-18 07:37 UTC by Christophe
Modified: 2004-08-02 20:42 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Christophe 2004-03-18 07:37:13 UTC
Time of emerge reported by genlop is incorrect. Example : last emerge of openssl was done at 10:14am (as correctly noted in the log) but genlop reported it was done at 15:18:30. Cf. details below. /etc/localtime is link to correct time zone (New_York). And function date report correct local time.

The difference is almost 5 hours (looks like a time zone error) but with few minutes off !?

Same error on x86 and amd64.

> tail -n50 /var/log/emerge.log
1079622871: Started emerge on: Mar 18, 2004 10:14:31
1079622871:  *** emerge --ask --verbose openssl
1079622874:  >>> emerge (1 of 1) dev-libs/openssl-0.9.7d to /
1079622874:  === (1 of 1) Cleaning (dev-libs/openssl-0.9.7d::/usr/portage/dev-libs/openssl/openssl-0.9.7d.ebuild)
1079622874:  === (1 of 1) Compiling/Merging (dev-libs/openssl-0.9.7d::/usr/portage/dev-libs/openssl/openssl-0.9.7d.ebuild)
1079623110:  === (1 of 1) Post-Build Cleaning (dev-libs/openssl-0.9.7d::/usr/portage/dev-libs/openssl/openssl-0.9.7d.ebuild)
1079623110:  >>> AUTOCLEAN: dev-libs/openssl
1079623110:  --- AUTOCLEAN: Nothing unmerged.
1079623110:  ::: completed emerge (1 of 1) dev-libs/openssl-0.9.7d to /
1079623110:  *** Finished. Cleaning up...
1079623111:  *** exiting successfully.
1079623111:  *** terminating.

[#root-] genlop -t openssl
 * dev-libs/openssl
     Merged   at Mon Feb 23 02:54:52 2004    (openssl-0.9.7c-r1)
       merge time: 2 minutes and 33 seconds.
     Merged   at Thu Mar 18 14:43:21 2004    (openssl-0.9.7d)
       merge time: 3 minutes and 36 seconds.
     Merged   at Thu Mar 18 15:18:30 2004    (openssl-0.9.7d)
       merge time: 3 minutes and 56 seconds.
 merged totally 3 times in 10 minutes and 5 seconds.
 average merge time: 3 minutes and 22 seconds.

Reproducible: Always
Steps to Reproduce:
1. emerge packagex
2. genlop -t packagex

[#root-] emerge info
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r2)
System uname: 2.6.3-gentoo-r2 x86_64 4
Gentoo Base System version
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
CFLAGS="-O2 -pipe -fPIC"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -fPIC"
FEATURES="autoaddcvs ccache sandbox"
USE="X amd64 apm avi berkdb cdr cups dvd dvdr esd fftw foomaticdb gdbm gif gnome
gpm gtk gtk2 gtkhtml imlib java jpeg kerberos ldap libg++ libwww mozilla mpeg
mysql ncurses opengl oss pam pdflib perl plotutils png postgres ppds python qt
readline sdl slang spell ssl tcltk tcpd tiff truetype xml2 xmms xv zlib"
Comment 1 Christophe 2004-03-18 07:40:03 UTC
Forgot to mention version genlop-0.16.3
Comment 2 Christophe 2004-03-18 07:47:44 UTC
Bug was fixed by changes in genlop-0.20.2. Sorry about noise.

Works for amd64 too. Keyword amd64 could be added to genlop.

Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-03-18 15:46:08 UTC
Can you emerge splat and check if it has the same problem ?
Comment 4 Giorgio Mandolfo 2004-03-19 00:25:41 UTC
Thanks for CC'ing me.

About the difference of 5 hours, genlop since 0.16.3 used gmtime() which reports time in GMT.
genlop 0.20 and above use localtime() by default.

About the difference of few minutes: genlop displays *end* time of an ebuild merge; the timestamp the bug reporter read in /var/log/emerge.log is the start one.

Comment 5 Christophe 2004-03-19 09:05:53 UTC
Tested on amd64, splat-0.07 works fine.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-03-27 18:00:04 UTC
Can someone test it on mips so I can close this bug ?
Comment 7 SpanKY gentoo-dev 2004-08-02 20:42:09 UTC
try e-mailing upstream, we dont maintain this package [giorgio@mysite@org]