From e3bfe0578abfcd5e73e4b2ad2655acb71e6c12c4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 21 Jan 2016 13:26:36 +0100 Subject: reproducible netbsd: set MKREPRO_TIMESTAMP to date of last git commit of netbsd source --- bin/reproducible_netbsd.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_netbsd.sh') diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh index 939fea36..91712eb0 100755 --- a/bin/reproducible_netbsd.sh +++ b/bin/reproducible_netbsd.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014-2015 Holger Levsen +# Copyright 2014-2016 Holger Levsen # released under the GPLv=2 DEBUG=false @@ -60,6 +60,7 @@ 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 show --pretty=format:%ai|head -1|date -u "+%s") echo "=============================================================================" echo "$(date -u) - Building NetBSD ${NETBSD_VERSION} - first build run." @@ -68,7 +69,7 @@ export TZ="/usr/share/zoneinfo/Etc/GMT+12" # actually build everything for MACHINE in $MACHINES ; do ionice -c 3 \ - ./build.sh -j $NUM_CPU -U -u -m ${MACHINE} release + ./build.sh -j $NUM_CPU -V MKREPRO_TIMESTAMP=$MK_TIMESTAMP -U -u -m ${MACHINE} release # save results in b1 save_netbsd_results b1 ${MACHINE} # cleanup and explicitly delete old tooldir to force re-creation for the next $MACHINE type @@ -98,7 +99,7 @@ NEW_NUM_CPU=$(echo $NUM_CPU-1|bc) for MACHINE in $MACHINES ; do ionice -c 3 \ linux64 --uname-2.6 \ - ./build.sh -j $NEW_NUM_CPU -U -u -m ${MACHINE} release + ./build.sh -j $NEW_NUM_CPU -V MKREPRO_TIMESTAMP=$MK_TIMESTAMP -U -u -m ${MACHINE} release # save results in b2 save_netbsd_results b2 ${MACHINE} # cleanup and explicitly delete old tooldir to force re-creation for the next $MACHINE type @@ -202,7 +203,7 @@ if [ "$GOOD_PERCENT" = "100.0" ] ; then else write_page "." fi -write_page " These tests were last run on $DATE for version ${NETBSD_VERSION} using ${DIFFOSCOPE}.

" +write_page " These tests were last run on $DATE for version ${NETBSD_VERSION} with MKREPRO=yes and MKREPRO_TIMESTAMP=$MK_TIMESTAMP and were compared using ${DIFFOSCOPE}.

" write_explaination_table NetBSD cat $BAD_SECTION_HTML >> $PAGE cat $GOOD_SECTION_HTML >> $PAGE -- cgit v1.2.3-54-g00ecf