r45609 - in /packages/sundials/branches/wheezy/debian: changelog control patches/link-blas-lapack.patch patches/series rules

sebastien at users.alioth.debian.org sebastien at users.alioth.debian.org
Wed Feb 27 15:58:13 UTC 2013


Author: sebastien
Date: Wed Feb 27 15:58:13 2013
New Revision: 45609

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=45609
Log:
  * Improve the fix for missing BLAS and LAPACK dependencies (closes: #700525)
    + no longer pass BLAS and LAPACK through LDFLAGS
    + link-blas-lapack.patch: new patch which rather adds the dependencies at
      the libtool link level
    + add missing dependency of libsundials-serial-dev on libblas-dev and
      liblapack-dev
  * Fix the dependency of octave-sundials on octave.


Added:
    packages/sundials/branches/wheezy/debian/patches/link-blas-lapack.patch
Modified:
    packages/sundials/branches/wheezy/debian/changelog
    packages/sundials/branches/wheezy/debian/control
    packages/sundials/branches/wheezy/debian/patches/series
    packages/sundials/branches/wheezy/debian/rules

Modified: packages/sundials/branches/wheezy/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/sundials/branches/wheezy/debian/changelog?rev=45609&op=diff
==============================================================================
--- packages/sundials/branches/wheezy/debian/changelog (original)
+++ packages/sundials/branches/wheezy/debian/changelog Wed Feb 27 15:58:13 2013
@@ -1,3 +1,18 @@
+sundials (2.5.0-3) UNRELEASED; urgency=low
+
+  * Team upload.
+  * Revert changes from experimental version which inadvertently made it into
+    the previous upload.
+  * Improve the fix for missing BLAS and LAPACK dependencies (closes: #700525)
+    + no longer pass BLAS and LAPACK through LDFLAGS
+    + link-blas-lapack.patch: new patch which rather adds the dependencies at
+      the libtool link level
+    + add missing dependency of libsundials-serial-dev on libblas-dev and
+      liblapack-dev
+  * Fix the dependency of octave-sundials on octave.
+
+ -- Sébastien Villemot <sebastien at debian.org>  Wed, 27 Feb 2013 16:39:46 +0100
+
 sundials (2.5.0-2) unstable; urgency=low
 
   * debian/rules:

Modified: packages/sundials/branches/wheezy/debian/control
URL: http://svn.debian.org/wsvn/debian-science/packages/sundials/branches/wheezy/debian/control?rev=45609&op=diff
==============================================================================
--- packages/sundials/branches/wheezy/debian/control (original)
+++ packages/sundials/branches/wheezy/debian/control Wed Feb 27 15:58:13 2013
@@ -81,7 +81,9 @@
 Package: libsundials-serial-dev
 Section: libdevel
 Architecture: any
-Depends: libsundials-serial (= ${binary:Version}), ${misc:Depends}
+Depends: libsundials-serial (= ${binary:Version}), ${misc:Depends},
+ libblas-dev | libatlas-base-dev | libopenblas-dev,
+ liblapack-dev | libatlas-base-dev
 Description: SUNDIALS development files
  The family of solvers referred to as SUNDIALS (SUit of Nonlinear and
  DIfferential/ALgebraic equation Solvers) consists of solvers CVODE
@@ -109,7 +111,7 @@
 
 Package: octave-sundials
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}, ${octave:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, octave
 Recommends: libsundials-serial-dev
 Description: SUNDIALS  for octave
  The family of solvers referred to as SUNDIALS (SUit of Nonlinear and

Added: packages/sundials/branches/wheezy/debian/patches/link-blas-lapack.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/sundials/branches/wheezy/debian/patches/link-blas-lapack.patch?rev=45609&op=file
==============================================================================
--- packages/sundials/branches/wheezy/debian/patches/link-blas-lapack.patch (added)
+++ packages/sundials/branches/wheezy/debian/patches/link-blas-lapack.patch Wed Feb 27 15:58:13 2013
@@ -1,0 +1,104 @@
+Description: Ensure that libraries are linked against BLAS and LAPACK when needed
+ In particular, this ensures that the shared libraries packages have correct
+ dependencies.
+Author: Sébastien Villemot <sebastien at debian.org>
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700525
+Forwarded: no
+Last-Update: 2013-02-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/cvode/Makefile.in
++++ b/src/cvode/Makefile.in
+@@ -42,6 +42,7 @@
+ LIBS     = @LIBS@
+ 
+ LAPACK_ENABLED = @LAPACK_ENABLED@
++BLAS_LAPACK_LIBS = @BLAS_LAPACK_LIBS@
+ 
+ top_srcdir = $(srcdir)/../..
+ 
+@@ -88,7 +89,7 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ lib_with_bl: shared $(CVODE_LIB_FILES) $(CVODE_BL_LIB_FILES)
+-	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES)  $(CVODE_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
++	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES)  $(CVODE_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) $(BLAS_LAPACK_LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(CVODE_LIB)
+ 	$(mkinstalldirs) $(includedir)/cvode
+--- a/src/cvodes/Makefile.in
++++ b/src/cvodes/Makefile.in
+@@ -42,6 +42,7 @@
+ LIBS     = @LIBS@
+ 
+ LAPACK_ENABLED = @LAPACK_ENABLED@
++BLAS_LAPACK_LIBS = @BLAS_LAPACK_LIBS@
+ 
+ top_srcdir = $(srcdir)/../..
+ 
+@@ -88,7 +89,7 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ lib_with_bl: shared $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES)
+-	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
++	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) $(BLAS_LAPACK_LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(CVODES_LIB)
+ 	$(mkinstalldirs) $(includedir)/cvodes
+--- a/src/ida/Makefile.in
++++ b/src/ida/Makefile.in
+@@ -42,6 +42,7 @@
+ LIBS     = @LIBS@
+ 
+ LAPACK_ENABLED = @LAPACK_ENABLED@
++BLAS_LAPACK_LIBS = @BLAS_LAPACK_LIBS@
+ 
+ top_srcdir = $(srcdir)/../..
+ 
+@@ -88,7 +89,7 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ lib_with_bl: shared $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES)
+-	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
++	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) $(BLAS_LAPACK_LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(IDA_LIB)
+ 	$(mkinstalldirs) $(includedir)/ida
+--- a/src/idas/Makefile.in
++++ b/src/idas/Makefile.in
+@@ -42,6 +42,7 @@
+ LIBS     = @LIBS@
+ 
+ LAPACK_ENABLED = @LAPACK_ENABLED@
++BLAS_LAPACK_LIBS = @BLAS_LAPACK_LIBS@
+ 
+ top_srcdir = $(srcdir)/../..
+ 
+@@ -88,7 +89,7 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ lib_with_bl: shared $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES)
+-	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
++	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) $(BLAS_LAPACK_LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(IDAS_LIB)
+ 	$(mkinstalldirs) $(includedir)/idas
+--- a/src/kinsol/Makefile.in
++++ b/src/kinsol/Makefile.in
+@@ -42,6 +42,7 @@
+ LIBS     = @LIBS@
+ 
+ LAPACK_ENABLED = @LAPACK_ENABLED@
++BLAS_LAPACK_LIBS = @BLAS_LAPACK_LIBS@
+ 
+ top_srcdir = $(srcdir)/../..
+ 
+@@ -88,7 +89,7 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ lib_with_bl: shared $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES)
+-	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
++	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) $(BLAS_LAPACK_LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(KINSOL_LIB)
+ 	$(mkinstalldirs) $(includedir)/kinsol

Modified: packages/sundials/branches/wheezy/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-science/packages/sundials/branches/wheezy/debian/patches/series?rev=45609&op=diff
==============================================================================
--- packages/sundials/branches/wheezy/debian/patches/series (original)
+++ packages/sundials/branches/wheezy/debian/patches/series Wed Feb 27 15:58:13 2013
@@ -2,3 +2,4 @@
 #sh4.patch
 fix-format-error.patch
 octave-sundialstb.patch
+link-blas-lapack.patch

Modified: packages/sundials/branches/wheezy/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/sundials/branches/wheezy/debian/rules?rev=45609&op=diff
==============================================================================
--- packages/sundials/branches/wheezy/debian/rules (original)
+++ packages/sundials/branches/wheezy/debian/rules Wed Feb 27 15:58:13 2013
@@ -11,7 +11,6 @@
 #LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
 #CFLAGS+=$(HARDENING_CFLAGS)
 #LDFLAGS+=$(HARDENING_LDFLAGS)
-LDFLAGS+=-lblas -llapack -lm
 
 debusr := $(DEB_DESTDIR)usr
 debexp = debian/libsundials-serial-dev/usr/share/doc/libsundials-serial-dev/examples




More information about the debian-science-commits mailing list