[misc] 03/03: prebuilder: filter .buildinfo files from .changes
Reiner Herrmann
reiner at reiner-h.de
Sat Nov 19 12:27:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository misc.
commit eb9917bc8846cd19e7cc97b99a3c11f2d5ce899b
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Sat Nov 19 12:36:43 2016 +0100
prebuilder: filter .buildinfo files from .changes
With the unmodified dpkg, .buildinfo files are no longer identical,
as they include the environment, build date etc.
To determine if the build was reproducible, they are removed from
the .changes files.
Regex by HW42 (from bin/reproducible_build.sh in jenkins.debian.net.git)
---
prebuilder/pbuilderhooks/B92_diffoscope | 2 ++
1 file changed, 2 insertions(+)
diff --git a/prebuilder/pbuilderhooks/B92_diffoscope b/prebuilder/pbuilderhooks/B92_diffoscope
index 442e1cc..b345e0a 100755
--- a/prebuilder/pbuilderhooks/B92_diffoscope
+++ b/prebuilder/pbuilderhooks/B92_diffoscope
@@ -25,6 +25,8 @@ mkdir -p /tmp/initial_build
tar -C /tmp/initial_build -xf $BUILDDIR/initial_build.tar
rm $BUILDDIR/initial_build.tar
+# Remove .buildinfo files from .changes, as they are not identical
+sed -i -e '/^ [a-f0-9]\{32,64\} .*\.buildinfo$/d' /tmp/initial_build/*.changes $BUILDDIR/*.changes
echo "I: comparing build artefacts with cmp"
[ -x /usr/bin/dcmd ] || apt-get install -y --no-install-recommends devscripts 2>&1 > /dev/null
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list