Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412865 - keep canonical build.log path in $T/ even when logging is enabled
Summary: keep canonical build.log path in $T/ even when logging is enabled
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 409383
  Show dependency tree
 
Reported: 2012-04-21 07:10 UTC by SpanKY
Modified: 2012-05-09 00:52 UTC (History)
0 users

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


Attachments
create symlink to PORTAGE_LOG_FILE in ${T} and display in die message (log_symlink.patch,2.16 KB, patch)
2012-04-21 18:47 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-04-21 07:10:17 UTC
when PORT_LOG_DIR is active, would it be possible to still deploy a symlink at $T/build.log that points to the real log and include that in the die error message ?  this way you have a static path that doesn't change in between runs of the same version.
Comment 1 Zac Medico gentoo-dev 2012-04-21 18:47:06 UTC
Created attachment 309739 [details, diff]
create symlink to PORTAGE_LOG_FILE in ${T} and display in die message

Note that it's ${T}/build.log.gz if FEATURES=compress-build-logs is enabled.

The path to PORTAGE_LOG_FILE is also displayed by the emerge status display, so that it's easy to locate logs for failed builds while emerge is still running due to --jobs or --keepgoing:

>>> Emerging (1 of 1) portage-test/die-test-1
>>> Failed to emerge portage-test/die-test-1, Log file:
>>>  '/var/log/portage/die-test-1:20120421-183524.log'

Do you want to change the path that's displayed there too, or just in the die message?
Comment 2 SpanKY gentoo-dev 2012-04-22 15:10:39 UTC
just the normal verbose `die` is OK.  this makes it easier on people who `emerge foo`, do stuff, `emerge foo`, do stuff, etc... to have the same path to the log in between runs.

if you wanted to include both paths in the `die`, that'd be fine too.
Comment 4 Zac Medico gentoo-dev 2012-04-23 00:01:35 UTC
This is fixed in 2.1.10.57 and 2.2.0_alpha101.