From 5f57e1885593e063c44011a2ecbc536db9383c2d Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Nov 28 2007 12:05:24 +0000 Subject: - Add runlibfileifexists to gs_init.ps. --- diff --git a/ghostscript-runlibfileifexists.patch b/ghostscript-runlibfileifexists.patch new file mode 100644 index 0000000..0a7624a --- /dev/null +++ b/ghostscript-runlibfileifexists.patch @@ -0,0 +1,18 @@ +diff -up ghostscript-8.61/lib/gs_init.ps.runlibfileifexists ghostscript-8.61/lib/gs_init.ps +--- ghostscript-8.61/lib/gs_init.ps.runlibfileifexists 2007-11-28 11:24:58.000000000 +0000 ++++ ghostscript-8.61/lib/gs_init.ps 2007-11-28 12:03:08.000000000 +0000 +@@ -671,6 +671,14 @@ systemdict /internaldict dup .makeintern + { /undefinedfilename signalerror } + ifelse + } bind def ++/runlibfileifexists ++ { % We don't want to bind 'run' into this procedure, ++ % since run may get redefined. ++ findlibfile ++ { exch pop /run .systemvar exec } ++ { pop } ++ ifelse ++ } bind def + /selectdevice + { finddevice setdevice .setdefaultscreen } bind def + /signalerror % signalerror - diff --git a/ghostscript.spec b/ghostscript.spec index a923d35..8030240 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -20,6 +20,7 @@ Patch2: ghostscript-scripts.patch 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 Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: libjpeg-devel, libXt-devel @@ -88,6 +89,9 @@ A GTK-enabled version of Ghostscript, called 'gsx'. # IJS KRGB patch. %patch5 -p1 -b .ijs-krgb +# Add runlibfileifexists to gs_init.ps. +%patch6 -p1 -b .runlibfileifexists + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -268,6 +272,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Wed Nov 28 2007 Tim Waugh +- Add runlibfileifexists to gs_init.ps. - Build with --disable-compile-inits (bug #402501). * Fri Nov 23 2007 Tim Waugh 8.61-1