Including build timestamps in artifacts makes it harder to reproducibly build them. Allow to overwrite build timestamp MAKE_STAMP by setting the SOURCE_DATE_EPOCH environment variable. More details on SOURCE_DATE_EPOCH and reproducible builds: https://reproducible-builds.org/docs/source-date-epoch/ Fixes: 64c07e38f049 ("table: Embed creating nft version into userdata") Reported-by: Arnout Engelen Closes: https://github.com/NixOS/nixpkgs/issues/478048 Signed-off-by: Philipp Bartsch --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dd172e88..3c672c99 100644 --- a/configure.ac +++ b/configure.ac @@ -165,7 +165,7 @@ AC_CONFIG_COMMANDS([nftversion.h], [ ]) # Current date should be fetched exactly once per build, # so have 'make' call date and pass the value to every 'gcc' call -AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"]) +AC_SUBST([MAKE_STAMP], ["\$(shell printenv SOURCE_DATE_EPOCH || date +%s)"]) AC_ARG_ENABLE([distcheck], AS_HELP_STRING([--enable-distcheck], [Build for distcheck]), -- 2.52.0