[med-svn] [eigensoft] 01/01: Fix build problem due to missing libraries. * Added lapacke.patch to link with -llapacke and -llapack. * Added liblapacke-dev as build-dependency.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Feb 5 18:47:38 UTC 2016


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

pere pushed a commit to branch master
in repository eigensoft.

commit 1f4f960dc373f288d2122c9411584645f5b30e51
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Feb 5 19:47:34 2016 +0100

    Fix build problem due to missing libraries.
    * Added lapacke.patch to link with -llapacke and -llapack.
    * Added liblapacke-dev as build-dependency.
---
 debian/changelog             |  5 +++++
 debian/control               |  1 +
 debian/patches/lapacke.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 4 files changed, 33 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 16dbd89..11962b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 eigensoft (6.0.1+ds-1) UNRELEASED; urgency=medium
 
+  [ Andreas Tille ]
   * New upstream version
   * Fixed d/watch
   * Use Files-Excluded to strip upstream source
@@ -14,6 +15,10 @@ eigensoft (6.0.1+ds-1) UNRELEASED; urgency=medium
   * Add missing Build-Depends libgsl-dev
   * Propagate hardening options
 
+  [ Petter Reinholdtsen ]
+  * Added lapacke.patch to link with -llapacke and -llapack.
+  * Added liblapacke-dev as build-dependency.
+
  -- Andreas Tille <tille at debian.org>  Tue, 26 Jan 2016 12:55:32 +0100
 
 eigensoft (4.2-1) experimental; urgency=low
diff --git a/debian/control b/debian/control
index d86ade2..ce74c0f 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Build-Depends: debhelper (>= 9),
                gfortran,
                libblas-dev,
                liblapack-dev,
+               liblapacke-dev,
                libgsl-dev
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/eigensoft.git
diff --git a/debian/patches/lapacke.patch b/debian/patches/lapacke.patch
new file mode 100644
index 0000000..309bee2
--- /dev/null
+++ b/debian/patches/lapacke.patch
@@ -0,0 +1,26 @@
+Description: Make sure to link with lapacke and lapack
+ Without this change, the code refuse to link because of missing
+ symbols.  In addition to this patch, the package need to build-depend
+ on liblapacke-dev.
+Author: Petter Reinholdtsen <pere at hungry.com>
+Last-Update: 2016-02-05
+License: same as eigensoft itself
+
+Index: eigensoft/src/Makefile
+===================================================================
+--- eigensoft.orig/src/Makefile	2016-02-05 16:55:12.484189587 +0000
++++ eigensoft/src/Makefile	2016-02-05 16:56:06.816583962 +0000
+@@ -15,11 +15,11 @@
+ ifdef OPENBLAS
+ CFLAGS  += -I../include -I$(OPENBLAS)/include -D_GNU_SOURCE
+ LDFLAGS += -L$(OPENBLAS)/lib -D_GNU_SOURCE
+-LDLIBS  = -Wl,-Bdynamic -lgsl -Wl,-Bstatic -lblas -Wl,-Bdynamic -lgfortran -pthread -lm
++LDLIBS  = -Wl,-Bdynamic -lgsl -Wl,-Bstatic -lblas -Wl,-Bdynamic -llapacke -llapack -lgfortran -pthread -lm
+ else
+ CFLAGS  += -I../include -D_GNU_SOURCE
+ LDFLAGS += -D_GNU_SOURCE
+-LDLIBS  = -lgsl -lblas -lgfortran -pthread -lm
++LDLIBS  = -lgsl -lblas -llapacke -llapack -lgfortran -pthread -lm
+ endif
+ 
+ CC = gcc
diff --git a/debian/patches/series b/debian/patches/series
index 3d10cde..3cdf3e1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 perlPath.patch
 blas.patch
 hardening.patch
+lapacke.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/eigensoft.git



More information about the debian-med-commit mailing list