[openblas] 02/03: d/p/order-files.patch: new patch, makes build reproducible.

Sébastien Villemot sebastien at debian.org
Tue Sep 6 18:26:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository openblas.

commit 7aad5182aa71224ee33a35e7a7b0440e33f39d36
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Tue Sep 6 12:12:53 2016 +0200

    d/p/order-files.patch: new patch, makes build reproducible.
    
    Thanks: Alexis Bienvenüe
    Closes: #824639
---
 debian/patches/order-files.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/order-files.patch b/debian/patches/order-files.patch
new file mode 100644
index 0000000..471f1b2
--- /dev/null
+++ b/debian/patches/order-files.patch
@@ -0,0 +1,30 @@
+Description: Order files
+ Order the files when calling `ar' or $(CC), to make the build reproducible.
+Author: Alexis Bienvenüe <pado at passoire.fr>
+Bugs-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824639
+Reviewed-by: Sébastien Villemot <sebastien at debian.org>
+Last-Update: 2016-09-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile
++++ b/Makefile
+@@ -205,7 +205,7 @@ netlib :
+ 	mkdir lapack-netlib
+ 	cd lapack-netlib && ar -x /usr/lib/lapack/liblapack_pic.a
+ 	make -C interface delete-duplicate-lapack-objects
+-	ar -ru $(LIBNAME) lapack-netlib/*
++	ar -ru $(LIBNAME) `LC_ALL=C ls lapack-netlib/*`
+ 
+ clean::
+ 	rm -rf lapack-netlib
+--- a/interface/Makefile
++++ b/interface/Makefile
+@@ -2153,7 +2153,7 @@ libblas.so.3: $(SBLAS1OBJS) $(SBLAS2OBJS
+ 
+ # The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects
+ liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o
+-	$(CC) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/* -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB)
++	$(CC) $(LDFLAGS) -shared -o $@ $^ `LC_ALL=C ls ../lapack-netlib/*` -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB)
+ 
+ clean::
+ 	rm -f libblas.so.3 liblapack.so.3
diff --git a/debian/patches/series b/debian/patches/series
index 69b41f9..c0b5dd9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ remove-openmp-warning.patch
 no-embedded-lapack.patch
 shared-blas-lapack.patch
 matgen-symbols-not-included.patch
+order-files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openblas.git



More information about the debian-science-commits mailing list