-
Notifications
You must be signed in to change notification settings - Fork 377
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: allow overriding buildtime and hostname via environment variable #2603
Comments
You can do that by |
As far as BUILDHOST goes, rather than using a default value, it would be better to just disinclude the tag IMO. |
That is certainly an option. But people consider both BUILDTIME and BUILDHOST very useful for figuring out where/when/who exactly build a package. For example, even in Fedora infrastructure which tries to keep things very uniform, builders vary in hardware capabilities and other setup. So at the technical level, I'm weakly on the side of keeping them, but I know that if we were to try to drop those fields, it'd cause a huge discussion, and it's just not worth having that. |
Yes, |
For reproducible builds in OpenSUSE the |
For Fedora using Koji, there is always exactly one Koji build for a given NEVRA, and the server side metadata contains the build host. |
OK, given that the |
Guess not. Feel free to re-open if we missed something and there is really something that needs doing. |
Yeah, it seems that |
rpm
embeds the build time and host into output headers. This is very useful to figure out when and where the build was done. But when trying to trying to reproduce an earlier rpm build, we want to override those to the value that was used in the previous build.Please add something like
RPM_BUILDTIME
andRPM_BUILDHOST
. When those variables would be set, rpm should use them instead of the actual values. Prior art exists withSOURCE_DATE_EPOCH
.(Or switches to
rpmbuild
. Or maybe both? The exact interface doesn't matter.)The text was updated successfully, but these errors were encountered: