- Applied upstream patch for bug #416321.

This commit is contained in:
Tim Waugh 2007-12-11 15:29:31 +00:00
parent 2050c98074
commit 08d24bfef6
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff -up ghostscript-8.61/src/seexec.c.gsbug689577 ghostscript-8.61/src/seexec.c
--- ghostscript-8.61/src/seexec.c.gsbug689577 2007-09-25 14:31:24.000000000 +0100
+++ ghostscript-8.61/src/seexec.c 2007-12-11 15:20:35.000000000 +0000
@@ -215,8 +215,10 @@ hp: r = *pr;
* so that it will stay under the limit even after adding min_in_size
* for a subsequent filter in a pipeline. Note that we have to specify
* a size of at least 128 so that filter_read won't round it up.
+ * The value of 132 is samll enough for the sample file of the bug 689577 but
+ * still sufficient for comparefiles/fonttest.pdf .
*/
const stream_template s_exD_template = {
- &st_exD_state, s_exD_init, s_exD_process, 8, 200,
+ &st_exD_state, s_exD_init, s_exD_process, 8, 132,
NULL, s_exD_set_defaults
};

View File

@ -5,7 +5,7 @@ Summary: A PostScript(TM) interpreter and renderer.
Name: ghostscript
Version: %{gs_ver}
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
URL: http://www.ghostscript.com/
@ -20,6 +20,7 @@ Patch3: ghostscript-noopt.patch
Patch4: ghostscript-fPIC.patch
Patch5: http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-ijs-krgb.patch
Patch6: ghostscript-runlibfileifexists.patch
Patch7: ghostscript-gsbug689577.patch
Requires: urw-fonts >= 1.1, ghostscript-fonts
BuildRequires: libjpeg-devel, libXt-devel
@ -91,6 +92,9 @@ A GTK-enabled version of Ghostscript, called 'gsx'.
# Define .runlibfileifexists.
%patch6 -p1 -b .runlibfileifexists
# Upstream patch for bug #416321.
%patch7 -p1 -b .gsbug689577
# Convert manual pages to UTF-8
from8859_1() {
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@ -261,6 +265,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgs.so
%changelog
* Tue Dec 11 2007 Tim Waugh <twaugh@redhat.com> 8.61-6
- Applied upstream patch for bug #416321.
* Fri Nov 30 2007 Tim Waugh <twaugh@redhat.com> 8.61-5
- Fixed runlibfileifexists patch.