From d21c871ccc845566be5c20605fb44bd72645b51f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 3 Nov 2015 23:24:21 +0100 Subject: reproducible freebsd: run 2nd build 400 days in the future --- bin/reproducible_common.sh | 5 +++-- bin/reproducible_freebsd.sh | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 64ccd646..071a6576 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -378,8 +378,8 @@ write_explaination_table() { else write_page "CPU type$(cat /proc/cpuinfo|grep 'model name'|head -1|cut -d ":" -f2-)same for both builds" fi - write_page "year, month, datetoday ($DATE)same for both builds (currently, work in progress)" if [ "$1" != "FreeBSD" ] ; then + write_page "year, month, datetoday ($DATE)same for both builds (currently, work in progress)" write_page "hour, minutehour and minute will probably vary between two builds...but this is not enforced systematically... (currently, work in progress)" if [ "$1" = "debian" ] ; then write_page "filesystemtmpfstemporarily not varied using disorderfs (manpage)" @@ -387,7 +387,8 @@ write_explaination_table() { write_page "Filesystemtmpfssame for both builds (currently, this could be varied using disorderfs)" fi else - write_page "hour, minutehour and minute will probably vary between two builds...but this is not enforced systematically...)" + write_page "year, month, datetoday ($DATE)the 2nd build done with the build node set 1 year, 1 month and 5 days in the future" + write_page "hour, minutehour and minute will vary between two builds...but this is not enforced systematically...)" write_page "filesystem of the build directoryufssame for both builds" fi if [ "$1" = "debian" ] ; then diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index 3cd20e1a..c8e135e0 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -81,6 +81,9 @@ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU # save results in b1 save_freebsd_results b1 +# set time forward 400 days +$RSSH "service ntpd stop ; date --set='+400 days' ; date" +echo "$(date) - system is running in the future now." echo "=============================================================================" echo "$(date -u) - Building FreeBSD - second build run." @@ -101,6 +104,10 @@ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL DESTDIR=$TMPDIR sudo m # save results in b2 save_freebsd_results b2 +# set time back to today +$RSSH "ntpdate pool.ntp.org ; service ntpd start ; service ntpd status ; date" +echo "$(date) - system is running at the current date now." + # reset environment to default values again export LANG="en_GB.UTF-8" unset LC_ALL -- cgit v1.2.3-70-g09d2