summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-03 23:24:21 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-03 23:27:39 +0100
commitd21c871ccc845566be5c20605fb44bd72645b51f (patch)
tree406f2ca0e7efe639a1501466d9f345bea16af282 /bin
parent9629f011c33afbcb16f496d5cfdb44ce804748af (diff)
downloadjenkins.debian.net-d21c871ccc845566be5c20605fb44bd72645b51f.tar.xz
reproducible freebsd: run 2nd build 400 days in the future
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh5
-rwxr-xr-xbin/reproducible_freebsd.sh7
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 "<tr><td>CPU type</td><td>$(cat /proc/cpuinfo|grep 'model name'|head -1|cut -d ":" -f2-)</td><td>same for both builds</td></tr>"
fi
- write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>same for both builds (currently, work in progress)</td></tr>"
if [ "$1" != "FreeBSD" ] ; then
+ write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>same for both builds (currently, work in progress)</td></tr>"
write_page "<tr><td>hour, minute</td><td>hour and minute will probably vary between two builds...</td><td>but this is not enforced systematically... (currently, work in progress)</td></tr>"
if [ "$1" = "debian" ] ; then
write_page "<tr><td>filesystem</td><td>tmpfs</td><td><em>temporarily not</em> varied using <a href=\"https://tracker.debian.org/disorderfs\">disorderfs</a> (<a href=\"https://sources.debian.net/src/disorderfs/sid/disorderfs.1.txt/\">manpage</a>)</td></tr>"
@@ -387,7 +387,8 @@ write_explaination_table() {
write_page "<tr><td>Filesystem</td><td>tmpfs</td><td>same for both builds (currently, this could be varied using <a href=\"https://tracker.debian.org/disorderfs\">disorderfs</a>)</td></tr>"
fi
else
- write_page "<tr><td>hour, minute</td><td>hour and minute will probably vary between two builds...</td><td>but this is not enforced systematically...)</td></tr>"
+ write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>the 2nd build done with the build node set 1 year, 1 month and 5 days in the future</td></tr>"
+ write_page "<tr><td>hour, minute</td><td>hour and minute will vary between two builds...</td><td>but this is not enforced systematically...)</td></tr>"
write_page "<tr><td>filesystem of the build directory</td><td>ufs</td><td>same for both builds</td></tr>"
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