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

Bug 394691

Summary: Add timestamps to emerge's output (esp. with --quiet-build=y)
Product: Portage Development Reporter: jannis <kripton>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra, jaak
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 184128    

Description jannis 2011-12-14 14:23:58 UTC
I would like to have timestamps on emerge's ouput to get a quick glance how long emerging a package takes. Without quiet-build=y one would hardly see them between all the build output but with quiet-build=y it should be quite useful.
Of course I know that I can find this information in form of unix timestamps in emerge.log and someone on IRC mentioned I could set PORT_LOGDIR and check, when the files have been created/modified but I would like to have this directly in my terminal.
The perfect solution (as I see it) would be a variable to be defined in make.conf that specifies the format of the timestamps as used with C's strftime() (or a python equivalent).

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2011-12-14 17:14:25 UTC
For the make.conf format setting, we could use something like EMERGE_DEFAULT_OPTS="--build-time-fmt=%H:%M:%S" in order to avoid introducing more variables.

Also, see bug 394335 which is about display of build ETA.
Comment 2 jannis 2011-12-14 17:39:10 UTC
Your solution to use --build-time-fmt=%H:%M:%S in EMERGE_DEFAULT_OPTS is perfectly fine with me and thanks for the reference to the other bug. I would totally agree to make this one a dup or blocker of the mentioned #394335