bcftools (1.3.1-1+rpi1) buster-staging; urgency=medium
authorPeter Michael Green <plugwash@raspbian.org>
Sat, 29 Jul 2017 09:40:04 +0000 (10:40 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 29 Jul 2017 09:40:04 +0000 (10:40 +0100)
  * Disable testsuite.

[dgit import unpatched bcftools 1.3.1-1+rpi1]

20 files changed:
1  2 
debian/changelog
debian/compat
debian/control
debian/copyright
debian/docs
debian/man/color-chrs.pl.1
debian/man/plot-vcfstats.1
debian/man/vcfutils.pl.1
debian/manpages
debian/patches/compiler-flags.patch
debian/patches/destdir.patch
debian/patches/external-libs.patch
debian/patches/series
debian/patches/spelling.patch
debian/patches/tests-pluginpath.patch
debian/rules
debian/source/format
debian/tests/control
debian/tests/runtests
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..03ececb8365448d66e2ed84cc47bfc65994dfba3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,55 @@@
++bcftools (1.3.1-1+rpi1) buster-staging; urgency=medium
++
++  * Disable testsuite.
++
++ -- Peter Michael Green <plugwash@raspbian.org>  Sat, 29 Jul 2017 09:40:04 +0000
++
++bcftools (1.3.1-1) unstable; urgency=medium
++
++  * Imported Upstream version 1.3.1
++  * Remove backported patches
++  * Refresh remaining patches
++  * Bump htslib minimum dependency
++  * Bump Standards-Version to 3.9.8
++  * Add a manpage for the color-chrs command
++
++ -- Afif Elghraoui <afif@debian.org>  Mon, 25 Apr 2016 22:24:50 -0700
++
++bcftools (1.3-3) unstable; urgency=medium
++
++  * Backport upstream patch to fix build on arm64, armel, and ppc64el
++    (Closes: #812268)
++
++ -- Afif Elghraoui <afif@debian.org>  Thu, 31 Mar 2016 00:57:18 -0700
++
++bcftools (1.3-2) unstable; urgency=medium
++
++  * Backport upstream patch to be able to build plugin with GSL2
++  * Bump Standards-Version
++  * Use encrypted protocols for VCS URLs
++
++ -- Afif Elghraoui <afif@ghraoui.name>  Sun, 21 Feb 2016 16:35:44 -0800
++
++bcftools (1.3-1) unstable; urgency=medium
++
++  * New upstream release (Closes: #813465)
++  * Disable building with libgsl until build issue with GSL2 is addressed
++  * Update d/TODO to indicate GSL issue forwarded
++  * Simplify d/rules as a result of improvements to build system
++  * Update htslib minimum dependency
++  * Add libhts-dev dependency for CI tests
++
++ -- Afif Elghraoui <afif@ghraoui.name>  Wed, 03 Feb 2016 23:44:03 -0800
++
++bcftools (1.2-2) unstable; urgency=medium
++
++  * Fix autopkgtest dependencies
++  * Declare conflict with older versions of samtools (Closes: #812328)
++
++ -- Afif Elghraoui <afif@ghraoui.name>  Fri, 22 Jan 2016 18:52:53 -0800
++
++bcftools (1.2-1) unstable; urgency=low
++
++  * Initial release (Closes: #804007)
++
++ -- Afif Elghraoui <afif@ghraoui.name>  Mon, 09 Nov 2015 23:44:39 -0800
diff --cc debian/compat
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ec635144f60048986bc560c5576355344005e6e7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++9
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c8f518e005a279f06e4f1389ec60f1c776c44738
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,37 @@@
++Source: bcftools
++Section: science
++Priority: optional
++Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
++Uploaders:
++      Afif Elghraoui <afif@debian.org>
++Build-Depends:
++      debhelper (>= 9),
++      zlib1g-dev,
++      libhts-dev (>= 1.3.1),
++      libgsl-dev,
++# Test-Depends:
++      tabix,
++      libio-pty-perl
++Standards-Version: 3.9.8
++Homepage: http://samtools.github.io/bcftools/
++Vcs-Git: https://anonscm.debian.org/git/debian-med/bcftools.git
++Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/bcftools.git
++
++Package: bcftools
++Architecture: any
++Breaks: samtools (<< 1.0)
++Replaces: samtools (<< 1.0)
++Depends:
++      ${shlibs:Depends},
++      ${misc:Depends},
++      ${perl:Depends}
++Suggests:
++# These are needed for plot-vcfstats
++      python,
++      python-numpy,
++      python-matplotlib,
++      texlive-latex-recommended
++Description: genomic variant calling and manipulation of VCF/BCF files
++ BCFtools is a set of utilities that manipulate variant calls in the
++ Variant Call Format (VCF) and its binary counterpart BCF. All commands work
++ transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4ffcba780ffed5157240aeff6cb042e37753b835
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,60 @@@
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: bcftools
++Source: https://github.com/samtools/bcftools
++
++Files: *
++Copyright:
++      2011-2015 Genome Research Ltd.
++      2010-2012 Broad Institute
++License: MIT or GPL-3.0
++Comment:
++      Dual-licensing is in effect for the default compilation mode.
++      When linked with the GPL-licensed GNU Scientific Library
++      (as is done for this Debian package), the
++      resulting program must be distributed under the GPL.
++      .
++      The source distribution simply states "GPL-licensed" without indicating
++      a version of the GPL, but includes a copy of GPL-3.
++
++Files: kmin.*
++Copyright: 2008,2010 Attractive Chaos <attractor@live.co.uk>
++License: MIT
++
++Files: debian/*
++Copyright: 2015-2016 Afif Elghraoui <afif@debian.org>
++License: MIT
++
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a
++ copy of this software and associated documentation files (the "Software"),
++ to deal in the Software without restriction, including without limitation
++ the rights to use, copy, modify, merge, publish, distribute, sublicense,
++ and/or sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included
++ in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
++ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
++ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
++ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++
++License: GPL-3.0
++ This program is free software: you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation.
++ .
++ This package is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ GNU General Public License for more details.
++ .
++ You should have received a copy of the GNU General Public License
++ along with this program. If not, see <http://www.gnu.org/licenses/>.
++ .
++ On Debian systems, the complete text of the GNU General
++ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --cc debian/docs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e845566c06f9bf557d35e8292c37cf05d97a9769
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++README
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1d9a2bf2f521ffe8b95a29ea7505198ff1ec750e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,19 @@@
++.TH COLOR-CHRS.PL 1 "April 2016"
++.SH NAME
++color-chrs.pl \- Plot output of "bcftools +color-chrs"
++.SH SYNOPSIS
++.B color-chrs.pl
++.RI [ OPTIONS ]
++.I output.dat
++.SH OPTIONS
++.TP
++.B \-c, \-\-colors \f[I]file
++File with list of "chr hap color".
++.TP
++.B \-p, \-\-prefix \f[I]name
++Prefix of output files
++.TP
++.B \-h, \-?, \-\-help
++Summary of options.
++.SH SEE ALSO
++.BR bcftools (1)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0367e030bee7a6645886f7079b9cc92dcd65982b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,9 @@@
++.TH PLOT-VCFSTATS 1 "November 2015"
++.SH NAME
++plot-vcfstats \- plot statistics for genomic variants in a VCF file
++.SH DESCRIPTION
++Call the program without any arguments for usage information.
++This program requires bcftools' suggested packages in order to function.
++See `apt-cache show bcftools` to see what the suggested packages are.
++.SH SEE ALSO
++.BR bcftools (1)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3eed22e50e082e7260b4f913309923fe7e724ad8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,7 @@@
++.TH VCFUTILS.PL 1 "November 2015"
++.SH NAME
++vcfutils.pl \- utilities to manipulate files in the Variant Call Format (VCF)
++.SH DESCRIPTION
++Call the program with no arguments in order to see usage information.
++.SH SEE ALSO
++.BR bcftools (1)
diff --cc debian/manpages
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..19f429f39ab59e3b4abcc2643c923354e22e0217
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++debian/man/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8623c25c2b8377846808a24a518f9b843aefe9b5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,22 @@@
++Description: Allow compiler flags to be passed through to build system
++ The development version of the upstream code already supports LDFLAGS,
++ so many parts of this patch will not be needed in the next upstream
++ release
++Author: Afif Elghraoui <afif@ghraoui.name>
++Forwarded: not-needed
++Last-Update: 2015-11-09
++--- bcftools.orig/Makefile
+++++ bcftools/Makefile
++@@ -32,9 +32,9 @@
++ BGZIP  = /usr/bin/bgzip
++ TABIX  = /usr/bin/tabix
++ 
++-CC       = gcc
++-CPPFLAGS =
++-CFLAGS   = -g -Wall -Wc++-compat -O2
+++CC       ?= gcc
+++CPPFLAGS ?=
+++CFLAGS   += -g -Wall -Wc++-compat -O2
++ LDFLAGS  ?=
++ LIBS     += $(LDFLAGS) -lhts
++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2687132d9896718dd01d20aa54b0d891bf2b6c4e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,24 @@@
++Description: Set installation prefix
++Author: Afif Elghraoui <afif@ghraoui.name>
++Forwarded: not-needed
++Last-Update: 2015-11-03
++--- bcftools.orig/Makefile
+++++ bcftools/Makefile
++@@ -57,7 +57,7 @@
++     GSL_LIBS = -lgsl -lgslcblas
++ endif
++ 
++-prefix      = /usr/local
+++prefix      = /usr
++ exec_prefix = $(prefix)
++ bindir      = $(exec_prefix)/bin
++ libdir      = $(exec_prefix)/lib
++@@ -65,7 +65,7 @@
++ mandir      = $(prefix)/share/man
++ man1dir     = $(mandir)/man1
++ 
++-plugindir   = $(libexecdir)/bcftools
+++plugindir   ?= $(libexecdir)/bcftools
++ pluginpath  = $(plugindir)
++ 
++ MKDIR_P = mkdir -p
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..de0c3a1fffee81380f668057de9a717d252d1d73
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,61 @@@
++Description: Use packaged libraries
++Author: Afif Elghraoui <afif@ghraoui.name>
++Forwarded: not-needed
++Last-Update: 2015-11-03
++--- bcftools.orig/Makefile
+++++ bcftools/Makefile
++@@ -29,17 +29,14 @@
++ all: $(PROG) $(TEST_PROG)
++ 
++ # Adjust $(HTSDIR) to point to your top-level htslib directory
++-HTSDIR = ../htslib
++-include $(HTSDIR)/htslib.mk
++-HTSLIB = $(HTSDIR)/libhts.a
++-BGZIP  = $(HTSDIR)/bgzip
++-TABIX  = $(HTSDIR)/tabix
+++BGZIP  = /usr/bin/bgzip
+++TABIX  = /usr/bin/tabix
++ 
++ CC       = gcc
++ CPPFLAGS =
++ CFLAGS   = -g -Wall -Wc++-compat -O2
++-LDFLAGS  =
++-LIBS     =
+++LDFLAGS  ?=
+++LIBS     += $(LDFLAGS) -lhts
++ 
++ OBJS     = main.o vcfindex.o tabix.o \
++            vcfstats.o vcfisec.o vcfmerge.o vcfquery.o vcffilter.o filter.o vcfsom.o \
++@@ -57,7 +54,7 @@
++ ifdef USE_GPL
++     EXTRA_CPPFLAGS += -DUSE_GPL
++     OBJS += polysomy.o peakfit.o
++-    GSL_LIBS = -lgsl -lcblas
+++    GSL_LIBS = -lgsl -lgslcblas
++ endif
++ 
++ prefix      = /usr/local
++@@ -101,10 +98,10 @@
++ .c.o:
++      $(CC) $(CFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS) -c -o $@ $<
++ 
++-test: $(PROG) plugins test/test-rbuf $(BGZIP) $(TABIX)
+++test: $(PROG) plugins test/test-rbuf
++      ./test/test.pl --exec bgzip=$(BGZIP) --exec tabix=$(TABIX)
++ 
++-test-plugins: $(PROG) plugins test/test-rbuf $(BGZIP) $(TABIX)
+++test-plugins: $(PROG) plugins test/test-rbuf
++      ./test/test.pl --plugins --exec bgzip=$(BGZIP) --exec tabix=$(TABIX)
++ 
++ 
++@@ -180,8 +177,8 @@
++ test/test-rbuf: test/test-rbuf.o
++      $(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS)
++ 
++-bcftools: $(HTSLIB) $(OBJS)
++-     $(CC) -rdynamic $(LDFLAGS) -o $@ $(OBJS) $(HTSLIB) -lpthread -lz -lm -ldl $(GSL_LIBS) $(LIBS)
+++bcftools: $(OBJS)
+++     $(CC) -rdynamic $(LDFLAGS) -o $@ $(OBJS) -lpthread -lz -lm -ldl $(GSL_LIBS) $(LIBS)
++ 
++ doc/bcftools.1: doc/bcftools.txt
++      cd doc && a2x -adate="$(DOC_DATE)" -aversion=$(DOC_VERSION) --doctype manpage --format manpage bcftools.txt
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ca9188d8e660ef2771b5e8dcb9f291c2025eebfa
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++external-libs.patch
++compiler-flags.patch
++destdir.patch
++tests-pluginpath.patch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..296c0423986eb19e03322c78a8e6b86e30eb5f12
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,33 @@@
++Description: Fix spelling errors
++Author: Afif Elghraoui <afif@ghraoui.name>
++Forwarded: no
++Last-Update: 2015-11-09
++--- bcftools.orig/doc/bcftools.1
+++++ bcftools/doc/bcftools.1
++@@ -546,7 +546,7 @@
++ .RE
++ .SS "bcftools annotate \fI[OPTIONS]\fR \fIFILE\fR"
++ .sp
++-This command allows to add or remove annotations\&.
+++This command allows one to add or remove annotations\&.
++ .PP
++ \fB\-a, \-\-annotations\fR \fIfile\fR
++ .RS 4
++@@ -1041,7 +1041,7 @@
++ likelihood of novel mutation for constrained
++ \fB\-C\fR
++ \fItrio\fR
++-calling\&. The trio genotype calling maximizes likelihood of a particular combination of genotypes for father, mother and the child P(F=i,M=j,C=k) = P(unconstrained) * Pn + P(constrained) * (1\-Pn)\&. By providing three values, the mutation rate Pn is set explictly for SNPs, deletions and insertions, respectively\&. If two values are given, the first is interpreted as the mutation rate of SNPs and the second is used to calculate the mutation rate of indels according to their length as Pn=\fIfloat\fR*exp(\-a\-b*len), where a=22\&.8689, b=0\&.2994 for insertions and a=21\&.9313, b=0\&.2856 for deletions [pubmed:23975140]\&. If only one value is given, the same mutation rate Pn is used for SNPs and indels\&.
+++calling\&. The trio genotype calling maximizes likelihood of a particular combination of genotypes for father, mother and the child P(F=i,M=j,C=k) = P(unconstrained) * Pn + P(constrained) * (1\-Pn)\&. By providing three values, the mutation rate Pn is set explicitly for SNPs, deletions and insertions, respectively\&. If two values are given, the first is interpreted as the mutation rate of SNPs and the second is used to calculate the mutation rate of indels according to their length as Pn=\fIfloat\fR*exp(\-a\-b*len), where a=22\&.8689, b=0\&.2994 for insertions and a=21\&.9313, b=0\&.2856 for deletions [pubmed:23975140]\&. If only one value is given, the same mutation rate Pn is used for SNPs and indels\&.
++ .RE
++ .PP
++ \fB\-p, \-\-pval\-threshold\fR \fIfloat\fR
++@@ -2512,7 +2512,7 @@
++ // Longer description used by \*(Aqbcftools +name \-h\*(Aq
++ const char *usage(void);
++ 
++-// Called once at startup, allows to initialize local variables\&.
+++// Called once at startup, allows one to initialize local variables\&.
++ // Return 1 to suppress normal VCF/BCF header output, \-1 on critical
++ // errors, 0 otherwise\&.
++ int init(int argc, char **argv, bcf_hdr_t *in_hdr, bcf_hdr_t *out_hdr);
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6a71d97504d6db3c0ea61d07e6dbaceff74c3b15
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,21 @@@
++Description: Set the bcftools plugin path to search system directories
++ The tests were intended to be run at build time only, so the test
++ script sets the plugins to be searched for /only/ in the build directory.
++ It does so by setting the environment variable BCFTOOLS_PLUGINS. However,
++ as described in the manpage bcftools(1), adding a colon to either side of
++ the path entry in the environment variable also searches the system
++ directories. We need this for autopkgtest to work.
++Author: Afif Elghraoui <afif@ghraoui.name>
++Forwarded: not-needed
++Last-Update: 2015-11-09
++--- bcftools.orig/test/test.pl
+++++ bcftools/test/test.pl
++@@ -776,7 +776,7 @@
++ {
++     my ($opts,%args) = @_;
++     if ( !$$opts{test_plugins} ) { return; }
++-    $ENV{BCFTOOLS_PLUGINS} = "$$opts{bin}/plugins";
+++    $ENV{BCFTOOLS_PLUGINS} = "$$opts{bin}/plugins:";
++     if ( !exists($args{args}) ) { $args{args} = ''; }
++     $args{args} =~ s/{PATH}/$$opts{path}/g;
++     bgzip_tabix_vcf($opts,"$args{in}");
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b714f0fa4a1e9540ac0abf0d4734694cf018cbfd
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,17 @@@
++#!/usr/bin/make -f
++
++#DH_VERBOSE = 1
++#include /usr/share/dpkg/default.mk
++
++export HTSDIR=/usr/include
++export USE_GPL=1
++export plugindir=/usr/lib/$(DEB_HOST_MULTIARCH)/bcftools
++
++%:
++      dh $@ --parallel
++
++override_dh_installman:
++      dh_installman --language=C
++
++override_dh_auto_test:
++      echo testsuite disabled
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..55cc0ae57b24f8a155858634a34b5fbcb0f5896d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,10 @@@
++Tests: runtests
++Depends:
++      @,
++      tabix,
++      perl,
++      build-essential,
++      libhts-dev,
++Restrictions:
++      allow-stderr,
++      rw-build-tree,
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e63da87a150dc706b0b600f9ac10f0cb207c53f0
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,15 @@@
++#!/usr/bin/make -f
++
++export HTSDIR=/usr/include
++
++BGZIP=/usr/bin/bgzip
++TABIX=/usr/bin/tabix
++
++test: test/test-rbuf bcftools
++      ./test/test.pl --plugins --exec bgzip=$(BGZIP) --exec tabix=$(TABIX)
++
++bcftools:
++      ln -s /usr/bin/bcftools $@
++
++test/test-rbuf:
++      $(MAKE) $@
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5817ba628e7ca9510f1855ec55cf86109be97a03
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++version=3
++
++opts="filenamemangle=s/(?:.*?)?v?(\d[\d.]*)\.tar\.gz/bcftools-$1.tar.gz/" \
++    https://github.com/samtools/bcftools/releases (?:.*?/)?v?(\d[\d.]*)\.tar\.gz