-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: provide a mecanism to store buildroot composition in the srpm or a specific subpackage #607
Comments
Like in I see the value of this also for other things, e.g., witnessed daisy |
I don't think that this should be job of RPM. With koji you can always say what packages were available at the time of build, do dependency resolution and voila. |
I think you need to use some kind of Provides: bundled() and put there whatever was used in buildroot. Doing this somewhere else doesn't worth it. |
The people who asked this just wanted to access the info computed by koji (or mock or copr) in the produced rpm files, without needing to connect to koji (or mock or copr) Not to mention, than mock and copr do not archive all build roots they are cleaned up regularly, the only thing that remais are the produced packages |
And it's not about "bundling". The build root assembled by the build system is not "bundling". |
yes, but you know that SRPM is built in one environment while rest of packages in others. |
and if you want to go with subpackage, you don't need any changes in RPM. Just override %build/%install (whatever is generating debuginfo subpackages) and run |
Sure, computing the list needs to be done by the build system, since it's the system that actually assembles the build root. But the build system needs a way to store the resulting list in one of the produced rpm files, since ultimately only those files are lept long-term. Unless I'm missing something, storing into the produced rpm files needs an entry point in rpm? How can the cbuild system handover the information to rpmbuild so that it's reasonably transparent to the packager and reliable? |
It turns out that even an historic package like elfutils has to hack this in |
On Wed, May 01, 2019 at 12:56:39AM -0700, nim-nim wrote:
It turns out that even an historic package like elfutils has to hack this in `%check` because it's not done by default.
I was wondering what this was referring to and I think you mean:
%check
# Record some build root versions in build.log
uname -r; rpm -q glibc
It is indeed useful to know the kernel (and glibc) version that the
elfutils testsuite is been run against. Especially since it contains
various testcases for core dumps as produced by the kernel, which
contain CFI as produced by the glibc version.
|
Some rpm consumers would like to analyse what deps were used to produce a particular package.
gofed/go-macros#2
Right now this is logged by tools like koji (because only the buildsystem knows what it put in the buildroot), but having to access those tools post-build is far from ideal. It would be much nicer if there was a mecanism for the buildsystem to handover this info to rpmbuild and get it stored in the srpm or a specific rpm subpackage
The text was updated successfully, but these errors were encountered: