From 487a46047637905e275db2a04535d765d827c5c3 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 27 May 2026 21:56:33 +0200 Subject: [PATCH] package/vorbis-tools: Fix build with gcc 14.x Buildroot commit ce5d1735710d11b135fc6cb235e976b306833e7d removed 0001-fix-build-with-gcc-14.patch which the version bump to 1.4.3. The patch originally not only fixed share/utf8.c but also ogginfo/codec_skeleton.c. Upstream only applied the fix for ogginfo/codec_skeleton.c: https://github.com/xiph/vorbis-tools/commit/68c5a33685f5b86e7f18f239ceb8861484fee552 so the build still fails: utf8.c: In function 'convert_buffer': utf8.c:271:9: error: implicit declaration of function 'charset_convert' [-Wimplicit-function-declaration] 271 | ret = charset_convert(fromcode, tocode, from, fromlen, to, tolen); Added upstream commit to fix the problem. Fixes: https://autobuild.buildroot.net/results/135/13520e3cbf6b6d169985f4d1378c2a1baab852e0/ The build error can be reproduced by this minimal defconfig: BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y BR2_PACKAGE_VORBIS_TOOLS=y Signed-off-by: Bernd Kuhls Signed-off-by: Arnout Vandecappelle (cherry picked from commit 8b79a9fec56ca450f385494879e838b301ad2a38) Signed-off-by: Thomas Perale --- ...r-charset.h-to-find-charset_convert-.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/vorbis-tools/0001-Added-include-for-charset.h-to-find-charset_convert-.patch diff --git a/package/vorbis-tools/0001-Added-include-for-charset.h-to-find-charset_convert-.patch b/package/vorbis-tools/0001-Added-include-for-charset.h-to-find-charset_convert-.patch new file mode 100644 index 0000000000..3e97976fd8 --- /dev/null +++ b/package/vorbis-tools/0001-Added-include-for-charset.h-to-find-charset_convert-.patch @@ -0,0 +1,32 @@ +From 5155bf98a5b10fdf950dfa8f6edad624c0db7030 Mon Sep 17 00:00:00 2001 +From: Petter Reinholdtsen +Date: Sun, 22 Feb 2026 23:33:59 +0100 +Subject: [PATCH] Added include for "charset.h" to find charset_convert() + prototype with gcc >= 14. + +Patch from Bernd Kuhls. + +Fixes #2334. + +Upstream: https://github.com/xiph/vorbis-tools/commit/5155bf98a5b10fdf950dfa8f6edad624c0db7030 + +Signed-off-by: Bernd Kuhls +--- + share/utf8.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/share/utf8.c b/share/utf8.c +index e1199bc..1e6965f 100644 +--- a/share/utf8.c ++++ b/share/utf8.c +@@ -28,6 +28,7 @@ + #include + #include + ++#include "charset.h" + #include "utf8.h" + + +-- +2.47.3 +