From ed6d629028bb467a858cdd5338b32e72d0cb57c4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 27 Aug 2015 10:17:50 +0200 Subject: reproducible freebsd: use chflags to make files deletable again --- bin/reproducible_freebsd.sh | 2 +- hosts/freebsd-jenkins/usr/local/etc/sudoers | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index da3009c7..ddc2185d 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -31,7 +31,7 @@ save_freebsd_results(){ $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" $RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN - $RSSH "sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR" + $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 ca84d418..d09b6696 100644 --- a/hosts/freebsd-jenkins/usr/local/etc/sudoers +++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers @@ -100,6 +100,7 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j ? buildworld, \ /bin/rm -r /usr/src /usr/obj, \ /bin/rm -r /usr/obj, \ /bin/rm -r /srv/reproducible-results/* /srv/reproducible-results/*.tar.xz, \ + /bin/chflags -R noschg /srv/reproducible-results/*, \ /bin/mkdir /usr/obj, \ /bin/mkdir /usr/src /usr/obj, \ /usr/sbin/chown jenkins /usr/src /usr/obj, \ -- cgit v1.2.3-54-g00ecf