[Rpm-maint] [rpm-software-management/rpm] Embed Build Environment Information into RPM Builds (Discussion #4074)
Shreenidhi Shedi
notifications at github.com
Thu Dec 18 19:15:28 UTC 2025
Summary:
This patch introduces a new feature that captures the build environment details during an RPM build and includes them as part of the package sources. It generates a BUILD_ENVIRONMENT.txt file containing relevant information such as the rpmbuild command-line arguments, environment variables, list of installed packages, and output of a custom shell script defined via RPM macros. The file is automatically added to the source files if the corresponding macros are enabled, enabling better reproducibility, debugging, and auditing of RPM builds.
Benefits:
- Improves reproducibility and traceability of RPM builds.
- Facilitates debugging of build failures by providing complete build context.
- Supports auditing and compliance by recording installed packages and environment variables.
Attaching the patch.
[Embed-build-environment-information-into-RPM-builds.patch](https://github.com/user-attachments/files/24243584/Embed-build-environment-information-into-RPM-builds.patch)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4074
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/4074 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251218/bb20ce89/attachment-0001.htm>
More information about the Rpm-maint
mailing list