ghostscript: Upgrade 10.07.1 -> 10.08.0
PATCH 1/1 ghostscript: Upgrade 10.07.1 -> 10.08.0
Upgrade to release 10.08.0:
- This release addresses a number of potential security issues.
- The wider adoption of "C99" and later features has reached the point where we must ease our policy on this area. The Ghostscript/GhostPDL codebase will remain "C89" plus widely supported extensions but, as of the 10.08.0 release, our included third party libraries will be permitted to use "C99" and potentially later features.
- The 10.08.0 release removes a number of old, unmaintained and (at the time of this release) untestable and thus unmaintainable devices from the default builds, as a precursor to removal of the device sources in the next release.
- The usual round of bug fixes, compatibility changes, and incremental improvements.
Drop out-of-tree.patch because it was a backported patch that has been included in this release with commit 8c71024:
Bug 709459: Fix out of tree cross compile builds
Drop 0001-psi-ztype.c-replace-static-const-double-with-macros-.patch because it has been fixed in the upstream with commit b0d1a49:
Bug 709589: Fix clang/C23 build failure
---
...ace-static-const-double-with-macros-.patch | 33 ----------------
.../ghostscript/ghostscript/out-of-tree.patch | 39 -------------------
...ript_10.07.1.bb => ghostscript_10.08.0.bb} | 4 +-
3 files changed, 1 insertion(+), 75 deletions(-)
delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/0001-psi-ztype.c-replace-static-const-double-with-macros-.patch
delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/out-of-tree.patch
rename meta/recipes-extended/ghostscript/{ghostscript_10.07.1.bb => ghostscript_10.08.0.bb} (93%)meta/recipes-extended/ghostscript/ghostscript/0001-psi-ztype.c-replace-static-const-double-with-macros-.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 0298799777bd179c455e5ce8d6008b2d84732967 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 7 Apr 2026 22:40:26 -0700 -Subject: [PATCH] psi/ztype.c: replace static const double with macros for - min/max int bounds - -Clang rejects floating-point arithmetic in static initializers when it -cannot evaluate them as constant expressions at compile time. Replace -min_int_real and max_int_real with #define macros so the arithmetic is -evaluated at each call site, fixing the build without any semantic change. - -Upstream-Status: Submitted [https://bugs.ghostscript.com/show_bug.cgi?id=709309] -Signed-off-by: Khem Raj <[email protected]> ---- - psi/ztype.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/psi/ztype.c b/psi/ztype.c -index a01d83f..d454778 100644 ---- a/psi/ztype.c -+++ b/psi/ztype.c -@@ -53,8 +53,9 @@ static int convert_to_string(const gs_memory_t *mem, os_ptr, os_ptr); - */ - #define ALT_MIN_INT (((ps_int)-1) << ((sizeof(ps_int) * 8) - 1)) - #define ALT_MAX_INT (~(ALT_MIN_INT)) --static const double min_int_real = (ALT_MIN_INT * 1.0 - 1); --static const double max_int_real = (ALT_MAX_INT * 1.0 + 1); -+ -+#define min_int_real ((double)(ALT_MIN_INT) - 1.0) -+#define max_int_real ((double)(ALT_MAX_INT) + 1.0) - - #define REAL_CAN_BE_INT(v)\ - ((v) > min_int_real && (v) < max_int_real)
meta/recipes-extended/ghostscript/ghostscript/out-of-tree.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 8c71024e8b9dae1b691ad96eb5af39840fb73a99 Mon Sep 17 00:00:00 2001 -From: Chris Liddell <[email protected]> -Date: Tue, 4 Aug 2026 09:30:31 +0100 -Subject: Bug 709459: Fix out of tree cross compile builds - -Fix path/file name for the configure generated arch.h. - -Upstream-Status: Backport [https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=8c71024e] -Signed-off-by: Ross Burton <[email protected]> ---- - configure.ac | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/configure.ac b/configure.ac -index b25aaab1a..fe79c416e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -45,8 +45,8 @@ fi - THEMAKEFILE="${MAKEFILE:-Makefile}" - AUXFLAGS_MAK=auxflags.mak - --ARCH_AUTOCONF_HEADER=arch-config/arch_autoconf.h --ARCH_AUTOCONF_HEADER_PROTO=arch/arch_autoconf.h.in -+ARCH_AUTOCONF_HEADER=./arch-config/arch_autoconf.h -+ARCH_AUTOCONF_HEADER_PROTO=$srcdir/arch/arch_autoconf.h.in - - dnl -------------------------------------------------- - dnl Local utilities -@@ -400,7 +400,7 @@ if test x"$with_arch_h" = x""; then - *) - ARCH_CONF_HEADER= - if test x"$host" != x"$build"; then -- ARCH_CONF_HEADER="\$(GLSRCDIR)/../$ARCH_AUTOCONF_HEADER" -+ ARCH_CONF_HEADER="$ARCH_AUTOCONF_HEADER" - else - ARCH_CONF_HEADER= - fi --- -cgit v1.2.3
meta/recipes-extended/ghostscript/ghostscript_10.08.0.bb renamed from meta/recipes-extended/ghostscript/ghostscript_10.07.1.bb +1 -3
@@ -24,11 +24,9 @@ def gs_verdir(v): 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 \ - file://out-of-tree.patch \ - file://0001-psi-ztype.c-replace-static-const-double-with-macros-.patch \ " -SRC_URI[sha256sum] = "2fc74362f9be6fae1b0a65d38fdcfd4f0b518cc3b07c5581fb661eb4d2e15251" +SRC_URI[sha256sum] = "caf199e3f233f1290b27d0972d636f66c303355f2353309b7bfddf1edda06b3d" PACKAGECONFIG ??= "" PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
Signature · 1 line
2.47.3