[hdf5] 07/17: debian/update-symbols-files-soname: fix script to match distinct sonames
Gilles Filippini
pini at debian.org
Thu Dec 21 22:06:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to branch master
in repository hdf5.
commit fad8333a10306fbcb8fc6a5247da1136399dd18d
Author: Gilles Filippini <pini at debian.org>
Date: Thu Oct 5 21:03:24 2017 +0200
debian/update-symbols-files-soname: fix script to match distinct sonames
---
debian/rules | 4 ++++
debian/update-symbols-files-soname | 25 ++++++++++++++++++++-----
2 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index e18646f..400ac7b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -152,6 +152,10 @@ DEBIAN_OUT := $(shell \
.SECONDARY: $(DEBIAN_OUT)
+# Print sonames
+sonames:
+ @$(foreach interface,$(INTERFACES),echo "SONAME$(istr)=$(SONAME$(istr))" &&) true
+
# Informative target
info: VARIABLES := package pkgversion upstreamversion libversion $(foreach interface,$(INTERFACES),SONAME$(istr))
info: VARIABLES += FLAVORS DH_OPTIONS DEBIAN_OUT
diff --git a/debian/update-symbols-files-soname b/debian/update-symbols-files-soname
index 28bd0d4..a63b3ec 100755
--- a/debian/update-symbols-files-soname
+++ b/debian/update-symbols-files-soname
@@ -5,11 +5,26 @@ set -e
eval "$(debian/rules sonames)"
[ -f "debian/libhdf5-$SONAME.symbols" ] || mv debian/libhdf5-[0-9]*.symbols "debian/libhdf5-$SONAME.symbols"
-[ -f "debian/libhdf5-cpp-$SONAME.symbols" ] || mv debian/libhdf5-cpp-[0-9]*.symbols "debian/libhdf5-cpp-$SONAME.symbols"
+[ -f "debian/libhdf5-cpp-$SONAME_CXX.symbols" ] || mv debian/libhdf5-cpp-[0-9]*.symbols "debian/libhdf5-cpp-$SONAME_CXX.symbols"
[ -f "debian/libhdf5-openmpi-$SONAME.symbols" ] || mv debian/libhdf5-openmpi-[0-9]*.symbols "debian/libhdf5-openmpi-$SONAME.symbols"
[ -f "debian/libhdf5-mpich-$SONAME.symbols" ] || mv debian/libhdf5-mpich-[0-9]*.symbols "debian/libhdf5-mpich-$SONAME.symbols"
-sed -ri '/^lib/{s/([\.-])[0-9]+/\1'"$SONAME"'/g}' "debian/libhdf5-$SONAME.symbols"
-sed -ri '/^lib/{s/([\.-])[0-9]+/\1'"$SONAME_CXX"'/g}' "debian/libhdf5-cpp-$SONAME_CXX.symbols"
-sed -ri '/^lib/{s/([\.-])[0-9]+/\1'"$SONAME"'/g}' "debian/libhdf5-openmpi-$SONAME.symbols"
-sed -ri '/^lib/{s/([\.-])[0-9]+/\1'"$SONAME"'/g}' "debian/libhdf5-mpich-$SONAME.symbols"
+for flavor in serial openmpi mpich; do
+ if [ $flavor != serial ]; then
+ flavor_string="-$flavor"
+ else
+ flavor_string=""
+ fi
+ symbols_file=libhdf5${flavor_string}-$SONAME.symbols
+ sed -ri \
+ -e "/^libhdf5_${flavor}.so/{s/\.[0-9]+/.$SONAME/;s/-[0-9]+/-$SONAME/}" \
+ -e "/^libhdf5_${flavor}_fortran.so/{s/\.[0-9]+/.$SONAME_F/;s/-[0-9]+/-$SONAME/}" \
+ -e "/^libhdf5_${flavor}_hl.so/{s/\.[0-9]+/.$SONAME_HL/;s/-[0-9]+/-$SONAME/}" \
+ -e "/^libhdf5_${flavor}hl_fortran.so/{s/\.[0-9]+/.$SONAME_HL_F/;s/-[0-9]+/-$SONAME/}" \
+ debian/$symbols_file
+done
+
+sed -ri \
+ -e "/^libhdf5_cpp.so/{s/\.[0-9]+/.$SONAME_CXX/;s/-[0-9]+/-$SONAME/}" \
+ -e "/^libhdf5_hl_cpp.so/{s/\.[0-9]+/.$SONAME_HL_CXX/;s/-[0-9]+/-$SONAME/}" \
+ debian/libhdf5-cpp-$SONAME_CXX.symbols
--
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