summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-14 12:49:21 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-14 12:49:21 +0100
commit7768ee6958d968519e22e98135a0e8317bfd42e2 (patch)
tree1f870107884c70d57214442b0a1412fb7b0efb82
parentf7088b89f5de284223aa5ace719b107ce9f98796 (diff)
downloadjenkins.debian.net-7768ee6958d968519e22e98135a0e8317bfd42e2.tar.xz
reproducible freebsd: explain 398 days variation
-rwxr-xr-xbin/reproducible_common.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 0bb5c4cd..eb95bd1b 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -382,13 +382,17 @@ write_explaination_table() {
write_page "<tr><td>FreeBSD kernel version</td><td colspan=\"2\"> is not yet varied between rebuilds of $1.</td></tr>"
write_page "<tr><td>umask</td><td colspan=\"2\"> is not yet varied between rebuilds of $1.</td><tr>"
fi
+ FUTURE=$(date --date="${DATE}+398 days" +'%Y-%m-%d')
if [ "$1" = "debian" ] ; then
write_page "<tr><td>CPU type</td><td>one of: $(cat /srv/reproducible-results/node-information/* | grep CPU_MODEL | cut -d '=' -f2- | sort -u | tr '\n' '\0' | xargs -0 -n1 echo '<br />&nbsp;&nbsp;')</td><td>on armhf: sometimes varied (depending on the build job)<br />on amd64: same for both builds (currently, work in progress)</td></tr>"
- FUTURE=$(date --date="${DATE}+398 days" +'%Y-%m-%d')
write_page "<tr><td>year, month, date</td><td>today ($DATE) or on amd64 also: $FUTURE</td><td>on amd64: varied (398 days difference)<br />on armhf: same for both builds (currently, work in progress)</td></tr>"
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>"
- 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>"
+ else
+ write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>398 days in the future ($FUTURE)</td></tr>"
+ fi
fi
if [ "$1" != "FreeBSD" ] ; then
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>"