Bug#920411: mongo-c-driver: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Jan 25 08:01:25 GMT 2019
Source: mongo-c-driver
Version: 1.13.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that mongo-c-driver could not be built reproducibly.
This/was partly due to the shipped mongoc-config.h file containing
the CFLAGS that were used to build the package, thus including the
buildpath in the calls to -f{debug,file}-prefix-map.
Patch attached, but if this file is not needed in the binary
packages, I would simply remove it.
(I think it also embeds the aforementioned CFLAGS into the resulting
libbson*.so too?)
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2019-01-25 08:33:17.364118736 +0100
--- b/debian/rules 2019-01-25 08:56:08.184184279 +0100
@@ -30,6 +30,11 @@
-DENABLE_TESTS=OFF \
-DENABLE_ZLIB=SYSTEM
+override_dh_auto_install:
+ dh_auto_install
+ find $(CURDIR)/debian/tmp/usr/include -type f -name "*.h" -print0 | \
+ xargs -0r sed -i -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^ ]*@@g'
+
#override_dh_install:
# dh_install -a -X.la -Xmongoc-stat -Xdoc/mongo-c-driver -Xdoc/libbson -Xman/man3 -X-priv.so -X-priv.pc --fail-missing
More information about the Reproducible-bugs
mailing list