[SCM] OpenBLAS packaging for Debian branch, master, updated. upstream/0.2.6-7-gf2b7e18
Sébastien Villemot
sebastien at debian.org
Mon May 20 17:04:23 UTC 2013
The following commit has been merged in the master branch:
commit 7bf99a741221e5e2d7b737829270678256172d2f
Author: Sébastien Villemot <sebastien at debian.org>
Date: Mon May 20 18:37:25 2013 +0200
libblas3-soname.patch: new patch, sets the SONAME of the dynamic library to libblas.so.3. (Closes: #687349)
diff --git a/debian/changelog b/debian/changelog
index a708cfc..424f36a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
openblas (0.2.6-2) UNRELEASED; urgency=low
* power7.patch: new patch, should fix FTBFS on powerpc buildd with Power7 arch
+ * libblas3-soname.patch: new patch, sets the SONAME of the dynamic library to
+ libblas.so.3. (Closes: #687349)
* Switch to git as VCS for packaging
-- Sébastien Villemot <sebastien at debian.org> Mon, 20 May 2013 16:05:33 +0200
diff --git a/debian/patches/libblas3-soname.patch b/debian/patches/libblas3-soname.patch
new file mode 100644
index 0000000..9da6838
--- /dev/null
+++ b/debian/patches/libblas3-soname.patch
@@ -0,0 +1,24 @@
+Description: Set SONAME to libblas.so.3
+ The SONAME is originally libopenblas.so.0, but this does not play nicely with
+ our alternatives for BLAS. For example, if one installs libopenblas-dev and
+ compiles a binary against BLAS, the binary will have libopenblas.so.0
+ hardcoded in its dynamic dependencies: the dynamic resolver does not know how
+ to resolve this dependency, and even if it knew, the resulting program could
+ not be used against ATLAS or reference BLAS.
+Author: Sébastien Villemot <sebastien at debian.org>
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687349
+Forwarded: not-needed
+Last-Update: 2013-05-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/exports/Makefile
++++ b/exports/Makefile
+@@ -118,7 +118,7 @@
+ ../$(LIBSONAME) : ../$(LIBNAME) linux.def linktest.c
+ $(CC) $(CFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
+- -Wl,--retain-symbols-file=linux.def -Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) $(EXTRALIB)
++ -Wl,--retain-symbols-file=linux.def -Wl,-soname,libblas.so.3 $(EXTRALIB)
+ $(CC) $(CFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
+ rm -f linktest
+
diff --git a/debian/patches/series b/debian/patches/series
index 39e6df2..fa2faaa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
power7.patch
+libblas3-soname.patch
--
OpenBLAS packaging for Debian
More information about the debian-science-commits
mailing list