From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 22/30] libfyaml: upgrade 0.9.4 -> 0.9.6
Date: Tue, 16 Jun 2026 21:16:18 +0200 [thread overview]
Message-ID: <20260616191628.2014553-22-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20260616191628.2014553-1-alex.kanavin@gmail.com>
From: Alexander Kanavin <alex@linutronix.de>
Add backports to address 32bit/musl fails.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
...-by-removing-stray-parameter-to-fy_s.patch | 25 +++++++++++++
...ut-none-required-to-LIBM-if-no-linke.patch | 33 +++++++++++++++++
...decoding-when-size_t-sizeof-uint64_t.patch | 35 +++++++++++++++++++
.../{libfyaml_0.9.4.bb => libfyaml_0.9.6.bb} | 8 +++--
4 files changed, 99 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-support/libfyaml/libfyaml/0001-Fix-32-bit-build-by-removing-stray-parameter-to-fy_s.patch
create mode 100644 meta/recipes-support/libfyaml/libfyaml/0001-build-don-t-output-none-required-to-LIBM-if-no-linke.patch
create mode 100644 meta/recipes-support/libfyaml/libfyaml/0002-vlsize-Handle-decoding-when-size_t-sizeof-uint64_t.patch
rename meta/recipes-support/libfyaml/{libfyaml_0.9.4.bb => libfyaml_0.9.6.bb} (54%)
diff --git a/meta/recipes-support/libfyaml/libfyaml/0001-Fix-32-bit-build-by-removing-stray-parameter-to-fy_s.patch b/meta/recipes-support/libfyaml/libfyaml/0001-Fix-32-bit-build-by-removing-stray-parameter-to-fy_s.patch
new file mode 100644
index 0000000000..a964a5a71e
--- /dev/null
+++ b/meta/recipes-support/libfyaml/libfyaml/0001-Fix-32-bit-build-by-removing-stray-parameter-to-fy_s.patch
@@ -0,0 +1,25 @@
+From 6e7cc36489999843990ff2da558f9f70e579c8e9 Mon Sep 17 00:00:00 2001
+From: Fredrik Fornwall <fredrik@fornwall.net>
+Date: Sun, 15 Mar 2026 21:47:27 +0100
+Subject: [PATCH] Fix 32-bit build by removing stray parameter to
+ fy_skip_size32()
+
+Upstream-Status: Backport [https://github.com/pantoniou/libfyaml/commit/0982fcefc6a16d4c8cb5b06747d3fc8e630de3ae]
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ include/libfyaml/libfyaml-vlsize.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/libfyaml/libfyaml-vlsize.h b/include/libfyaml/libfyaml-vlsize.h
+index 6ccb7ab..1b950c4 100644
+--- a/include/libfyaml/libfyaml-vlsize.h
++++ b/include/libfyaml/libfyaml-vlsize.h
+@@ -816,7 +816,7 @@ fy_decode_size_nocheck(const uint8_t *start, size_t *sizep)
+ static inline const uint8_t *
+ fy_skip_size(const uint8_t *start, size_t bufsz)
+ {
+- return fy_skip_size32(start, bufsz, &sz);
++ return fy_skip_size32(start, bufsz);
+ }
+
+ static inline const uint8_t *
diff --git a/meta/recipes-support/libfyaml/libfyaml/0001-build-don-t-output-none-required-to-LIBM-if-no-linke.patch b/meta/recipes-support/libfyaml/libfyaml/0001-build-don-t-output-none-required-to-LIBM-if-no-linke.patch
new file mode 100644
index 0000000000..8eeefb532d
--- /dev/null
+++ b/meta/recipes-support/libfyaml/libfyaml/0001-build-don-t-output-none-required-to-LIBM-if-no-linke.patch
@@ -0,0 +1,33 @@
+From 97a93fc2859bcb88ca15dc92e1ba6f852b4a0cb7 Mon Sep 17 00:00:00 2001
+From: "E. Madison Bray" <madison@bray.work>
+Date: Tue, 24 Mar 2026 17:09:24 +0100
+Subject: [PATCH] build: don't output "none required" to LIBM if no linker
+ flags needed for it
+
+Upstream-Status: Backport [https://github.com/pantoniou/libfyaml/commit/24b18e7363b336962fe160c1dc05ca57ba95783c]
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ configure.ac | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b03cf24..f5c854f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -254,9 +254,10 @@ AC_DEFINE_UNQUOTED([HAVE_ASAN], [$HAVE_ASAN], [Define to 1 if ASAN is enabled])
+ # Link libm on platforms where trunc() lives outside libc.
+ AC_SEARCH_LIBS([trunc], [m])
+ LIBM="$ac_cv_search_trunc"
+-if test "x$LIBM" = "xno" || test "x$LIBM" = "xyes" ; then
+- LIBM=""
+-fi
++case "$ac_cv_search_trunc" in
++ no|yes|"none required") LIBM="" ;;
++ *) LIBM="$ac_cv_search_trunc" ;;
++esac
+ AC_SUBST(LIBM)
+
+ # check if there's a qsort_r available (musl does not have it)
+--
+2.47.3
+
diff --git a/meta/recipes-support/libfyaml/libfyaml/0002-vlsize-Handle-decoding-when-size_t-sizeof-uint64_t.patch b/meta/recipes-support/libfyaml/libfyaml/0002-vlsize-Handle-decoding-when-size_t-sizeof-uint64_t.patch
new file mode 100644
index 0000000000..6090444529
--- /dev/null
+++ b/meta/recipes-support/libfyaml/libfyaml/0002-vlsize-Handle-decoding-when-size_t-sizeof-uint64_t.patch
@@ -0,0 +1,35 @@
+From 3fea9f76ea36ec9364a9935ca1b64fa742d47fa1 Mon Sep 17 00:00:00 2001
+From: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
+Date: Wed, 18 Mar 2026 15:56:10 +0200
+Subject: [PATCH] vlsize: Handle decoding when size_t < sizeof(uint64_t)
+
+Those two might differ.
+
+Upstream-Status: Backport [https://github.com/pantoniou/libfyaml/commit/9192deaac095f9881cc1e5756dede683f36b09d6]
+Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ include/libfyaml/libfyaml-vlsize.h | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/include/libfyaml/libfyaml-vlsize.h b/include/libfyaml/libfyaml-vlsize.h
+index 1b950c4..acfd78d 100644
+--- a/include/libfyaml/libfyaml-vlsize.h
++++ b/include/libfyaml/libfyaml-vlsize.h
+@@ -810,7 +810,12 @@ fy_decode_size(const uint8_t *start, size_t bufsz, size_t *sizep)
+ static inline const uint8_t *
+ fy_decode_size_nocheck(const uint8_t *start, size_t *sizep)
+ {
+- return fy_decode_size32_nocheck(start, sizep);
++ uint64_t sz;
++ const uint8_t *ret;
++
++ ret = fy_decode_size32_nocheck(start, &sz);
++ *sizep = (size_t)sz;
++ return ret;
+ }
+
+ static inline const uint8_t *
+--
+2.47.3
+
diff --git a/meta/recipes-support/libfyaml/libfyaml_0.9.4.bb b/meta/recipes-support/libfyaml/libfyaml_0.9.6.bb
similarity index 54%
rename from meta/recipes-support/libfyaml/libfyaml_0.9.4.bb
rename to meta/recipes-support/libfyaml/libfyaml_0.9.6.bb
index 77fe0a15b0..1a98b396b0 100644
--- a/meta/recipes-support/libfyaml/libfyaml_0.9.4.bb
+++ b/meta/recipes-support/libfyaml/libfyaml_0.9.6.bb
@@ -4,8 +4,12 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6399094fbc639a289cfca2d660c010aa"
GITHUB_BASE_URI = "https://github.com/pantoniou/libfyaml"
-SRC_URI = "${GITHUB_BASE_URI}/releases/download/v${PV}/libfyaml-${PV}.tar.gz"
-SRC_URI[sha256sum] = "dac2b0af7b757b32a4fa7c6493d85d0f7dea6effd20ae4352570b6a450b9e5fb"
+SRC_URI = "${GITHUB_BASE_URI}/releases/download/v${PV}/libfyaml-${PV}.tar.gz \
+ file://0001-Fix-32-bit-build-by-removing-stray-parameter-to-fy_s.patch \
+ file://0002-vlsize-Handle-decoding-when-size_t-sizeof-uint64_t.patch \
+ file://0001-build-don-t-output-none-required-to-LIBM-if-no-linke.patch \
+ "
+SRC_URI[sha256sum] = "a59cc3331e2eb903ec36933ad52a45888041cac31e44f553a00511131242c483"
inherit autotools pkgconfig github-releases
--
2.47.3
next prev parent reply other threads:[~2026-06-16 19:16 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 19:15 [PATCH 01/30] gstreamer1.0: disable an intermittently failing test Alexander Kanavin
2026-06-16 19:15 ` [PATCH 02/30] gstreamer1.0: upgrade 1.28.2 -> 1.28.4 (the remaining pieces) Alexander Kanavin
2026-06-17 17:07 ` [OE-core] " Mathieu Dubois-Briand
2026-06-17 17:15 ` Alexander Kanavin
2026-06-16 19:15 ` [PATCH 03/30] glslang: upgrade 1.4.341.0 -> 1.4.350.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 04/30] vulkan-validation-layers: " Alexander Kanavin
2026-06-16 19:16 ` [PATCH 05/30] spirv-tools: " Alexander Kanavin
2026-06-16 19:16 ` [PATCH 06/30] vulkan-tools: " Alexander Kanavin
2026-06-16 19:16 ` [PATCH 07/30] vulkan-loader: " Alexander Kanavin
2026-06-16 19:16 ` [PATCH 08/30] vulkan-utility-libraries: " Alexander Kanavin
2026-06-16 19:16 ` [PATCH 09/30] gn: upgrade to latest revision Alexander Kanavin
2026-06-16 19:16 ` [PATCH 10/30] libmd: upgrade 1.1.0 -> 1.2.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 11/30] libslirp: upgrade 4.9.1 -> 4.9.3 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 12/30] libxkbcommon: upgrade 1.13.1 -> 1.13.2 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 13/30] minicom: upgrade 2.10 -> 2.11.1 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 14/30] wget: disable NTLM support Alexander Kanavin
2026-06-16 19:16 ` [PATCH 15/30] nettle: upgrade 3.10.2 -> 4.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 16/30] python3-shacl2code: upgrade 1.0.1 -> 1.1.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 17/30] which: upgrade 2.23 -> 2.25 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 18/30] dtc: upgrade 1.7.2 -> 1.8.1 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 19/30] jansson: add a recipe from meta-oe Alexander Kanavin
2026-06-16 19:16 ` [PATCH 20/30] igt-gpu-tools: upgrade 2.3 -> 2.4 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 21/30] libcap-ng: upgrade 0.9.1 -> 0.9.3 Alexander Kanavin
2026-06-16 19:16 ` Alexander Kanavin [this message]
2026-06-16 19:16 ` [PATCH 23/30] ltp: upgrade 20260130 -> 20260529 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 24/30] neard: upgrade 0.19 -> 0.20 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 25/30] perl: upgrade 5.42.0 -> 5.42.2 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 26/30] ppp: upgrade 2.5.2 -> 2.5.3 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 27/30] python3-dtc: upgrade 1.7.2 -> 1.8.1 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 28/30] tcf-agent: upgrade 1.9.0 -> 1.11.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 29/30] virglrenderer: upgrade 1.2.0 -> 1.3.0 Alexander Kanavin
2026-06-16 19:16 ` [PATCH 30/30] strace: remove skip-bpf.patch Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260616191628.2014553-22-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.