From: Afif Elghraoui Date: Sun, 6 Mar 2016 04:21:04 +0000 (-0800) Subject: Disable setting rpath for compiled modules X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~237 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7d7c3d262ac7f9fbc9e42e280b713df514cded4f;p=python-pysam.git Disable setting rpath for compiled modules --- 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