[pyferret] 73/110: Set SONAME on shared extension
Alastair McKinstry
mckinstry at moszumanska.debian.org
Fri Jul 28 08:42:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository pyferret.
commit 1d519b26d90321f0677b0fab97e403115a6adf80
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Sat Aug 13 23:02:09 2016 +0100
Set SONAME on shared extension
---
debian/patches/series | 1 +
debian/patches/soname-fix.patch | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 8d7fbd3..a3fb7be 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ set-envvars.patch
automate-tests.parch
python3.patch
reproducible.patch
+soname-fix.patch
diff --git a/debian/patches/soname-fix.patch b/debian/patches/soname-fix.patch
new file mode 100644
index 0000000..8ea1602
--- /dev/null
+++ b/debian/patches/soname-fix.patch
@@ -0,0 +1,35 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+
+Index: pyferret-7.0.0/Makefile
+===================================================================
+--- pyferret-7.0.0.orig/Makefile
++++ pyferret-7.0.0/Makefile
+@@ -54,7 +54,8 @@ pymod_optimized_build :
+ export PIXMAN_LIBDIR=$(PIXMAN_LIBDIR) ; \
+ export HDF5_LIBDIR=$(HDF5_LIBDIR) ; \
+ export NETCDF4_LIBDIR=$(NETCDF4_LIBDIR) ; \
+- $(PYTHON_EXE) setup.py --quiet build )
++ export LDFLAGS="$(LDFLAGS) -Wl,--soname=libpyferret.so" ;\
++ $(PYTHON_EXE) setup.py --verbose build )
+
+ ## The following installs libpyferret.so and optimized
+ ## versions of all the python scripts into $(DIR_PREFIX)/install.
+@@ -69,7 +70,8 @@ pymod_optimized_install :
+ export PIXMAN_LIBDIR=$(PIXMAN_LIBDIR) ; \
+ export HDF5_LIBDIR=$(HDF5_LIBDIR) ; \
+ export NETCDF4_LIBDIR=$(NETCDF4_LIBDIR) ; \
+- $(PYTHON_EXE) setup.py --quiet install -O2 --prefix=$(DIR_PREFIX)/install )
++ export LDFLAGS="$(LDFLAGS) -Wl,--soname=libpyferret.so" ;\
++ $(PYTHON_EXE) setup.py --verbose install -O2 --prefix=$(DIR_PREFIX)/install )
+
+ .PHONY : externals_optimized
+ externals_optimized :
+@@ -147,7 +149,7 @@ update :
+ export PIXMAN_LIBDIR=$(PIXMAN_LIBDIR) ; \
+ export HDF5_LIBDIR=$(HDF5_LIBDIR) ; \
+ export NETCDF4_LIBDIR=$(NETCDF4_LIBDIR) ; \
+- $(PYTHON_EXE) setup.py --quiet install -O2 --prefix=$(INSTALL_FER_DIR) )
++ $(PYTHON_EXE) setup.py --verbose install -O2 --prefix=$(INSTALL_FER_DIR) )
+
+ ## Execute the RUN_TESTS.sh tests
+ .PHONY : run_tests
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyferret.git
More information about the debian-science-commits
mailing list