diff options
author | Joe Slater <jslater@windriver.com> | 2017-06-15 14:35:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-23 11:44:13 +0100 |
commit | d3e8504ce7a25908fe5ad7973d807d199950dc9a (patch) | |
tree | 767fdefdb315ad3dabe68ec465f92d9816b06fe3 /meta/recipes-extended/ghostscript/ghostscript_9.20.bb | |
parent | a16d0f6c496f4c8c61accbabd6769839bda62f36 (diff) | |
download | poky-d3e8504ce7a25908fe5ad7973d807d199950dc9a.tar.gz |
ghostscript: move to version 9.21
Eliminate CVE patches that are now in source.
Add CUPSCONFIG to configure options.
(From OE-Core rev: 3041f94896b50a5a5d19caf0dd0e7910c730e18e)
Signed-off-by: Joe Slater <jslater@windriver.com>
to be scrunched
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript_9.20.bb')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.20.bb | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.20.bb b/meta/recipes-extended/ghostscript/ghostscript_9.20.bb deleted file mode 100644 index 2e6fefff3c..0000000000 --- a/meta/recipes-extended/ghostscript/ghostscript_9.20.bb +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | SUMMARY = "The GPL Ghostscript PostScript/PDF interpreter" | ||
2 | DESCRIPTION = "Ghostscript is used for PostScript/PDF preview and printing. Usually as \ | ||
3 | a back-end to a program such as ghostview, it can display PostScript and PDF \ | ||
4 | documents in an X11 environment. \ | ||
5 | \ | ||
6 | Furthermore, it can render PostScript and PDF files as graphics to be printed \ | ||
7 | on non-PostScript printers. Supported printers include common \ | ||
8 | dot-matrix, inkjet and laser models. \ | ||
9 | " | ||
10 | HOMEPAGE = "http://www.ghostscript.com" | ||
11 | SECTION = "console/utils" | ||
12 | |||
13 | LICENSE = "GPLv3" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE;md5=70dc2bac4d0ce4448da873cd86b123fc" | ||
15 | |||
16 | DEPENDS = "ghostscript-native tiff jpeg fontconfig cups libpng" | ||
17 | DEPENDS_class-native = "libpng-native" | ||
18 | |||
19 | UPSTREAM_CHECK_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases" | ||
20 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" | ||
21 | |||
22 | SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs920/${BPN}-${PV}.tar.gz \ | ||
23 | file://ghostscript-9.15-parallel-make.patch \ | ||
24 | file://ghostscript-9.16-Werror-return-type.patch \ | ||
25 | file://png_mak.patch \ | ||
26 | file://do-not-check-local-libpng-source.patch \ | ||
27 | " | ||
28 | |||
29 | SRC_URI = "${SRC_URI_BASE} \ | ||
30 | file://ghostscript-9.02-prevent_recompiling.patch \ | ||
31 | file://ghostscript-9.02-genarch.patch \ | ||
32 | file://objarch.h \ | ||
33 | file://cups-no-gcrypt.patch \ | ||
34 | file://CVE-2017-7207.patch \ | ||
35 | file://CVE-2016-10219.patch \ | ||
36 | file://CVE-2016-10220.patch \ | ||
37 | file://CVE-2017-5951.patch \ | ||
38 | file://CVE-2016-8602.patch \ | ||
39 | file://CVE-2017-7975.patch \ | ||
40 | file://CVE-2016-7977.patch \ | ||
41 | file://CVE-2016-7978.patch \ | ||
42 | file://CVE-2016-7979.patch \ | ||
43 | file://CVE-2017-9216.patch \ | ||
44 | " | ||
45 | |||
46 | SRC_URI_class-native = "${SRC_URI_BASE} \ | ||
47 | file://ghostscript-native-fix-disable-system-libtiff.patch \ | ||
48 | file://base-genht.c-add-a-preprocessor-define-to-allow-fope.patch \ | ||
49 | " | ||
50 | |||
51 | SRC_URI[md5sum] = "93c5987cd3ab341108be1ebbaadc24fe" | ||
52 | SRC_URI[sha256sum] = "949b64b46ecf8906db54a94ecf83ab97534ebf946f770d3c3f283cb469cb6e14" | ||
53 | |||
54 | EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec \ | ||
55 | --with-fontpath=${datadir}/fonts \ | ||
56 | --without-libidn --with-cups-serverbin=${exec_prefix}/lib/cups \ | ||
57 | --with-cups-datadir=${datadir}/cups \ | ||
58 | " | ||
59 | |||
60 | EXTRA_OECONF_append_mipsarcho32 = " --with-large_color_index=0" | ||
61 | |||
62 | # Explicity disable libtiff, fontconfig, | ||
63 | # freetype, cups for ghostscript-native | ||
64 | EXTRA_OECONF_class-native = "--without-x --with-system-libtiff=no \ | ||
65 | --without-jbig2dec \ | ||
66 | --with-fontpath=${datadir}/fonts \ | ||
67 | --without-libidn --disable-fontconfig \ | ||
68 | --disable-freetype --disable-cups" | ||
69 | |||
70 | # This has been fixed upstream but for now we need to subvert the check for time.h | ||
71 | # http://bugs.ghostscript.com/show_bug.cgi?id=692443 | ||
72 | # http://bugs.ghostscript.com/show_bug.cgi?id=692426 | ||
73 | CFLAGS += "-DHAVE_SYS_TIME_H=1" | ||
74 | BUILD_CFLAGS += "-DHAVE_SYS_TIME_H=1" | ||
75 | |||
76 | inherit autotools | ||
77 | |||
78 | do_configure_prepend () { | ||
79 | mkdir -p obj | ||
80 | mkdir -p soobj | ||
81 | if [ -e ${WORKDIR}/objarch.h ]; then | ||
82 | cp ${WORKDIR}/objarch.h obj/arch.h | ||
83 | fi | ||
84 | } | ||
85 | |||
86 | do_configure_append () { | ||
87 | # copy tools from the native ghostscript build | ||
88 | if [ "${PN}" != "ghostscript-native" ]; then | ||
89 | mkdir -p obj/aux soobj | ||
90 | for i in genarch genconf mkromfs echogs gendev genht; do | ||
91 | cp ${STAGING_BINDIR_NATIVE}/ghostscript-${PV}/$i obj/aux/$i | ||
92 | done | ||
93 | fi | ||
94 | } | ||
95 | |||
96 | do_install_append () { | ||
97 | mkdir -p ${D}${datadir}/ghostscript/${PV}/ | ||
98 | cp -r ${S}/Resource ${D}${datadir}/ghostscript/${PV}/ | ||
99 | cp -r ${S}/iccprofiles ${D}${datadir}/ghostscript/${PV}/ | ||
100 | } | ||
101 | |||
102 | do_compile_class-native () { | ||
103 | mkdir -p obj | ||
104 | for i in genarch genconf mkromfs echogs gendev genht; do | ||
105 | oe_runmake obj/aux/$i | ||
106 | done | ||
107 | } | ||
108 | |||
109 | do_install_class-native () { | ||
110 | install -d ${D}${bindir}/ghostscript-${PV} | ||
111 | for i in genarch genconf mkromfs echogs gendev genht; do | ||
112 | install -m 755 obj/aux/$i ${D}${bindir}/ghostscript-${PV}/$i | ||
113 | done | ||
114 | } | ||
115 | |||
116 | BBCLASSEXTEND = "native" | ||
117 | |||
118 | # ghostscript does not supports "arc" | ||
119 | COMPATIBLE_HOST = "^(?!arc).*" | ||