assimp: Do not treat warnings as errors
PATCH 1/6 assimp: Do not treat warnings as errors
ASSIMP_WARNINGS_AS_ERRORS defaults to ON, which builds the library with -Wall -Werror. That leaves the build at the mercy of whatever a new compiler adds to -Wall: clang 23 enables -Wunused-template there, and the bundled openddlparser copy carries a template that is never called, so the build fails with
contrib/openddlparser/code/DDLNode.cpp:34:20: error: unused function template 'releaseDataType' [-Werror,-Wunused-template]
Neither assimp master nor openddl-parser upstream has removed that dead template, and there is no pending pull request for it, so there is nothing to backport. Debian, Fedora, Arch and Alpine all turn this option off rather than patch individual warnings; do the same, which also keeps the next addition to -Wall from breaking the build again.
AI-Generated: Uses Claude Code
--- meta-oe/recipes-graphics/assimp/assimp_git.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-graphics/assimp/assimp_git.bb +1 -0
@@ -25,6 +25,7 @@ EXTRA_OECMAKE = "\ -DCMAKE_INSTALL_LIBDIR=${baselib} \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \ + -DASSIMP_WARNINGS_AS_ERRORS=OFF \ " do_install:append() {
PATCH 2/6 bpftrace: Upgrade to 0.26.1
Fix build with LLVM 23
---
....txt-allow-to-set-BISON_FLAGS-like-l.patch | 39 -------------------
...lderBPF-Fix-HasTerminator-on-LLVM-23.patch | 38 ++++++++++++++++++
...5-CMakeLists-Add-support-for-LLVM-23.patch | 36 +++++++++++++++++
...{bpftrace_0.25.1.bb => bpftrace_0.26.1.bb} | 14 +++----
4 files changed, 80 insertions(+), 47 deletions(-)
delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0005-CMakeLists-Add-support-for-LLVM-23.patch
rename meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/{bpftrace_0.25.1.bb => bpftrace_0.26.1.bb} (87%)meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From ce5d908bb1256ede680fbfd521f087060a567dca Mon Sep 17 00:00:00 2001 -From: Martin Jansa <[email protected]> -Date: Tue, 3 Sep 2024 14:17:51 +0200 -Subject: [PATCH] CMakeLists.txt: allow to set BISON_FLAGS like -l - -Signed-off-by: Martin Jansa <[email protected]> - -Upstream-Status: Pending ---- - CMakeLists.txt | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -108,16 +108,21 @@ include_directories(SYSTEM ${LIBCEREAL_I - - find_package(BISON REQUIRED) - find_package(FLEX REQUIRED) -+ -+# avoid buildpaths in generated #line statements and allow to pass --file-prefix-map=OLD=NEW -+set(BISON_FLAGS "${BISON_FLAGS} -l") -+set(FLEX_FLAGS "${FLEX_FLAGS} -L") -+ - # `parser_class_name` is deprecated and generates warnings in bison >= 3.3. - # But `api.parser.class` is not supported in bison < 3.3. So we must inject - # the %define based on the bison version here. - if(${BISON_VERSION} VERSION_GREATER_EQUAL 3.3) -- set(BISON_FLAGS "-Dapi.parser.class={Parser} -Wcounterexamples") -+ set(BISON_FLAGS "${BISON_FLAGS} -Dapi.parser.class={Parser} -Wcounterexamples") - else() -- set(BISON_FLAGS "-Dparser_class_name={Parser} -Wcounterexamples") -+ set(BISON_FLAGS "${BISON_FLAGS} -Dparser_class_name={Parser} -Wcounterexamples") - endif() - bison_target(bison_parser src/parser.yy ${CMAKE_BINARY_DIR}/parser.tab.cc COMPILE_FLAGS ${BISON_FLAGS} VERBOSE) --flex_target(flex_lexer src/lexer.l ${CMAKE_BINARY_DIR}/lex.yy.cc) -+flex_target(flex_lexer src/lexer.l ${CMAKE_BINARY_DIR}/lex.yy.cc COMPILE_FLAGS ${FLEX_FLAGS}) - add_flex_bison_dependency(flex_lexer bison_parser) - add_library(parser STATIC ${BISON_bison_parser_OUTPUTS} ${FLEX_flex_lexer_OUTPUTS}) - target_compile_options(parser PRIVATE "-w")
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch new file +38 -0
@@ -0,0 +1,38 @@ +From d09a791bb88c69c34dd2e294213ed2a47568267f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Viktor=20Mal=C3=ADk?= <[email protected]> +Date: Tue, 18 Aug 2026 21:47:37 +0200 +Subject: [PATCH] IRBuilderBPF: Fix HasTerminator on LLVM 23 (#5298) + +LLVM 23 changed the implementation of BasicBlock::getTerminator(), which +now doesn't check that a basic block actually has a terminator and +should only be called after a successful BasicBlock::hasTerminator() +check. Add the check to IRBuilderBPF::HasTerminator() for LLVM 23. + +Signed-off-by: Viktor Malik <[email protected]> + +Upstream-Status: Backport [https://github.com/bpftrace/bpftrace/commit/d09a791bb88c69c34dd2e294213ed2a47568267f] + +Signed-off-by: Khem Raj <[email protected]> +--- + src/ast/irbuilderbpf.cpp | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/ast/irbuilderbpf.cpp b/src/ast/irbuilderbpf.cpp +index fb94f9bdde6b..2a2ac6209c19 100644 +--- a/src/ast/irbuilderbpf.cpp ++++ b/src/ast/irbuilderbpf.cpp +@@ -2512,7 +2512,13 @@ llvm::Value *IRBuilderBPF::CreateCheckedBinop(Binop &binop, + bool IRBuilderBPF::HasTerminator() + { + BasicBlock *current_block = GetInsertBlock(); +- return current_block && current_block->getTerminator(); ++ if (!current_block) ++ return false; ++#if LLVM_VERSION_MAJOR >= 23 ++ if (!current_block->hasTerminator()) ++ return false; ++#endif ++ return current_block->getTerminator(); + } + + } // namespace bpftrace::ast
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0005-CMakeLists-Add-support-for-LLVM-23.patch new file +36 -0
@@ -0,0 +1,36 @@ +From f0768d0a3d08b4ba7fbc85f874fbe905cd4a6880 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Viktor=20Mal=C3=ADk?= <[email protected]> +Date: Wed, 19 Aug 2026 09:25:25 +0200 +Subject: [PATCH] Add support for LLVM 23 (#5299) + +- Bump MAX_LLVM_MAJOR +- Add new Nix targets +- Bump BCC version to the commit fixing LLVM 23 build +- Adjust CI jobs + +Also drop support for LLVM 18. Since the Nix fuzz shell depended on LLVM +18, move that to 22. + +Signed-off-by: Viktor Malik <[email protected]> + +Only the CMakeLists.txt hunk is backported here; the Nix and CI changes of +the original commit do not apply to an OE build, and the BCC bump is +handled by the bcc recipe. + +Upstream-Status: Backport [https://github.com/bpftrace/bpftrace/commit/f0768d0a3d08b4ba7fbc85f874fbe905cd4a6880] + +Signed-off-by: Khem Raj <[email protected]> +--- +diff --git a/CMakeLists.txt b/CMakeLists.txt +index baea14e65c60..a781bf347d61 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -156,7 +156,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") + # releases. + set(MAX_LLVM_MAJOR 999) + else() +- set(MAX_LLVM_MAJOR 22) ++ set(MAX_LLVM_MAJOR 23) + endif() + + if((${LLVM_VERSION_MAJOR} VERSION_LESS ${MIN_LLVM_MAJOR}) OR (${LLVM_VERSION_MAJOR} VERSION_GREATER ${MAX_LLVM_MAJOR}))
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb renamed from meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.25.1.bb +6 -8
@@ -3,9 +3,7 @@ HOMEPAGE = "https://github.com/iovisor/bpftrace" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -DEPENDS += "bison-native \ - flex-native \ - gzip-native \ +DEPENDS += "gzip-native \ elfutils \ bpftool-native \ bcc \
@@ -13,15 +11,16 @@ DEPENDS += "bison-native \ libbpf \ xxd-native \ " -DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'pahole-native llvm-native', '', d)}" +DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'pahole-native llvm-native zip-native', '', d)}" -SRC_URI = "git://github.com/iovisor/bpftrace;branch=release/0.25.x;protocol=https;tag=v${PV} \ +SRC_URI = "git://github.com/iovisor/bpftrace;branch=release/0.26.x;protocol=https;tag=v${PV} \ file://run-ptest \ - file://0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch \ file://0001-cmake-BuildBPF.cmake-introduce-DEBUG_PREFIX_MAP.patch \ file://0003-cmake-BuildBPF.cmake-link-data-source-binary-without.patch \ + file://0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch \ + file://0005-CMakeLists-Add-support-for-LLVM-23.patch \ " -SRCREV = "e491811e5d648288c01f42ce087967b271f504a0" +SRCREV = "1bac8a8daad6e0aa579980e877d0c9d5fc296593" inherit bash-completion cmake ptest pkgconfig
@@ -64,7 +63,6 @@ EXTRA_OECMAKE = " \ -DUSE_SYSTEM_BPF_BCC=ON \ -DUSE_SYSTEM_LIBBPF=ON \ -DENABLE_MAN=OFF \ - -DBISON_FLAGS='--file-prefix-map=${WORKDIR}=' \ " PACKAGES:remove:powerpc64 = "${PN}-ptest"
PATCH 3/6 bpftrace: Fix tests to cross compile
In reply to Khem Raj--- ...ker-flags-and-sysroot-to-raw-compile.patch | 79 +++++++++++++++++++ ...d-build-paths-in-split-DWARF-test-pr.patch | 61 ++++++++++++++ .../bpftrace/bpftrace_0.26.1.bb | 2 + 3 files changed, 142 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0006-tests-do-not-embed-build-paths-in-split-DWARF-test-pr.patch
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch new file +79 -0
@@ -0,0 +1,79 @@ +From 94892d6ac971155b43a6bbff942acede21b60efb Mon Sep 17 00:00:00 2001 +From: x <x@x> +Date: Mon, 7 Sep 2026 17:54:26 +0000 +Subject: [PATCH] tests: pass C/linker flags and sysroot to raw compiler + invocations in testprogs + +Several add_custom_command() rules in tests/testprogs invoke +${CMAKE_C_COMPILER} directly (false.bin and the split-DWARF dwo/dwp +builds). Unlike add_executable() targets, these do not automatically +receive CMAKE_C_FLAGS, CMAKE_EXE_LINKER_FLAGS or CMAKE_SYSROOT, so with +cross toolchains that have no built-in default sysroot (e.g. +Yocto/OpenEmbedded) the compile fails with: + + uprobe_test.c:1:10: fatal error: unistd.h: No such file or directory + +Build a flag list from CMAKE_C_COMPILER_ARG1, CMAKE_SYSROOT and +CMAKE_C_FLAGS and pass it to each raw compiler invocation. The dwo/dwp +commands compile and link in a single step, so also pass +CMAKE_EXE_LINKER_FLAGS to those. + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + tests/testprogs/CMakeLists.txt | 23 ++++++++++++++++++++--- + 1 file changed, 20 insertions(+), 3 deletions(-) + +--- a/tests/testprogs/CMakeLists.txt ++++ b/tests/testprogs/CMakeLists.txt +@@ -17,6 +17,23 @@ test_and_add_testprog_cflag("-fno-omit-f + test_and_add_testprog_cflag("-mno-omit-leaf-frame-pointer") + get_property(testprog_cflags GLOBAL PROPERTY testprog_cflags) + ++# Flags for the add_custom_command() invocations below that call the C ++# compiler directly. Unlike add_executable(), custom commands do not ++# automatically receive CMAKE_C_FLAGS or the sysroot, which breaks cross ++# compilation with toolchains that have no default sysroot (e.g. Yocto). ++set(testprog_raw_cc_flags "") ++if(CMAKE_C_COMPILER_ARG1) ++ separate_arguments(_arg1 UNIX_COMMAND "${CMAKE_C_COMPILER_ARG1}") ++ list(APPEND testprog_raw_cc_flags ${_arg1}) ++endif() ++if(CMAKE_SYSROOT) ++ list(APPEND testprog_raw_cc_flags "--sysroot=${CMAKE_SYSROOT}") ++endif() ++separate_arguments(_c_flags UNIX_COMMAND "${CMAKE_C_FLAGS}") ++list(APPEND testprog_raw_cc_flags ${_c_flags}) ++# Linker flags for the custom commands that compile and link in one step. ++separate_arguments(testprog_raw_ld_flags UNIX_COMMAND "${CMAKE_EXE_LINKER_FLAGS}") ++ + file(GLOB testprog_sources CONFIGURE_DEPENDS *.c *.cpp) + set(testprogtargets "") + function(testprog_compile is_pie) +@@ -85,7 +102,7 @@ endif() + find_program(LLVM_OBJCOPY llvm-objcopy REQUIRED) + add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/false.bin +- COMMAND ${CMAKE_C_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/false.c -o ${CMAKE_CURRENT_BINARY_DIR}/false.o ++ COMMAND ${CMAKE_C_COMPILER} ${testprog_raw_cc_flags} -c ${CMAKE_CURRENT_SOURCE_DIR}/false.c -o ${CMAKE_CURRENT_BINARY_DIR}/false.o + COMMAND ${LLVM_OBJCOPY} -S --only-section=.text --keep-symbol=main -O binary ${CMAKE_CURRENT_BINARY_DIR}/false.o ${CMAKE_CURRENT_BINARY_DIR}/false.bin + COMMAND ${CMAKE_COMMAND} -E rm -f ${CMAKE_CURRENT_BINARY_DIR}/false.o + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +@@ -147,7 +164,7 @@ add_custom_command( + OUTPUT + ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split + ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split-uprobe_test.dwo +- COMMAND ${CMAKE_C_COMPILER} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split ++ COMMAND ${CMAKE_C_COMPILER} ${testprog_raw_cc_flags} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split ${testprog_raw_ld_flags} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c + ) + list(APPEND testprogtargets ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split) +@@ -159,7 +176,7 @@ add_custom_command( + OUTPUT + ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split + ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split.dwp +- COMMAND ${CMAKE_C_COMPILER} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split ++ COMMAND ${CMAKE_C_COMPILER} ${testprog_raw_cc_flags} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split ${testprog_raw_ld_flags} + COMMAND ${LLVM_DWP} -e ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split -o ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split.dwp + COMMAND ${CMAKE_COMMAND} -E rm -f ${EXTERNAL_DEBUG_DIR}/dwp/*.dwo + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0006-tests-do-not-embed-build-paths-in-split-DWARF-test-pr.patch new file +61 -0
61 lines not on this page · raw message
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb +2 -0
@@ -19,6 +19,8 @@ SRC_URI = "git://github.com/iovisor/bpftrace;branch=release/0.26.x;protocol=http file://0003-cmake-BuildBPF.cmake-link-data-source-binary-without.patch \ file://0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch \ file://0005-CMakeLists-Add-support-for-LLVM-23.patch \ + file://0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch \ + file://0006-tests-do-not-embed-build-paths-in-split-DWARF-test-pr.patch \ " SRCREV = "1bac8a8daad6e0aa579980e877d0c9d5fc296593"
PATCH 4/6 libcamera: Fix build with clang 23
In reply to Khem Rajclang 23 enables -Wunused-template as part of -Wall (via -Wmost -> -Wunused), where previously neither -Wall nor -Wextra turned it on. libcamera builds with -Werror, so this now breaks the build:
In file included from include/libcamera/ipa/core_ipa_serializer.h:18:
include/libcamera/internal/ipa_data_serializer.h:57:3: error: unused
function template 'readPOD' [-Werror,-Wunused-template]
57 | T readPOD(std::vector<uint8_t> &vec, size_t pos)
| ^~~~~~~The POD helpers sit in an anonymous namespace, so they have internal linkage and clang diagnoses them per translation unit. appendPOD() and the iterator overload of readPOD() are referenced by the IPADataSerializer specialisations in the header itself, so they count as used everywhere. The std::vector overload of readPOD() is not: nothing in libcamera calls it, its only callers are the IPA proxies and proxy workers generated at build time from the mojom templates. So it is genuinely unused in every translation unit that is not generated proxy code, which is what [[maybe_unused]] exists for.
--- ...er-Mark-vector-readPOD-overload-as-m.patch | 65 +++++++++++++++++++ .../libcamera/libcamera_0.7.2.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch
meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch new file +65 -0
@@ -0,0 +1,65 @@ +From: Khem Raj <[email protected]> +Date: Sun, 6 Sep 2026 22:40:00 -0700 +Subject: [PATCH] ipa_data_serializer: Mark vector readPOD() overload as + maybe_unused + +clang 23 enables -Wunused-template as part of -Wall (via -Wmost -> +-Wunused; it was not enabled by -Wall or -Wextra before). Combined with +libcamera's -Werror this breaks the build: + + In file included from include/libcamera/ipa/core_ipa_serializer.h:18: + include/libcamera/internal/ipa_data_serializer.h:57:3: error: unused + function template 'readPOD' [-Werror,-Wunused-template] + 57 | T readPOD(std::vector<uint8_t> &vec, size_t pos) + | ^~~~~~~ + +The POD helpers live in an anonymous namespace, so they have internal +linkage and clang diagnoses them per translation unit. appendPOD() and +the iterator overload of readPOD() are referenced by the IPADataSerializer +specialisations in this header, so they are seen as used everywhere. + +The std::vector overload of readPOD() is different: nothing in libcamera +itself calls it. Its only callers are the IPA proxies and proxy workers +generated at build time from the mojom templates, for example + + [[maybe_unused]] const size_t ipaControlsBufSize = + readPOD<uint32_t>(_ipcOutputBuf.data(), 4); + +in src/libcamera/proxy/soft_ipa_proxy.cpp. It is therefore genuinely +unused in every translation unit that includes this header without being +generated proxy code, which is exactly what [[maybe_unused]] is for. + +Note the overload cannot simply be dropped: doing so breaks the generated +proxies with "no matching function for call to 'readPOD'". + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + include/libcamera/internal/ipa_data_serializer.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/include/libcamera/internal/ipa_data_serializer.h b/include/libcamera/internal/ipa_data_serializer.h +index 0dda76d..528527d 100644 +--- a/include/libcamera/internal/ipa_data_serializer.h ++++ b/include/libcamera/internal/ipa_data_serializer.h +@@ -52,9 +52,15 @@ T readPOD(std::vector<uint8_t>::const_iterator it, size_t pos, + return ret; + } + ++/* ++ * This overload is only used by the generated IPA proxies and proxy workers, ++ * and thus is unused in translation units that include this header without ++ * being generated proxy code. Mark it as such to avoid -Wunused-template ++ * warnings, which clang enables as part of -Wall since version 23. ++ */ + template<typename T, + std::enable_if_t<std::is_arithmetic_v<T>> * = nullptr> +-T readPOD(std::vector<uint8_t> &vec, size_t pos) ++[[maybe_unused]] T readPOD(std::vector<uint8_t> &vec, size_t pos) + { + return readPOD<T>(vec.cbegin(), pos, vec.end()); + } +-- +2.51.0 +
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb +1 -0
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "\ SRC_URI = " \ git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master;tag=v${PV} \ + file://0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch \ " SRCREV = "191e202178f02430b5942397c70d215cdd2056fa"
PATCH 5/6 zfs: Upgrade to 2.4.4 release
In reply to Khem RajSupports linux kernels upto 7.2
---
.../recipes-filesystems/zfs/{zfs_2.4.3.bb => zfs_2.4.4.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-filesystems/recipes-filesystems/zfs/{zfs_2.4.3.bb => zfs_2.4.4.bb} (98%)meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb renamed from meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb +1 -2
@@ -4,14 +4,13 @@ LICENSE = "CDDL-1.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa" HOMEPAGE = "https://github.com/openzfs/zfs" -SRCREV = "83020cf8259d057d4cc9102010c05f07ffdfc136" +SRCREV = "71a9f9578616a90c3c14bb59629fb4d31bfd68d1" SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=zfs-2.4-release;tag=${BP} \ file://0001-Define-strndupa-if-it-does-not-exist.patch \ file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \ file://0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch \ " - # Using both 'module' and 'autotools' classes seems a bit odd, they both # define a do_compile function. # That's why we opt for module-base, also this prevents module splitting.
PATCH 6/6 libosinfo: Do not error on clang's -Wunused-but-set-global
In reply to Khem Rajclang 23 added -Wunused-but-set-global to the -Wunused warning group, so the -Werror that meson.build adds for git builds turns it into a hard error:
osinfo/osinfo_avatar_format.c:24:1: error: variable
'osinfo_avatar_format_parent_class' set but not used [-Werror,-Wunused-but-set-global]
Add -Wno-error=unused-but-set-global to libosinfo_check_cflags so the warning stays visible but is not fatal. The flag is placed in the list that meson.build filters through compiler.has_argument(), so it is dropped on compilers that do not know the warning group
--- ...ror-on-clang-s-unused-but-set-global.patch | 45 +++++++++++++++++++ .../libosinfo/libosinfo_1.12.0.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-oe/recipes-support/libosinfo/libosinfo/0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch
meta-oe/recipes-support/libosinfo/libosinfo/0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch new file +45 -0
@@ -0,0 +1,45 @@ +From ab54bb415451f0b85207867ae2d68c5dcf1a191c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 7 Sep 2026 18:39:42 -0700 +Subject: [PATCH] meson: don't error on clang's -Wunused-but-set-global + +clang 23 added -Wunused-but-set-global to the -Wunused warning group, so +the -Werror that meson.build adds for git builds now turns it into a hard +error: + + osinfo/osinfo_avatar_format.c:24:1: error: variable + 'osinfo_avatar_format_parent_class' set but not used + [-Werror,-Wunused-but-set-global] + +It fires on the <type>_parent_class variables that GLib's G_DEFINE_TYPE +family of macros emit, which libosinfo cannot fix, and on the write-only +'format' global in tools/osinfo-detect.c. + +Keep the warning visible but not fatal. gcc does not know this warning +group and rejects the flag outright, so compiler.has_argument() drops it +there. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + meson.build | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/meson.build b/meson.build +index 377539d..7fd9de7 100644 +--- a/meson.build ++++ b/meson.build +@@ -246,6 +246,12 @@ if compiler.get_id() == 'clang' + libosinfo_check_cflags += [ + '-Wno-typedef-redefinition', + '-Wno-missing-field-initializers', ++ # clang 23 added -Wunused-but-set-global to the -Wunused group. It ++ # fires on the <type>_parent_class variables that GLib's G_DEFINE_TYPE ++ # family of macros emit, which libosinfo cannot fix, and on the ++ # deliberately write-only 'format' global in osinfo-detect. ++ # Keep the warning visible but not fatal. ++ '-Wno-error=unused-but-set-global', + ] + endif +
meta-oe/recipes-support/libosinfo/libosinfo_1.12.0.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI = " \ git://gitlab.com/libosinfo/libosinfo.git;branch=main;protocol=https \ file://0001-meson.build-allow-crosscompiling-gir.patch \ file://0adf38535637ec668e658d43f04f60f11f51574f.patch \ + file://0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch \ " SRCREV = "b505ef5161d2552102a743acd4ad83298d3d8f99"