Source: botan
Version: 2.6.0-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that botan could not be built reproducibly.

This is because it encodes CFLAGS into a shipped file, and these will
vary on the build path due to Reproducible-related parameters passed to
GCC. 

Patch attached that strips them in debian/rules but an alternative
approach would be to simply strip these from upstream's build.in
template that builds this file.


 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2018-09-24 12:17:17.191836843 +0100
--- b/debian/rules      2018-09-24 12:41:16.465608212 +0100
@@ -6,6 +6,7 @@
 
 include /usr/share/dpkg/architecture.mk
 
+DEVPKG = $(CURDIR)/debian/libbotan-2-dev
 DOCPKG = $(CURDIR)/debian/libbotan-2-doc
 
 override_dh_clean:
@@ -35,6 +36,7 @@
 override_dh_install:
        dh_install
        rm -rf $(DOCPKG)/usr/share/doc/libbotan-2-doc/manual/.doctrees
+       sed -i -e 's/ -f\(debug\|file\)-prefix-map=[^ ]*=\. / /' 
$(DEVPKG)/usr/include/botan-2/botan/build.h
        dh_missing --list-missing
 
 %:

Reply via email to