Source: bro
Version: 2.5.4-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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@from $(CURDIR)/@from @g'
        dh_install --fail-missing
 
 override_dh_gencontrol:

Reply via email to