summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-05-12 17:02:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-13 10:29:21 +0100
commit4e65b075bf7770a92ef212ea8a9949ba17a731c9 (patch)
treec01fa4e6ffb17b2a2817395e077dc843bcf74fce /meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb
parent409f1c23ffbfb00e08c43c1f9785f0a85f5d7e7e (diff)
downloadpoky-4e65b075bf7770a92ef212ea8a9949ba17a731c9.tar.gz
ghostscript: upgrade 10.05.0 -> 10.05.1
(From OE-Core rev: cc9ba7005fb155f4d5f2be9b23c12d14362a306b) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb')
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb
new file mode 100644
index 0000000000..8f132d55c6
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb
@@ -0,0 +1,78 @@
1SUMMARY = "The GPL Ghostscript PostScript/PDF interpreter"
2DESCRIPTION = "Ghostscript is used for PostScript/PDF preview and printing. Usually as \
3a back-end to a program such as ghostview, it can display PostScript and PDF \
4documents in an X11 environment. \
5\
6Furthermore, it can render PostScript and PDF files as graphics to be printed \
7on non-PostScript printers. Supported printers include common \
8dot-matrix, inkjet and laser models. \
9"
10HOMEPAGE = "http://www.ghostscript.com"
11SECTION = "console/utils"
12
13LICENSE = "AGPL-3.0-or-later"
14LIC_FILES_CHKSUM = "file://LICENSE;md5=f98ffa763e50cded76f49bce73aade16"
15
16DEPENDS = "tiff jpeg fontconfig cups libpng freetype zlib"
17
18UPSTREAM_CHECK_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases"
19UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
20
21def gs_verdir(v):
22 return "".join(v.split("."))
23
24
25SRC_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${@gs_verdir("${PV}")}/${BPN}-${PV}.tar.gz \
26 file://ghostscript-9.16-Werror-return-type.patch \
27 file://avoid-host-contamination.patch \
28 file://0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch \
29 "
30
31SRC_URI[sha256sum] = "121861b6d29b2461dec6575c9f3cab665b810bd408d4ec02c86719fa708b0a49"
32
33PACKAGECONFIG ??= ""
34PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
35PACKAGECONFIG[libidn] = "--with-libidn,--without-libidn,libidn"
36PACKAGECONFIG[libpaper] = "--with-libpaper,--without-libpaper,libpaper"
37PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR}, \
38 --without-x, virtual/libx11 libxext libxt"
39
40EXTRA_OECONF = "--with-jbig2dec \
41 --with-fontpath=${datadir}/fonts \
42 CUPSCONFIG="${STAGING_BINDIR_CROSS}/cups-config" \
43 PKGCONFIG=pkg-config \
44 "
45
46EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0"
47
48EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
49EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
50
51CC += "-std=gnu17"
52
53# Uses autoconf but not automake, can't do out-of-tree
54inherit autotools-brokensep pkgconfig
55
56# Prune the source tree of libraries that we're using our packaging of, so that
57# ghostscript can't link to them. Can't prune zlib as that's needed for the
58# native tools.
59prune_sources() {
60 rm -rf ${S}/jpeg/ ${S}/libpng/ ${S}/tiff/ ${S}/expat/ ${S}/freetype/ ${S}/cups/lib
61}
62do_unpack[postfuncs] += "prune_sources"
63
64do_install:append () {
65 oe_runmake DESTDIR=${D} install-so
66 oe_runmake DESTDIR=${D} install-data
67 cp -r ${S}/Resource ${D}${datadir}/ghostscript/${PV}/
68 cp -r ${S}/iccprofiles ${D}${datadir}/ghostscript/${PV}/
69}
70
71# ghostscript does not supports "arc"
72COMPATIBLE_HOST = "^(?!arc).*"
73
74# some entries in NVD uses gpl_ghostscript
75CVE_PRODUCT = "ghostscript gpl_ghostscript"
76
77CVE_STATUS[CVE-2023-38560] = "not-applicable-config: PCL isn't part of the Ghostscript release"
78CVE_STATUS[CVE-2023-38559] = "cpe-incorrect: Issue only appears in versions before 10.02.0"