summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2016-11-06 16:35:39 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-06 16:58:29 +0100
commit8b604b7baf65f4e407b54a29b3e1dc7dca138cef (patch)
treed9d47cdab33c326058d2584a862d15b6c98d7168 /bin/reproducible_build.sh
parentb1839e95c654a7de6464dd32aeab18eb369f0220 (diff)
downloadjenkins.debian.net-8b604b7baf65f4e407b54a29b3e1dc7dca138cef.tar.xz
reproducible Debian: filter Environment section from buildinfo files
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index f3e5badf..96f11488 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -743,6 +743,17 @@ remote_build() {
fi
}
+filter_buildinfo_files() {
+ # filters out the Environment section from buildinfo files
+
+ local TMPFILE1=$(mktemp --tmpdir=$TMPDIR)
+ local TMPFILE2=$(mktemp --tmpdir=$TMPDIR)
+ grep-dctrl -I -s Environment . ./b1/$BUILDINFO > $TMPFILE1
+ grep-dctrl -I -s Environment . ./b2/$BUILDINFO > $TMPFILE2
+ mv $TMPFILE1 ./b1/$BUILDINFO
+ mv $TMPFILE2 ./b2/$BUILDINFO
+}
+
check_buildinfo() {
local TMPFILE1=$(mktemp --tmpdir=$TMPDIR)
local TMPFILE2=$(mktemp --tmpdir=$TMPDIR)
@@ -905,6 +916,7 @@ update_rbuildlog
if [ $FTBFS -eq 1 ] ; then
handle_ftbfs
elif [ $FTBFS -eq 0 ] ; then
+ filter_buildinfo_files
call_diffoscope_on_buildinfo_files # defines DIFFOSCOPE, update_db_and_html defines STATUS
share_buildinfo
fi