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_freebsd.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/reproducible_freebsd.sh') 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-54-g00ecf