Bug#831903: libterralib: please make the build reproducible
Dhole
dhole at openmailbox.org
Wed Jul 20 17:24:56 UTC 2016
Source: libterralib
Version: 4.3.0+dfsg.2-8
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that libterralib could not be built reproducibly.
Files and file contents are sorted differently depending on the locale.
The attached patch fixes this by setting LC_ALL (instead of LC_COLLATE)
to C. Once applied, libterralib can be built reproducibly in our current
experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
Dhole
-------------- next part --------------
diff -Nru libterralib-4.3.0+dfsg.2/debian/changelog libterralib-4.3.0+dfsg.2/debian/changelog
--- libterralib-4.3.0+dfsg.2/debian/changelog 2016-07-14 18:39:09.000000000 +0200
+++ libterralib-4.3.0+dfsg.2/debian/changelog 2016-07-20 16:36:42.000000000 +0200
@@ -1,3 +1,10 @@
+libterralib (4.3.0+dfsg.2-8.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Set C locale when archiving object files to get a deterministic order.
+
+ -- Eduard Sanou <dhole at openmailbox.org> Wed, 20 Jul 2016 16:36:02 +0200
+
libterralib (4.3.0+dfsg.2-8) unstable; urgency=medium
* Fix for ::isnan change for G++ 5.4, 6.1. Closes: #830463
diff -Nru libterralib-4.3.0+dfsg.2/debian/rules libterralib-4.3.0+dfsg.2/debian/rules
--- libterralib-4.3.0+dfsg.2/debian/rules 2016-07-14 17:58:37.000000000 +0200
+++ libterralib-4.3.0+dfsg.2/debian/rules 2016-07-20 18:35:36.000000000 +0200
@@ -33,7 +33,7 @@
# ( cd build/qt/$$d && qmake QMAKE_CXXFLAGS=$(CXXFLAGS) $$d.pro && $(MAKE) ) ; \
# done
for d in terralib te_functions te_utils terralibpdi shapelib te_shapelib te_mysql te_postgresql te_dxf stat ; do \
- ar rcs Release/lib$$d.a Release/linux-g++/obj/$$d/*.o ;\
+ ar rcs Release/lib$$d.a `LC_ALL=C ls Release/linux-g++/obj/$$d/*.o` ;\
done
override_dh_clean:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20160720/d30f23c4/attachment.sig>
More information about the Pkg-grass-devel
mailing list