From patchwork Tue Apr 28 06:43:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 87043 X-Patchwork-Delegate: fabien.thomas@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56664FF8870 for ; Tue, 28 Apr 2026 06:46:16 +0000 (UTC) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7087.1777358772590999743 for ; Mon, 27 Apr 2026 23:46:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=T/Y5UG7n; spf=pass (domain: linaro.org, ip: 209.85.208.170, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-38e9653b580so122530311fa.2 for ; Mon, 27 Apr 2026 23:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777358770; x=1777963570; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OlqzUZJ7Or5Lyj0U70aSerGe7SzPc0K4ChqVdZM1e10=; b=T/Y5UG7nP/KujZVNQhDT/V5LJ+HVThUdbQ9NsHwCa55RmwbEdAKrtjqNdUQTpC6ydg eysvfblDfetxA6oniMhB5un3vEaMTZC9RUvqcFsU0BptarSLafyAT/V0gubp4QHNuaL4 Nv1VhqtF8SgQ7ylP9FFpEtfymOBj+JEn5VLafPPxbJ7gKrxre2MYB2qYggm3Pfdfabc2 /Vk80mHLCiVmEb9zWUn1w8LJOc2/ddmMpZZwERhF0uzFntbNEYQqujatxFUFjnaqvcE6 +v8H9kDALKyRYDqs+hAocfKHZw9PJEIIvOTRA/bzpolu8jznopPmYaJ/Cm+UukKKHlj4 SaPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777358770; x=1777963570; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OlqzUZJ7Or5Lyj0U70aSerGe7SzPc0K4ChqVdZM1e10=; b=GNlnI1wZNj+gPriWpJI05SgC1+xz67MrEMoZCrszdQjVj62VpsuFzS8fQaeRQIBTSp pcuQfb1D1gpORR7XtgFNv6M/9hQlhVwg3QoclJ/i3BS8RKBSLm9OkDeu0ZzphdhOfAil 9LSx8st+wcPSCDfU50G0fi20Xzl/gS/drX8GJgXgypfNs6pdyeS01HVT6GnMrkdt67BJ PAV6JRdZRx+9fI92bbZA2ZUC4yV86EWfYbK/JVswqZlDiAPfnso4r07yp5eJ5UUSrhQq V0eO4rt6K6wYy77ik0hstxUHffAOb2LC+0iPQ/+9SX3XdKqClpRLbMmutGWyFcM8fX9Y Cc7Q== X-Gm-Message-State: AOJu0Yyl5djatcDyZ6YiVoxvm1BIzsNgEz2PLlB/8Zf03vSOb8I0dFwM WywHPHnD1f0IjVWFuy4qkspBBPIBJAgG+scif5JX31jfTpKWYggwpYddmU9ezG6lFX/21j4f6oT DSca7 X-Gm-Gg: AeBDieutOkdd6Zz2g0y5tt+wo8q+z6reli8X4BPJLqXczChBYU2Fsmh4m4Wq354Ry81 cjhpVl+T9dii5dcE81MQz8OzFEyL0BXpfw53g9VJu+2dzMiZo9xP6LzLeI2c/zuX70NwcbJ/Lyk giaQIQ5PT/OjPMOlLkMrjl0ml/VxGak6ba5OK+A87jjCPBAyXDTEk5q+yyzbCbBVjbOMBs/sLn+ drei5HvCdwMcvOnzE1J61Y+10CTm3L+1axuJGNbHhzvjsP8VHVTmLgZTHW4YiChfo69MBlAl9oJ B1HqMdt4JZokNki0fjJ6qj8jYZfwK2N0dmLxqEvUWZyvcM2T8gltu0RcIh+a8EZNk9LAMRIwO8v 1FYiswqoJ2uBS0wapD3b42vhlVwudxAtEHr0iGbgaFcTaqw7B9FCFtezGMhsG5qB1ndDU48bsOq W8ZpdKusvg0xf0JAQclzn/T82/b+fNfEudixVYftyWaarfb9nXPvULG2W3roZ0xw== X-Received: by 2002:a05:651c:3243:b0:38d:eb82:d80f with SMTP id 38308e7fff4ca-39240b36f96mr5665451fa.0.1777358770297; Mon, 27 Apr 2026 23:46:10 -0700 (PDT) Received: from nuoska (78-27-71-225.bb.dnainternet.fi. [78.27.71.225]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3923f34533esm4415911fa.16.2026.04.27.23.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 23:46:09 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Khem Raj , Richard Purdie , Mikko Rapeli Subject: [scarthgap][PATCH 1/2] ghostscript: Pin to C17 std Date: Tue, 28 Apr 2026 09:43:19 +0300 Message-ID: <20260428064329.1591381-1-mikko.rapeli@linaro.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Apr 2026 06:46:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236037 From: Khem Raj The code defines a custom 'bool' type (as an 'int'), which is incompatible with C23 in which bool is a keyword, and trying to use fails because 'int' and 'bool' are used interchangeably in the code. Add the flag to CC variable, since CFLAGS is used by both c and c++ compilers and clang++ is less forgiving when C compiler only option is used on its cmdline so it complains about -std=gnu17 and bails out. (From OE-Core rev: 49657089ef215824f8f79a81deb7baf4f27d0030) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Mikko Rapeli --- meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb index a48ad671c7..57a1098521 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb @@ -50,6 +50,8 @@ 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)}" +CC += "-std=gnu17" + # Uses autoconf but not automake, can't do out-of-tree inherit autotools-brokensep pkgconfig From patchwork Tue Apr 28 06:43:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 87044 X-Patchwork-Delegate: fabien.thomas@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 543FBFF885A for ; Tue, 28 Apr 2026 06:46:16 +0000 (UTC) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6838.1777358775291720557 for ; Mon, 27 Apr 2026 23:46:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=Da9cj0Zc; spf=pass (domain: linaro.org, ip: 209.85.208.178, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-38ddd8d3b7fso84690441fa.3 for ; Mon, 27 Apr 2026 23:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777358773; x=1777963573; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NaXCxItamtiDu/3wfVe+Aw3vdEZKxtKhbdQeHOa0jY0=; b=Da9cj0Zchtyqh54iFpKQexLtmzPHcDU4RwyQxcwso7G2fB4bFjpXvEPCmqhfQIkQBm OJ92WLAcItazmMJepshhUn18kspBEmRXOADmbMSOC/uMxD2rHU0rsfamUQq+Iz4wW5u4 pWpREQGvGVijZKSXmSmfG4CcXvm9bBkgnBacjP5DuCdRmssQ/Hvu1QSkFd5k0nP5X02r 5VEXiSKhJ9jsxuHVb5dKUX4umADgKZkeSktRk7eBFg1RG3hvnbPGVufUnxnwETHELey3 0Lsa3Gh8AcvrNk8yIQNRBFyZvg7rHW1eKufau1FJbaexuNsjdMOsFIV4pNfPDpNDYz0A 7I1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777358773; x=1777963573; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=NaXCxItamtiDu/3wfVe+Aw3vdEZKxtKhbdQeHOa0jY0=; b=ltH8hbya8tWRJU/6I/GlnMbm/bjwfdHwvBE4CfDufvufgYDJWtPt2JkDTUUAV22Npp N70Pt3Qdl93PscuLL5TODxwUzKL7NQmSkGjSGM6LMrSfsXFcG251YvM1W5wWNH09TdCi GHyO/dDIBjdIcuXDA5BZ5q0s9CUa4qcJNM4VhT4hjIovb1wU6yN2EOinQnwBh3CSbZsx khVoVYmx3gJhJeMTWxofkYPhoudiJ6AEdA8Qqo+HN7eqn9UtuPCMLQSAQBPmijqYLagh a6vHgX55LRzS1Rj6Ybt/IwedzqRTdamk0ZDsJGjs9oiBuUt3lpH3R2UiidG6SU+cEKx0 pq5w== X-Gm-Message-State: AOJu0YyC/GiitJJeZN4JuD4a18KslbFqTHlZWrijypx9gf2szureltUr Mzdd+MpE9HSvBOYwE5zuj/S7RZlt/VexATkDVY/T8q0VytKpUIaFK8TUfvTPKLiFNbf3gVrTw4G 8h5MQ X-Gm-Gg: AeBDietgiD8cg842msY0ayj9CnGMGFRHguxT1qu3wHvAssSuGrm3JGlriseZ/VTKmLD br+7QsROdnBzikEXsmPsjqki3xTNBi0RS/N2EIFPsmHPUSQOApCR/s4oAf+B7Dk2GvnTVjS8qUR Y9SZo8QdBdN1qWrtTpcwUwLSgCDMce6KHrugrts1mCHW2mMyVmUfaL4lETpfFpdb9q57OLTQ4si /qJbQE/CXFWUNaff9Qpy+SrY6NT2sMM2Jo11Wz9UBWOEfPaKSXJT4RD6t6za3gCTdEH++mMOkTR /4p70JNFfOuxIwuzbLuef2NDWLOQAQXuEaGWW+JoozVBJeLiaG2dlbquYTaKsX/H63Crp7PId3/ m8ibi/qRFTBveeyVVw1edbfcPh+eSrf8zXUjWgpYs7Zvt+GZiTEJsk49rx9Oczgqqe/l2SnIX/5 qUcPLMH7skEDhZJegj9KwKpn8J0YYCeXNm9jrURKPYDsDfz5y7ashD94JUyIrS/mEmEiSIo7G7 X-Received: by 2002:a2e:8a86:0:b0:38e:ae31:f0ae with SMTP id 38308e7fff4ca-39240b4f0a1mr5461571fa.0.1777358773254; Mon, 27 Apr 2026 23:46:13 -0700 (PDT) Received: from nuoska (78-27-71-225.bb.dnainternet.fi. [78.27.71.225]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3923f34533esm4415911fa.16.2026.04.27.23.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 23:46:13 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Martin Jansa , Richard Purdie , Mikko Rapeli Subject: [scarthgap][PATCH 2/2] ghostscript: fix build with gcc-15 on host Date: Tue, 28 Apr 2026 09:43:20 +0300 Message-ID: <20260428064329.1591381-2-mikko.rapeli@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260428064329.1591381-1-mikko.rapeli@linaro.org> References: <20260428064329.1591381-1-mikko.rapeli@linaro.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Apr 2026 06:46:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236038 From: Martin Jansa (From OE-Core rev: 02e282f6417274a93c6f01978bf33e2d171297b0) Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie Signed-off-by: Mikko Rapeli --- ...Fix-compatibility-with-C23-compilers.patch | 67 +++++++++++++++++++ .../ghostscript/ghostscript_10.05.1.bb | 4 +- 2 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch diff --git a/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch b/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch new file mode 100644 index 0000000000..78f3fc1c34 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch @@ -0,0 +1,67 @@ +From c595086bfe206776676e290df98cd09e91210e27 Mon Sep 17 00:00:00 2001 +From: Alex Cherepanov +Date: Thu, 3 Apr 2025 17:19:41 +0100 +Subject: [PATCH] Bug 708160: Fix compatibility with C23 compilers +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* fixes: + http://errors.yoctoproject.org/Errors/Details/853021/ + +In file included from ./base/genconf.c:18: +./base/stdpre.h:348:13: error: ‘bool’ cannot be defined via ‘typedef’ + 348 | typedef int bool; + | ^~~~ +./base/stdpre.h:348:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards +./base/stdpre.h:348:1: warning: useless type name in empty declaration + 348 | typedef int bool; + | ^~~~~~~ + +Upstream-Status: Backport [Partial backport of https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/base/stdpre.h?id=ae940946473ceb8c5353bc6e7f04673c6e60502d] + +Signed-off-by: Martin Jansa +--- + base/stdpre.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/base/stdpre.h b/base/stdpre.h +index dda30b6..2f9c84e 100644 +--- a/base/stdpre.h ++++ b/base/stdpre.h +@@ -1,4 +1,4 @@ +-/* Copyright (C) 2001-2023 Artifex Software, Inc. ++/* Copyright (C) 2001-2025 Artifex Software, Inc. + All Rights Reserved. + + This software is provided AS-IS with no warranty, either express or +@@ -341,7 +341,9 @@ typedef signed char schar; + * and the MetroWerks C++ compiler insists that bool be equivalent to + * unsigned char. + */ +-#ifndef __cplusplus ++ ++/* C23 has bool as a builtin type. */ ++#if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L) + #ifdef __BEOS__ + typedef unsigned char bool; + #else +diff --git a/base/gp.h b/base/gp.h +index ad5bb61..cf2c9cf 100644 +--- a/base/gp.h ++++ b/base/gp.h +@@ -1,4 +1,4 @@ +-/* Copyright (C) 2001-2023 Artifex Software, Inc. ++/* Copyright (C) 2001-2025 Artifex Software, Inc. + All Rights Reserved. + + This software is provided AS-IS with no warranty, either express or +@@ -646,7 +646,7 @@ int gp_fseek_impl(FILE *strm, gs_offset_t offset, int origin); + /* Create a second open gp_file on the basis of a given one */ + FILE *gp_fdup_impl(FILE *f, const char *mode); + +-int gp_fseekable_impl(FILE *f); ++bool gp_fseekable_impl(FILE *f); + + /* Force given file into binary mode (no eol translations, etc) */ + /* if 2nd param true, text mode if 2nd param false */ diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb index 57a1098521..8f132d55c6 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb @@ -25,9 +25,7 @@ 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://CVE-2025-59798.patch \ - file://CVE-2025-59799.patch \ - file://CVE-2025-59800.patch \ + file://0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch \ " SRC_URI[sha256sum] = "121861b6d29b2461dec6575c9f3cab665b810bd408d4ec02c86719fa708b0a49"