denovogear: Add missing zlib depenbdency and fix open handling error. (#13017)
This commit is contained in:
parent
58c01792ef
commit
b85ff04681
2 changed files with 15 additions and 0 deletions
|
@ -22,3 +22,6 @@ class Denovogear(CMakePackage):
|
||||||
depends_on('boost@1.47:1.60', type=('build'))
|
depends_on('boost@1.47:1.60', type=('build'))
|
||||||
depends_on('htslib@1.2:', type=('build'))
|
depends_on('htslib@1.2:', type=('build'))
|
||||||
depends_on('eigen', type=('build'))
|
depends_on('eigen', type=('build'))
|
||||||
|
depends_on('zlib', type=('link'))
|
||||||
|
|
||||||
|
patch('stream-open.patch', when='@:1.1.1')
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff -ru spack-src.org/src/dng-dnm.cc spack-src/src/dng-dnm.cc
|
||||||
|
--- spack-src.org/src/dng-dnm.cc 2015-04-21 09:16:59.000000000 +0900
|
||||||
|
+++ spack-src/src/dng-dnm.cc 2019-10-02 15:08:28.892042247 +0900
|
||||||
|
@@ -161,7 +161,7 @@
|
||||||
|
int writeVCFHeader(std::ofstream& fo_vcf, string op_vcf_f, string bcf_file, string ped_file, string sample)
|
||||||
|
{
|
||||||
|
fo_vcf.open(op_vcf_f.c_str());
|
||||||
|
- if(fo_vcf == NULL) {
|
||||||
|
+ if(fo_vcf.fail()) {
|
||||||
|
cerr<<"Unable to open vcf file for writing output. Exiting !"<<endl;
|
||||||
|
}
|
||||||
|
fo_vcf<<"##fileformat=VCFv4.1\n";
|
Loading…
Reference in a new issue