[petsc] 03/06: add dummy soname version libpetsc3.6-dev
Drew Parsons
dparsons at moszumanska.debian.org
Fri Apr 1 00:34:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
dparsons pushed a commit to branch master
in repository petsc.
commit 76a3bb8d1e1d1c6db641d8e727be28df1b430114
Author: Drew Parsons <dparsons at debian.org>
Date: Wed Mar 30 21:34:57 2016 +0800
add dummy soname version libpetsc3.6-dev
libpetsc3.6-dev is a dummy package depending on the latest patch
version (libpetsc3.6.3-dev). Different patch versions may be
installed in parallel (e.g. 3.6.2 and 3.6.3), but they share the same
soname (3.6). The preferred version for libpetsc.so.3.6 is controlled
(by the specific patch version) using alternatives.
Client packages should normally depend on libpetsc3.6-dev (or
petsc-dev) instead of libpetsc3.6.3-dev.
Likewise for libpetsc-complex-3.6-dev.
---
debian/changelog | 8 +++++
debian/control | 40 +++++++++++++++++++---
debian/libpetsc-complex-3.6.3-dev.postinst | 6 +++-
debian/libpetsc-complex-3.6.3.lintian-overrides | 11 ++++++
....6.postinst => libpetsc-complex-3.6.3.postinst} | 4 +++
...plex-3.6.prerm => libpetsc-complex-3.6.3.prerm} | 1 +
debian/libpetsc-complex-3.6.lintian-overrides | 11 ------
debian/libpetsc3.6.3-dev.postinst | 6 +++-
debian/libpetsc3.6.3.lintian-overrides | 8 +++++
...libpetsc3.6.postinst => libpetsc3.6.3.postinst} | 4 +++
debian/{libpetsc3.6.prerm => libpetsc3.6.3.prerm} | 1 +
debian/libpetsc3.6.lintian-overrides | 8 -----
12 files changed, 83 insertions(+), 25 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b9b7fcf..7724f3d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,14 @@ petsc (3.6.3.dfsg2-1) UNRELEASED; urgency=medium
examples, implying redistribution is not permitted. These files
are therefore excluded from the Debian source package (blacklisted
in debian/copyright).
+ * libpetsc3.6-dev is a dummy package depending on the latest patch
+ version (libpetsc3.6.3-dev). Different patch versions may be
+ installed in parallel (e.g. 3.6.2 and 3.6.3), but they share the
+ same soname (3.6). The preferred version for libpetsc.so.3.6 is
+ controlled (by the specific patch version) using alternatives.
+ Client packages should normally depend on libpetsc3.6-dev (or
+ petsc-dev) instead of libpetsc3.6.3-dev.
+ Likewise for libpetsc-complex-3.6-dev.
-- Drew Parsons <dparsons at debian.org> Wed, 30 Mar 2016 19:13:53 +0800
diff --git a/debian/control b/debian/control
index a861bec..4709ff5 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,22 @@ Vcs-Git: git://anonscm.debian.org/debian-science/packages/petsc.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/petsc.git
Homepage: http://www.mcs.anl.gov/petsc
+Package: libpetsc3.6-dev
+Multi-Arch: same
+Architecture: linux-any hurd-any
+Section: libdevel
+Depends: libpetsc3.6.3-dev, ${misc:Depends}, ${python:Depends}
+Description: Static libraries, shared links, header files for PETSc
+ PETSc is the "Portable Extensible Toolkit for Scientific Computation", a suite
+ of data structures and routines for the scalable (parallel) solution of
+ scientific applications modeled by partial differential equations. It employs
+ the MPI standard for all message-passing communication. Several sample
+ scientific applications, as well as various papers and talks, demonstrate the
+ features of the PETSc libraries.
+ .
+ This package provides the development files for building applications
+ using PETSc 3.6.
+
Package: libpetsc3.6.3-dev
Multi-Arch: same
Architecture: linux-any hurd-any
@@ -57,7 +73,7 @@ Description: Virtual package depending on latest PETSc development package
This metapackage will always depend on the most recent version of petscX-dev
(X=version), so if you install it then you will get upgrades automatically.
-Package: libpetsc3.6
+Package: libpetsc3.6.3
Architecture: linux-any hurd-any
Multi-Arch: same
Section: libs
@@ -71,7 +87,7 @@ Description: Shared libraries for version 3.6 of PETSc
scientific applications, as well as various papers and talks, demonstrate the
features of the PETSc libraries.
.
- This package contains the latest PETSc 3.6 shared library.
+ This package contains version 3.6.3 of the PETSc 3.6 shared library.
Package: libpetsc3.6.3-dbg
Architecture: linux-any hurd-any
@@ -111,6 +127,22 @@ Description: Documentation and examples for PETSc
.
This package contains documentation for developing with PETSc 3.6.3.
+Package: libpetsc-complex-3.6-dev
+Multi-Arch: same
+Architecture: linux-any hurd-any
+Section: libdevel
+Depends: libpetsc-complex-3.6.3-dev, ${misc:Depends}, ${python:Depends}
+Description: Static libraries, shared links, header files for PETSc
+ PETSc is the "Portable Extensible Toolkit for Scientific Computation", a suite
+ of data structures and routines for the scalable (parallel) solution of
+ scientific applications modeled by partial differential equations. It employs
+ the MPI standard for all message-passing communication. Several sample
+ scientific applications, as well as various papers and talks, demonstrate the
+ features of the PETSc libraries.
+ .
+ This package provides the development files for building applications
+ using PETSc 3.6 with support for complex numbers.
+
Package: libpetsc-complex-3.6.3-dev
Architecture: linux-any hurd-any
Multi-Arch: same
@@ -136,7 +168,7 @@ Description: Static libraries, shared links, header files for PETSc
.
This deactivates support for HYPRE.
-Package: libpetsc-complex-3.6
+Package: libpetsc-complex-3.6.3
Architecture: linux-any hurd-any
Multi-Arch: same
Section: libs
@@ -150,7 +182,7 @@ Description: Shared libraries for version 3.6 of PETSc with Complex Numbers
scientific applications, as well as various papers and talks, demonstrate the
features of the PETSc libraries.
.
- This package contains the latest PETSc 3.6 shared library
+ This package contains version 3.6.3 of the PETSc 3.6 shared library
and supports complex numbers.
Package: libpetsc-complex-3.6.3-dbg
diff --git a/debian/libpetsc-complex-3.6.3-dev.postinst b/debian/libpetsc-complex-3.6.3-dev.postinst
index 80285bf..53dc8fd 100644
--- a/debian/libpetsc-complex-3.6.3-dev.postinst
+++ b/debian/libpetsc-complex-3.6.3-dev.postinst
@@ -16,12 +16,16 @@ if [ "$1" = "configure" ]; then
update-alternatives --install /usr/lib/petsc petsc ${PETSC_DIR_COMPLEX} ${PETSC_VERSION_NUMBER}73 \
--slave /usr/lib/libpetsc.so libpetsc.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so libpetsc.so.multiarch /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${SONAME} libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${PETSC_VERSION} libpetsc.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} \
--slave /usr/include/petsc petscinclude ${PETSC_DIR_COMPLEX}/include \
--slave /usr/lib/pkgconfig/PETSc.pc PETSc.pc ${PETSC_DIR_COMPLEX}/lib/pkgconfig/PETSc.pc \
--slave /usr/share/octave/site/m/petsc petsc-octave ${PETSC_DIR_COMPLEX}/share/petsc/matlab
# alternative base version of petsc complex
-update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so libpetsc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}73
+update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so libpetsc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}73 \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${SONAME} libpetsc_complex.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} libpetsc_complex.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION}
fi
diff --git a/debian/libpetsc-complex-3.6.3.lintian-overrides b/debian/libpetsc-complex-3.6.3.lintian-overrides
new file mode 100644
index 0000000..97c11ee
--- /dev/null
+++ b/debian/libpetsc-complex-3.6.3.lintian-overrides
@@ -0,0 +1,11 @@
+# libpetsc-complex-3.6 provides an alternative (libpetc.so.3.6) for libpetsc3.6
+libpetsc-complex-3.6.3: package-name-doesnt-match-sonames libpetsc3.6
+
+# libpetsc.so.3.6 soname links are managed by alternatives (libpetc.so.3.6)
+libpetsc-complex-3.6.3: ldconfig-symlink-missing-for-shlib usr/lib/x86_64-linux-gnu/libpetsc.so.3.6 usr/lib/x86_64-linux-gnu/libpetsc-complex.so.3.6.3 libpetsc.so.3.6
+
+# the libpetsc.so link is managed by alternatives in libpetsc-complex-3.6.3-dev (alternative petsc)
+libpetsc-complex-3.6.3: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc-complex.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc.so
+
+# libpetsc_complex.so is handled by alternatives in libpetsc-complex-3.6.3-dev
+libpetsc-complex-3.6.3: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc_complex.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc_complex.so
diff --git a/debian/libpetsc-complex-3.6.postinst b/debian/libpetsc-complex-3.6.3.postinst
similarity index 69%
rename from debian/libpetsc-complex-3.6.postinst
rename to debian/libpetsc-complex-3.6.3.postinst
index 5d48217..f1f3229 100644
--- a/debian/libpetsc-complex-3.6.postinst
+++ b/debian/libpetsc-complex-3.6.3.postinst
@@ -10,8 +10,12 @@ SONAME=$( echo ${PETSC_VERSION} | awk 'BEGIN { FS="."}; {print $1"."$2 }' )
# Make alternatives links
if [ "$1" = "configure" ]; then
+ # alternative petsc version (for given soname), real or complex
update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${SONAME} libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}73 \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${PETSC_VERSION} libpetsc.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION}
+
+ # alternative complex version (for given soname)
+ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${SONAME} libpetsc_complex.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}73
fi
diff --git a/debian/libpetsc-complex-3.6.prerm b/debian/libpetsc-complex-3.6.3.prerm
similarity index 77%
rename from debian/libpetsc-complex-3.6.prerm
rename to debian/libpetsc-complex-3.6.3.prerm
index 6f1d03a..e8b9724 100644
--- a/debian/libpetsc-complex-3.6.prerm
+++ b/debian/libpetsc-complex-3.6.3.prerm
@@ -8,6 +8,7 @@ SONAME=$( echo ${PETSC_VERSION} | awk 'BEGIN { FS="."}; {print $1"."$2 }' )
# Remove alternatives links
if [ "$1" = "remove" ]; then
update-alternatives --remove libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION}
+ update-alternatives --remove libpetsc_complex.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION}
fi
#DEBHELPER#
diff --git a/debian/libpetsc-complex-3.6.lintian-overrides b/debian/libpetsc-complex-3.6.lintian-overrides
deleted file mode 100644
index 80257fe..0000000
--- a/debian/libpetsc-complex-3.6.lintian-overrides
+++ /dev/null
@@ -1,11 +0,0 @@
-# libpetsc-complex-3.6 provides an alternative (libpetc.so.3.6) for libpetsc3.6
-libpetsc-complex-3.6: package-name-doesnt-match-sonames libpetsc3.6
-
-# libpetsc.so.3.6 soname links are managed by alternatives (libpetc.so.3.6)
-libpetsc-complex-3.6: ldconfig-symlink-missing-for-shlib usr/lib/x86_64-linux-gnu/libpetsc.so.3.6 usr/lib/x86_64-linux-gnu/libpetsc-complex.so.3.6.3 libpetsc.so.3.6
-
-# the libpetsc.so link is managed by alternatives in libpetsc-complex-3.6.3-dev (alternative petsc)
-libpetsc-complex-3.6: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc-complex.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc.so
-
-# libpetsc_complex.so is handled by alternatives in libpetsc-complex-3.6.3-dev
-libpetsc-complex-3.6: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc_complex.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc_complex.so
diff --git a/debian/libpetsc3.6.3-dev.postinst b/debian/libpetsc3.6.3-dev.postinst
index 0a0372a..12c28fc 100644
--- a/debian/libpetsc3.6.3-dev.postinst
+++ b/debian/libpetsc3.6.3-dev.postinst
@@ -16,12 +16,16 @@ if [ "$1" = "configure" ]; then
update-alternatives --install /usr/lib/petsc petsc ${PETSC_DIR_REAL} ${PETSC_VERSION_NUMBER}77 \
--slave /usr/lib/libpetsc.so libpetsc.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so libpetsc.so.multiarch /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${SONAME} libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${PETSC_VERSION} libpetsc.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} \
--slave /usr/include/petsc petscinclude ${PETSC_DIR_REAL}/include \
--slave /usr/lib/pkgconfig/PETSc.pc PETSc.pc ${PETSC_DIR_REAL}/lib/pkgconfig/PETSc.pc \
--slave /usr/share/octave/site/m/petsc petsc-octave ${PETSC_DIR_REAL}/share/petsc/matlab
# alternative base version of petsc real
-update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so libpetsc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}77
+update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so libpetsc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}77 \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${SONAME} libpetsc_real.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} libpetsc_real.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION}
fi
diff --git a/debian/libpetsc3.6.3.lintian-overrides b/debian/libpetsc3.6.3.lintian-overrides
new file mode 100644
index 0000000..aaa61b8
--- /dev/null
+++ b/debian/libpetsc3.6.3.lintian-overrides
@@ -0,0 +1,8 @@
+# libpetsc.so.3.6 soname links are managed by alternatives (libpetc.so.3.6)
+libpetsc3.6.3: ldconfig-symlink-missing-for-shlib usr/lib/x86_64-linux-gnu/libpetsc.so.3.6 usr/lib/x86_64-linux-gnu/libpetsc-real.so.3.6.3 libpetsc.so.3.6
+
+# the libpetsc.so link is managed by alternatives in libpetsc3.6.3-dev (alternative petsc)
+libpetsc3.6.3: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc-real.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc.so
+
+# libpetsc_real.so is handled by alternatives in libpetsc3.6.3-dev
+libpetsc3.6.3: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc_real.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc_real.so
diff --git a/debian/libpetsc3.6.postinst b/debian/libpetsc3.6.3.postinst
similarity index 69%
rename from debian/libpetsc3.6.postinst
rename to debian/libpetsc3.6.3.postinst
index 84b76d4..58f5135 100644
--- a/debian/libpetsc3.6.postinst
+++ b/debian/libpetsc3.6.3.postinst
@@ -10,8 +10,12 @@ SONAME=$( echo ${PETSC_VERSION} | awk 'BEGIN { FS="."}; {print $1"."$2 }' )
# Make alternatives links
if [ "$1" = "configure" ]; then
+ # alternative petsc version (for given soname), real or complex
update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${SONAME} libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}77 \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so.${PETSC_VERSION} libpetsc.so.${PETSC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION}
+
+ # alternative real version (for given soname)
+ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${SONAME} libpetsc_real.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION} ${PETSC_VERSION_NUMBER}77
fi
diff --git a/debian/libpetsc3.6.prerm b/debian/libpetsc3.6.3.prerm
similarity index 77%
rename from debian/libpetsc3.6.prerm
rename to debian/libpetsc3.6.3.prerm
index 6f4174d..f8f4f7d 100644
--- a/debian/libpetsc3.6.prerm
+++ b/debian/libpetsc3.6.3.prerm
@@ -8,6 +8,7 @@ SONAME=$( echo ${PETSC_VERSION} | awk 'BEGIN { FS="."}; {print $1"."$2 }' )
# Remove alternatives links
if [ "$1" = "remove" ]; then
update-alternatives --remove libpetsc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION}
+ update-alternatives --remove libpetsc_real.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_real.so.${PETSC_VERSION}
fi
#DEBHELPER#
diff --git a/debian/libpetsc3.6.lintian-overrides b/debian/libpetsc3.6.lintian-overrides
deleted file mode 100644
index 9804ff4..0000000
--- a/debian/libpetsc3.6.lintian-overrides
+++ /dev/null
@@ -1,8 +0,0 @@
-# libpetsc.so.3.6 soname links are managed by alternatives (libpetc.so.3.6)
-libpetsc3.6: ldconfig-symlink-missing-for-shlib usr/lib/x86_64-linux-gnu/libpetsc.so.3.6 usr/lib/x86_64-linux-gnu/libpetsc-real.so.3.6.3 libpetsc.so.3.6
-
-# the libpetsc.so link is managed by alternatives in libpetsc3.6.3-dev (alternative petsc)
-libpetsc3.6: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc-real.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc.so
-
-# libpetsc_real.so is handled by alternatives in libpetsc3.6.3-dev
-libpetsc3.6: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libpetsc_real.so.3.6.3 usr/lib/x86_64-linux-gnu/libpetsc_real.so
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git
More information about the debian-science-commits
mailing list