summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorPaul Spooren2021-05-13 23:39:05 +0200
committerDenys Vlasenko2021-06-05 18:13:00 +0200
commit947a22b33262c93e5c50286b723b9086a33a4c1f (patch)
treea386baf9c281da44d705a0f6ec5c2263051016bc /shell/hush_test
parent1b30c63dfdd4f31faa6deda69345bf07f23aa334 (diff)
downloadbusybox-947a22b33262c93e5c50286b723b9086a33a4c1f.zip
busybox-947a22b33262c93e5c50286b723b9086a33a4c1f.tar.gz
build system: use SOURCE_DATE_EPOCH for timestamp if available
The SOURCE_DATE_EPOCH is an effort of the Reproducible Builds organization to make timestamps/build dates in compiled tools deterministic over several repetitive builds. Busybox shows by default the build date timestamp which changes whenever compiled. To have a reasonable accurate build date while staying reproducible, it's possible to use the *date of last source modification* rather than the current time and date. Further information on SOURCE_DATE_EPOCH are available online [1]. This patch modifies `confdata.c` so that the content of the SOURCE_DATE_EPOCH env variable is used as timestamp. To be independent of different timezones between builds, whenever SOURCE_DATE_EPOCH is defined the GMT time is used. [1]: https://reproducible-builds.org/docs/source-date-epoch/ Signed-off-by: Paul Spooren <mail@aparcar.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
0 files changed, 0 insertions, 0 deletions