From 402fc5a6000bf0ec12f05d4aa2b3e250ec85a60a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 2 Aug 2019 11:41:36 +0200 Subject: Implement support for SOURCE_DATE_EPOCH environment variable reproducible-builds.org suggests the use of an environment variable as a source for time stamps: https://reproducible-builds.org/specs/source-date-epoch/ This commit adds support for setting the default mtime from the variable, if it is set and only defaulting to 0 if not. The timestamp given by the command line switch takes precedence. Signed-off-by: David Oberhollenzer --- lib/Makemodule.am | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Makemodule.am') diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 5a8ffaa..f49ff91 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -45,6 +45,7 @@ libutil_a_SOURCES += lib/util/print_version.c lib/util/mkdir_p.c libutil_a_SOURCES += lib/util/str_table.c include/str_table.h libutil_a_SOURCES += lib/util/dirstack.c lib/util/padd_file.c libutil_a_SOURCES += lib/util/read_data_at.c lib/util/crc32.c +libutil_a_SOURCES += lib/util/source_date_epoch.c if WITH_GZIP libcompress_a_SOURCES += lib/comp/gzip.c -- cgit v1.2.3