[med-svn] [python-pysam] 02/03: Deal with bcftools config header

Afif Elghraoui afif at moszumanska.debian.org
Sun Sep 3 23:15:23 UTC 2017


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

afif pushed a commit to branch master
in repository python-pysam.

commit f56e88606944c82a3a3a92d7626e30b81acdcfae
Author: Afif Elghraoui <afif at debian.org>
Date:   Sun Sep 3 15:51:26 2017 -0700

    Deal with bcftools config header
---
 debian/patches/bcftools-config-header.patch | 19 +++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/rules                                |  3 ++-
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/debian/patches/bcftools-config-header.patch b/debian/patches/bcftools-config-header.patch
new file mode 100644
index 0000000..21bc1ad
--- /dev/null
+++ b/debian/patches/bcftools-config-header.patch
@@ -0,0 +1,19 @@
+Description: create bcftools/config.h if it doesn't exist
+ since bcftools and samtools 1.5 are using the same build system,
+ they need to be treated the same way. Compilation fails when bcftools
+ can't find its config.h.
+Author: Afif Elghraoui <afif at debian.org>
+Forwarded: https://github.com/pysam-developers/pysam/pull/533
+Last-Update: 2017-09-03
+--- python-pysam.orig/setup.py
++++ python-pysam/setup.py
+@@ -134,7 +134,8 @@
+ package_dirs = {'pysam': 'pysam',
+                 'pysam.include.samtools': 'samtools',
+                 'pysam.include.bcftools': 'bcftools'}
+-config_headers = ["samtools/config.h"]
++config_headers = ["samtools/config.h",
++                  "bcftools/config.h"]
+ 
+ from cy_build import CyExtension as Extension, cy_build_ext as build_ext
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..336b8e8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bcftools-config-header.patch
diff --git a/debian/rules b/debian/rules
index 8f998dd..d062880 100755
--- a/debian/rules
+++ b/debian/rules
@@ -44,7 +44,8 @@ override_dh_auto_clean:
 		pysam/config.py \
 		pysam/config.h \
 		pysam/lib*.c \
-		samtools/config.h
+		samtools/config.h \
+		bcftools/config.h
 	rm -rf pysam.egg-info
 
 .PHONY: pysam_data.% cbcf_data.%

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



More information about the debian-med-commit mailing list