[hdf5] 15/26: debian/rules: fix soname retrieval

Gilles Filippini pini at debian.org
Sun Jan 24 15:33:17 UTC 2016


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

pini pushed a commit to branch master-1.10
in repository hdf5.

commit c91efeef6552a3f4ef1e6c98de6b4aefde00cbe1
Author: Gilles Filippini <pini at debian.org>
Date:   Sat Jan 23 22:23:12 2016 +0100

    debian/rules: fix soname retrieval
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index bff4ebc..7f123f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,10 +18,15 @@ version ?= $(shell echo $(pkgversion) | sed 's/\([0-9\.]\)\(+docs[0-9]*\)\?-[^-]
 
 # Get sonames from config/lt_vers.am
 include config/lt_vers.am
-INTERFACES := @ _CXX _F _HL _HL_CXX _F _TOOLS
+INTERFACES := @ _CXX _F _HL _HL_CXX _HL_F _TOOLS
 istr = $(subst @,,$(interface))
 $(foreach interface,$(INTERFACES),$(eval \
-  SONAME$(istr) := $(shell echo $$(($(LT$(istr)_VERS_INTERFACE) - $(LT$(istr)_VERS_AGE))))))
+  SONAME$(istr) := $(shell if [ -n "$(LT$(istr)_VERS_INTERFACE)" ]; then \
+                             echo $$(($(LT$(istr)_VERS_INTERFACE) - $(LT$(istr)_VERS_AGE))); \
+                           fi)))
+# Default to SONAME when empty
+$(foreach interface,$(INTERFACES),$(eval \
+  SONAME$(istr) := $(shell soname=$(SONAME$(istr)); echo $${soname:-$(SONAME)})))
 
 # Informative target
 sonames:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/hdf5.git



More information about the Pkg-grass-devel mailing list