Closed bmwiedemann closed 1 year ago
Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call works with various implementations of date. Also use UTC to be independent of timezone.
SOURCE_DATE_EPOCH
date
note: dropping current_date is also an option to simplify the code.
current_date
This PR was done while working on reproducible builds for openSUSE.
Allow to override build date with
SOURCE_DATE_EPOCH
in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call works with various implementations ofdate
. Also use UTC to be independent of timezone.note: dropping
current_date
is also an option to simplify the code.This PR was done while working on reproducible builds for openSUSE.