Disable setting rpath for compiled modules
authorAfif Elghraoui <afif@ghraoui.name>
Sun, 6 Mar 2016 04:21:04 +0000 (20:21 -0800)
committerAfif Elghraoui <afif@ghraoui.name>
Sun, 6 Mar 2016 07:53:23 +0000 (23:53 -0800)
debian/patches/rpath.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/rpath.patch b/debian/patches/rpath.patch
new file mode 100644 (file)
index 0000000..b6fb0c8
--- /dev/null
@@ -0,0 +1,22 @@
+Description: Disable setting rpath
+Author: Afif Elghraoui <afif@debian.org>
+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)
index 2417565066c1b6a375f5d8862a921d36563e75c5..2e0c2eaf53712d469a28b49ab47b843a68094a9e 100644 (file)
@@ -1,2 +1,3 @@
 external-htslib.patch
 disable-tests-requiring-network.patch
+rpath.patch