From: Afif Elghraoui Date: Thu, 25 Jun 2015 04:14:23 +0000 (-0700) Subject: Support building with missing htslib directory X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~317 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bb5c719166e7c3a79a68b4821f9f74a0104fbb0a;p=python-pysam.git Support building with missing htslib directory --- diff --git a/debian/changelog b/debian/changelog index 5cde36a..3cbc0c5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -python-pysam (0.8.3-1) UNRELEASED; urgency=medium +python-pysam (0.8.3+ds1-1) UNRELEASED; urgency=medium * Team upload. diff --git a/debian/patches/correct-spelling-errors.patch b/debian/patches/correct-spelling-errors.patch index 84e5644..0b9c5cb 100644 --- a/debian/patches/correct-spelling-errors.patch +++ b/debian/patches/correct-spelling-errors.patch @@ -4,17 +4,6 @@ Bug: https://github.com/pysam-developers/pysam/pull/122 Last-Update: 2015-06-09 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ ---- python-pysam.orig/htslib/cram/cram_index.c -+++ python-pysam/htslib/cram/cram_index.c -@@ -315,7 +315,7 @@ - - /* - * Searches the index for the first slice overlapping a reference ID -- * and position, or one immediately preceeding it if none is found in -+ * and position, or one immediately preceding it if none is found in - * the index to overlap this position. (Our index may have missing - * entries, but we require at least one per reference.) - * --- python-pysam.orig/pysam/calignmentfile.pyx +++ python-pysam/pysam/calignmentfile.pyx @@ -1442,7 +1442,7 @@ diff --git a/debian/patches/ignore-htslib-dir.patch b/debian/patches/ignore-htslib-dir.patch new file mode 100644 index 0000000..0a73343 --- /dev/null +++ b/debian/patches/ignore-htslib-dir.patch @@ -0,0 +1,27 @@ +Description: Allow setup.py to cope with missing htslib copy + The build system expects the convenience copy to be present. + This change allows the build to work without it. After all, + we're linking with the Debian htslib package. +Author: Afif Elghraoui +Last-Update: 2015-06-24 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- python-pysam.orig/setup.py ++++ python-pysam/setup.py +@@ -476,8 +476,6 @@ + 'url': "https://github.com/pysam-developers/pysam", + 'packages': ['pysam', + 'pysam.include', +- 'pysam.include.htslib', +- 'pysam.include.htslib.htslib', + 'pysam.include.samtools', + # 'pysam.include.samtools.bcftools', + 'pysam.include.samtools.win32'], +@@ -493,7 +493,6 @@ + faidx], + 'cmdclass': cmdclass, + 'package_dir': {'pysam': 'pysam', +- 'pysam.include.htslib': 'htslib', + 'pysam.include.samtools': 'samtools'}, + 'package_data': {'': ['*.pxd', '*.h'], }, + # do not pack in order to permit linking to csamtools.so diff --git a/debian/patches/series b/debian/patches/series index 73ffeaa..22c82d0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ change-htslib-statement-to-link-to-debian adding-include-hts-dirs correct-spelling-errors.patch +ignore-htslib-dir.patch