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
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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
[cut]
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
3.




[#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 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -fPIC"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref:/usr/X11R6/lib/X11/xkb:/usr/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.tucdemonic.org/gentoo/
ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
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.

Giorgio
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]