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.
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?
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.
This is in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b93b24f9fa1b2761aa0768274bd93ade9b526961
This is fixed in 2.1.10.57 and 2.2.0_alpha101.
Bug fix: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=476f99337da69662660bfe2a0406b9ac5b4678c4