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
Set Build Date from changelog again #933
Conversation
98b8744
to
29d32b3
Compare
|
@pmatilai I think this qualifies as a regression to fix in 4.15.1. |
|
Why do we need this code in two places now? |
The old one is still needed in case The duplication is rather small, though. |
|
It's not a big duplication but such things look fishy nevertheless. |
fa303d5 had moved the code that used SOURCE_DATE_EPOCH to run before we do setenv here. The old code is still needed in case SOUCE_DATE_EPOCH is set by the caller of rpmbuild. The new code is now needed for the case where we use the last changelog date via %source_date_epoch_from_changelog Y See https://reproducible-builds.org/ for why this is good. Fixes rpm-software-management#932
29d32b3
to
7182540
Compare
|
Added it. |
|
Resolved via #935, thanks for bringing this to our attention and the patch though! |
Set Build Date from changelog again
This is needed because fa303d5 had moved the code that used
getenv("SOURCE_DATE_EPOCH")to run before we dosetenvhere.See https://reproducible-builds.org/ for why this is good.
Fixes #932