[openblas] 03/03: kfreebsd-soname.patch: give a SONAME to the shared library under kfreebsd.

Sébastien Villemot sebastien at debian.org
Fri Feb 21 15:50:45 UTC 2014


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

sebastien pushed a commit to branch master
in repository openblas.

commit d71b92afe565515be142747311f9238d38bb3126
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Thu Feb 20 21:56:39 2014 +0100

    kfreebsd-soname.patch: give a SONAME to the shared library under kfreebsd.
---
 debian/patches/kfreebsd-soname.patch | 27 +++++++++++++++++++++++++++
 debian/patches/libblas3-soname.patch |  6 ++++--
 debian/patches/series                |  1 +
 3 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/debian/patches/kfreebsd-soname.patch b/debian/patches/kfreebsd-soname.patch
new file mode 100644
index 0000000..dab6e92
--- /dev/null
+++ b/debian/patches/kfreebsd-soname.patch
@@ -0,0 +1,27 @@
+Description: Ensure that the shared library under kFreeBSD has a SONAME
+ Simply use the same code for shared object creation than under Linux.
+Author: Sébastien Villemot <sebastien at debian.org>
+Forwarded: not-needed
+Last-Update: 2014-02-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/exports/Makefile
++++ b/exports/Makefile
+@@ -115,7 +115,7 @@ symbol.$(SUFFIX) : symbol.S
+ dllinit.$(SUFFIX) : dllinit.c
+ 	$(CC) $(CFLAGS) -c -o $(@F) -s $<
+ 
+-ifeq ($(OSNAME), Linux)
++ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD))
+ 
+ so : ../$(LIBSONAME)
+ 
+@@ -134,7 +134,7 @@ endif
+ endif
+ 
+ #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
+-ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
++ifeq ($(OSNAME), $(filter $(OSNAME),NetBSD))
+ 
+ so : ../$(LIBSONAME)
+ 
diff --git a/debian/patches/libblas3-soname.patch b/debian/patches/libblas3-soname.patch
index 9b16810..757dfbe 100644
--- a/debian/patches/libblas3-soname.patch
+++ b/debian/patches/libblas3-soname.patch
@@ -1,15 +1,17 @@
 Description: Create a libblas.so.3 with the right SONAME
  That one is needed for the update-alternatives system.
+ The code is inserted in the Linux section, which is also the kFreeBSD section
+ because of kfreebsd-soname.patch.
 Author: Sébastien Villemot <sebastien at debian.org>
 Forwarded: not-needed
-Last-Update: 2014-02-19
+Last-Update: 2014-02-20
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/exports/Makefile
 +++ b/exports/Makefile
 @@ -117,7 +117,7 @@ dllinit.$(SUFFIX) : dllinit.c
  
- ifeq ($(OSNAME), Linux)
+ ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD))
  
 -so : ../$(LIBSONAME)
 +so : ../$(LIBSONAME) ../libblas.so.3
diff --git a/debian/patches/series b/debian/patches/series
index ddba23f..e3b6874 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+kfreebsd-soname.patch
 libblas3-soname.patch
 test-custom-package.patch
 qemu-athlon.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