Source: lapack
Version: 3.6.0-2
Severity: wishlist
Tags: patch
Usertags: locale randomness


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


diff --git a/debian/ b/debian/
index 26f268d..e845566 100644
--- a/debian/
+++ b/debian/
@@ -1,2 +1 @@
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

Reply via email to