Source: lapack
Version: 3.6.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that lapack could not be built reproducibly.
It includes a log file of test results (testing_results.txt), which
includes measured run times of the tests.
The static library libblas.a can also contain objects in a different
order, depending on the configured locale.

The attached patch removes the test log, as it provides no value
to the user, and sorts the files packed into the static library
locale-independently.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/liblapack3.docs b/debian/liblapack3.docs
index 26f268d..e845566 100644
--- a/debian/liblapack3.docs
+++ b/debian/liblapack3.docs
@@ -1,2 +1 @@
-TESTING/testing_results.txt
 README
diff --git a/debian/rules b/debian/rules
index 058e33a..a3e96d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -141,7 +141,7 @@ override_dh_auto_build-arch:
 	ar d librefblas.a xerbla.o # We want to use the xerbla.o from libcblas.a
 	mkdir -p tmp
 	cd tmp && ar x ../librefblas.a && ar x ../libcblas.a
-	ar r libblas.a tmp/*.o
+	ar r libblas.a $(shell LC_ALL=C ls tmp/*.o)
 	rm -rf tmp
 
 	# Build the test programs, in order to avoid FTBFS if DEB_BUILD_OPTIONS contains nocheck
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to