From 47ba1f6fb35131121d1d0840c9782d6b37788780 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 29 Dec 2025 13:38:06 +0100 Subject: [PATCH] package/libid3tag: fix build without c++ Buildroot commit 82094b802877c1128b21b978466641373f283666 bumped the package to 0.16.3 switching the build system to CMake causing build errors when the toolchain lacks c++. Fixes: https://autobuild.buildroot.net/results/02d/02db8c1a1b461fa3b5b5932e5b48c77be50b68af/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/libid3tag/0002-CMake-Disable-c.patch | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/libid3tag/0002-CMake-Disable-c.patch diff --git a/package/libid3tag/0002-CMake-Disable-c.patch b/package/libid3tag/0002-CMake-Disable-c.patch new file mode 100644 index 0000000000..151084b3b2 --- /dev/null +++ b/package/libid3tag/0002-CMake-Disable-c.patch @@ -0,0 +1,33 @@ +From b3b045a762ee35fab0e13d1837b9b407da47e59e Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Mon, 29 Dec 2025 13:31:43 +0100 +Subject: [PATCH] CMake: Disable c++ + +https://cmake.org/cmake/help/latest/command/project.html +"By default C and CXX are enabled if no language options are given." + +libid3tag only contains C code. This fix allows the build with +toolchains containing no c++ compiler like some buildroot toolchains: +https://autobuild.buildroot.net/results/02d/02db8c1a1b461fa3b5b5932e5b48c77be50b68af/build-end.log + +Upstream: https://codeberg.org/tenacityteam/libid3tag/pulls/26 + +Signed-off-by: Bernd Kuhls +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f71b245..0c2f13e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + cmake_minimum_required(VERSION 3.10) +-project(id3tag VERSION 0.16.3) ++project(id3tag VERSION 0.16.3 LANGUAGES C) + + option(BUILD_SHARED_LIBS "Build dynamic library" ON) + +-- +2.47.3 +