- Add runlibfileifexists to gs_init.ps.
This commit is contained in:
parent
f96f06c143
commit
8d8748a20b
18
ghostscript-runlibfileifexists.patch
Normal file
18
ghostscript-runlibfileifexists.patch
Normal file
@ -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 % <object> <errorname> signalerror -
|
@ -20,6 +20,7 @@ Patch2: ghostscript-scripts.patch
|
|||||||
Patch3: ghostscript-noopt.patch
|
Patch3: ghostscript-noopt.patch
|
||||||
Patch4: ghostscript-fPIC.patch
|
Patch4: ghostscript-fPIC.patch
|
||||||
Patch5: http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-ijs-krgb.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
|
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
||||||
BuildRequires: libjpeg-devel, libXt-devel
|
BuildRequires: libjpeg-devel, libXt-devel
|
||||||
@ -88,6 +89,9 @@ A GTK-enabled version of Ghostscript, called 'gsx'.
|
|||||||
# IJS KRGB patch.
|
# IJS KRGB patch.
|
||||||
%patch5 -p1 -b .ijs-krgb
|
%patch5 -p1 -b .ijs-krgb
|
||||||
|
|
||||||
|
# Add runlibfileifexists to gs_init.ps.
|
||||||
|
%patch6 -p1 -b .runlibfileifexists
|
||||||
|
|
||||||
# Convert manual pages to UTF-8
|
# Convert manual pages to UTF-8
|
||||||
from8859_1() {
|
from8859_1() {
|
||||||
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
||||||
@ -268,6 +272,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Nov 28 2007 Tim Waugh <twaugh@redhat.com>
|
* Wed Nov 28 2007 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Add runlibfileifexists to gs_init.ps.
|
||||||
- Build with --disable-compile-inits (bug #402501).
|
- Build with --disable-compile-inits (bug #402501).
|
||||||
|
|
||||||
* Fri Nov 23 2007 Tim Waugh <twaugh@redhat.com> 8.61-1
|
* Fri Nov 23 2007 Tim Waugh <twaugh@redhat.com> 8.61-1
|
||||||
|
Loading…
Reference in New Issue
Block a user