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

Bug 912208

Summary: git-r3.eclass: expose git commit used in pkg_info
Product: Gentoo Linux Reporter: Sam James <sam>
Component: EclassesAssignee: Michał Górny <mgorny>
Status: CONFIRMED ---    
Severity: normal CC: eschwartz93
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=489100
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: horrible-hack-poc.patch

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-13 07:03:45 UTC
Created attachment 867747 [details, diff]
horrible-hack-poc.patch

We should export pkg_info in git-r3.eclass to make it easy to see which commit/tag a live ebuild was built at. We often have to ask people to look in the vdb in #gentoo when debugging issues.

Attached a terrible PoC just to convince myself it works.