[slepc] 01/02: Move slepc3.7 alternatives handling from libslepc3.7-dev to libslepc3.7.3-dev.

Drew Parsons dparsons at moszumanska.debian.org
Mon Feb 6 08:27:06 UTC 2017


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

dparsons pushed a commit to tag debian/3.7.3+dfsg1-5
in repository slepc.

commit 63e3c731df0a951c274edd508294b89057e615b9
Author: Drew Parsons <dparsons at debian.org>
Date:   Mon Feb 6 16:00:13 2017 +0800

    Move slepc3.7  alternatives handling from libslepc3.7-dev to libslepc3.7.3-dev.
    
    Similarly slepc3.7-real. And slepc3.7-complex.
    
    Otherwise alternatives for older patch versions will be left
    unowned after upgrading.
    
    cf. bug#852514 for petsc.
---
 debian/changelog                           |  9 +++++++++
 debian/libslepc-complex-3.7-dev.postinst   | 25 -------------------------
 debian/libslepc-complex-3.7-dev.prerm      | 18 ------------------
 debian/libslepc-complex-3.7.3-dev.postinst | 11 +++++++++++
 debian/libslepc-complex-3.7.3-dev.prerm    |  7 +++++++
 debian/libslepc3.7-dev.postinst            | 25 -------------------------
 debian/libslepc3.7-dev.prerm               | 18 ------------------
 debian/libslepc3.7.3-dev.postinst          | 10 ++++++++++
 debian/libslepc3.7.3-dev.prerm             |  7 +++++++
 9 files changed, 44 insertions(+), 86 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2d05d53..4a37a82 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+slepc (3.7.3+dfsg1-5) UNRELEASED; urgency=medium
+
+  * Move slepc3.7 and slepc3.7-real alternatives handling from
+    libslepc3.7-dev to libslepc3.7.3-dev. Similarly slepc3.7-complex.
+    Otherwise alternatives for older patch versions will be left
+    unowned after upgrading. cf. bug#852514.
+
+ -- Drew Parsons <dparsons at debian.org>  Mon, 06 Feb 2017 15:57:44 +0800
+
 slepc (3.7.3+dfsg1-4) unstable; urgency=medium
 
   * patch-specific SLEPc dev packages depend on specific patch versions
diff --git a/debian/libslepc-complex-3.7-dev.postinst b/debian/libslepc-complex-3.7-dev.postinst
deleted file mode 100644
index ce128c3..0000000
--- a/debian/libslepc-complex-3.7-dev.postinst
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh -e
-
-DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
-
-SLEPC_VERSION=__SLEPC_VERSION__
-SLEPC_ARCH=${DEB_HOST_MULTIARCH}
-SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
-SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
-SONAME=__SLEPC_SONAME_VERSION__
-
-SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
-
-# Make alternatives links
-if [ "$1" = "configure" ]; then
-
-# alternative slepc for this soname (e.g. real or complex)
-update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
-
-# alternative complex slepc for this soname
-update-alternatives --install /usr/lib/slepcdir/${SONAME}-complex slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
-
-fi
-
-
-#DEBHELPER#
diff --git a/debian/libslepc-complex-3.7-dev.prerm b/debian/libslepc-complex-3.7-dev.prerm
deleted file mode 100644
index 6015d32..0000000
--- a/debian/libslepc-complex-3.7-dev.prerm
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -e
-
-DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
-
-SLEPC_VERSION=__SLEPC_VERSION__
-SLEPC_ARCH=${DEB_HOST_MULTIARCH}
-SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
-SONAME=__SLEPC_SONAME_VERSION__
-
-SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
-
-# Remove alternatives links
-if [ "$1" = "remove" ]; then
-  update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_COMPLEX}
-  update-alternatives --remove slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX}
-fi
-
-#DEBHELPER#
diff --git a/debian/libslepc-complex-3.7.3-dev.postinst b/debian/libslepc-complex-3.7.3-dev.postinst
index 15049e0..9a105ce 100644
--- a/debian/libslepc-complex-3.7.3-dev.postinst
+++ b/debian/libslepc-complex-3.7.3-dev.postinst
@@ -2,11 +2,15 @@
 
 DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
 
+SONAME=__SLEPC_SONAME_VERSION__
+
 SLEPC_VERSION=__SLEPC_VERSION__
 SLEPC_ARCH=${DEB_HOST_MULTIARCH}
 SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
 SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
 
+SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+
 # Make alternatives links
 if [ "$1" = "configure" ]; then
 
@@ -29,6 +33,13 @@ update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/${SLEPC_VER
 # alternative base version of slepc complex
 update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so libslepc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
 
+# alternative slepc for this X.Y soname (e.g. real or complex)
+update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
+
+# alternative complex slepc for this X.Y soname
+update-alternatives --install /usr/lib/slepcdir/${SONAME}-complex slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
+
+
 fi
 
 
diff --git a/debian/libslepc-complex-3.7.3-dev.prerm b/debian/libslepc-complex-3.7.3-dev.prerm
index 1cc68df..3cc3fa1 100644
--- a/debian/libslepc-complex-3.7.3-dev.prerm
+++ b/debian/libslepc-complex-3.7.3-dev.prerm
@@ -2,14 +2,21 @@
 
 DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
 
+SONAME=__SLEPC_SONAME_VERSION__
+
 SLEPC_VERSION=__SLEPC_VERSION__
 SLEPC_ARCH=${DEB_HOST_MULTIARCH}
 SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
 
+SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+
 # Remove alternatives links
 if [ "$1" = "remove" ]; then
   update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
   update-alternatives --remove libslepc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
+
+  update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_COMPLEX}
+  update-alternatives --remove slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX}
 fi
 
 #DEBHELPER#
diff --git a/debian/libslepc3.7-dev.postinst b/debian/libslepc3.7-dev.postinst
deleted file mode 100644
index ec3dfd6..0000000
--- a/debian/libslepc3.7-dev.postinst
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh -e
-
-DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
-
-SLEPC_VERSION=__SLEPC_VERSION__
-SLEPC_ARCH=${DEB_HOST_MULTIARCH}
-SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
-SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
-SONAME=__SLEPC_SONAME_VERSION__
-
-SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
-
-# Make alternatives links
-if [ "$1" = "configure" ]; then
-
-# alternative slepc for this soname (e.g. real or complex)
-update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
-
-# alternative real slepc for this soname
-update-alternatives --install /usr/lib/slepcdir/${SONAME}-real slepc${SONAME}-real ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
-
-fi
-
-
-#DEBHELPER#
diff --git a/debian/libslepc3.7-dev.prerm b/debian/libslepc3.7-dev.prerm
deleted file mode 100644
index 11ca610..0000000
--- a/debian/libslepc3.7-dev.prerm
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -e
-
-DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
-
-SLEPC_VERSION=__SLEPC_VERSION__
-SLEPC_ARCH=${DEB_HOST_MULTIARCH}
-SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
-SONAME=__SLEPC_SONAME_VERSION__
-
-SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
-
-# Remove alternatives links
-if [ "$1" = "remove" ]; then
-  update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_REAL}
-  update-alternatives --remove slepc${SONAME}-real ${SLEPC_DIR_REAL}
-fi
-
-#DEBHELPER#
diff --git a/debian/libslepc3.7.3-dev.postinst b/debian/libslepc3.7.3-dev.postinst
index fc86cd3..d375030 100644
--- a/debian/libslepc3.7.3-dev.postinst
+++ b/debian/libslepc3.7.3-dev.postinst
@@ -2,11 +2,15 @@
 
 DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
 
+SONAME=__SLEPC_SONAME_VERSION__
+
 SLEPC_VERSION=__SLEPC_VERSION__
 SLEPC_ARCH=${DEB_HOST_MULTIARCH}
 SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
 SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
 
+SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+
 # Make alternatives links
 if [ "$1" = "configure" ]; then
 
@@ -29,6 +33,12 @@ update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/${SLEPC_VER
 # alternative base version of slepc real
 update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
 
+# alternative slepc for this X.Y soname (e.g. real or complex)
+update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
+
+# alternative real slepc for this X.Y soname
+update-alternatives --install /usr/lib/slepcdir/${SONAME}-real slepc${SONAME}-real ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
+
 fi
 
 
diff --git a/debian/libslepc3.7.3-dev.prerm b/debian/libslepc3.7.3-dev.prerm
index a1a7487..1bad081 100644
--- a/debian/libslepc3.7.3-dev.prerm
+++ b/debian/libslepc3.7.3-dev.prerm
@@ -2,14 +2,21 @@
 
 DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__
 
+SONAME=__SLEPC_SONAME_VERSION__
+
 SLEPC_VERSION=__SLEPC_VERSION__
 SLEPC_ARCH=${DEB_HOST_MULTIARCH}
 SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
 
+SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+
 # Remove alternatives links
 if [ "$1" = "remove" ]; then
   update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
   update-alternatives --remove libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
+
+  update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_REAL}
+  update-alternatives --remove slepc${SONAME}-real ${SLEPC_DIR_REAL}
 fi
 
 #DEBHELPER#

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



More information about the debian-science-commits mailing list