Compare commits
163 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b175f73959 | ||
|
9de659f485 | ||
|
377f766308 | ||
|
a2b32416aa | ||
|
ca31b3580d | ||
|
55f4bded8e | ||
|
d7b61390b6 | ||
|
43fdf5458f | ||
|
f48bf3ee57 | ||
|
985444726f | ||
|
e723084803 | ||
|
c03198f2b5 | ||
|
8a2ef18611 | ||
|
6d297dbebc | ||
|
2540bfca80 | ||
|
20e4d6f2a0 | ||
|
e392a9d801 | ||
|
135047dbf9 | ||
|
2ff9bbbe3a | ||
|
c384a3e71c | ||
|
43577ed287 | ||
|
ad3a5f8abf | ||
|
669b003f5f | ||
|
0bcf2a24f5 | ||
|
d443c913ca | ||
|
d1f49b3354 | ||
|
1d7443aaf7 | ||
|
b2cdd99b6b | ||
|
40c51c3daa | ||
|
8ae3b4161c | ||
|
d135fffe8d | ||
|
e513f4fe02 | ||
|
fddd989a18 | ||
|
9f8ded33f8 | ||
|
bd71cc47fb | ||
|
c3c4fe1f29 | ||
|
e824d08f42 | ||
|
875bdaa410 | ||
|
17fb191147 | ||
|
5f57e18855 | ||
|
d49dec1f95 | ||
|
6d180b23f4 | ||
|
03b91a7480 | ||
|
a945254617 | ||
|
180f67b338 | ||
|
13ccdf9fd9 | ||
|
2613bfff5b | ||
|
5639564a7f | ||
|
ae42ff4a7a | ||
|
144a9672bc | ||
|
bf90b40e87 | ||
|
664e805a7e | ||
|
9963832f88 | ||
|
c3f8f72262 | ||
|
de509880fc | ||
|
3c6db04efb | ||
|
cec8a0c339 | ||
|
4f8244e427 | ||
|
cdec1614b9 | ||
|
40d27a2a53 | ||
|
4005df6659 | ||
|
f5a515ee87 | ||
|
4150c4a031 | ||
|
0363d796c7 | ||
|
5d3e940ae6 | ||
|
8dadf71929 | ||
|
d0ee4600a1 | ||
|
c3e94a436a | ||
|
71e17ce99c | ||
|
38a0fcd3d3 | ||
|
d0db90e01f | ||
|
5b38938a96 | ||
|
6c72f89839 | ||
|
7e9deb947d | ||
|
9a496b5437 | ||
|
4a5b5af0b0 | ||
|
b8d2b5621b | ||
|
b9f3bad209 | ||
|
6141770b81 | ||
|
d7d2317b15 | ||
|
89973ef806 | ||
|
f9fc41274d | ||
|
827a6b0701 | ||
|
003c4d1019 | ||
|
04d9ec2430 | ||
|
b4647b97bb | ||
|
799c0b3ab6 | ||
|
86ecf9757d | ||
|
fc8e11e15e | ||
|
b495bd07e5 | ||
|
8584c55789 | ||
|
a6303d9ad6 | ||
|
542bf98ad3 | ||
|
116f628c11 | ||
|
3f225aa5fc | ||
|
708ee8a75f | ||
|
aa2e277825 | ||
|
c3325574fe | ||
|
616ff0bd00 | ||
|
42c5ac1901 | ||
|
eb38bc4698 | ||
|
42b356b443 | ||
|
47e7ac9ba9 | ||
|
f67a584762 | ||
|
7646326921 | ||
|
a814454b4a | ||
|
2820519066 | ||
|
c2ef6f435b | ||
|
39d1ffaeef | ||
|
9d7ba60878 | ||
|
35937c39d6 | ||
|
d6c0bb7638 | ||
|
1f962491c5 | ||
|
09eb006d5a | ||
|
8ea9108a97 | ||
|
9c6b251bd1 | ||
|
b99bdece82 | ||
|
e780aa069d | ||
|
59d9392e85 | ||
|
2130e54c2a | ||
|
2b271b3c2f | ||
|
1b50a85f16 | ||
|
4390f8983c | ||
|
7356129314 | ||
|
db1dc89afd | ||
|
1bf1596c9d | ||
|
d097bf87e7 | ||
|
54036770ba | ||
|
d70368e6b0 | ||
|
0896c798bd | ||
|
ea3f92a32d | ||
|
676fb38fd7 | ||
|
97d2b5ac1d | ||
|
a5db1a22b3 | ||
|
7b9b1cb6ec | ||
|
22e228928c | ||
|
9fbac55a17 | ||
|
b66b2c06c9 | ||
|
cf0cd68b67 | ||
|
6e03243ad6 | ||
|
16c5028d5b | ||
|
f51d498501 | ||
|
cdf70806ff | ||
|
7a45f2454b | ||
|
7990b5b33b | ||
|
aa352e7228 | ||
|
f0e20cc4d2 | ||
|
edd7253dd4 | ||
|
066581c51d | ||
|
2a62a79b08 | ||
|
1756771a4c | ||
|
48b6ce9e2f | ||
|
9c51cf501f | ||
|
eeb4a8b436 | ||
|
5b275a0158 | ||
|
58978d5671 | ||
|
83dc79694a | ||
|
ef42ce6c5f | ||
|
819e8c9204 | ||
|
ff5a22d3ce | ||
|
24fb04e9e5 | ||
|
30ba988420 | ||
|
4617036289 |
16
.cvsignore
16
.cvsignore
@ -1,16 +0,0 @@
|
|||||||
CIDFnmap-cjk-20030115.tar.gz
|
|
||||||
acro5-cmaps-2001.tar.gz
|
|
||||||
adobe-cmaps-200202.tar.gz
|
|
||||||
eplaseren-1.0.2-550.tgz
|
|
||||||
epson740.tgz
|
|
||||||
gdevmd2k-0.2a.tar.gz
|
|
||||||
ghostscript-7.05.tar.bz2
|
|
||||||
gnu-drivers.tar.gz
|
|
||||||
gs550j1.tar.gz
|
|
||||||
gs6.51-cjk-M2-R3.tar.gz
|
|
||||||
gs704-j-vlib.zip
|
|
||||||
hpijs-1.3.tar.gz
|
|
||||||
jpegsrc.v6b.tar.gz
|
|
||||||
lexmarkgs990908.tar.gz
|
|
||||||
lxm3200-0.4.1-gs5.50-src.tar.gz
|
|
||||||
pcl3-3.3.tar.gz
|
|
27
.gitignore
vendored
Normal file
27
.gitignore
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
acro5-cmaps-2001.tar.gz
|
||||||
|
adobe-cmaps-200202.tar.gz
|
||||||
|
eplaser-3.1.4-705.tgz
|
||||||
|
epson740.tgz
|
||||||
|
gdevmd2k-0.2a.tar.gz
|
||||||
|
ghostscript-7.07.tar.bz2
|
||||||
|
gs550j1.tar.gz
|
||||||
|
gs6.51-cjk-M2-R3.tar.gz
|
||||||
|
gs704-j-vlib.zip
|
||||||
|
lexmarkgs990908.tar.gz
|
||||||
|
lxm3200-tweaked-20030501.tar.gz
|
||||||
|
pcl3-3.3.tar.gz
|
||||||
|
espgs-8.15rc3-source.tar.bz2
|
||||||
|
adobe-cmaps-200204.tar.gz
|
||||||
|
espgs-8.15rc4-source.tar.bz2
|
||||||
|
espgs-8.15.1-source.tar.bz2
|
||||||
|
adobe-cmaps-200406.tar.gz
|
||||||
|
espgs-8.15.2-source.tar.bz2
|
||||||
|
espgs-8.15.3-source.tar.bz2
|
||||||
|
espgs-8.15.4-source.tar.bz2
|
||||||
|
ghostscript-8.60-r8117.tar.bz2
|
||||||
|
ghostscript-8.60.tar.bz2
|
||||||
|
ghostscript-8.61.tar.bz2
|
||||||
|
ghostscript-8.62.tar.bz2
|
||||||
|
ghostscript-8.63.tar.bz2
|
||||||
|
ghostscript-8.64.tar.bz2
|
||||||
|
ghostscript-8.70.tar.bz2
|
9
CIDFnmap
Normal file
9
CIDFnmap
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
%!
|
||||||
|
% following lines are for CJK fonts.
|
||||||
|
(CIDFnmap.ja) .runlibfileifexists
|
||||||
|
(CIDFnmap.ko) .runlibfileifexists
|
||||||
|
(CIDFnmap.zh_CN) .runlibfileifexists
|
||||||
|
(CIDFnmap.zh_TW) .runlibfileifexists
|
||||||
|
% must be at the bottom of line to allow people overriding everything.
|
||||||
|
(CIDFnmap.local) .runlibfileifexists
|
||||||
|
|
6
Makefile
6
Makefile
@ -1,6 +0,0 @@
|
|||||||
# Makefile for source rpm: ghostscript
|
|
||||||
# $Id$
|
|
||||||
NAME := ghostscript
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
include ../common/Makefile.common
|
|
10
cidfmap
Normal file
10
cidfmap
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
%!
|
||||||
|
% Don't change following line. We should ensure that the original one is surely loaded.
|
||||||
|
(cidfmap.GS) .runlibfile
|
||||||
|
% following lines are for CJK fonts.
|
||||||
|
(cidfmap.ja) .runlibfileifexists
|
||||||
|
(cidfmap.ko) .runlibfileifexists
|
||||||
|
(cidfmap.zh_CN) .runlibfileifexists
|
||||||
|
(cidfmap.zh_TW) .runlibfileifexists
|
||||||
|
% must be at the bottom of line to allow people overriding everything.
|
||||||
|
(cidfmap.local) .runlibfileifexists
|
33
ghostscript-fPIC.patch
Normal file
33
ghostscript-fPIC.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff -up ghostscript-8.64/base/devs.mak.fPIC ghostscript-8.64/base/devs.mak
|
||||||
|
--- ghostscript-8.64/base/devs.mak.fPIC 2008-11-07 18:49:34.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/base/devs.mak 2009-02-04 11:34:21.000000000 +0000
|
||||||
|
@@ -456,7 +456,7 @@ $(GLOBJ)gdevx.$(OBJ) : $(GLSRC)gdevx.c $
|
||||||
|
$(GLCCSHARED) $(XINCLUDE) $(GLO_)gdevx.$(OBJ) $(C_) $(GLSRC)gdevx.c
|
||||||
|
|
||||||
|
$(GLOBJ)gdevxcmp.$(OBJ) : $(GLSRC)gdevxcmp.c $(GDEVX) $(math__h)
|
||||||
|
- $(GLCC) $(XINCLUDE) $(GLO_)gdevxcmp.$(OBJ) $(C_) $(GLSRC)gdevxcmp.c
|
||||||
|
+ $(GLCCSHARED) $(XINCLUDE) $(GLO_)gdevxcmp.$(OBJ) $(C_) $(GLSRC)gdevxcmp.c
|
||||||
|
|
||||||
|
$(GLOBJ)gdevxini.$(OBJ) : $(GLSRC)gdevxini.c $(GDEVX) $(memory__h)\
|
||||||
|
$(gserrors_h) $(gsparamx_h) $(gxdevmem_h) $(gdevbbox_h)
|
||||||
|
diff -up ghostscript-8.64/base/lib.mak.fPIC ghostscript-8.64/base/lib.mak
|
||||||
|
--- ghostscript-8.64/base/lib.mak.fPIC 2009-01-08 09:17:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/base/lib.mak 2009-02-04 11:34:21.000000000 +0000
|
||||||
|
@@ -894,7 +894,7 @@ $(GLOBJ)gsparam.$(OBJ) : $(GLSRC)gsparam
|
||||||
|
$(GLOBJ)gsparamx.$(OBJ) : $(GLSRC)gsparamx.c $(string__h)\
|
||||||
|
$(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gsparamx_h)\
|
||||||
|
$(gstypes_h)
|
||||||
|
- $(GLCC) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
|
||||||
|
+ $(GLCCSHARED) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
|
||||||
|
|
||||||
|
# Future replacement for gsparams.c
|
||||||
|
$(GLOBJ)gsparam2.$(OBJ) : $(GLSRC)gsparam2.c $(GXERR) $(memory__h)\
|
||||||
|
@@ -1085,7 +1085,7 @@ $(GLOBJ)gdevnfwd.$(OBJ) : $(GLSRC)gdevnf
|
||||||
|
|
||||||
|
# Provide a mapping between StandardEncoding and ISOLatin1Encoding.
|
||||||
|
$(GLOBJ)gdevemap.$(OBJ) : $(GLSRC)gdevemap.c $(AK) $(std_h)
|
||||||
|
- $(GLCC) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
|
||||||
|
+ $(GLCCSHARED) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
|
||||||
|
|
||||||
|
###### Create a pseudo-"feature" for the entire graphics library.
|
||||||
|
|
361
ghostscript-gs-executable.patch
Normal file
361
ghostscript-gs-executable.patch
Normal file
@ -0,0 +1,361 @@
|
|||||||
|
diff -up ghostscript-8.70/lib/bdftops.gs-executable ghostscript-8.70/lib/bdftops
|
||||||
|
--- ghostscript-8.70/lib/bdftops.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/bdftops 2009-08-03 17:53:20.569875831 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dBATCH -dNODISPLAY -- bdftops.ps "$@"
|
||||||
|
+exec "$gs" -q -dBATCH -dNODISPLAY -- bdftops.ps "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/dumphint.gs-executable ghostscript-8.70/lib/dumphint
|
||||||
|
--- ghostscript-8.70/lib/dumphint.gs-executable 2009-01-04 20:11:57.000000000 +0000
|
||||||
|
+++ ghostscript-8.70/lib/dumphint 2009-08-03 17:53:20.570875283 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
|
||||||
|
OPTIONS="-dSAFER -dDELAYSAFER"
|
||||||
|
@@ -27,4 +26,4 @@ if [ $# -ne 1 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY $OPTIONS -- "`dirname $0`/dumphint.ps" "$1"
|
||||||
|
+exec "$gs" -q -dNODISPLAY $OPTIONS -- "`dirname $0`/dumphint.ps" "$1"
|
||||||
|
diff -up ghostscript-8.70/lib/eps2eps.gs-executable ghostscript-8.70/lib/eps2eps
|
||||||
|
--- ghostscript-8.70/lib/eps2eps.gs-executable 2009-01-10 22:11:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.70/lib/eps2eps 2009-08-03 17:53:20.573877995 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
OPTIONS="-dDEVICEWIDTH=250000 -dDEVICEHEIGHT=250000"
|
||||||
|
while true
|
||||||
|
@@ -26,4 +25,4 @@ if [ $# -ne 2 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=epswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"
|
||||||
|
+exec "$gs" -q -sDEVICE=epswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"
|
||||||
|
diff -up ghostscript-8.70/lib/font2c.gs-executable ghostscript-8.70/lib/font2c
|
||||||
|
--- ghostscript-8.70/lib/font2c.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/font2c 2009-08-03 17:53:20.576874823 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -dWRITESYSTEMDICT -- font2c.ps "$@"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -dWRITESYSTEMDICT -- font2c.ps "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gsbj.gs-executable ghostscript-8.70/lib/gsbj
|
||||||
|
--- ghostscript-8.70/lib/gsbj.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gsbj 2009-08-03 17:53:20.579874829 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=bj10e -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
+exec "$gs" -q -sDEVICE=bj10e -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gsdj500.gs-executable ghostscript-8.70/lib/gsdj500
|
||||||
|
--- ghostscript-8.70/lib/gsdj500.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gsdj500 2009-08-03 17:53:20.582874574 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=djet500 -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
+exec "$gs" -q -sDEVICE=djet500 -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gsdj.gs-executable ghostscript-8.70/lib/gsdj
|
||||||
|
--- ghostscript-8.70/lib/gsdj.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gsdj 2009-08-03 17:53:20.585875161 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=deskjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
+exec "$gs" -q -sDEVICE=deskjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gslj.gs-executable ghostscript-8.70/lib/gslj
|
||||||
|
--- ghostscript-8.70/lib/gslj.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gslj 2009-08-03 17:53:20.588874966 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=laserjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
+exec "$gs" -q -sDEVICE=laserjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gslp.gs-executable ghostscript-8.70/lib/gslp
|
||||||
|
--- ghostscript-8.70/lib/gslp.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gslp 2009-08-03 17:53:20.591874666 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=epson -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
+exec "$gs" -q -sDEVICE=epson -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/gsnd.gs-executable ghostscript-8.70/lib/gsnd
|
||||||
|
--- ghostscript-8.70/lib/gsnd.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/gsnd 2009-08-03 17:53:20.594874682 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -dNODISPLAY "$@"
|
||||||
|
+exec "$gs" -dNODISPLAY "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/pdf2dsc.gs-executable ghostscript-8.70/lib/pdf2dsc
|
||||||
|
--- ghostscript-8.70/lib/pdf2dsc.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pdf2dsc 2009-08-03 17:53:20.597874954 +0100
|
||||||
|
@@ -11,9 +11,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
me=`basename $0`
|
||||||
|
|
||||||
|
@@ -31,5 +30,5 @@ pdffile=$1
|
||||||
|
dscfile=$2
|
||||||
|
: ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -dSAFER -dDELAYSAFER\
|
||||||
|
+exec "$gs" -q -dNODISPLAY -dSAFER -dDELAYSAFER\
|
||||||
|
-sPDFname="$pdffile" -sDSCname="$dscfile" pdf2dsc.ps -c quit
|
||||||
|
diff -up ghostscript-8.70/lib/pdf2ps.gs-executable ghostscript-8.70/lib/pdf2ps
|
||||||
|
--- ghostscript-8.70/lib/pdf2ps.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pdf2ps 2009-08-03 17:53:20.601874677 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
OPTIONS=""
|
||||||
|
while true
|
||||||
|
@@ -35,4 +34,4 @@ fi
|
||||||
|
# Doing an initial 'save' helps keep fonts from being flushed between pages.
|
||||||
|
# We have to include the options twice because -I only takes effect if it
|
||||||
|
# appears before other options.
|
||||||
|
-exec "$GS_EXECUTABLE" $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite "-sOutputFile=$outfile" $OPTIONS -c save pop -f "$1"
|
||||||
|
+exec "$gs" $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite "-sOutputFile=$outfile" $OPTIONS -c save pop -f "$1"
|
||||||
|
diff -up ghostscript-8.70/lib/pdfopt.gs-executable ghostscript-8.70/lib/pdfopt
|
||||||
|
--- ghostscript-8.70/lib/pdfopt.gs-executable 2008-05-25 03:17:14.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pdfopt 2009-08-03 17:53:20.604874898 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
OPTIONS="-dSAFER -dDELAYSAFER"
|
||||||
|
while true
|
||||||
|
@@ -26,4 +25,4 @@ if [ $# -ne 2 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY $OPTIONS -- pdfopt.ps "$1" "$2"
|
||||||
|
+exec "$gs" -q -dNODISPLAY $OPTIONS -- pdfopt.ps "$1" "$2"
|
||||||
|
diff -up ghostscript-8.70/lib/pf2afm.gs-executable ghostscript-8.70/lib/pf2afm
|
||||||
|
--- ghostscript-8.70/lib/pf2afm.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pf2afm 2009-08-03 17:53:20.608874740 +0100
|
||||||
|
@@ -10,8 +10,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -dSAFER -dDELAYSAFER -- pf2afm.ps "$@"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -dSAFER -dDELAYSAFER -- pf2afm.ps "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/pfbtopfa.gs-executable ghostscript-8.70/lib/pfbtopfa
|
||||||
|
--- ghostscript-8.70/lib/pfbtopfa.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pfbtopfa 2009-08-03 17:53:20.612874691 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
if [ $# -eq 2 ]
|
||||||
|
then
|
||||||
|
@@ -22,4 +21,4 @@ else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
|
||||||
|
diff -up ghostscript-8.70/lib/pphs.gs-executable ghostscript-8.70/lib/pphs
|
||||||
|
--- ghostscript-8.70/lib/pphs.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/pphs 2009-08-03 17:53:20.616874647 +0100
|
||||||
|
@@ -9,8 +9,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -- pphs.ps "$@"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -- pphs.ps "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/printafm.gs-executable ghostscript-8.70/lib/printafm
|
||||||
|
--- ghostscript-8.70/lib/printafm.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/printafm 2009-08-03 17:53:20.619874766 +0100
|
||||||
|
@@ -9,8 +9,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -- printafm.ps "$@"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -- printafm.ps "$@"
|
||||||
|
diff -up ghostscript-8.70/lib/ps2epsi.gs-executable ghostscript-8.70/lib/ps2epsi
|
||||||
|
--- ghostscript-8.70/lib/ps2epsi.gs-executable 2009-04-07 11:20:02.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/ps2epsi 2009-08-03 17:54:48.355750266 +0100
|
||||||
|
@@ -6,9 +6,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
# try to create a temporary file securely
|
||||||
|
if test -z "$TMPDIR"; then
|
||||||
|
@@ -50,7 +49,7 @@ else
|
||||||
|
outfile=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
-"$GS_EXECUTABLE" -q -dBATCH -dNOPAUSE -dSAFER -dDELAYSAFER -sDEVICE=bbox -sOutputFile=/dev/null "${infile}" 2>${outfile}
|
||||||
|
+"$gs" -q -dBATCH -dNOPAUSE -dSAFER -dDELAYSAFER -sDEVICE=bbox -sOutputFile=/dev/null "${infile}" 2>${outfile}
|
||||||
|
|
||||||
|
ls -l "${infile}" |
|
||||||
|
awk 'F==1 {
|
||||||
|
@@ -92,7 +91,7 @@ awk 'F==1 {
|
||||||
|
}
|
||||||
|
' F=1 - F=2 "${outfile}" >>"$tmpfile"
|
||||||
|
|
||||||
|
-"$GS_EXECUTABLE" -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit -sOutputFile=/dev/null "$tmpfile" ps2epsi.ps "$tmpfile" <"${infile}" 1>&2
|
||||||
|
+"$gs" -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit -sOutputFile=/dev/null "$tmpfile" ps2epsi.ps "$tmpfile" <"${infile}" 1>&2
|
||||||
|
rm -f "$tmpfile"
|
||||||
|
rm -rf "$tmpdir"
|
||||||
|
|
||||||
|
diff -up ghostscript-8.70/lib/ps2pdfwr.gs-executable ghostscript-8.70/lib/ps2pdfwr
|
||||||
|
--- ghostscript-8.70/lib/ps2pdfwr.gs-executable 2009-01-10 22:11:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.70/lib/ps2pdfwr 2009-08-03 17:53:20.626874926 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
OPTIONS="-dSAFER"
|
||||||
|
while true
|
||||||
|
@@ -42,4 +41,4 @@ fi
|
||||||
|
|
||||||
|
# We have to include the options twice because -I only takes effect if it
|
||||||
|
# appears before other options.
|
||||||
|
-exec "$GS_EXECUTABLE" $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"
|
||||||
|
+exec "$gs" $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"
|
||||||
|
diff -up ghostscript-8.70/lib/ps2ps.gs-executable ghostscript-8.70/lib/ps2ps
|
||||||
|
--- ghostscript-8.70/lib/ps2ps.gs-executable 2009-01-10 22:11:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.70/lib/ps2ps 2009-08-03 17:53:20.630875037 +0100
|
||||||
|
@@ -7,9 +7,8 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
OPTIONS="-dSAFER"
|
||||||
|
while true
|
||||||
|
@@ -27,4 +26,4 @@ if [ $# -ne 2 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -sDEVICE=pswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
|
||||||
|
+exec "$gs" -q -sDEVICE=pswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
|
||||||
|
diff -up ghostscript-8.70/lib/wftopfa.gs-executable ghostscript-8.70/lib/wftopfa
|
||||||
|
--- ghostscript-8.70/lib/wftopfa.gs-executable 2007-07-05 20:04:29.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/lib/wftopfa 2009-08-03 17:53:20.633874780 +0100
|
||||||
|
@@ -6,8 +6,7 @@
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
gs="`dirname $0`/$GS_EXECUTABLE"
|
||||||
|
if test ! -x "$gs"; then
|
||||||
|
- gs="$GS_EXECUTABLE"
|
||||||
|
+ gs="$gs"
|
||||||
|
fi
|
||||||
|
-GS_EXECUTABLE="$gs"
|
||||||
|
|
||||||
|
-exec "$GS_EXECUTABLE" -q -dNODISPLAY -- wftopfa.ps "$@"
|
||||||
|
+exec "$gs" -q -dNODISPLAY -- wftopfa.ps "$@"
|
81
ghostscript-jbig2dec-nullderef.patch
Normal file
81
ghostscript-jbig2dec-nullderef.patch
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
diff -up ghostscript-8.70/jbig2dec/jbig2_generic.c.jbig2dec-nullderef ghostscript-8.70/jbig2dec/jbig2_generic.c
|
||||||
|
--- ghostscript-8.70/jbig2dec/jbig2_generic.c.jbig2dec-nullderef 2009-05-29 07:48:44.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/jbig2dec/jbig2_generic.c 2009-08-03 17:51:13.864875636 +0100
|
||||||
|
@@ -596,6 +596,10 @@ jbig2_immediate_generic_region(Jbig2Ctx
|
||||||
|
memcpy (params.gbat, gbat, gbat_bytes);
|
||||||
|
|
||||||
|
image = jbig2_image_new(ctx, rsi.width, rsi.height);
|
||||||
|
+ if (image == NULL)
|
||||||
|
+ return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
|
||||||
|
+ "failed to allocate buffer for image");
|
||||||
|
+
|
||||||
|
jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, segment->number,
|
||||||
|
"allocated %d x %d image buffer for region decode results",
|
||||||
|
rsi.width, rsi.height);
|
||||||
|
diff -up ghostscript-8.70/jbig2dec/jbig2_symbol_dict.c.jbig2dec-nullderef ghostscript-8.70/jbig2dec/jbig2_symbol_dict.c
|
||||||
|
--- ghostscript-8.70/jbig2dec/jbig2_symbol_dict.c.jbig2dec-nullderef 2009-05-29 07:48:44.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/jbig2dec/jbig2_symbol_dict.c 2009-08-03 17:52:35.318750131 +0100
|
||||||
|
@@ -367,6 +367,11 @@ jbig2_decode_symbol_dict(Jbig2Ctx *ctx,
|
||||||
|
memcpy(region_params.gbat, params->sdat, sdat_bytes);
|
||||||
|
|
||||||
|
image = jbig2_image_new(ctx, SYMWIDTH, HCHEIGHT);
|
||||||
|
+ if (image == NULL) {
|
||||||
|
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
|
||||||
|
+ "failed to allocate image storage");
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
code = jbig2_decode_generic_region(ctx, segment, ®ion_params,
|
||||||
|
as, image, GB_stats);
|
||||||
|
@@ -517,6 +522,11 @@ jbig2_decode_symbol_dict(Jbig2Ctx *ctx,
|
||||||
|
ID, RDX, RDY);
|
||||||
|
|
||||||
|
image = jbig2_image_new(ctx, SYMWIDTH, HCHEIGHT);
|
||||||
|
+ if (image == NULL) {
|
||||||
|
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
|
||||||
|
+ "failed to allocate image storage");
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
/* Table 18 */
|
||||||
|
rparams.GRTEMPLATE = params->SDRTEMPLATE;
|
||||||
|
@@ -635,6 +645,16 @@ jbig2_decode_symbol_dict(Jbig2Ctx *ctx,
|
||||||
|
for (j = HCFIRSTSYM; j < NSYMSDECODED; j++) {
|
||||||
|
Jbig2Image *glyph;
|
||||||
|
glyph = jbig2_image_new(ctx, SDNEWSYMWIDTHS[j], HCHEIGHT);
|
||||||
|
+ if (glyph == NULL) {
|
||||||
|
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
|
||||||
|
+ "error allocating image storage for glyph");
|
||||||
|
+ while (--j >= HCFIRSTSYM) {
|
||||||
|
+ jbig2_image_release(ctx, SDNEWSYMS->glyphs[j]);
|
||||||
|
+ SDNEWSYMS->glyphs[j] = NULL;
|
||||||
|
+ }
|
||||||
|
+ jbig2_image_release(ctx, image);
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
jbig2_image_compose(ctx, glyph, image,
|
||||||
|
-x, 0, JBIG2_COMPOSE_REPLACE);
|
||||||
|
x += SDNEWSYMWIDTHS[j];
|
||||||
|
diff -up ghostscript-8.70/jbig2dec/jbig2_text.c.jbig2dec-nullderef ghostscript-8.70/jbig2dec/jbig2_text.c
|
||||||
|
--- ghostscript-8.70/jbig2dec/jbig2_text.c.jbig2dec-nullderef 2009-05-29 07:48:44.000000000 +0100
|
||||||
|
+++ ghostscript-8.70/jbig2dec/jbig2_text.c 2009-08-03 17:53:05.166750610 +0100
|
||||||
|
@@ -312,6 +312,9 @@ jbig2_decode_text_region(Jbig2Ctx *ctx,
|
||||||
|
IBO = IB;
|
||||||
|
refimage = jbig2_image_new(ctx, IBO->width + RDW,
|
||||||
|
IBO->height + RDH);
|
||||||
|
+ if (image == NULL)
|
||||||
|
+ return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
|
||||||
|
+ "could not allocate image storage");
|
||||||
|
|
||||||
|
/* Table 12 */
|
||||||
|
rparams.GRTEMPLATE = params->SBRTEMPLATE;
|
||||||
|
@@ -676,6 +679,9 @@ jbig2_parse_text_region(Jbig2Ctx *ctx, J
|
||||||
|
}
|
||||||
|
|
||||||
|
image = jbig2_image_new(ctx, region_info.width, region_info.height);
|
||||||
|
+ if (image == NULL)
|
||||||
|
+ return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
|
||||||
|
+ "unable to allocate image storage");
|
||||||
|
|
||||||
|
ws = jbig2_word_stream_buf_new(ctx, segment_data + offset, segment->data_length - offset);
|
||||||
|
if (!params.SBHUFF) {
|
14
ghostscript-multilib.patch
Normal file
14
ghostscript-multilib.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up ghostscript-8.61/ijs/Makefile.am.multilib ghostscript-8.61/ijs/Makefile.am
|
||||||
|
diff -up ghostscript-8.61/ijs/ijs-config.in.multilib ghostscript-8.61/ijs/ijs-config.in
|
||||||
|
--- ghostscript-8.61/ijs/ijs-config.in.multilib 2002-01-31 19:09:46.000000000 +0000
|
||||||
|
+++ ghostscript-8.61/ijs/ijs-config.in 2007-11-23 09:19:18.000000000 +0000
|
||||||
|
@@ -43,8 +43,7 @@ while test $# -gt 0; do
|
||||||
|
echo $includes
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
- libdirs=-L@libdir@
|
||||||
|
- echo $libdirs -lijs
|
||||||
|
+ echo -lijs
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${usage}" 1>&2
|
12
ghostscript-noopt.patch
Normal file
12
ghostscript-noopt.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up ghostscript-8.64/psi/int.mak.noopt ghostscript-8.64/psi/int.mak
|
||||||
|
--- ghostscript-8.64/psi/int.mak.noopt 2008-12-26 07:25:31.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/psi/int.mak 2009-02-04 11:33:48.000000000 +0000
|
||||||
|
@@ -111,7 +111,7 @@ $(PSOBJ)igc.$(OBJ) : $(PSSRC)igc.c $(GH)
|
||||||
|
$(PSOBJ)igcref.$(OBJ) : $(PSSRC)igcref.c $(GH) $(memory__h)\
|
||||||
|
$(gsexit_h) $(gsstruct_h)\
|
||||||
|
$(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h) $(store_h)
|
||||||
|
- $(PSCC) $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c
|
||||||
|
+ $(PSCC) -O0 $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c
|
||||||
|
|
||||||
|
$(PSOBJ)igcstr.$(OBJ) : $(PSSRC)igcstr.c $(GH) $(memory__h)\
|
||||||
|
$(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h)
|
12
ghostscript-pksmraw.patch
Normal file
12
ghostscript-pksmraw.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up ghostscript-8.64/base/gxclrast.c.pksmraw ghostscript-8.64/base/gxclrast.c
|
||||||
|
--- ghostscript-8.64/base/gxclrast.c.pksmraw 2008-12-13 20:05:37.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/base/gxclrast.c 2009-02-04 11:36:25.000000000 +0000
|
||||||
|
@@ -2685,8 +2685,6 @@ static int apply_create_compositor(gx_de
|
||||||
|
rc_increment(tdev);
|
||||||
|
*ptarget = tdev;
|
||||||
|
}
|
||||||
|
- if (code < 0)
|
||||||
|
- return code;
|
||||||
|
|
||||||
|
/* Perform any updates for the clist device required */
|
||||||
|
code = pcomp->type->procs.clist_compositor_read_update(pcomp,
|
26
ghostscript-runlibfileifexists.patch
Normal file
26
ghostscript-runlibfileifexists.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff -up ghostscript-8.64/Resource/Init/gs_init.ps.runlibfileifexists ghostscript-8.64/Resource/Init/gs_init.ps
|
||||||
|
--- ghostscript-8.64/Resource/Init/gs_init.ps.runlibfileifexists 2009-01-08 09:17:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/Resource/Init/gs_init.ps 2009-02-04 11:35:19.000000000 +0000
|
||||||
|
@@ -672,6 +672,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 -
|
||||||
|
@@ -840,6 +848,7 @@ userdict /.currentresourcefile //null pu
|
||||||
|
} bind def
|
||||||
|
% Temporarily substitute it for the real runlibfile.
|
||||||
|
/.runlibfile /runlibfile load def
|
||||||
|
+/.runlibfileifexists /runlibfileifexists load def
|
||||||
|
/runlibfile /runlibfile0 load def
|
||||||
|
|
||||||
|
% Create the error handling machinery.
|
31
ghostscript-scripts.patch
Normal file
31
ghostscript-scripts.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up ghostscript-8.64/lib/dvipdf.scripts ghostscript-8.64/lib/dvipdf
|
||||||
|
--- ghostscript-8.64/lib/dvipdf.scripts 2009-01-10 22:11:18.000000000 +0000
|
||||||
|
+++ ghostscript-8.64/lib/dvipdf 2009-02-04 11:32:31.000000000 +0000
|
||||||
|
@@ -44,4 +44,4 @@ fi
|
||||||
|
|
||||||
|
# We have to include the options twice because -I only takes effect if it
|
||||||
|
# appears before other options.
|
||||||
|
-exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
|
||||||
|
+exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
|
||||||
|
diff -up ghostscript-8.64/lib/pv.sh.scripts ghostscript-8.64/lib/pv.sh
|
||||||
|
--- ghostscript-8.64/lib/pv.sh.scripts 2007-07-05 11:41:52.000000000 +0100
|
||||||
|
+++ ghostscript-8.64/lib/pv.sh 2009-02-04 11:31:32.000000000 +0000
|
||||||
|
@@ -31,7 +31,7 @@ fi
|
||||||
|
GS_EXECUTABLE=gs
|
||||||
|
|
||||||
|
TEMPDIR=.
|
||||||
|
-PAGE=$1
|
||||||
|
+PAGE="$1"
|
||||||
|
shift
|
||||||
|
FILE="$1"
|
||||||
|
shift
|
||||||
|
@@ -44,7 +44,7 @@ else
|
||||||
|
tmpfile="$TEMPDIR/$FILE.$$.pv"
|
||||||
|
fi
|
||||||
|
trap "rm -rf $tmpfile" 0 1 2 15
|
||||||
|
-#dvips -D$RESOLUTION -p $PAGE -n 1 "$FILE" "$@" -o $tmpfile
|
||||||
|
-dvips -p $PAGE -n 1 "$FILE" "$@" -o $tmpfile
|
||||||
|
+#dvips -R -D$RESOLUTION -p $PAGE -n 1 "$FILE" "$@" -o $tmpfile
|
||||||
|
+dvips -R -p $PAGE -n 1 "$FILE" "$@" -o $tmpfile
|
||||||
|
$GS_EXECUTABLE $tmpfile
|
||||||
|
exit 0
|
26
ghostscript-system-jasper.patch
Normal file
26
ghostscript-system-jasper.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff -up ghostscript-8.64/base/sjpx.c.system-jasper ghostscript-8.64/base/sjpx.c
|
||||||
|
--- ghostscript-8.64/base/sjpx.c.system-jasper 2008-08-21 00:22:49.000000000 +0100
|
||||||
|
+++ ghostscript-8.64/base/sjpx.c 2009-02-04 11:35:56.000000000 +0000
|
||||||
|
@@ -34,14 +34,6 @@ static void s_jpxd_set_defaults(stream_s
|
||||||
|
private_st_jpxd_state(); /* creates a gc object for our state,
|
||||||
|
defined in sjpx.h */
|
||||||
|
|
||||||
|
-/* error reporting callback for the jpx library */
|
||||||
|
-static void
|
||||||
|
-s_jpx_jas_error_cb(jas_error_t err, char *msg)
|
||||||
|
-{
|
||||||
|
- dprintf2("jasper (code %d) %s", (int)err, msg);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-
|
||||||
|
/* initialize the steam.
|
||||||
|
this involves allocating the stream and image structures, and
|
||||||
|
initializing the decoder.
|
||||||
|
@@ -59,7 +51,6 @@ s_jpxd_init(stream_state * ss)
|
||||||
|
}
|
||||||
|
|
||||||
|
status = jas_init();
|
||||||
|
- jas_set_error_cb(s_jpx_jas_error_cb);
|
||||||
|
#ifdef JPX_DEBUG
|
||||||
|
/* raise the error reporting threshold from the default (0) */
|
||||||
|
jas_setdbglevel(1);
|
1163
ghostscript.spec
1163
ghostscript.spec
File diff suppressed because it is too large
Load Diff
17
sources
17
sources
@ -1,16 +1,3 @@
|
|||||||
75fbe1a1c474d67fbc71cc4b1dbfb833 CIDFnmap-cjk-20030115.tar.gz
|
|
||||||
2fbae60417d42779f6488ab897dcaaf6 acro5-cmaps-2001.tar.gz
|
2fbae60417d42779f6488ab897dcaaf6 acro5-cmaps-2001.tar.gz
|
||||||
e8fbffadb8d70ce5f92708a699ae7765 adobe-cmaps-200202.tar.gz
|
dfc93dd2aaaf2b86d2fd55f654c13261 adobe-cmaps-200406.tar.gz
|
||||||
911c7865a83a69135417989dee53f8fc eplaseren-1.0.2-550.tgz
|
526366f8cb4fda0d3d293597cc5b984b ghostscript-8.70.tar.bz2
|
||||||
2c6ebfe51cab34ee61e3dd524c8640cc epson740.tgz
|
|
||||||
5ed2b4218b8f77cb411f3d2e4509ed24 gdevmd2k-0.2a.tar.gz
|
|
||||||
821caada7e265ea5b698a78e6b029734 ghostscript-7.05.tar.bz2
|
|
||||||
9b25d4dd54d3297f33a8f7609fba70dd gnu-drivers.tar.gz
|
|
||||||
d202cd105c496b7f0eb5221316fb7b7f gs550j1.tar.gz
|
|
||||||
6f8e90effe12527a4c3b36ea4ce47b3c gs6.51-cjk-M2-R3.tar.gz
|
|
||||||
b32da7d61421384a0874037576033861 gs704-j-vlib.zip
|
|
||||||
9d0b79d0fae39f3efc5b8db60f51a8fa hpijs-1.3.tar.gz
|
|
||||||
dbd5f3b47ed13132f04c685d608a7547 jpegsrc.v6b.tar.gz
|
|
||||||
aea08da4e37ab68ed6f1dc451f24b30b lexmarkgs990908.tar.gz
|
|
||||||
ec11b9ef72ecaabb61eeba27e93f9f2b lxm3200-0.4.1-gs5.50-src.tar.gz
|
|
||||||
34e664c2a98b847598f8441f8cac7ab6 pcl3-3.3.tar.gz
|
|
||||||
|
Loading…
Reference in New Issue
Block a user