[sundials] 28/76: fix dbg packages

Andreas Tille tille at debian.org
Sun Feb 5 18:44:52 UTC 2017


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

tille pushed a commit to branch master
in repository sundials.

commit af6d485318cb3e631c913ef512b77efa92965a5b
Author: Christophe Trophime <christophe.trophime at lncmi.cnrs.fr>
Date:   Tue Jul 10 08:07:23 2012 +0000

    fix dbg packages
---
 debian/check.sh                               | 38 ++++++++++++++---------
 debian/control                                | 44 +++++++++++++--------------
 debian/libsundials-cvode0.install             |  1 -
 debian/libsundials-cvodes1.install            |  1 -
 debian/libsundials-ida1.install               |  1 -
 debian/libsundials-kinsol0.install            |  1 -
 debian/libsundials-nvecparallel-dev.install   |  4 +++
 debian/libsundials-parallel.lintian-overrides |  2 ++
 debian/libsundials-serial-dev.install         | 15 ++++++---
 debian/rules                                  | 23 +++++++++-----
 10 files changed, 78 insertions(+), 52 deletions(-)

diff --git a/debian/check.sh b/debian/check.sh
index 4585726..5cba9e2 100644
--- a/debian/check.sh
+++ b/debian/check.sh
@@ -14,24 +14,32 @@ CWD=$(pwd)
 cd $1/examples
 
 for dir in $(find . -type d -maxdepth 1 -mindepth 1) ; do
-    cd $dir/serial
-    echo "tests in " $dir
-    for prog in $(find . -executable -type f) ; do
-        echo -n "Checking $prog... "
-        ./$prog > $RESULTS
-        if test -e $2/examples/$dir/serial/$prog.out ; then
-            DIFF=$(diff -u $2/examples/$dir/serial/$prog.out $RESULTS)
-            if test -z "$DIFF" ; then
-                echo success
+    #for mode in "serial" "fcmix_serial" "parallel" "fcmix_parallel"  ; do
+    for mode in "serial" ; do
+	cd $dir/$mode
+	echo "tests in " $mode
+	for prog in $(find . -executable -type f) ; do
+            echo -n "Checking $prog... "
+            if [ "$mode" != "parallel" ]; then
+	       ./$prog > $RESULTS
+	    else
+	       OMPI_MCA_plm_rsh_agent=/bin/false ./$prog > $RESULTS
+	    fi
+
+            if test -e $2/examples/$dir/serial/$prog.out ; then
+        	DIFF=$(diff -u $2/examples/$dir/serial/$prog.out $RESULTS)
+        	if test -z "$DIFF" ; then
+                    echo success
+        	else
+                    echo fail
+                    echo "$DIFF"
+        	fi
             else
-                echo fail
-                echo "$DIFF"
+        	echo pass
             fi
-        else
-            echo pass
-        fi
+	done
+	cd $1/examples
     done
-    cd $1/examples
 done
 
 cd $CWD
diff --git a/debian/control b/debian/control
index 50636ab..ab87296 100644
--- a/debian/control
+++ b/debian/control
@@ -31,9 +31,8 @@ Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
 Package: libsundials-parallel
 Architecture: any
 Depends: libsundials-cvode1, libsundials-cvodes2, libsundials-ida2,
- libsundials-idas0, libsundials-kinsol1, ${misc:Depends}, mpi-default-run
-Conflicts: libsundials-par0
-Replaces: libsundials-par0
+ libsundials-idas0, libsundials-kinsol1, libsundials-nvecparallel0,
+ ${misc:Depends}, mpi-default-run
 Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
  The family of solvers referred to as SUNDIALS consists of solvers CVODE
  (for ODE systems), CVODES (ODE with sensitivity analysis capabilities),
@@ -42,9 +41,7 @@ Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
  .
  This package depends on all other packages containing the shared
  libraries for the subcomponents of SUNDIALS: CVODE, CVODES, IDA,
- KINSOL, and NVECTOR_PAR.
- .
- This package provides MPI version
+ KINSOL, and NVECTOR_PARALLEL.
 
 Package: libsundials-cvode1
 Architecture: any
@@ -121,16 +118,15 @@ Description: SUNDIALS development files
  SUNDIALS in C and, in case of FCVODE and FKINSOL, Fortran.  It also
  contains various example programs distributed by the upstream authors.
 
-Package: libsundials-parallel-dev
+Package: libsundials-nvecparallel-dev
 Section: libdevel
 Architecture: any
-Depends: libsundials-parallel (= ${binary:Version}), libsundials-nvecparallel0 (= ${binary:Version}), ${misc:Depends}
-Description: SUNDIALS development files
- The family of solvers referred to as SUNDIALS (SUite of Nonlinear and
- DIfferential/ALgebraic equation Solvers) consists of solvers CVODE
- (for ODE systems), CVODES (ODE with sensitivity analysis capabilities),
- IDA (for differential-algebraic systems), and KINSOL (for nonlinear
- algebraic systems).
+Depends: libsundials-nvecparallel0 (= ${binary:Version}), ${misc:Depends}
+Description: MPI vector operations library (SUNDIALS library)
+ This package provides implementations for all vector operations
+ defined by the generic NVECTOR module in the table of operations for
+ SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation
+ Solvers).
  .
  This package contains files necessary for development applications using
  SUNDIALS in C and, in case of FCVODE and FKINSOL, Fortran.  It also
@@ -178,15 +174,19 @@ Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
  .
  This package contains the debugging symbols for SUNDIALS.
 
-Package: libsundials-parallel-dbg
+Package: libsundials-nvecparallel-dbg
 Section: debug
 Architecture: any
 Priority: extra
-Depends: libsundials-parallel, ${misc:Depends}
-Description: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
- The family of solvers referred to as SUNDIALS consists of solvers CVODE
- (for ODE systems), CVODES (ODE with sensitivity analysis capabilities),
- IDA (for differential-algebraic systems), and KINSOL (for nonlinear
- algebraic systems).
+Depends: libsundials-nvecparallel0 (= ${binary:Version}), ${misc:Depends}
+Description: MPI vector operations library (SUNDIALS library)
+ This package provides implementations for all vector operations
+ defined by the generic NVECTOR module in the table of operations for
+ SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation
+ Solvers).
  .
- This package contains the debugging symbols for SUNDIALS.
+ This package contains files necessary for development applications using
+ SUNDIALS in C and, in case of FCVODE and FKINSOL, Fortran.  It also
+ contains various example programs distributed by the upstream authors.
+ .
+ This package contains the debugging symbols.
diff --git a/debian/libsundials-cvode0.install b/debian/libsundials-cvode0.install
deleted file mode 100644
index 51e86a6..0000000
--- a/debian/libsundials-cvode0.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/libsundials_cvode.so.*
diff --git a/debian/libsundials-cvodes1.install b/debian/libsundials-cvodes1.install
deleted file mode 100644
index 1c26287..0000000
--- a/debian/libsundials-cvodes1.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/libsundials_cvodes.so.*
diff --git a/debian/libsundials-ida1.install b/debian/libsundials-ida1.install
deleted file mode 100644
index c3066dd..0000000
--- a/debian/libsundials-ida1.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/libsundials_ida.so.*
diff --git a/debian/libsundials-kinsol0.install b/debian/libsundials-kinsol0.install
deleted file mode 100644
index 4c515ed..0000000
--- a/debian/libsundials-kinsol0.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/libsundials_kinsol.so.*
diff --git a/debian/libsundials-nvecparallel-dev.install b/debian/libsundials-nvecparallel-dev.install
new file mode 100644
index 0000000..b78754a
--- /dev/null
+++ b/debian/libsundials-nvecparallel-dev.install
@@ -0,0 +1,4 @@
+usr/lib/libsundials_nvecparallel.a
+usr/lib/libsundials_fnvecparallel.a
+usr/lib/libsundials_nvecparallel.so
+usr/lib/libsundials_fnvecparallel.so
diff --git a/debian/libsundials-parallel.lintian-overrides b/debian/libsundials-parallel.lintian-overrides
new file mode 100644
index 0000000..b4e8118
--- /dev/null
+++ b/debian/libsundials-parallel.lintian-overrides
@@ -0,0 +1,2 @@
+# This package will install all serial libraries
+libsundials-parallel: empty-binary-package
diff --git a/debian/libsundials-serial-dev.install b/debian/libsundials-serial-dev.install
index bb55b05..25e71f7 100644
--- a/debian/libsundials-serial-dev.install
+++ b/debian/libsundials-serial-dev.install
@@ -1,6 +1,13 @@
-usr/include
-usr/lib/lib*a
-usr/lib/lib*.so
-bin/sundials-config usr/bin/sundials-config
+usr/lib/libsundials_cvode*.a
+usr/lib/libsundials_cvode*.so
+usr/lib/libsundials_ida*.a
+usr/lib/libsundials_ida*.so
+usr/lib/libsundials_kinsol.a
+usr/lib/libsundials_*serial.a
+usr/lib/libsundials_*serial.so
+
+usr/lib/libsundials_kinsol.so
+
+bin/sundials-config usr/bin
 
 debian/sundials-config.1 usr/share/man/man1
diff --git a/debian/rules b/debian/rules
index 683d2d8..4475cf7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,8 @@ CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
 
-debusr := $(DEB_DESTDIR)usr
-debexp = debian/libsundials-serial-dev/usr/share/doc/libsundials-serial-dev/examples
+#workaround to start MPI-applications in chroot
+export OMPI_MCA_plm_rsh_agent=/bin/false
 
 extra_flags += \
    -DCMAKE_Fortran_COMPILER=gfortran \
@@ -51,20 +51,21 @@ override_dh_auto_install:
 	dh_auto_install
 #
 #install/octave-sundials::
-	mkdir -p debian/tmp/$(mpath)
 	mkdir -p debian/tmp/$(bpath)/sundialsTB/cvodes/cvm/
 	mv sundialsTB/octave/sundialsTB/cvodes/cvm/cvm.mex debian/tmp/$(bpath)/sundialsTB/cvodes/cvm
 	mkdir -p debian/tmp/$(bpath)/sundialsTB/idas/idm/
 	mv sundialsTB/octave/sundialsTB/idas/idm/idm.mex debian/tmp/$(bpath)/sundialsTB/idas/idm
 	mkdir -p debian/tmp/$(bpath)/sundialsTB/kinsol/kim
 	mv sundialsTB/octave/sundialsTB/kinsol/kim/kim.mex debian/tmp/$(bpath)/sundialsTB/kinsol/kim
+	
+	mkdir -p debian/tmp/$(mpath)
 	mv sundialsTB/octave/* debian/tmp/$(mpath)
 	rm debian/tmp/$(mpath)/sundialsTB/LICENSE
 #
 #install sundials-config
 	cp bin/sundials-config.in bin/sundials-config
 	perl -pi -e "s|\@SHELL\@|/bin/bash|" bin/sundials-config
-	
+
 	dh_install -a -Nlibsundials-doc
 	dh_install -plibsundials-doc -X.txt -X.out -X.in -XREADME
 	
@@ -75,9 +76,17 @@ override_dh_auto_install:
 override_dh_strip:
 	find debian/tmp/$(bpath) -name \*.mex | xargs -r strip
 
-	dh_strip -a -Nlibsundials-serial -Nlibsundials-parallel
-	dh_strip -plibsundials-serial --dbg-package=libsundials-serial-dbg
-	dh_strip -plibsundials-parallel --dbg-package=libsundials-parallel-dbg
+	dh_strip -plibsundials-cvode1 --dbg-package=libsundials-serial-dbg 
+	dh_strip -plibsundials-cvodes2 --dbg-package=libsundials-serial-dbg
+	dh_strip -plibsundials-ida2 --dbg-package=libsundials-serial-dbg
+	dh_strip -plibsundials-idas0 --dbg-package=libsundials-serial-dbg
+	dh_strip -plibsundials-kinsol1 --dbg-package=libsundials-serial-dbg
+	dh_strip -plibsundials-nvecserial0 --dbg-package=libsundials-serial-dbg
+	
+	dh_strip -plibsundials-nvecparallel0 --dbg-package=libsundials-nvecparallel-dbg
+	dh_strip -a
+	
+	ls -l debian/tmp/usr/lib
 
 override_dh_auto_clean:
 	find examples \

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



More information about the debian-science-commits mailing list