summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_netbsd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index 2b07c88e..db1ffa21 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -60,7 +60,9 @@ git log -1
# different switches to make two builds from the same source tree
# result in the same build results.
export MKREPRO="yes"
-MK_TIMESTAMP=$(git log -1 --pretty=%ct)
+# MK_TIMESTAMP is set to SOURCE_DATE_EPOCH of netbsd.git
+SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
+MK_TIMESTAMP=${SOURCE_DATE_EPOCH}
echo "============================================================================="
echo "$(date -u) - Building NetBSD ${NETBSD_VERSION} - first build run."