Source: cd-hit
Version: 4.6.7-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that cd-hit could not be built reproducibly.

This is because the help2man call to cd-hit-div fails as it does not
support --help argument, and the error message contains the absolute
build path.

Patch attached. It adds a very basic "usage" stanza, thus fixing both
issues at once.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb, Debian Project Leader
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/enable_help2man.patch      2017-06-28 22:02:55.736716965 
+0100
--- b/debian/patches/enable_help2man.patch      2017-06-28 22:18:48.946156579 
+0100
  
+--- cd-hit-4.6.7.orig/cd-hit-div.pl
++++ cd-hit-4.6.7/cd-hit-div.pl
+@@ -4,6 +4,11 @@
+ #or throw away seq
+ 
+ $in  = shift; $in  or die "no input file";
++if ($in eq "--help") {
++  print "Usage: $0 IN OUT DIV\n\n";
++  print "Divide a FASTA file into pieces.\n";
++  exit;
++}
+ $out = shift; $out or die "no output file";
+ $div = shift; $div or die "no div number";
+ 

Reply via email to