From patchwork Thu Mar 5 18:03:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 82611 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 B9ED3F47CA5 for ; Thu, 5 Mar 2026 18:03:44 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.50785.1772733821598346748 for ; Thu, 05 Mar 2026 10:03:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xndn20uu; spf=pass (domain: gmail.com, ip: 209.85.128.44, mailfrom: martin.jansa@gmail.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4833115090dso85276945e9.3 for ; Thu, 05 Mar 2026 10:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772733820; x=1773338620; 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=GFWA3VBLvl+TsYNCLe2KnzOJS49YB8xSIk8xbsc70NQ=; b=Xndn20uurZGVkSOwq5sAdmFdYAYD/fn2xVSQ3rP4Mb113r/1qYdNDp8U3myMC30tRk ZU2X6j77Qq4jlTfEB6ZvhSS0L2t4d5mRGaHfkJBPpMP/clr4UYZuK5NfiWPmnmIpTGjO 0vnFvev6r2LFnc0fzJDnVJ4x5xq/NWk3fh+L0gfppCVpA27CgYcQzt5cOiyG661y6QtV TUYd8pNKslIiMP5JyZMxrnNysOSbb3gxocEYoh9DOdPJKdk5rmyIL10SR6ROs8ro3LwX rE5wxLd/Z+R0xEYRKIKTBaAQCl6MW33dx+HfdJHKbOuyH1LdPCo3cQmzHq0v3eAGJz6N Qb6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772733820; x=1773338620; 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=GFWA3VBLvl+TsYNCLe2KnzOJS49YB8xSIk8xbsc70NQ=; b=dWZWbA0LtOZPOBpkwZMWPBYlFLn1S+1ycjxI1Ve2+Ja9WvwERSwJGvmcet2AUdOtYr /s0BAAurYEdiUZFJHwLPAakwX5LsbR+go5HDnYLoFej1JWm6hXZPIhfw9LLwdld9+KUL sKhorx5C+8BtbkF3qgQKKfU6dHCM2CqpGOEuIJRZJiGv+K6I/H82/wrL/INuCV+65Q4h wa8vm3ClVDQGyVgOG4XDrBl5nIaLRa133pRQzimcvfnadcfX8W7l49I5LjtZAEJhY9+N yKzOr4War/NuLsynt7twCzfshXk3UKNaDser/qkk4Njse698GTrGsb5jZlShjWYxyQdh Dzhg== X-Gm-Message-State: AOJu0YziltkZsaEE4YjScqrXIznbrJzc1RblF17SsGClQs1vfAUNLZaY FOmHirifFLqpaddP/TF/UsEAGxUkUzxMGBnLyasjCK41gT0M4qMXQu1tUDMMcnjw X-Gm-Gg: ATEYQzx9tS0PkKp3K/0ippexySc4Ee1rvg3tVOksZl7KWi7694/A2Pqmlfirzj5hvlU h05AdkmbEVefUz5MLyd5rTeObQFjP36zi84PxAfyYYQqKEfOMDCbp3aiQbRrBEbWoJtIWxlcZqJ cfrwkm+QIuKfmYg0JK5TMQoTCQ1MmjGr2bBtZZJDHH05srXyJOpiRpENc1PL1QaVRZ3ONJSGO0B f0vX6kjb5bwntQ1mFy/0abxhMDsiuyZ+R0xFcLCBoSVtc/XQs0mWkEPMd/o/1XaT5VDpH3b7/Tt YCtRFnuIeGKoIhgteGF8QSkAkUlIRpoIc1MkjVOiQ9WXwNtIV4VP68cGJEfIt4wvRGfXokq/bHG vQdN4DLD0gloCoBO4f0UIP3OX8vRHSGrRUHiHMKKJ9UgEXCqSDRzNtUwDZcVKixYuS9+X6qEt// ygI3hmltsoOKeRtM8WW9VISiMInw== X-Received: by 2002:a05:600c:8708:b0:477:76bf:e1fb with SMTP id 5b1f17b1804b1-485235c7e44mr6023725e9.16.1772733819536; Thu, 05 Mar 2026 10:03:39 -0800 (PST) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851fb27a20sm108245235e9.9.2026.03.05.10.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 10:03:39 -0800 (PST) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 1/3] m4: upgrade to 1.4.21 Date: Thu, 5 Mar 2026 19:03:29 +0100 Message-ID: <20260305180333.306176-1-martin.jansa@gmail.com> X-Mailer: git-send-email 2.53.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 ; Thu, 05 Mar 2026 18:03:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/232503 From: Martin Jansa https://lists.gnu.org/archive/html/m4-announce/2026-02/msg00000.html This release is being made mainly to cater to recent glibc changes in light of the C23 language standard. However, it also includes fixes for some corner-case bugs in eval and when using the defn macro on builtins. Fixes m4-native builds on hosts with glibc-2.43 like: ./stdlib.h:827:20: error: expected identifier or '(' before '_Generic' ./string.h:777:20: error: expected identifier or '(' before '_Generic' Remove 0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch which is included in gnulib revision used by m4 since: https://gitweb.git.savannah.gnu.org/gitweb/?p=m4.git;a=commit;h=beee8d26382460010338c37f9dd9f823aa9f4ee8 LIC_FILES_CHKSUM was updated for barem4.m4 and testbarem4.m4 from: https://gitweb.git.savannah.gnu.org/gitweb/?p=m4.git;a=blobdiff;f=examples/COPYING;h=e623b2b9394cbd1784a4964bbac105050296f33b;hp=7e73a1219b542fa035facc47cdb3dd81132e6373;hb=900a90f624cee4a8c1c02c4d6a61ef1ed26a17d1;hpb=c7b96d682958532c4eb2d5c2d81bb6ac342fd410 Signed-off-by: Martin Jansa --- .../m4/{m4-1.4.20.inc => m4-1.4.21.inc} | 5 +- ...4-native_1.4.20.bb => m4-native_1.4.21.bb} | 0 ...gcc-Wformat-security-warnings-with-d.patch | 133 ------------------ .../m4/{m4_1.4.20.bb => m4_1.4.21.bb} | 0 4 files changed, 2 insertions(+), 136 deletions(-) rename meta/recipes-devtools/m4/{m4-1.4.20.inc => m4-1.4.21.inc} (90%) rename meta/recipes-devtools/m4/{m4-native_1.4.20.bb => m4-native_1.4.21.bb} (100%) delete mode 100644 meta/recipes-devtools/m4/m4/0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch rename meta/recipes-devtools/m4/{m4_1.4.20.bb => m4_1.4.21.bb} (100%) diff --git a/meta/recipes-devtools/m4/m4-1.4.20.inc b/meta/recipes-devtools/m4/m4-1.4.21.inc similarity index 90% rename from meta/recipes-devtools/m4/m4-1.4.20.inc rename to meta/recipes-devtools/m4/m4-1.4.21.inc index 5c4ba09288..ce9fe2be8e 100644 --- a/meta/recipes-devtools/m4/m4-1.4.20.inc +++ b/meta/recipes-devtools/m4/m4-1.4.21.inc @@ -7,19 +7,18 @@ GNU M4 also has built-in functions for including files, running shell commands, inherit autotools texinfo ptest gettext SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \ - file://0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch \ " SRC_URI:append:class-target = " file://run-ptest \ file://0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch \ file://serial-tests-config.patch \ " -SRC_URI[sha256sum] = "6ac4fc31ce440debe63987c2ebbf9d7b6634e67a7c3279257dc7361de8bdb3ef" +SRC_URI[sha256sum] = "38ae59f7a30bf9c108193cc5c25fbb06014f21e230c7ede2eff614f7b7c37ed8" LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464\ - file://examples/COPYING;md5=4031593b2166d6c47cae282d944a7ede" + file://examples/COPYING;md5=005f2e201a0526c1d1d79dd6303ecf23" EXTRA_OECONF += "--without-libsigsegv-prefix" diff --git a/meta/recipes-devtools/m4/m4-native_1.4.20.bb b/meta/recipes-devtools/m4/m4-native_1.4.21.bb similarity index 100% rename from meta/recipes-devtools/m4/m4-native_1.4.20.bb rename to meta/recipes-devtools/m4/m4-native_1.4.21.bb diff --git a/meta/recipes-devtools/m4/m4/0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch b/meta/recipes-devtools/m4/m4/0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch deleted file mode 100644 index 6fad05041f..0000000000 --- a/meta/recipes-devtools/m4/m4/0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch +++ /dev/null @@ -1,133 +0,0 @@ -From c4dc0ab4424fca31635b7837b1c180f7d3df8ede Mon Sep 17 00:00:00 2001 -From: Bruno Haible -Date: Wed, 28 May 2025 15:14:07 +0200 -Subject: [PATCH] gettext-h: Avoid gcc -Wformat-security warnings with - --disable-nls. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Reported by Holger Hoffstätte in -. - -* lib/gettext.h (gettext, dgettext, dcgettext): With gcc in C mode, -define these as inline functions. -* lib/sigpipe-die.c (sigpipe_die): Use translated string as a format -string, relying on the format string checking done by 'msgfmt -c'. -* lib/xmemcoll.c (collate_error): Revert commit from 2025-01-17. -* lib/xprintf.c (xvprintf, xvfprintf): Likewise. -* lib/openat-die.c (openat_save_fail, openat_restore_fail): Revert -commit from 2024-12-10. - -Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=6e5015dd557b20ae4a0829c4bf78480ce2f4cb04] -Signed-off-by: Peter Kjellerstedt ---- - lib/gettext.h | 49 ++++++++++++++++++++++++++++++++++++------------ - lib/openat-die.c | 4 ++-- - lib/xprintf.c | 4 ++-- - 3 files changed, 41 insertions(+), 16 deletions(-) - -diff --git a/lib/gettext.h b/lib/gettext.h -index ea0c27e..bb3d975 100644 ---- a/lib/gettext.h -+++ b/lib/gettext.h -@@ -59,18 +59,43 @@ - # endif - # endif - --/* Disabled NLS. -- The casts to 'const char *' serve the purpose of producing warnings -- for invalid uses of the value returned from these functions. -- On pre-ANSI systems without 'const', the config.h file is supposed to -- contain "#define const". */ --# undef gettext --# define gettext(Msgid) ((const char *) (Msgid)) --# undef dgettext --# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) --# undef dcgettext --# define dcgettext(Domainname, Msgid, Category) \ -- ((void) (Category), dgettext (Domainname, Msgid)) -+/* Disabled NLS. */ -+# if defined __GNUC__ && !defined __clang__ && !defined __cplusplus -+/* Use inline functions, to avoid warnings -+ warning: format not a string literal and no format arguments -+ that don't occur with enabled NLS. */ -+__attribute__ ((__always_inline__, __gnu_inline__)) extern inline -+const char * -+gettext (const char *msgid) -+{ -+ return msgid; -+} -+__attribute__ ((__always_inline__, __gnu_inline__)) extern inline -+const char * -+dgettext (const char *domain, const char *msgid) -+{ -+ (void) domain; -+ return msgid; -+} -+__attribute__ ((__always_inline__, __gnu_inline__)) extern inline -+const char * -+dcgettext (const char *domain, const char *msgid, int category) -+{ -+ (void) domain; -+ (void) category; -+ return msgid; -+} -+# else -+/* The casts to 'const char *' serve the purpose of producing warnings -+ for invalid uses of the value returned from these functions. */ -+# undef gettext -+# define gettext(Msgid) ((const char *) (Msgid)) -+# undef dgettext -+# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) -+# undef dcgettext -+# define dcgettext(Domainname, Msgid, Category) \ -+ ((void) (Category), dgettext (Domainname, Msgid)) -+# endif - # undef ngettext - # define ngettext(Msgid1, Msgid2, N) \ - ((N) == 1 \ -diff --git a/lib/openat-die.c b/lib/openat-die.c -index 3fbb5d8..79a5b23 100644 ---- a/lib/openat-die.c -+++ b/lib/openat-die.c -@@ -34,7 +34,7 @@ _Noreturn void - openat_save_fail (int errnum) - { - #ifndef GNULIB_LIBPOSIX -- error (exit_failure, errnum, "%s", -+ error (exit_failure, errnum, - _("unable to record current working directory")); - #endif - /* _Noreturn cannot be applied to error, since it returns -@@ -53,7 +53,7 @@ _Noreturn void - openat_restore_fail (int errnum) - { - #ifndef GNULIB_LIBPOSIX -- error (exit_failure, errnum, "%s", -+ error (exit_failure, errnum, - _("failed to return to initial working directory")); - #endif - -diff --git a/lib/xprintf.c b/lib/xprintf.c -index 4d9a3e5..790af53 100644 ---- a/lib/xprintf.c -+++ b/lib/xprintf.c -@@ -45,7 +45,7 @@ xvprintf (char const *restrict format, va_list args) - { - off64_t retval = vzprintf (format, args); - if (retval < 0 && ! ferror (stdout)) -- error (exit_failure, errno, "%s", _("cannot perform formatted output")); -+ error (exit_failure, errno, _("cannot perform formatted output")); - - return retval; - } -@@ -67,7 +67,7 @@ xvfprintf (FILE *restrict stream, char const *restrict format, va_list args) - { - off64_t retval = vfzprintf (stream, format, args); - if (retval < 0 && ! ferror (stream)) -- error (exit_failure, errno, "%s", _("cannot perform formatted output")); -+ error (exit_failure, errno, _("cannot perform formatted output")); - - return retval; - } diff --git a/meta/recipes-devtools/m4/m4_1.4.20.bb b/meta/recipes-devtools/m4/m4_1.4.21.bb similarity index 100% rename from meta/recipes-devtools/m4/m4_1.4.20.bb rename to meta/recipes-devtools/m4/m4_1.4.21.bb From patchwork Thu Mar 5 18:03:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 82610 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 B9F00F47CA6 for ; Thu, 5 Mar 2026 18:03:44 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.50786.1772733822576141964 for ; Thu, 05 Mar 2026 10:03:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PZ+9tzOR; spf=pass (domain: gmail.com, ip: 209.85.221.42, mailfrom: martin.jansa@gmail.com) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-439cd6b09f8so993505f8f.3 for ; Thu, 05 Mar 2026 10:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772733821; x=1773338621; 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=u/UBbG1r77KOm1LhFcycLL3fpoZb6ulUCjEjEvOnjm4=; b=PZ+9tzOR4H+NnoZYobCSyD6y8HkNMaikWtRRxRerJCrH/dxrarEs6UtZS8wmG3yn6N SMjeABlg4y5PMoWY4oxmslD84ql5QYHtyntNtmNlWBp5lAvGeoLQZU7N5av3Rltmrm17 XF4VYZFwViw85OSO3wtk0UPjHpFWult6wZ2Axf3R1QLC9+X6450AnnfjBtAUdNr0lwTN LC1FQh0L8nDkyQjAMIGsCIGLauVxXdNywguPZYBALfvzwl2KozHStD8zBMywzFKfHTkC zJAYcwykpj+xOCiU2rpFtgZ5xLPLgSDgIGcIMX9zY7xNXrk+371b58mrW156kVXk7ijx rH3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772733821; x=1773338621; 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=u/UBbG1r77KOm1LhFcycLL3fpoZb6ulUCjEjEvOnjm4=; b=BJ9/jv9z1Yiy1fHoXF7KAfXqdRjh4wyEEld8hESe09y3eYmd0jYha74J9iPLCwe1L2 nu6B1/X0r2sCzcX2SqeIDNiFjheCxfvqFGgHUuMLpsmOVUn63Iqix5kWua5tdEZHjgtC +as+Ehk19gG+JRFW3SuF7nztY3YZ8/7tcdhpqCY7uI1V504kNEDm9D67c+9EDsn8gH3J 3YdBEdkKdnJs+Mloq1thfXN4yt0Ftz1ZPcb3BgIQRU1PqvJ5YtS2WBpw1MOiXX/5jXl2 e2TdaPBaXuHThlyMSSIpo+GYLyToujqGUhl6ZvYtUXNy4j/Do1UbwVHsmG3z0H1jjQWr Kc0Q== X-Gm-Message-State: AOJu0YyoJqst9Wfp4JUP3XVlRMlL3NR2s/PGze73bY5j0f8Yb3A9/Hn4 MQaSryjNipOOfpXa+bIvki3jN8bo5V4ysz0BTg+bmTEow2Xrw2myVnZ2M9jVz8jD X-Gm-Gg: ATEYQzzjy8KYoS0NnAin6xpBH57kZLElzAELX9fMqAOYBuXN9UzD5Nf/6gbDERa0jZd dSWUBWCKwD+UzLJXCHvM5AnOk7FUgDHD+5D7AeGopZYm7JnS38gDs4cIsQagS/2Hfile9XQbdvN 4mSb1rO347FOEXyqlA8Rtyvlo5Xnjv/IupPSeyD1U2zw2CXc8ptjMxQ6ej0SPXic917eoOD210c nH4wnjw9cUQoiEotG6sBn8fmhELckX08ziGbtQun8AzVaToY2JBXmG43KLqaWkaSzh0dlhlBkO9 /2jotZ1eQqnw6yA/YNmdzlav7KHjhHQ/S9SyCYM1gDMjQ7jXMwoIaXNS4cCpZt63BYcdk1L3xn3 byoe51mm52anGMbZcRi2rwIXkHNjrH5v8exwV/joSiMkF9dtfcAPR3SUmhcOkgTTdvZFm0ryX8O q+LcCx9cK9jyIdfnotgOqiVOm1malbGdYFtqbY X-Received: by 2002:a05:6000:1152:b0:439:c9d6:4313 with SMTP id ffacd0b85a97d-439c9d64396mr9454641f8f.44.1772733820579; Thu, 05 Mar 2026 10:03:40 -0800 (PST) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439b6d540b2sm32296612f8f.36.2026.03.05.10.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 10:03:40 -0800 (PST) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 2/3] dtc: backport fix for build with glibc-2.43 Date: Thu, 5 Mar 2026 19:03:30 +0100 Message-ID: <20260305180333.306176-2-martin.jansa@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260305180333.306176-1-martin.jansa@gmail.com> References: <20260305180333.306176-1-martin.jansa@gmail.com> 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 ; Thu, 05 Mar 2026 18:03:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/232504 From: Martin Jansa glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native: https://errors.yoctoproject.org/Errors/Details/903983/ ../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’: ../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 424 | sep = memchr(fixup_str, ':', fixup_len); | ^ ../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 434 | sep = memchr(name, ':', fixup_len); | ^ cc1: all warnings being treated as errors Signed-off-by: Martin Jansa --- .../0001-Fix-discarded-const-qualifiers.patch | 83 +++++++++++++++++++ meta/recipes-kernel/dtc/dtc_1.7.2.bb | 1 + 2 files changed, 84 insertions(+) create mode 100644 meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch diff --git a/meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch b/meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch new file mode 100644 index 0000000000..053a94f0bf --- /dev/null +++ b/meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch @@ -0,0 +1,83 @@ +From c58beee7bec0774f12202511c97beb741ff2b534 Mon Sep 17 00:00:00 2001 +From: Stephen Gallagher +Date: Tue, 6 Jan 2026 14:19:30 -0500 +Subject: [PATCH] Fix discarded const qualifiers + +It's unsafe to implicitly discard the const qualifier on a pointer. In +overlay_fixup_phandle(), this was probably just an oversight, and making +the "sep" variable a const char * is sufficient to fix it. + +In create_node(), however, the "p" variable is directly modifying the +buffer pointed to by "const char* node_name". To fix this, we need to +actually make a duplicate of the buffer and operate on that instead. + +This introduces a malloc()/free() and an unbounded strdup() into the +operation, but fdtput isn't a long-running service and the node_name +argument comes directly from argv, so this shouldn't introduce a +significant performance impact. + +Signed-off-by: Stephen Gallagher +Signed-off-by: David Gibson +Signed-off-by: Martin Jansa +Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/libfdt/fdt_overlay.c?h=main&id=9a1c801a1a3c102bf95c5339c9e985b26b823a21] +--- + fdtput.c | 8 +++++--- + libfdt/fdt_overlay.c | 3 ++- + meson.build | 1 + + 3 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/fdtput.c b/fdtput.c +index c2fecf4..8deec7e 100644 +--- a/fdtput.c ++++ b/fdtput.c +@@ -230,19 +230,21 @@ static int create_paths(char **blob, const char *in_path) + static int create_node(char **blob, const char *node_name) + { + int node = 0; +- char *p; ++ const char *p; ++ char *path = NULL; + + p = strrchr(node_name, '/'); + if (!p) { + report_error(node_name, -1, -FDT_ERR_BADPATH); + return -1; + } +- *p = '\0'; + + *blob = realloc_node(*blob, p + 1); + + if (p > node_name) { +- node = fdt_path_offset(*blob, node_name); ++ path = xstrndup(node_name, (size_t)(p - node_name)); ++ node = fdt_path_offset(*blob, path); ++ free(path); + if (node < 0) { + report_error(node_name, -1, node); + return -1; +diff --git a/libfdt/fdt_overlay.c b/libfdt/fdt_overlay.c +index 28b667f..5f8aa62 100644 +--- a/libfdt/fdt_overlay.c ++++ b/libfdt/fdt_overlay.c +@@ -409,7 +409,8 @@ static int overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off, + const char *fixup_str = value; + uint32_t path_len, name_len; + uint32_t fixup_len; +- char *sep, *endptr; ++ const char *sep; ++ char *endptr; + int poffset, ret; + + fixup_end = memchr(value, '\0', len); +diff --git a/meson.build b/meson.build +index 310699f..2966b06 100644 +--- a/meson.build ++++ b/meson.build +@@ -18,6 +18,7 @@ add_project_arguments( + '-Wshadow', + '-Wsuggest-attribute=format', + '-Wwrite-strings', ++ '-Wdiscarded-qualifiers', + ]), + language: 'c' + ) diff --git a/meta/recipes-kernel/dtc/dtc_1.7.2.bb b/meta/recipes-kernel/dtc/dtc_1.7.2.bb index 92e83a9404..b8b79542c5 100644 --- a/meta/recipes-kernel/dtc/dtc_1.7.2.bb +++ b/meta/recipes-kernel/dtc/dtc_1.7.2.bb @@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI = " \ git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=main;protocol=https \ + file://0001-Fix-discarded-const-qualifiers.patch \ " SRCREV = "2d10aa2afe35527728db30b35ec491ecb6959e5c" From patchwork Thu Mar 5 18:03:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 82612 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 D2B04F47CAA for ; Thu, 5 Mar 2026 18:03:44 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.50664.1772733823337386052 for ; Thu, 05 Mar 2026 10:03:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AFhvTtpq; spf=pass (domain: gmail.com, ip: 209.85.128.46, mailfrom: martin.jansa@gmail.com) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4806bf39419so69057365e9.1 for ; Thu, 05 Mar 2026 10:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772733822; x=1773338622; 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=pk6n/3I1TB8wUZVTbl0/tGZqJfFzEJ8yDr8x3dO+tUw=; b=AFhvTtpqCuNjf9oCPXBtp9ZCeLyeB4U8mycOPdIqxYDzRNRQAUYzKMsBQol1IEJq8f ZXsCjoqwPonHjM/Blk8Ayxqtx1B9woSYs31gE9yOwogCLFJkB4jkjXQ1HIrZJOmOvHgh 6LNOysT0LzMMaIbpgT6ZvjfAwR7ES2jQIjTL4lf9V3UY2mOSu4QHJvI8iNglcwrTBcFG nf/Wne8kO7KKxUdK5CGDe7uAXAa4JAbx9fQfvlGsiAS1MC5o4OdC7nqvYceHXJtdOxzJ gicJrJ3UpONxkqiAwFRTpb+nSfEpHkmW1W1n7Kg+7fMYTHHaXPV+QmqGnJhMpkkDIeM8 nmMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772733822; x=1773338622; 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=pk6n/3I1TB8wUZVTbl0/tGZqJfFzEJ8yDr8x3dO+tUw=; b=T/F/sED6ab5kjHeGkVQLCEzEpcvUDr1e8WUzMYlu0LWQeBM1tVXMHCE7jx7X2j0y8z 382kWRVvHmHbVspJriJOaFEW4+2HPsqQ+gK2lo++jpBpj8jN4Hpbg1O4OHm6INEo3N0W LdhbnEoF1Ij+hDWV5twe54Zj+QOB4cSXNJm0/rhjSsxFGqpahDpr/Q45BX5fR7/vvTK8 HR8e9U+S6o3Q6ZFijz1nVfbaDq0//k0wV3QijneKUufWYMHCJg+aSBOZbH31QaZLjNDI 7rWTF3lWFNtkLbNd+cgLg9CGkwLLz4x+CdBpQ/T0YnrXJgWZsozqrwEfVZ53kOm0bth5 8PtA== X-Gm-Message-State: AOJu0YwY1ZdTcZuWlFoXoFF5jV/2GY0g2/N1la0r0K9tZAQa7x7/WWy2 XP05dXWmUTtsGpe/okxzQd0lh6dKZAKk5sr0bRK2zN59C2amUpDJNpXN1I6D2PbL X-Gm-Gg: ATEYQzwx2qa0bGlJoAGKHSJYYRANrq4arBn2UgnShSmL1vHlJdIxnS3bhkULtBPq/4J EsIWXY2XtLj2SllOMrEEvWAu9CnMCfjlBsKVtRztm/c/ABJua5zoIshnIpZxn49wHgt1s/513pF E256z8qVTs+J80++9zD/B/oA6AAICe8jQbIUcOfYKu3Gf978vFQ9Amg5iqYR3pf7W5xMsOozR71 zXEZFVsr6fuk27x2n+5Mg/nIpQixdob/yUzaNc4f+oLqdRhYgzlNnOxCmRfgaFRkugP5JeD38KW 4yZuOFJ2CZrFQ3pZG5Lznhzc1BVk5q5ihcwTALmbYJ5SeC6JzcYCrXLZnXn7o7oS2rv1+1rv9Yo qPYAwtd0ca8yOS9825Dm4kmrVZqihjvmZ4DsvmRDaFRnA7wmtlBWosQJbmcZKUCAjgNLEXFmzTP rdt4Af41zleD5KtHnzbWxyOyB1Yw== X-Received: by 2002:a05:600c:34cc:b0:483:7b99:131d with SMTP id 5b1f17b1804b1-4851eeab240mr54905015e9.16.1772733821477; Thu, 05 Mar 2026 10:03:41 -0800 (PST) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851fafbf9bsm53086515e9.14.2026.03.05.10.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 10:03:41 -0800 (PST) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 3/3] libunistring: upgrade to 1.4.2 Date: Thu, 5 Mar 2026 19:03:31 +0100 Message-ID: <20260305180333.306176-3-martin.jansa@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260305180333.306176-1-martin.jansa@gmail.com> References: <20260305180333.306176-1-martin.jansa@gmail.com> 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 ; Thu, 05 Mar 2026 18:03:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/232505 From: Martin Jansa https://lists.gnu.org/archive/html/bug-libunistring/2026-02/msg00001.html glibc-2.43 isn't used in OE builds yet, but this fixes libunistring-native: https://errors.yoctoproject.org/Errors/Details/903980/ unistring-native/1.4.1/recipe-sysroot-native/usr/include -isystemTOPDIR/tmp/work/x86_64-linux/libunistring-native/1.4.1/recipe-sysroot-native/usr/include -O2 -pipe -c ../../sources/libunistring-1.4.1/lib/amemxfrm.c In file included from /usr/include/features.h:540, from /usr/include/errno.h:25, from ../../sources/libunistring-1.4.1/lib/amemxfrm.c:23: ./stdlib.h:807:20: error: expected identifier or ‘(’ before ‘_Generic’ 807 | _GL_EXTERN_C void *bsearch (const void *__key, | ^~~~~~~ make[2]: *** [Makefile:10166: config.h] Error 1 Signed-off-by: Martin Jansa --- .../{libunistring_1.4.1.bb => libunistring_1.4.2.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-support/libunistring/{libunistring_1.4.1.bb => libunistring_1.4.2.bb} (93%) diff --git a/meta/recipes-support/libunistring/libunistring_1.4.1.bb b/meta/recipes-support/libunistring/libunistring_1.4.2.bb similarity index 93% rename from meta/recipes-support/libunistring/libunistring_1.4.1.bb rename to meta/recipes-support/libunistring/libunistring_1.4.2.bb index 791f4983ed..8f6cc27193 100644 --- a/meta/recipes-support/libunistring/libunistring_1.4.1.bb +++ b/meta/recipes-support/libunistring/libunistring_1.4.2.bb @@ -21,7 +21,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ DEPENDS = "gperf-native" SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz" -SRC_URI[sha256sum] = "12542ad7619470efd95a623174dcd4b364f2483caf708c6bee837cb53a54cb9d" +SRC_URI[sha256sum] = "e82664b170064e62331962126b259d452d53b227bb4a93ab20040d846fec01d8" inherit autotools texinfo BBCLASSEXTEND = "native nativesdk"