From 5c333312efc4786a1e3a9c9435534e572c49845d Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 15 Mar 2010 17:35:28 +0000 Subject: [PATCH] - Restore the TIFF default strip size of 0 (bug #571520). --- ghostscript-tiff-default-strip-size.patch | 12 ++++++++++++ ghostscript.spec | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 ghostscript-tiff-default-strip-size.patch 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 9a076f6..1190c93 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -33,6 +33,7 @@ Patch14: ghostscript-ldflags.patch Patch15: ghostscript-pdf2dsc.patch Patch16: ghostscript-cups-realloc-color-depth.patch Patch17: ghostscript-tif-fail-close.patch +Patch18: ghostscript-tiff-default-strip-size.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: xz @@ -158,6 +159,9 @@ rm -rf libpng zlib jpeg jasper # Don't segfault closing tiffg3 device if opening failed (bug #571520). %patch17 -p1 -b .tif-fail-close +# Restore the TIFF default strip size of 0 (bug #571520). +%patch18 -p1 -b .tiff-default-strip-size + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -338,6 +342,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Mon Mar 15 2010 Tim Waugh 8.71-8 +- 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).