From 55d32876ec76887dbb50c80f7fe3f8749e1dca67 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 22 Nov 2017 12:55:15 +0000 Subject: reproducible Arch Linux: extract .BUILDINFO file after package build Signed-off-by: Holger Levsen --- bin/reproducible_build_archlinux_pkg.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index 8ba705cf..05d743fb 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -348,9 +348,14 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the if diff -q $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ; then echo "$(date -u) - YAY - $SRCPACKAGE/$ARTIFACT build reproducible in our test framework!" mkdir -p $BASE/archlinux/$REPOSITORY/$SRCPACKAGE + tar xJvf $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b1.BUILDINFO + tar xJvf $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b2.BUILDINFO ( echo "

$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:
" (cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT) + echo "
" + echo "$ARTIFACT-b1.BUILDINFO
" + echo "$ARTIFACT-b2.BUILDINFO
" echo "

" ) > "$BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html" elif [ -f $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ] && [ -f $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ] ; then -- cgit v1.2.3-70-g09d2