Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912208 - git-r3.eclass: expose git commit used in pkg_info
Summary: git-r3.eclass: expose git commit used in pkg_info
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 07:03 UTC by Sam James
Modified: 2023-08-31 00:42 UTC (History)
1 user (show)

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


Attachments
horrible-hack-poc.patch (file_912208.txt,502 bytes, patch)
2023-08-13 07:03 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.