[med-svn] [phyml] 04/04: Use chrpath to remove RPATH from binary

Andreas Tille tille at debian.org
Sun Jan 15 16:08:12 UTC 2017


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

tille pushed a commit to branch master
in repository phyml.

commit f90f346b8a1fef9bfb432bc3cf84ba9ce38bdf64
Author: Andreas Tille <tille at debian.org>
Date:   Sun Jan 15 17:08:03 2017 +0100

    Use chrpath to remove RPATH from binary
---
 debian/changelog | 3 ++-
 debian/control   | 3 ++-
 debian/rules     | 7 +++++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3c02c02..8abfb90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ phyml (3:3.2.0+dfsg-4) UNRELEASED; urgency=medium
   * Add pocl-opencl-icd to autopkgtest dependencies to emulate CPU-based ICD
   * debhelper 10
   * d/watch: version=4
+  * Use chrpath to remove RPATH from binary
 
- -- Andreas Tille <tille at debian.org>  Sun, 15 Jan 2017 16:31:35 +0100
+ -- Andreas Tille <tille at debian.org>  Sun, 15 Jan 2017 16:34:08 +0100
 
 phyml (3:3.2.0+dfsg-3) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 01ae72c..80f3340 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,8 @@ Build-Depends: debhelper (>= 10),
                dh-autoreconf,
                pkg-config,
                libhmsbeagle-dev,
-               libopenmpi-dev
+               libopenmpi-dev,
+               chrpath
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/phyml.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/phyml.git
diff --git a/debian/rules b/debian/rules
index 9aa01c6..875ad17 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+
 %:
 	dh $@ --with autoreconf
 
@@ -35,8 +37,9 @@ override_dh_auto_build:
 override_dh_auto_install:
 	dh_auto_install
 	# install phyml binary we have kept safe above
-	mkdir -p $(CURDIR)/debian/phyml/usr/lib/phyml/bin
-	mv $(CURDIR)/debian/bin/* $(CURDIR)/debian/phyml/usr/lib/phyml/bin
+	mkdir -p $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/bin
+	mv $(CURDIR)/debian/bin/* $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/bin
+	chrpath --delete debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/bin/phyml*
 
 override_dh_auto_clean:
 	# save pdf from cleaning

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/phyml.git



More information about the debian-med-commit mailing list