From a849526ef557f20f9c50f6c2f3da24acfe32900a Mon Sep 17 00:00:00 2001 From: Afif Elghraoui Date: Thu, 26 Jan 2017 04:12:46 -0800 Subject: [PATCH] Do not use internal htslib Test suite passes. The patch needs to be generalized before forwarding upstream. --- debian/patches/htslib-external-config.patch | 15 +++++++++++++++ debian/patches/series | 1 + 2 files changed, 16 insertions(+) create mode 100644 debian/patches/htslib-external-config.patch diff --git a/debian/patches/htslib-external-config.patch b/debian/patches/htslib-external-config.patch new file mode 100644 index 0000000..ab7a144 --- /dev/null +++ b/debian/patches/htslib-external-config.patch @@ -0,0 +1,15 @@ +Description: Do not use internal htslib library +Author: Afif Elghraoui +Forwarded: not-needed +Last-Update: 2017-01-26 +--- python-pysam.orig/setup.py ++++ python-pysam/setup.py +@@ -255,7 +255,7 @@ + else: + raise ValueError("unknown HTSLIB value '%s'" % HTSLIB_MODE) + +-internal_htslib_libraries = [os.path.splitext("chtslib{}".format(sysconfig.get_config_var('SO')))[0]] ++internal_htslib_libraries = [] + + # build config.py + with open(os.path.join("pysam", "config.py"), "w") as outf: diff --git a/debian/patches/series b/debian/patches/series index da8b790..af88631 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ rpath.patch +htslib-external-config.patch -- 2.30.2