[petsc] 01/02: add links to shared library

Drew Parsons dparsons at moszumanska.debian.org
Fri Oct 2 11:40:46 UTC 2015


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

dparsons pushed a commit to branch master
in repository petsc.

commit 7f62bc1533f8d7014377b7e5ef95f59a33a4b8fc
Author: Drew Parsons <dparsons at debian.org>
Date:   Fri Oct 2 19:24:44 2015 +0800

    add links to shared library
    
    flagged by lintian:
      ldconfig-symlink-missing-for-shlib
      dev-pkg-without-shlib-symlink
    
    libpetsc.so -> libpetsc.so.3.6 -> libpetsc.so.3.6.1
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 94fd7ec..ccdc1f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,8 @@ PETSC_DEBUG_BUILD_DIR=$(PETSC_ARCH)-cxx-debug
 # PETSC_VERSION is used for the package names, library sonames, and
 # /usr/lib/petscdir subdirectory names.
 PETSC_VERSION=3.6.1$(PETSC_EXT)
+# use only major.minor as general soname (rather than major.minor.patch.build)
+PETSC_SONAME_VERSION=$(shell echo $(PETSC_VERSION) | awk 'BEGIN { FS="."}; {print $$1"."$$2 }')
 
 # PETSC_NAME is the install dir under /usr/lib and the base for package names
 PETSC_NAME=petsc$(PETSC_VERSION)
@@ -153,6 +155,8 @@ override_dh_install:
 	dh_install -p$(PETSC_VERSIONED_PACKAGE) --sourcedir $(PACKAGE_INSTALL_BASEDIR) --exclude=*html  $(PETSC_DIR_PREFIX)/lib/libpetsc.so.$(PETSC_VERSION)  usr/lib/$(DEB_HOST_MULTIARCH)
 	dh_install -p$(PETSC_VERSIONED_DEV_PACKAGE) --sourcedir $(PACKAGE_INSTALL_BASEDIR) --autodest --exclude=*html --exclude=libpetsc.so.$(PETSC_VERSION)  usr
 	dh_link -p$(PETSC_VERSIONED_DEV_PACKAGE)  usr/lib/$(DEB_HOST_MULTIARCH)/libpetsc.so.$(PETSC_VERSION)  $(PETSC_DIR_PREFIX)/lib/libpetsc.so.$(PETSC_VERSION)
+	dh_link -p$(PETSC_VERSIONED_PACKAGE)  usr/lib/$(DEB_HOST_MULTIARCH)/libpetsc.so.$(PETSC_VERSION)  usr/lib/$(DEB_HOST_MULTIARCH)/libpetsc.so.$(PETSC_SONAME_VERSION)
+	dh_link -p$(PETSC_VERSIONED_PACKAGE)  usr/lib/$(DEB_HOST_MULTIARCH)/libpetsc.so.$(PETSC_SONAME_VERSION)  usr/lib/$(DEB_HOST_MULTIARCH)/libpetsc.so
 	dh_install -p$(PETSC_DEBUG_PACKAGE) --sourcedir $(PACKAGE_DEBUG_INSTALL_BASEDIR) --autodest --exclude=*html  usr
 
 

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