[med-svn] r9034 - in trunk/packages/minc/trunk/debian: . patches

Steven Michael Robbins smr at alioth.debian.org
Mon Dec 19 02:52:47 UTC 2011


Author: smr
Date: 2011-12-19 02:52:47 +0000 (Mon, 19 Dec 2011)
New Revision: 9034

Added:
   trunk/packages/minc/trunk/debian/patches/decompress-whole-file.diff
Modified:
   trunk/packages/minc/trunk/debian/changelog
Log:
Force decompression of entire file to ensure it works with externally-compressed MINC 2 files.

Modified: trunk/packages/minc/trunk/debian/changelog
===================================================================
--- trunk/packages/minc/trunk/debian/changelog	2011-12-18 15:49:28 UTC (rev 9033)
+++ trunk/packages/minc/trunk/debian/changelog	2011-12-19 02:52:47 UTC (rev 9034)
@@ -1,3 +1,10 @@
+minc (2.1.00-2) unstable; urgency=low
+
+  * patches/decompress-whole-file.diff: New.  Always decompress entire
+    file to support compressed MINC2 files.  Closes: #585676.
+
+ -- Steve M. Robbins <smr at debian.org>  Sun, 18 Dec 2011 20:47:03 -0600
+
 minc (2.1.00-1) unstable; urgency=low
 
   * New upstream.

Added: trunk/packages/minc/trunk/debian/patches/decompress-whole-file.diff
===================================================================
--- trunk/packages/minc/trunk/debian/patches/decompress-whole-file.diff	                        (rev 0)
+++ trunk/packages/minc/trunk/debian/patches/decompress-whole-file.diff	2011-12-19 02:52:47 UTC (rev 9034)
@@ -0,0 +1,22 @@
+Description: Decompress entire externally-compressed file
+ MINC 1 files were often compressed using gzip or similar.  There is code in
+ the library that decompresses only the initial portion of the file when only
+ the header is required (e.g. for "mincinfo").  This code is broken for MINC 2
+ files, so we work around this by forcing a decompression of the entire file.
+Author: Steve Robbins <smr at debian.org> 
+Bug: 585676
+Forwarded: http://www.bic.mni.mcgill.ca/pipermail/minc-development/2011-December/000938.html
+
+
+--- libsrc/netcdf_convenience.c.orig	2011-12-18 17:17:20.222227060 -0600
++++ libsrc/netcdf_convenience.c	2011-12-18 17:45:40.734965898 -0600
+@@ -264,7 +264,8 @@
+ #else      /* Unix */
+ 
+ 
+-   if (!header_only) {        /* Decompress the whole file */
++   /* Force whole file decompression always. */
++   if (1) {        /* Decompress the whole file */
+ 
+       (void) sprintf(whole_command, "exec %s %s > %s 2> /dev/null", 
+                      command, infile, outfile);




More information about the debian-med-commit mailing list