[netcdf] 08/19: Use NETCDF_LIB_NAME to change sonames

Alastair McKinstry mckinstry at moszumanska.debian.org
Sun Apr 17 15:35:02 UTC 2016


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

mckinstry pushed a commit to branch dev-coinstallable
in repository netcdf.

commit 4388d8ab859cff989d2e39e30d013291670fcb05
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sat Feb 20 09:12:26 2016 +0000

    Use NETCDF_LIB_NAME to change sonames
---
 debian/rules | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 96d79d3..36c58d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,7 +40,8 @@ override_dh_auto_configure:
 		-DENABLE_DOXYGEN:BOOL=ON \
 		-DENABLE_PNETCDF=ON \
 		-DPNETCDF_INCLUDE_DIR=/usr/include \
-		-DCMAKE_C_COMPILER=mpicc 
+		-DCMAKE_C_COMPILER=mpicc  \
+		-DNETCDF_LIB_NAME=netcdf_pnetcdf 
 	dh_auto_configure --builddirectory=build-mpi --  \
 		-DCMAKE_SKIP_RPATH:BOOL=ON \
 		-DENABLE_PARALLEL_TESTS:BOOL=OFF \
@@ -56,7 +57,8 @@ override_dh_auto_configure:
 		-DHDF5_HL_LIB=$(LIBDIR)/hdf5/$(MPI)/libhdf5_hl.so \
 		-DCMAKE_C_FLAGS="${CFLAGS} -DHDF5_PARALLEL" \
 		-DLIBLIB_VERSION_SCRIPT=-Wl,--version-script,$(CURDIR)/debian/netcdf-mpi.ver \
-		-DCMAKE_C_COMPILER=mpicc 
+		-DCMAKE_C_COMPILER=mpicc  \
+		-DNETCDF_LIB_NAME=netcdf_pnetcdf 
 
 override_dh_auto_build:
 	$(MAKE) -C build-serial 
@@ -102,7 +104,7 @@ override_dh_auto_install:
 	sed -e 's%@MULTIARCH@%$(DEB_HOST_MULTIARCH)%g' < debian/libnetcdf-dev.postinst.in \
 		> debian/libnetcdf-dev.postinst
 	# Strip RPATH
-	-find $(CURDIR)/debian/tmp/usr/bin -type f -not -name nc-config -exec chrpath --delete {} \;
+	-find $(CURDIR)/debian/tmp/usr/bin -type f -not -name nc-config -exec hrpath --delete {} \;
 	-find $(CURDIR)/debian/tmp/usr/lib -type f -name "*.so*" -exec chrpath --delete {} \;
 	dh_link -p libnetcdf-dev .            $(LIBDIR)/netcdf/serial/lib
 	dh_link -p libnetcdf-dev /usr/include $(LIBDIR)/netcdf/serial/include

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



More information about the Pkg-grass-devel mailing list