Source: cmtk
Version: 3.2.2-1.4
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ordering
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that cmtk 
could not be built reproducibly.

Patch attached that addresses most of the problem. However, due to the use of 
default values in the "help" output, the "--time" entry for the manpage 
actually displays the current (default) time!

It actually does this in a totally broken way, not converting it to a char, so 
you end up with weird stuff on the command line, but it shouldn't be shown 
anyway if we want to be reproducible.


 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible_build 1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible_build 2016-06-23 15:45:30.277388001 +0200
@@ -0,0 +1,11 @@
+--- cmtk-3.2.2.orig/scripts/gen_manpages
++++ cmtk-3.2.2/scripts/gen_manpages
+@@ -75,7 +75,7 @@ cmtk \- the Computational Morphometry To
+ This helper script provides a unified access to all command line tools 
provided by CMTK.  Please specify CMTK's command to run and its options. See 
\fBcmtk-<command>(1)\fR manpage or output of \fBcmtk <command> --help\fR for 
<command> specific options
+ .SH COMMANDS
+ EOF
+-/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | while read f; do
++/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | LC_ALL=C sort | while read f; do
+       descr="$(grep -a -A1 '.SH DESCRIPTION' $f| tail -n 1)"
+       cmd=${f%.*}
+       cmd=${cmd##*cmtk-}
--- a/debian/patches/series     2016-06-23 15:19:31.335404639 +0200
--- b/debian/patches/series     2016-06-23 15:45:26.801356823 +0200
@@ -2,3 +2,4 @@
 fix-bashisms.patch
 fix_cmake_version_comparison
 dcmtk-3.6.1-compatibility
+reproducible_build

Reply via email to