From patchwork Tue Apr 28 07:04:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 87046 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 4448EFF885A for ; Tue, 28 Apr 2026 07:05:08 +0000 (UTC) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7364.1777359903394826374 for ; Tue, 28 Apr 2026 00:05:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=s8XNtLsD; spf=pass (domain: linaro.org, ip: 209.85.208.176, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-38e7d984096so121835311fa.2 for ; Tue, 28 Apr 2026 00:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777359901; x=1777964701; 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=oWr3A8S59cxriNa5fp1jXd/0NzIbtinX/cG+fBcmLls=; b=s8XNtLsD6b7F3mN+rwOiCmJ13S+pS9UsX1jBB3rN/+rPnlmbZiHEonnLO0LcqQyRyj VWrfIRdNPfb6ys/b+E93/K9DfqDa3XpeNY/j8K26s4QqCpZAqCNUk7ROwjKss/g3VRNA cL7ctreQrsM3FxSMqU3pWEFr6A2hzofxZjotdpRZNGfKIAhvBi0K3PBGrbLap/hcO/JK ciS3JEVTvaheFLUr4E3vje+1ITD2ws8hC3lfl/GfpoGrUJh+dR3EZrOkc2cU0dc5ewe7 TPUZ5oM+aIdAVdhdRdqat93lWfRO+1j7ILnT+SzIpBiWDAZemtpi66R3DW3swe4Mdyiv qrlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777359901; x=1777964701; 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=oWr3A8S59cxriNa5fp1jXd/0NzIbtinX/cG+fBcmLls=; b=GBGjS4kN4bWG2NbS6HO9y/ZhfktNYiEPXx/YqAYk13XVn1Io0HEZu+Wx+1JmFVQQ+Q JhFb5eI9rp/31EGYdBSggIRhiCfN3nnOvK2M/xDBgVYQebLUCxEDcEp7r5wCm3OR/SUX pRclvdnTgKB4B4bCnQa4RGJ7OMjhok3SOaA0llk6ihwjgyQTjgk+hMFL/DNKWTuLSqHH 5p40Ai7zNn63dkQaWnELw9B9khar1s65P/TntrXJ1wudIJ8w7hpTPhyFfsHxjcXsGQdY 92rkDeztOVUlEmJFXA3xKb4b78UeWPJ+0xK7wTZj2NCptSL4iKjG6vR2neAV9Z0pZcvY 5B7w== X-Gm-Message-State: AOJu0YwVE6tPYrX0OWGJxYcGej1BnXhuFz6SN69WlxLgwAABAUD1Sqz/ uo4IxbfDtw6e5uRmTajqIlksVT+DepEzHyndHAfxndu5SeNHdFCcTg3y1F3qzR+G+ZXdECZSRr8 BdM0t X-Gm-Gg: AeBDietvRvDENzE+qcsL5ROVa/RHQqBzzsagvDAqfIASdFBOjfOOz3TvrHNnpMDbPxZ WTO+Dkx0Kc2DKmEhlaxSVNpyYhfoTUfNSFw4yp/FBBxK+CahgpIPNecUWfTKHQnxJcR4xdNQb4c l8h5nmYyt65yRG7SoxASRGULoEYt1qV/btdQTrw3Sz/MRh66ZVMiwbqlAXD6z841effR36L/6OE IyOG15UmO6hMTgl0wb7jgrVPGmhe5pVyL7GEjb/9hiCYAEhwh0muQN2i+3sA7anJb6MDr8DV+/T NNBgOGndMpugxNSQ1NBF7LJpeVErfV6FbDpG94fjSFs6LccAlf+vurAnKjW4jcSr4rgOJxUzFOo x0dZaQiJWydoQYpUgIuGva0jI19tIkpStnPkIIg5hI8kCfI4ZV+fcqqNDwalaDOlR+ak2tcXO7X sFjn03m/lSVfbc+Jq502qDzl9CI8fDAoIgzByc72VyOsg9Vd108fljWUfXgOR9nQ== X-Received: by 2002:a05:651c:3252:b0:38e:cab9:365c with SMTP id 38308e7fff4ca-39240b34918mr5617361fa.0.1777359901258; Tue, 28 Apr 2026 00:05:01 -0700 (PDT) Received: from nuoska (78-27-71-225.bb.dnainternet.fi. [78.27.71.225]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3923f2e0d9bsm4765121fa.6.2026.04.28.00.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 00:05:00 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Khem Raj , Richard Purdie , Mikko Rapeli Subject: [scarthgap][PATCH v2 1/2] ghostscript: Pin to C17 std Date: Tue, 28 Apr 2026 10:04:46 +0300 Message-ID: <20260428070449.1820616-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 07:05:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236042 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(+) v2: no change 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 07:04:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 87047 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 471BFFF8870 for ; Tue, 28 Apr 2026 07:05:08 +0000 (UTC) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7136.1777359905299065089 for ; Tue, 28 Apr 2026 00:05:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=gM2/qAEu; spf=pass (domain: linaro.org, ip: 209.85.167.45, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5a2b5ea59a1so16635815e87.1 for ; Tue, 28 Apr 2026 00:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777359903; x=1777964703; 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=6NrgBRjQ2GGFMMmDIxB6aUAm9LDfxdKYONIhnxtB1vo=; b=gM2/qAEu6UhibsHhg7QxWiti1+kOgj/wimbgE+AN7KJ84fM/GMWgK0KrGkB98Q3qKe 5I6FoRcmpCrTwLvt/85fvGL4FDVEjXhd4L09kSWs9v9FHWG1vBbgHPomZbcptVUV4KOs hfdpTaPOyX6lPzxJj9IlihWEu4ag5fj7SiY8NdL511vNE4RSuP2YQ5RdophKmbvb82zN thuZJpnA0h9vwpmEGvecX2bsmBdOgYMzspRxAGVwxV2he51vmo5rQbP4mc+l8CeZKSXs C5sB41/+GvoIiH737dsskjWgF0LsV1fSqaY7gxM0wVpamIA1mKzm1j6evnQqBOGIechY 8o1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777359903; x=1777964703; 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=6NrgBRjQ2GGFMMmDIxB6aUAm9LDfxdKYONIhnxtB1vo=; b=DnkKMlwNsoo4ohyqG7TABmO7EPMqn1d+meOwuQUKTExjHIWiJL2ThicDFjP+80bb+b 7/zrF3IlLZdWjDNKZq0MawIFeK7ol8CrmHsn+b2J1MFNv0IN7mYPGoQm0eaDx1mdRxP7 bF2y/TIjmLp+ee4qAimD1gNdLSFZfDxAr+nUVzatffn3na8l4KZtqLyazh1Y54vfarjf ++A5Hqyg3zKVhKnHZo+ZLWDTzkHDBtCiQHIRdqeUzZ0cCPW/KNCa0Y8ZjcHSpnbIL+Aa AenydILgYsHbnOq1xuSIqeGOlBxrGyxXRj4YBgbgZCMAtOdPTkBFUl27MR6k5VcHmNP0 siWg== X-Gm-Message-State: AOJu0YxkxRt1IvCWj5pH5mCf2Cm4yW42ckYkRGn8RrnvIdbrN2Bqg87N 2HSJuDrGtvWBTCBt3PSDBomChEWPk26J1zgOkIObBjZuUnzGvMmC8kSylirRPICJvtqQ+TS4dKg NdcEp X-Gm-Gg: AeBDiesdwErr6aYdudjPs1STlgCQZrn1i241Ba4ASRri580wwlaqynz8oRTih5iLOra 69ogyGqMy2GXkpaqxtKy4Gg+eT9rWc38olclWpGUdHvhCQTmtFZ+G2B31wh88AakYxJ+UwQ2zo3 NzEuZMBgZvzGKH0SUcldwDGMxeSxh3GVnoyQSwHCQGJ9NzJ9Lg2GIlbBVRFwZEQSdTmSU6jsY4q 49l5lcQedfmTujymdfCK/koIUZDAprmGAd2HudiLJZztPlQSwqhfFLlT2mCLpNlocn/0wpey9ng RjEU+03eCHU0+qKpEH1rqawRFhyjcBfSIZYIVIr8EDZ6mSbL0SGv2DgfhImhAO+CtUDkDOwr7fL 4wOBfEmg1sOpWOoB60nGpETSNGzNEgUnrjxC5aDNfCm+FDiKjG5QKXnP3IC9ALiDLCPW+a1D1mH nKwDCPmnth45RrDriFN9+JcYrnWTl/+i6Myv67OLqqu6dHkK4FLFlAJzDYNbTKDg== X-Received: by 2002:a05:6512:6181:b0:5a2:a36f:3ef4 with SMTP id 2adb3069b0e04-5a74661fc35mr836891e87.31.1777359903056; Tue, 28 Apr 2026 00:05:03 -0700 (PDT) Received: from nuoska (78-27-71-225.bb.dnainternet.fi. [78.27.71.225]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3923f2e0d9bsm4765121fa.6.2026.04.28.00.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 00:05:02 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Martin Jansa , Richard Purdie , Mikko Rapeli Subject: [scarthgap][PATCH v2 2/2] ghostscript: fix build with gcc-15 on host Date: Tue, 28 Apr 2026 10:04:47 +0300 Message-ID: <20260428070449.1820616-2-mikko.rapeli@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260428070449.1820616-1-mikko.rapeli@linaro.org> References: <20260428070449.1820616-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 07:05:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236043 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 | 1 + 2 files changed, 68 insertions(+) create mode 100644 meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch v2: add this patch correctly to SRC_URI 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..f7e1de734d 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb @@ -28,6 +28,7 @@ SRC_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/downlo 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"