Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932513 - savedconfig.eclass (e.g.) and binary package support
Summary: savedconfig.eclass (e.g.) and binary package support
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 23:47 UTC by Andreas K. Hüttel
Modified: 2024-05-23 00:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2024-05-22 23:47:25 UTC
It would be great to somehow store the state of the configuration used in a package build inside the package.
Think, a hash over the config files used by savedconfig.eclass or similar mechanisms.

Then, upon binary package installation, portage could check if the hash still matches and reject the binary package otherwise.

At the moment I see this as a problem that 
* partially needs to be solved in  "eclass- or ebuild-space" (figure out what things all critically influence the build, e.g. list of config files, hash that and pass the hash somehow to portage), and 
* partially needs to be solved in portage itself (add the hash to binary packages, check the hash on binary package usage).

Most important use case I can see is savedconfig + kernel builds in releng (we have boot media with more than one kernel / kernel config).
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2024-05-23 00:27:22 UTC
Much simpler idea, which would solve the same problem:

* Introduce an emerge command line option that can "tag" a binary package upon creation
  emerge --buildpkg --set-tag="minimal" busybox

* Introduce an emerge command line option that requires a tag from a package
  emerge -k --need-tag="minimal" busybox