Bug#909476: botan: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Sep 24 13:01:35 BST 2018
Source: botan
Version: 2.6.0-3
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 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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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
%:
More information about the Reproducible-bugs
mailing list