Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394691 - Add timestamps to emerge's output (esp. with --quiet-build=y)
Summary: Add timestamps to emerge's output (esp. with --quiet-build=y)
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184128
  Show dependency tree
 
Reported: 2011-12-14 14:23 UTC by jannis
Modified: 2022-08-27 18:34 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 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