[petsc] 01/01: Update debug alternatives at configure stage.

Drew Parsons dparsons at moszumanska.debian.org
Sun Apr 10 04:34:46 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 7112f69f9dd92832121e065afe7ceef7883f1f01
Author: Drew Parsons <dparsons at debian.org>
Date:   Sun Apr 10 12:34:12 2016 +0800

    Update debug alternatives at configure stage.
---
 debian/changelog                           | 6 ++++++
 debian/libpetsc-complex-3.6.3-dbg.postinst | 7 +++++--
 debian/libpetsc3.6.3-dbg.postinst          | 7 +++++--
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f800612..b961625 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+petsc (3.6.3.dfsg2-4) UNRELEASED; urgency=medium
+
+  * Update debug alternatives at configure stage.
+
+ -- Drew Parsons <dparsons at debian.org>  Sun, 10 Apr 2016 12:33:07 +0800
+
 petsc (3.6.3.dfsg2-3) unstable; urgency=medium
 
   * Drop old /usr/lib/libpetsc.so alternatives in debug packages.
diff --git a/debian/libpetsc-complex-3.6.3-dbg.postinst b/debian/libpetsc-complex-3.6.3-dbg.postinst
index 8ac3142..074da95 100644
--- a/debian/libpetsc-complex-3.6.3-dbg.postinst
+++ b/debian/libpetsc-complex-3.6.3-dbg.postinst
@@ -7,6 +7,10 @@ PETSC_ARCH=${DEB_HOST_MULTIARCH}
 PETSC_DEBUG_ARCH=${PETSC_ARCH}-complex-debug
 PETSC_VERSION_NUMBER=$( echo ${PETSC_VERSION} | sed "s/\.//g" )
 
+
+# Make alternatives links
+if [ "$1" = "configure" ]; then
+
 # alternative libpetsc.so.multiarch is deprecated
 # test if libpetsc.so.multiarch is still in use, so remove old petsc alternatives
 # This should be safe since Conflicts are set up with the dev package versions using deprecated libpetsc.so.multiarch.
@@ -17,13 +21,12 @@ if update-alternatives --query petsc | grep libpetsc.so.multiarch > /dev/null ;
   done
 fi
 
-# Make alternatives links
-if [ "$1" = "configure" ]; then
 update-alternatives --install /usr/lib/petsc petsc /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH} ${PETSC_VERSION_NUMBER}33 \
   --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so libpetsc.so /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/lib/libpetsc_complex.so.${PETSC_VERSION} \
   --slave /usr/include/petsc petscinclude /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/include \
   --slave /usr/lib/pkgconfig/PETSc.pc PETSc.pc /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/lib/pkgconfig/PETSc.pc \
   --slave /usr/share/octave/site/m/petsc petsc-octave /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/share/petsc/matlab
+
 fi
 
 
diff --git a/debian/libpetsc3.6.3-dbg.postinst b/debian/libpetsc3.6.3-dbg.postinst
index 9bd345c..25e22b5 100644
--- a/debian/libpetsc3.6.3-dbg.postinst
+++ b/debian/libpetsc3.6.3-dbg.postinst
@@ -7,6 +7,10 @@ PETSC_ARCH=${DEB_HOST_MULTIARCH}
 PETSC_DEBUG_ARCH=${PETSC_ARCH}-real-debug
 PETSC_VERSION_NUMBER=$( echo ${PETSC_VERSION} | sed "s/\.//g" )
 
+
+# Make alternatives links
+if [ "$1" = "configure" ]; then
+
 # alternative libpetsc.so.multiarch is deprecated
 # test if libpetsc.so.multiarch is still in use, so remove old petsc alternatives
 # This should be safe since Conflicts are set up with the dev package versions using deprecated libpetsc.so.multiarch.
@@ -17,13 +21,12 @@ if update-alternatives --query petsc | grep libpetsc.so.multiarch > /dev/null ;
   done
 fi
 
-# Make alternatives links
-if [ "$1" = "configure" ]; then
 update-alternatives --install /usr/lib/petsc petsc /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH} ${PETSC_VERSION_NUMBER}37 \
   --slave /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc.so libpetsc.so /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/lib/libpetsc_real.so.${PETSC_VERSION} \
   --slave /usr/include/petsc petscinclude /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/include \
   --slave /usr/lib/pkgconfig/PETSc.pc PETSc.pc /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/lib/pkgconfig/PETSc.pc \
   --slave /usr/share/octave/site/m/petsc petsc-octave /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_DEBUG_ARCH}/share/petsc/matlab
+
 fi
 
 

-- 
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