-
Notifications
You must be signed in to change notification settings - Fork 187
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 SOURCE_DATE_EPOCH and incorporate rebuild counter / release #955
Comments
Previously I tried to implement this in openSUSE/product-builder#26 and rpm-software-management/rpm#2677 , both of which turned out to be the wrong place. |
I think you should do this in /etc/profile.d/suse-buildsystem.sh which is part of the post-build-checks package. |
@mlschroe would you be willing to implement this, as I have no idea about this area? E.g. I have the following questions: How can one get at the changelog for the current build? |
For git based builds the mtime is available in the source:
We could add the buildcounter/revision to be available at build time in the file |
The obsinfo file should be available as |
The change in 5d1da85 works in my local testing. Together with openSUSE/post-build-checks#58 it should fix this issue. @mlschroe Please make a release and whatever is necessary to have it deployed on build.opensuse.org. |
Set SOURCE_DATE_EPOCH and incorporate rebuild counter / release, so that even for rebuilds with unchanged source but updated build depends the date always increases and no build has the same date.
Initially for rpm to replace %use_source_date_epoch_as_buildtime .
But later also needed for other build types, like kiwi, podman, docker, etc. When there is no changelog use the last git commit date or osc commit date.
The text was updated successfully, but these errors were encountered: