mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
ghostscript: upgrade 10.03.1 -> 10.04.0
avoid-host-contamination.patch refreshed for 10.04.0 Changelog: =========== - addresses CVEs: CVE-2024-46951, CVE-2024-46952, CVE-2024-46953, CVE-2024-46954, CVE-2024-46955, CVE-2024-46956 - add protection for device selection from PostScript input. - efforts in code hygiene and maintainability continue. - The usual round of bug fixes, compatibility changes, and incremental improvements. - add the capability to build with the Tesseract OCR engine. (From OE-Core rev: a0c802e9b1d8400589aede20e52f40d10a344314) (From OE-Core rev: 067e769ada6c8cd5783c6d32f24cea9f0e4ed666) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
5ec843a287
commit
6d7266c511
@@ -0,0 +1,75 @@
|
||||
SUMMARY = "The GPL Ghostscript PostScript/PDF interpreter"
|
||||
DESCRIPTION = "Ghostscript is used for PostScript/PDF preview and printing. Usually as \
|
||||
a back-end to a program such as ghostview, it can display PostScript and PDF \
|
||||
documents in an X11 environment. \
|
||||
\
|
||||
Furthermore, it can render PostScript and PDF files as graphics to be printed \
|
||||
on non-PostScript printers. Supported printers include common \
|
||||
dot-matrix, inkjet and laser models. \
|
||||
"
|
||||
HOMEPAGE = "http://www.ghostscript.com"
|
||||
SECTION = "console/utils"
|
||||
|
||||
LICENSE = "AGPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f98ffa763e50cded76f49bce73aade16"
|
||||
|
||||
DEPENDS = "tiff jpeg fontconfig cups libpng freetype zlib"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases"
|
||||
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
|
||||
|
||||
def gs_verdir(v):
|
||||
return "".join(v.split("."))
|
||||
|
||||
|
||||
SRC_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${@gs_verdir("${PV}")}/${BPN}-${PV}.tar.gz \
|
||||
file://ghostscript-9.16-Werror-return-type.patch \
|
||||
file://avoid-host-contamination.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "c764dfbb7b13fc71a7a05c634e014f9bb1fb83b899fe39efc0b6c3522a9998b1"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
|
||||
PACKAGECONFIG[libidn] = "--with-libidn,--without-libidn,libidn"
|
||||
PACKAGECONFIG[libpaper] = "--with-libpaper,--without-libpaper,libpaper"
|
||||
PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR}, \
|
||||
--without-x, virtual/libx11 libxext libxt"
|
||||
|
||||
EXTRA_OECONF = "--with-jbig2dec \
|
||||
--with-fontpath=${datadir}/fonts \
|
||||
CUPSCONFIG="${STAGING_BINDIR_CROSS}/cups-config" \
|
||||
PKGCONFIG=pkg-config \
|
||||
"
|
||||
|
||||
EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0"
|
||||
|
||||
EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
|
||||
EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
|
||||
|
||||
# Uses autoconf but not automake, can't do out-of-tree
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
# Prune the source tree of libraries that we're using our packaging of, so that
|
||||
# ghostscript can't link to them. Can't prune zlib as that's needed for the
|
||||
# native tools.
|
||||
prune_sources() {
|
||||
rm -rf ${S}/jpeg/ ${S}/libpng/ ${S}/tiff/ ${S}/expat/ ${S}/freetype/ ${S}/cups/lib
|
||||
}
|
||||
do_unpack[postfuncs] += "prune_sources"
|
||||
|
||||
do_install:append () {
|
||||
oe_runmake DESTDIR=${D} install-so
|
||||
oe_runmake DESTDIR=${D} install-data
|
||||
cp -r ${S}/Resource ${D}${datadir}/ghostscript/${PV}/
|
||||
cp -r ${S}/iccprofiles ${D}${datadir}/ghostscript/${PV}/
|
||||
}
|
||||
|
||||
# ghostscript does not supports "arc"
|
||||
COMPATIBLE_HOST = "^(?!arc).*"
|
||||
|
||||
# some entries in NVD uses gpl_ghostscript
|
||||
CVE_PRODUCT = "ghostscript gpl_ghostscript"
|
||||
|
||||
CVE_STATUS[CVE-2023-38560] = "not-applicable-config: PCL isn't part of the Ghostscript release"
|
||||
CVE_STATUS[CVE-2023-38559] = "cpe-incorrect: Issue only appears in versions before 10.02.0"
|
||||
Reference in New Issue
Block a user