summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2016-12-10 15:40:08 -0500
committerMattia Rizzolo <mattia@debian.org>2016-12-10 23:52:45 +0100
commit2cf1bec3efcc9b50aa6eb3cb48d8780538116297 (patch)
treee6c13e20518db13705aba45f29d69f12acfae03b
parentf639c1ca1f06682eb29756df2e00f63a4e6c1fdd (diff)
downloadjenkins.debian.net-2cf1bec3efcc9b50aa6eb3cb48d8780538116297.tar.xz
reproducible FreeBSD: Fix tar argument order for tar 1.28
--no-recursion now only applies to the following arguments. See https://bugs.debian.org/829738. Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Mattia Rizzolo <mattia@debian.org>
-rwxr-xr-xbin/reproducible_freebsd.sh2
-rw-r--r--hosts/freebsd-jenkins/usr/local/etc/sudoers2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index da5c407f..6056ea56 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -32,7 +32,7 @@ save_freebsd_results() {
# copy results over
DUMMY_DATE="$(date -u +'%Y-%m-%d')T00:00:00Z"
$RSSH "sudo find $TMPDIR -newer $TMPDIR -exec touch -d '$DUMMY_DATE' {} \;"
- $RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --null -T - --no-recursion -cJf $TMPDIR.tar.xz"
+ $RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --no-recursion --null -T - -cJf $TMPDIR.tar.xz"
$RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN/$TARGET_NAME.tar.xz
$RSSH "sudo chflags -R noschg $TMPDIR ; sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR"
}
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index 5408368a..06e26d9f 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -104,7 +104,7 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j ? buildworld, \
/usr/sbin/chown jenkins /usr/src, \
/usr/bin/find /srv/reproducible-results/* -newer /srv/reproducible-results/* -exec touch *, \
/usr/bin/find /srv/reproducible-results/* -print0, \
- /usr/bin/tar --null -T - --no-recursion -cJf *.tar.xz, \
+ /usr/bin/tar --no-recursion --null -T - -cJf *.tar.xz, \
/usr/sbin/service ntpd start, \
/usr/sbin/service ntpd stop, \
/usr/sbin/service ntpd status, \