diff --git a/ghostscript-tiff-default-strip-size.patch b/ghostscript-tiff-default-strip-size.patch new file mode 100644 index 0000000..ee9f318 --- /dev/null +++ b/ghostscript-tiff-default-strip-size.patch @@ -0,0 +1,12 @@ +diff -up ghostscript-8.71/base/gdevtifs.h.tiff-default-strip-size ghostscript-8.71/base/gdevtifs.h +--- ghostscript-8.71/base/gdevtifs.h.tiff-default-strip-size 2010-03-15 16:42:06.892248676 +0000 ++++ ghostscript-8.71/base/gdevtifs.h 2010-03-15 16:42:26.890373466 +0000 +@@ -50,7 +50,7 @@ int tiff_print_page(gx_device_printer *d + * Sets the compression tag for TIFF and updates the rows_per_strip tag to + * reflect max_strip_size under the new compression scheme. + */ +-#define TIFF_DEFAULT_STRIP_SIZE 8192 ++#define TIFF_DEFAULT_STRIP_SIZE 0 + + int tiff_set_compression(gx_device_printer *pdev, + TIFF *tif, diff --git a/ghostscript.spec b/ghostscript.spec index 8d143f5..ef4a85a 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -32,6 +32,7 @@ Patch13: ghostscript-ldflags.patch Patch14: ghostscript-pdf2dsc.patch Patch15: ghostscript-cups-realloc-color-depth.patch Patch16: ghostscript-tif-fail-close.patch +Patch17: ghostscript-tiff-default-strip-size.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: xz @@ -143,6 +144,9 @@ rm -rf libpng zlib jpeg jasper # Don't segfault closing tiffg3 device if opening failed (bug #571520). %patch16 -p1 -b .tif-fail-close +# Restore the TIFF default strip size of 0 (bug #571520). +%patch17 -p1 -b .tiff-default-strip-size + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -325,6 +329,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Mon Mar 15 2010 Tim Waugh 8.71-5 +- Restore the TIFF default strip size of 0 (bug #571520). - Don't segfault closing tiffg3 device if opening failed (bug #571520). - Don't revert gdevcups y-axis change (bug #541604). - Reallocate memory in gdevcups when color depth changes (bug #563313).