From 75f99711b76ebd7cad4a6d174c8345ef0a14727a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 17 Oct 2008 11:14:05 +0000 Subject: [PATCH] - Try out a work-around for bug #465311. --- ghostscript-465311.patch | 13 +++++++++++++ ghostscript.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 ghostscript-465311.patch diff --git a/ghostscript-465311.patch b/ghostscript-465311.patch new file mode 100644 index 0000000..ab70a8f --- /dev/null +++ b/ghostscript-465311.patch @@ -0,0 +1,13 @@ +diff -up ghostscript-8.63/src/iname.c.465311 ghostscript-8.63/src/iname.c +--- ghostscript-8.63/src/iname.c.465311 2008-10-17 11:52:31.000000000 +0100 ++++ ghostscript-8.63/src/iname.c 2008-10-17 11:53:08.000000000 +0100 +@@ -415,7 +415,8 @@ names_trace_finish(name_table * nt, gc_s + if (nt->sub[i].names == 0 && gcst != 0) { + /* Mark the just-freed sub-table as unmarked. */ + o_set_unmarked((obj_header_t *)sub - 1); +- o_set_unmarked((obj_header_t *)ssub - 1); ++ if (ssub != 0) ++ o_set_unmarked((obj_header_t *)ssub - 1); + } + } + if (i == 0) diff --git a/ghostscript.spec b/ghostscript.spec index dd19d1d..a0c3386 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -5,7 +5,7 @@ Summary: A PostScript(TM) interpreter and renderer. Name: ghostscript Version: %{gs_ver} -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 URL: http://www.ghostscript.com/ @@ -21,6 +21,7 @@ Patch4: ghostscript-fPIC.patch Patch5: ghostscript-runlibfileifexists.patch Patch6: ghostscript-system-jasper.patch Patch7: ghostscript-pksmraw.patch +Patch8: ghostscript-465311.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: libjpeg-devel, libXt-devel @@ -104,6 +105,9 @@ rm -rf libpng zlib jpeg jasper # Fix pksmraw output (bug #308211). Still needed in 8.63. %patch7 -p1 -b .pksmraw +# Try out a work-around for bug #465311. +%patch8 -p1 -b .465311 + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -288,6 +292,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libgs.so %changelog +* Fri Oct 17 2008 Tim Waugh 8.63-4 +- Try out a work-around for bug #465311. + * Wed Oct 15 2008 Tim Waugh 8.63-3 - Don't ship fixmswrd.pl as it pulls in perl (bug #463948).