[Rpm-maint] [rpm-software-management/rpm] RFE: save the parsed spec in src.rpm (#1241)

nim-nim notifications at github.com
Mon Jul 6 14:41:18 UTC 2020


Generally speaking it would be great to store more build-time information in the spec. I’ve been requested to store the buildroot state for debuging and reproducibility needs, for example.

https://src.fedoraproject.org/fork/nim/rpms/redhat-rpm-config/c/bc4e6a79355f3a2b73abeea7e5c0e1f53b09579e?branch=forge-with-patches-auto-call-auto-changelog-auto-srpm-bump

shows how to store more build-time info in the SRPMs using current unchanged rpm. So it does not even need rpm engine changes.

However one could argue that writing 13 bytes of spaces in sources files in %sourcelist, just so they exist when %build needs to write to them, is not the most elegant solution.

Also calling rpm or rpmspec from within an rpmbuild session is probably not the best of things.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1241#issuecomment-654280267
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200706/f2de37c3/attachment.html>


More information about the Rpm-maint mailing list