From 7d7c3d262ac7f9fbc9e42e280b713df514cded4f Mon Sep 17 00:00:00 2001 From: Afif Elghraoui Date: Sat, 5 Mar 2016 20:21:04 -0800 Subject: [PATCH] Disable setting rpath for compiled modules --- debian/patches/rpath.patch | 22 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 23 insertions(+) create mode 100644 debian/patches/rpath.patch diff --git a/debian/patches/rpath.patch b/debian/patches/rpath.patch new file mode 100644 index 0000000..b6fb0c8 --- /dev/null +++ b/debian/patches/rpath.patch @@ -0,0 +1,22 @@ +Description: Disable setting rpath +Author: Afif Elghraoui +Forwarded: not-needed +Last-Update: 2016-03-05 +--- python-pysam.orig/cy_build.py ++++ python-pysam/cy_build.py +@@ -53,7 +53,7 @@ + ext._init_func(ext) + + if not self.inplace: +- ext.library_dirs.append(os.path.join(self.build_lib, "pysam")) ++ pass + + if sys.platform == 'darwin': + +@@ -82,6 +82,5 @@ + if not ext.extra_link_args: + ext.extra_link_args = [] + +- ext.extra_link_args += ['-Wl,-rpath,$ORIGIN'] + + build_ext.build_extension(self, ext) diff --git a/debian/patches/series b/debian/patches/series index 2417565..2e0c2ea 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ external-htslib.patch disable-tests-requiring-network.patch +rpath.patch -- 2.30.2