Compare commits
391 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
eff4bacea9 | ||
|
1074f516e4 | ||
|
739f5614e6 | ||
|
feb0824213 | ||
|
8c47682ea5 | ||
|
51ebf65bc1 | ||
|
d84f0e02dd | ||
|
7a5a4a21d1 | ||
|
50b6192323 | ||
|
5f432cb7e0 | ||
|
c7d686002c | ||
|
68499706a5 | ||
|
7237d438e3 | ||
|
80985fa14c | ||
|
eb126a7860 | ||
|
4aeef6dc39 | ||
|
24dae22c79 | ||
|
9e5f137b6a | ||
|
2f99dfaf61 | ||
|
ffc3312309 | ||
|
c542db81c4 | ||
|
4489aac000 | ||
|
4300802b69 | ||
|
836e3bbded | ||
|
d9b0f026d4 | ||
|
e9d3d79e4f | ||
|
5cfddfeb15 | ||
|
f57ad54bb1 | ||
|
455c9842a6 | ||
|
5e3e208813 | ||
|
08e89d9f23 | ||
|
c4ba7ef379 | ||
|
488986c926 | ||
|
f50db1b29c | ||
|
dc0fc10e7e | ||
|
999742fb01 | ||
|
57b8712a83 | ||
|
d4cc58dc0f | ||
|
b364eac6bc | ||
|
31ae65acee | ||
|
a84c27abc6 | ||
|
41ef5a5180 | ||
|
383c9a87a7 | ||
|
0fae297398 | ||
|
bbcf3c6fcf | ||
|
98998b885f | ||
|
9c8808ccb1 | ||
|
a0426f4076 | ||
|
fcd14f5464 | ||
|
20f8834834 | ||
|
70ec04d0f5 | ||
|
909a3d934a | ||
|
1cb04289f7 | ||
|
b4ed15bc8b | ||
|
982e6b6614 | ||
|
747dde6f3c | ||
|
efbc16ceea | ||
|
0ef006c94c | ||
|
cfc0ec50e1 | ||
|
a8b1f7b7fc | ||
|
8b876747e4 | ||
|
b35e0e64c9 | ||
|
cb6524b50f | ||
|
9851ff8c03 | ||
|
6d215360a2 | ||
|
8152b01886 | ||
|
068e7291ae | ||
|
64c688ea43 | ||
|
e6211e7d49 | ||
|
49a7508642 | ||
|
03a292cd62 | ||
|
a317f6b732 | ||
|
a7538063e5 | ||
|
133be3feed | ||
|
e7cddeec9c | ||
|
04f1d88ab0 | ||
|
ead0e99b22 | ||
|
cab932c03b | ||
|
95acfdb02b | ||
|
2998f8d822 | ||
|
405d207f89 | ||
|
54422c3b6d | ||
|
ea33f65ef3 | ||
|
41ebc2cdb2 | ||
|
29821914dd | ||
|
9049c1bb30 | ||
|
55bdfab05e | ||
|
2fe3729be3 | ||
|
f162a59f0f | ||
|
9aeffaf6ca | ||
|
a65b257eae | ||
|
2ac3edf665 | ||
|
8ffc6df09a | ||
|
562801bfb7 | ||
|
63ba0ce8b3 | ||
|
1a1240ee01 | ||
|
a8e0cd1845 | ||
|
c3040aac84 | ||
|
79fc258206 | ||
|
c2b12d3ce8 | ||
|
9490e69583 | ||
|
135b241fd4 | ||
|
12643a2fd3 | ||
|
2ef2200368 | ||
|
8f7093b325 | ||
|
246996011c | ||
|
eefd1c3191 | ||
|
6f55838ebd | ||
|
97cc1c6744 | ||
|
23d38d6e8d | ||
|
e63809fac7 | ||
|
3c5a2bb8dc | ||
|
59b553b156 | ||
|
b161816eee | ||
|
d3ec0a6a55 | ||
|
c68619eeb3 | ||
|
d61c474922 | ||
|
218fb198bb | ||
|
0c64c5e544 | ||
|
213d41aedc | ||
|
f9f0f1a8e1 | ||
|
d315dcd79a | ||
|
1e7576b8e9 | ||
|
54e47e6634 | ||
|
194420449e | ||
|
5a1f2e81bc | ||
|
1deda51edb | ||
|
e32518926c | ||
|
5c5fe72db2 | ||
|
4783568235 | ||
|
9930de3ed8 | ||
|
970432e3bd | ||
|
0635370fe9 | ||
|
d4326877f7 | ||
|
a70c402edd | ||
|
7520dec851 | ||
|
176932c607 | ||
|
bc34ffaf5b | ||
|
14bd3ebe38 | ||
|
d24aadea6e | ||
|
92552fba1e | ||
|
f35503ceee | ||
|
ad7e8f307d | ||
|
722aebdff5 | ||
|
3f91350de4 | ||
|
c755f33188 | ||
|
51b02415a0 | ||
|
2ba9c298b1 | ||
|
3ca561ed10 | ||
|
bf4041ceb4 | ||
|
0c1e7532d2 | ||
|
383821be8d | ||
|
447e220937 | ||
|
6526222ba4 | ||
|
5a5e48476c | ||
|
b3e2cfe5e0 | ||
|
0ded731e99 | ||
|
fede8614e7 | ||
|
56ff80c357 | ||
|
2e84257b37 | ||
|
2270f43c6a | ||
|
92a0736e01 | ||
|
996241c7f8 | ||
|
4257a957f7 | ||
|
fde4161596 | ||
|
02461c194f | ||
|
33c4fe6c8b | ||
|
967dc4507b | ||
|
9156a8754c | ||
|
36eb6194ad | ||
|
4a1dbe16b0 | ||
|
561959feca | ||
|
37694f5adf | ||
|
986d069293 | ||
|
636305d658 | ||
|
5c333312ef | ||
|
ba097d7d21 | ||
|
130b322cda | ||
|
9c4a7af0ae | ||
|
4ec0ef2948 | ||
|
51650e03ec | ||
|
53d0adbaef | ||
|
32b0bc8f49 | ||
|
b41625a6c8 | ||
|
34e7790c64 | ||
|
e29b690010 | ||
|
70ad2fc0e1 | ||
|
1a559dafda | ||
|
e47f4a7f1c | ||
|
cc2011b1fc | ||
|
d12a8ce983 | ||
|
61b75ba371 | ||
|
23a2c4f876 | ||
|
2c5f5bee43 | ||
|
d34af71c88 | ||
|
23f47da015 | ||
|
865c7ebf9b | ||
|
e83bbf85ef | ||
|
babc847f71 | ||
|
a5134c5ade | ||
|
be331bbe54 | ||
|
efdde165b7 | ||
|
e9e47e765b | ||
|
a8817762e8 | ||
|
b96cc94f6f | ||
|
a737ed8a5c | ||
|
117c32f095 | ||
|
e680683871 | ||
|
1b044baeeb | ||
|
d7e1d637e5 | ||
|
4a93f4fa87 | ||
|
7f19d06c8e | ||
|
1491db8937 | ||
|
2cf5f5aea9 | ||
|
a1afccab2e | ||
|
263db7bc48 | ||
|
30670513ba | ||
|
59db7de965 | ||
|
2656f78197 | ||
|
d847a511f6 | ||
|
01bff26309 | ||
|
972caf59ac | ||
|
15621b2b5a | ||
|
fd5bf36ff0 | ||
|
3016e15a0a | ||
|
a82e34fd34 | ||
|
0bb2e4c55a | ||
|
6df2cffe50 | ||
|
b76f8755c2 | ||
|
12d81d66b1 | ||
|
b62d20303f | ||
|
d22b996f9e | ||
|
85995c54ff | ||
|
41ce9923c6 | ||
|
47b08ccdb4 | ||
|
f8f891f65a | ||
|
8a86623f3f | ||
|
7e0d0560ab | ||
|
75f99711b7 | ||
|
b0a02a722b | ||
|
9f0b67fe7c | ||
|
3116a3c29a | ||
|
3f2c793a48 | ||
|
733f9f4f59 | ||
|
d6a8216e11 | ||
|
6fd98b0a31 | ||
|
6a01a7c271 | ||
|
1762de5bb7 | ||
|
05c0279c51 | ||
|
22dff3b597 | ||
|
dd8785b474 | ||
|
84e3fdeb18 | ||
|
0e32b81991 | ||
|
70fe506577 | ||
|
1fa2af9aa9 | ||
|
2cf528ec0f | ||
|
d121f06743 | ||
|
d05124d3e5 | ||
|
08d24bfef6 | ||
|
2050c98074 | ||
|
89ab42c26f | ||
|
3e4c6fe3b7 | ||
|
f08a51a880 | ||
|
58606b2428 | ||
|
a671dd4185 | ||
|
89d528c749 | ||
|
c09a9fe907 | ||
|
8d8748a20b | ||
|
f96f06c143 | ||
|
1b697da225 | ||
|
ff17cad90e | ||
|
bd2db7c620 | ||
|
6ab0d7dace | ||
|
fc314e5732 | ||
|
1555141555 | ||
|
0c939a784d | ||
|
06f2d18d9f | ||
|
5c25057eb1 | ||
|
da5847e794 | ||
|
f7888265f7 | ||
|
36419052f9 | ||
|
20e71695f9 | ||
|
b5ff478a7d | ||
|
09a3e2a37b | ||
|
f2d513ae8b | ||
|
b524225de7 | ||
|
ff495ba08e | ||
|
9446583888 | ||
|
043d60f302 | ||
|
b7c1eb3c1e | ||
|
07ece8cc04 | ||
|
d2691e1748 | ||
|
9adfd97848 | ||
|
3259141cf0 | ||
|
d7fa87e26a | ||
|
3da9d92cb8 | ||
|
2265fe0750 | ||
|
ee8eec74b1 | ||
|
566900fdec | ||
|
bb877a03dc | ||
|
baa88bc29f | ||
|
aaa2f40d15 | ||
|
42590c5c21 | ||
|
6e08ee84ce | ||
|
f21c6e9eb1 | ||
|
d2ff86e758 | ||
|
b8ce1a7b91 | ||
|
89e8e44b4d | ||
|
78127402c2 | ||
|
26861b1b4f | ||
|
93c8b75925 | ||
|
f8f327274e | ||
|
a68fa66733 | ||
|
1d190d27f5 | ||
|
8fb25e0ad2 | ||
|
da3a5d39ba | ||
|
e1f8bc1189 | ||
|
389a5d8f2d | ||
|
48b7127ce2 | ||
|
20d7c68a42 | ||
|
447cd5b79f | ||
|
12518b6b76 | ||
|
245be3029b | ||
|
05c310554c | ||
|
65276dde90 | ||
|
7cc772ff32 | ||
|
407204b668 | ||
|
66c3749723 | ||
|
6c921dfc73 | ||
|
45109fe931 | ||
|
47113264a3 | ||
|
06055cd6f7 | ||
|
ef16ab3992 | ||
|
20bfe6e080 | ||
|
57f3798439 | ||
|
970da03f19 | ||
|
74e57dbfa3 | ||
|
a4a834a987 | ||
|
2ac9b5fd68 | ||
|
0a08c4e277 | ||
|
c14c331cad | ||
|
0dfb5c0456 | ||
|
b2727e93a1 | ||
|
faa929d18b | ||
|
c0ac82aa41 | ||
|
8e258de719 | ||
|
a1de13651f | ||
|
41ce6ddc0a | ||
|
244cfbf7d1 | ||
|
8590f53889 | ||
|
9693b90353 | ||
|
d177acaf0f | ||
|
cdd169a7b6 | ||
|
acf8e9f01e | ||
|
6d266b1e63 | ||
|
1d8d9b49a6 | ||
|
310a76fc37 | ||
|
923b7d4a06 | ||
|
0057c84fd1 | ||
|
55e8fbca58 | ||
|
bda1546e93 | ||
|
b7ad57d64e | ||
|
1c8db13590 | ||
|
a309054d1b | ||
|
b0b63e57dc | ||
|
1c615e73d9 | ||
|
e82d38730b | ||
|
acc3e0ee06 | ||
|
d4867991c3 | ||
|
26d7b7a3d0 | ||
|
f17ffe4c87 | ||
|
d6f6040e9f | ||
|
407e0cf741 | ||
|
aa4475c8c7 | ||
|
55552e4126 | ||
|
d6620b3695 | ||
|
495e977fdd | ||
|
28df9c5785 | ||
|
4deb15317f | ||
|
e7b0486879 | ||
|
af6faed769 | ||
|
c259c84e9e | ||
|
31aefac56c | ||
|
5357184847 | ||
|
f6e2595ab3 | ||
|
181cea6580 | ||
|
cd9372848f | ||
|
4cf804b4e9 | ||
|
4581572020 | ||
|
084d933387 | ||
|
9ba9caf316 |
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
|
46
.gitignore
vendored
Normal file
46
.gitignore
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
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.xz
|
||||
ghostscript-8.71.tar.xz
|
||||
/ghostscript-9.00.tar.xz
|
||||
/ghostscript-9.01.tar.bz2
|
||||
/ghostscript-9.02.tar.bz2
|
||||
/ghostscript-9.04.tar.bz2
|
||||
/ghostscript-9.05.tar.bz2
|
||||
/ghostscript-9.06.tar.bz2
|
||||
/ghostscript-9.06-cleaned.tar.bz2
|
||||
/ghostscript-9.07.tar.bz2
|
||||
/ghostscript-9.07-cleaned.tar.bz2
|
||||
/ghostscript-9.08rc1.tar.gz
|
||||
/ghostscript-9.08.tar.bz2
|
||||
/ghostscript-9.09rc1.tar.gz
|
||||
/ghostscript-9.09.tar.bz2
|
||||
/ghostscript-9.10.tar.bz2
|
||||
/ghostscript-9.10-cleaned.tar.bz2
|
||||
/ghostscript-9.12-cleaned.tar.bz2
|
||||
/ghostscript-9.14-cleaned.tar.bz2
|
||||
/ghostscript-9.14-cleaned-1.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
|
26
generate-tarball.sh
Executable file
26
generate-tarball.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION="$1"
|
||||
|
||||
rm -rf ghostscript-"$VERSION"
|
||||
tar jxvf ghostscript-"$VERSION".tar.bz2
|
||||
|
||||
GS=ghostscript-"$VERSION"
|
||||
|
||||
# License unclear (bug #1000387).
|
||||
rm -r "$GS"/jpegxr
|
||||
|
||||
# License unknown (bug #1149617).
|
||||
## Documentation
|
||||
rm -f "$GS"/contrib/japanese/doc/djgpp.txt
|
||||
rm -f "$GS"/contrib/japanese/doc/gdevmag.txt
|
||||
rm -f "$GS"/contrib/japanese/doc/gs261j.*
|
||||
## Example code
|
||||
rm -f "$GS"/examples/chess.ps
|
||||
## %ram% IODevice
|
||||
rm -f "$GS"/base/gsioram.c
|
||||
rm -f "$GS"/base/ramfs.c
|
||||
rm -f "$GS"/base/ramfs.h
|
||||
sed -i -e 's, $(GLD)ramfs.dev,,' "$GS"/Makefile.in "$GS"/psi/msvc.mak
|
||||
|
||||
tar jcvf ghostscript-"$VERSION"-cleaned-1.tar.bz2 "$GS"
|
9
ghostscript-Fontmap.local.patch
Normal file
9
ghostscript-Fontmap.local.patch
Normal file
@ -0,0 +1,9 @@
|
||||
diff -up ghostscript-8.71/Resource/Init/Fontmap.Fontmap.local ghostscript-8.71/Resource/Init/Fontmap
|
||||
--- ghostscript-8.71/Resource/Init/Fontmap.Fontmap.local 2008-08-08 05:22:38.000000000 +0100
|
||||
+++ ghostscript-8.71/Resource/Init/Fontmap 2010-09-03 11:53:47.273865979 +0100
|
||||
@@ -2,3 +2,5 @@
|
||||
% See Fontmap.GS for the syntax of real Fontmap files.
|
||||
%% Replace 1 (Fontmap.GS)
|
||||
(Fontmap.GS) .runlibfile
|
||||
+% must be at the bottom of line to allow people overriding everything.
|
||||
+(Fontmap.local) .runlibfileifexists
|
21
ghostscript-crash.patch
Normal file
21
ghostscript-crash.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -up ghostscript-9.10/psi/ialloc.c.crash ghostscript-9.10/psi/ialloc.c
|
||||
--- ghostscript-9.10/psi/ialloc.c.crash 2013-08-30 11:37:28.000000000 +0100
|
||||
+++ ghostscript-9.10/psi/ialloc.c 2014-06-04 10:47:58.294526685 +0100
|
||||
@@ -160,6 +160,7 @@ gs_alloc_ref_array(gs_ref_memory_t * mem
|
||||
uint num_refs, client_name_t cname)
|
||||
{
|
||||
ref *obj;
|
||||
+ int i;
|
||||
|
||||
/* If we're allocating a run of refs already, */
|
||||
/* and we aren't about to overflow the maximum run length, use it. */
|
||||
@@ -224,6 +225,9 @@ gs_alloc_ref_array(gs_ref_memory_t * mem
|
||||
cp->where = (ref_packed *)obj;
|
||||
}
|
||||
}
|
||||
+ for (i = 0; i < num_refs; i++) {
|
||||
+ make_null(&(obj[i]));
|
||||
+ }
|
||||
make_array(parr, attrs | mem->space, num_refs, obj);
|
||||
return 0;
|
||||
}
|
11
ghostscript-gdevcups-debug-uninit.patch
Normal file
11
ghostscript-gdevcups-debug-uninit.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -up ghostscript-9.07/cups/gdevcups.c.gdevcups-debug-uninit ghostscript-9.07/cups/gdevcups.c
|
||||
--- ghostscript-9.07/cups/gdevcups.c.gdevcups-debug-uninit 2013-02-14 07:58:16.000000000 +0000
|
||||
+++ ghostscript-9.07/cups/gdevcups.c 2013-02-14 17:16:59.677951232 +0000
|
||||
@@ -830,6 +830,7 @@ cups_get_matrix(gx_device *pdev, /* I -
|
||||
dmprintf4(pdev->memory, "DEBUG2: PageSize = [ %d %d ], HWResolution = [ %d %d ]\n",
|
||||
cups->header.PageSize[0], cups->header.PageSize[1],
|
||||
cups->header.HWResolution[0], cups->header.HWResolution[1]);
|
||||
+ if (size_set)
|
||||
dmprintf4(pdev->memory, "DEBUG2: HWMargins = [ %.3f %.3f %.3f %.3f ]\n",
|
||||
pdev->HWMargins[0], pdev->HWMargins[1], pdev->HWMargins[2],
|
||||
pdev->HWMargins[3]);
|
12
ghostscript-gs694154.patch
Normal file
12
ghostscript-gs694154.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ghostscript-9.12/base/gsicc.c.gs694154 ghostscript-9.12/base/gsicc.c
|
||||
--- ghostscript-9.12/base/gsicc.c.gs694154 2014-03-25 08:52:16.000000000 +0000
|
||||
+++ ghostscript-9.12/base/gsicc.c 2014-03-26 11:32:31.406034840 +0000
|
||||
@@ -468,6 +468,8 @@ gx_remap_ICC_imagelab(const gs_client_co
|
||||
cmm_dev_profile_t *dev_profile;
|
||||
|
||||
code = dev_proc(dev, get_profile)(dev, &dev_profile);
|
||||
+ if (dev_profile == NULL)
|
||||
+ return gs_throw(gs_error_Fatal, "Attempting to do ICC remap with no profile");
|
||||
num_des_comps = gsicc_get_device_profile_comps(dev_profile);
|
||||
rendering_params.black_point_comp = pis->blackptcomp;
|
||||
rendering_params.graphics_type_tag = dev->graphics_type_tag;
|
12
ghostscript-icc-missing-check.patch
Normal file
12
ghostscript-icc-missing-check.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ghostscript-9.12/base/gsicc_manage.c.icc-missing-check ghostscript-9.12/base/gsicc_manage.c
|
||||
--- ghostscript-9.12/base/gsicc_manage.c.icc-missing-check 2014-03-26 11:31:11.296570797 +0000
|
||||
+++ ghostscript-9.12/base/gsicc_manage.c 2014-03-26 11:32:10.384912584 +0000
|
||||
@@ -613,6 +613,8 @@ gsicc_set_srcgtag_struct(gsicc_manager_t
|
||||
icc_profile =
|
||||
gsicc_profile_new(str, mem, curr_ptr, strlen(curr_ptr));
|
||||
code = sfclose(str);
|
||||
+ }
|
||||
+ if (str != NULL && icc_profile != NULL) {
|
||||
gsicc_init_profile_info(icc_profile);
|
||||
cmm = gsCMM_DEFAULT;
|
||||
/* Check if this object is a devicelink profile.
|
35
ghostscript-iccprofiles-initdir.patch
Normal file
35
ghostscript-iccprofiles-initdir.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff -up ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir ghostscript-9.06/base/gsicc_manage.c
|
||||
--- ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir 2012-08-09 13:58:22.102364807 +0100
|
||||
+++ ghostscript-9.06/base/gsicc_manage.c 2012-08-09 14:09:24.495864641 +0100
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "gsicc_create.h"
|
||||
#include "gpmisc.h"
|
||||
#include "gxdevice.h"
|
||||
+#include "gxiodev.h"
|
||||
|
||||
#define ICC_HEADER_SIZE 128
|
||||
|
||||
@@ -2176,8 +2177,21 @@ gs_currenticcdirectory(const gs_state *
|
||||
const gs_lib_ctx_t *lib_ctx = pgs->memory->gs_lib_ctx;
|
||||
|
||||
if (lib_ctx->profiledir == NULL) {
|
||||
- pval->data = (const byte *)rfs;
|
||||
- pval->size = strlen(rfs);
|
||||
+ int have_rom_device = 0;
|
||||
+ int i;
|
||||
+
|
||||
+ for (i = 0; i < gx_io_device_table_count; i++) {
|
||||
+ const gx_io_device *iodev = lib_ctx->io_device_table[i];
|
||||
+ const char *dname = iodev->dname;
|
||||
+
|
||||
+ if (dname && strlen(dname) == 5 && !memcmp("%rom%", dname, 5)) {
|
||||
+ have_rom_device = 1;
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ pval->data = (const byte *)(have_rom_device ? rfs : "");
|
||||
+ pval->size = strlen((const char *)pval->data);
|
||||
pval->persistent = true;
|
||||
} else {
|
||||
pval->data = (const byte *)(lib_ctx->profiledir);
|
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)
|
52
ghostscript-runlibfileifexists.patch
Normal file
52
ghostscript-runlibfileifexists.patch
Normal file
@ -0,0 +1,52 @@
|
||||
diff -up ghostscript-9.12/Resource/Init/gs_fonts.ps.runlibfileifexists ghostscript-9.12/Resource/Init/gs_fonts.ps
|
||||
--- ghostscript-9.12/Resource/Init/gs_fonts.ps.runlibfileifexists 2014-03-25 08:52:16.000000000 +0000
|
||||
+++ ghostscript-9.12/Resource/Init/gs_fonts.ps 2014-03-26 12:01:48.248748767 +0000
|
||||
@@ -95,10 +95,19 @@ userdict /Fontmap .FontDirectory maxleng
|
||||
% stack: dict file fontname filename|aliasname
|
||||
1 index type /stringtype eq
|
||||
1 index type /nametype eq and 1 index xcheck and
|
||||
- 1 index /run eq 2 index /.runlibfile eq or and {
|
||||
+ 1 index /run eq 2 index /.runlibfile eq 3 index /.runlibfileifexists eq or or and {
|
||||
% This is an inclusion entry.
|
||||
- pop findlibfile { exch pop } { file } ifelse
|
||||
- 2 index exch .readFontmap pop
|
||||
+ 0 index /.runlibfileifexists eq {
|
||||
+ pop findlibfile {
|
||||
+ exch pop
|
||||
+ 2 index exch .readFontmap pop
|
||||
+ } {
|
||||
+ pop
|
||||
+ } ifelse
|
||||
+ } {
|
||||
+ pop findlibfile { exch pop } { file } ifelse
|
||||
+ 2 index exch .readFontmap pop
|
||||
+ } ifelse
|
||||
} {
|
||||
% This is a real entry.
|
||||
% Read and pop tokens until a semicolon.
|
||||
diff -up ghostscript-9.12/Resource/Init/gs_init.ps.runlibfileifexists ghostscript-9.12/Resource/Init/gs_init.ps
|
||||
--- ghostscript-9.12/Resource/Init/gs_init.ps.runlibfileifexists 2014-03-25 08:52:16.000000000 +0000
|
||||
+++ ghostscript-9.12/Resource/Init/gs_init.ps 2014-03-26 12:01:48.248748767 +0000
|
||||
@@ -681,6 +681,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 -
|
||||
@@ -849,6 +857,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.
|
10
ghostscript-scripts.patch
Normal file
10
ghostscript-scripts.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -up ghostscript-9.00/lib/dvipdf.scripts ghostscript-9.00/lib/dvipdf
|
||||
--- ghostscript-9.00/lib/dvipdf.scripts 2010-06-03 01:32:07.000000000 +0100
|
||||
+++ ghostscript-9.00/lib/dvipdf 2010-09-23 09:56:35.592796899 +0100
|
||||
@@ -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 -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
|
||||
+exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
|
||||
|
24
ghostscript-sys-zlib.patch
Normal file
24
ghostscript-sys-zlib.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -up ghostscript-9.12/configure.ac.sys-zlib ghostscript-9.12/configure.ac
|
||||
--- ghostscript-9.12/configure.ac.sys-zlib 2014-03-26 11:48:54.983972222 +0000
|
||||
+++ ghostscript-9.12/configure.ac 2014-03-26 11:49:36.807230531 +0000
|
||||
@@ -854,7 +854,7 @@ AC_MSG_CHECKING([for local zlib source])
|
||||
dnl zlib is needed for language level 3, and libpng
|
||||
# we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
|
||||
# this seems a harmless default
|
||||
-ZLIBDIR=src
|
||||
+ZLIBDIR=$includedir
|
||||
AUX_SHARED_ZLIB=
|
||||
|
||||
if test -d $srcdir/zlib; then
|
||||
diff -up ghostscript-9.12/configure.sys-zlib ghostscript-9.12/configure
|
||||
--- ghostscript-9.12/configure.sys-zlib 2014-03-26 11:49:45.547284521 +0000
|
||||
+++ ghostscript-9.12/configure 2014-03-26 11:49:56.171350127 +0000
|
||||
@@ -6254,7 +6254,7 @@ fi
|
||||
$as_echo_n "checking for local zlib source... " >&6; }
|
||||
# we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
|
||||
# this seems a harmless default
|
||||
-ZLIBDIR=src
|
||||
+ZLIBDIR=$includedir
|
||||
AUX_SHARED_ZLIB=
|
||||
|
||||
if test -d $srcdir/zlib; then
|
25
ghostscript-trio-g.patch
Normal file
25
ghostscript-trio-g.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -up ghostscript-9.14/trio/trio.c.trio-g ghostscript-9.14/trio/trio.c
|
||||
--- ghostscript-9.14/trio/trio.c.trio-g 2014-03-26 12:53:48.000000000 +0000
|
||||
+++ ghostscript-9.14/trio/trio.c 2014-08-15 10:10:39.714065073 +0100
|
||||
@@ -3172,6 +3172,9 @@ TRIO_ARGS6((self, number, flags, width,
|
||||
if (integerNumber > epsilon)
|
||||
{
|
||||
integerDigits += (int)TrioLogarithm(integerNumber, base);
|
||||
+ /* Deal with the dangers of casting long double to int */
|
||||
+ if (integerNumber - TrioPower (base, integerDigits) >= 0)
|
||||
+ integerDigits++;
|
||||
}
|
||||
|
||||
fractionDigits = precision;
|
||||
@@ -3255,6 +3258,11 @@ TRIO_ARGS6((self, number, flags, width,
|
||||
integerDigits = (integerNumber > epsilon)
|
||||
? 1 + (int)TrioLogarithm(integerNumber, base)
|
||||
: 1;
|
||||
+
|
||||
+ /* Deal with the dangers of casting long double to int */
|
||||
+ if (integerNumber - TrioPower (base, integerDigits) >= 0)
|
||||
+ integerDigits++;
|
||||
+
|
||||
if (flags & FLAGS_FLOAT_G)
|
||||
{
|
||||
if (flags & FLAGS_ALTERNATIVE)
|
22
ghostscript-wrf-snprintf.patch
Normal file
22
ghostscript-wrf-snprintf.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -up ghostscript-9.07/base/wrfont.c.wrf-snprintf ghostscript-9.07/base/wrfont.c
|
||||
--- ghostscript-9.07/base/wrfont.c.wrf-snprintf 2013-07-01 13:02:33.373244683 +0100
|
||||
+++ ghostscript-9.07/base/wrfont.c 2013-07-01 13:04:55.022864299 +0100
|
||||
@@ -72,7 +72,8 @@ WRF_wfloat(WRF_output * a_output, double
|
||||
{
|
||||
char buffer[32];
|
||||
|
||||
- gs_sprintf(buffer, "%f", a_float);
|
||||
+ if (gs_snprintf(buffer, sizeof (buffer), "%f", a_float) >= sizeof (buffer))
|
||||
+ abort();
|
||||
WRF_wstring(a_output, buffer);
|
||||
}
|
||||
|
||||
@@ -81,6 +82,7 @@ WRF_wint(WRF_output * a_output, long a_i
|
||||
{
|
||||
char buffer[32];
|
||||
|
||||
- gs_sprintf(buffer, "%ld", a_int);
|
||||
+ if (gs_snprintf(buffer, sizeof (buffer), "%ld", a_int) >= sizeof (buffer))
|
||||
+ abort();
|
||||
WRF_wstring(a_output, buffer);
|
||||
}
|
1570
ghostscript.spec
1570
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
|
||||
e8fbffadb8d70ce5f92708a699ae7765 adobe-cmaps-200202.tar.gz
|
||||
911c7865a83a69135417989dee53f8fc eplaseren-1.0.2-550.tgz
|
||||
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
|
||||
dfc93dd2aaaf2b86d2fd55f654c13261 adobe-cmaps-200406.tar.gz
|
||||
9f52809b19afa78dd25d6f9378184e69 ghostscript-9.14-cleaned-1.tar.bz2
|
||||
|
Loading…
Reference in New Issue
Block a user