Bug#908379: bro: please make the build reproducible
Chris Lamb
lamby at debian.org
Sun Sep 9 12:32:24 BST 2018
Source: bro
Version: 2.5.4-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that bro could not be built reproducibly.
This is because the .bro files contain the absolute build path. Patch
attached that removes $(CURDIR) from the file.
(I initially tried to make an upstream-friendly patch against the
generation utility itself but I found it difficult and cumbersome to
retain the relevant "leading/path/components/file.bro" whilst removing
the absolute component)
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2018-09-09 09:54:09.174792759 +0100
--- b/debian/rules 2018-09-09 12:06:53.941232622 +0100
@@ -18,6 +18,8 @@
override_dh_install:
mkdir -p debian/tmp/etc/bro
mv debian/tmp/usr/share/bro/site debian/tmp/etc/bro/site
+ find debian/tmp -type f -name '*.bro' -print0 | \
+ xargs -0r sed -i -e 's at from $(CURDIR)/@from @g'
dh_install --fail-missing
override_dh_gencontrol:
More information about the Reproducible-bugs
mailing list