Hi Would it be possible to log the git commit of live ebuilds in /var/log/emerge.log? It would make for easier bisecting when things fail rather than converting the unix time Thanks Mike
The git-r3.eclass would have to expose the commit information via some kind of standardized interface, which is closely related to bug 482666. *** This bug has been marked as a duplicate of bug 482666 ***
git-r3.eclass already logs that info: GIT update --> repository: https://anongit.gentoo.org/git/proj/eselect.git updating from commit: 0ff1f8eca0e85fbb4c0841490419e9ba3292aa2c to commit: e47a5681b849c4b878ff795bf15de320103126a2 Or, if there aren't any new commits: GIT update --> repository: https://anongit.gentoo.org/git/proj/eselect.git at the commit: e47a5681b849c4b878ff795bf15de320103126a2 The commit ID is also exported in the environment variable EGIT_VERSION. Other live eclasses export similar variables, see bug 311101 comment #6.
So, until PMS provides a standard interface to expose this information, users will have to set PORTAGE_LOGDIR and get the commit information from the saved build logs.
(In reply to Zac Medico from comment #3) > So, until PMS provides a standard interface to expose this information, > users will have to set PORTAGE_LOGDIR and get the commit information from > the saved build logs. "smart-live-rebuild -p" will also show the commit id of the installed package.