From patchwork Tue Sep 8 02:07:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97584 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 B4917C79FA1 for ; Tue, 8 Sep 2026 02:07:57 +0000 (UTC) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.522.1788833276658351258 for ; Mon, 07 Sep 2026 19:07:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=KUTcfryf; spf=pass (domain: gmail.com, ip: 209.85.216.54, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-398a4dcf289so4785607a91.2 for ; Mon, 07 Sep 2026 19:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833276; x=1789438076; 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:content-type; bh=icmuinX9//mJxIKVWcJv3L9tPp5grv/qlwdMHAS7ZaY=; b=KUTcfryfPz7+FAk//7og48Dv1jp6aOKv8sIPN3I7VFdaI8yDinHZztA/bPqw0kGlG8 zyQbJ4MJI3UNgNZRumJYpFZfJQCgZUOivE+DA6WevBcrRwoKqQ/YSKMNK/Tu7GOdjsuP +dyU4BuaKOqHLjJAHJTNJDNOWvddLPjFCu6jYZXx65hG3qBBKRUaxYvwgdeeI+6i2LtR NOSAOycGbm49wQ8ritUmDAGTwJ7ZY2wf4HhxIE4KMirxeW3EZzxfUEVNTzwNiSx1B1iv yev4nTjE1jVJzYBJKS3pdnwCUWSc7tndmV59f4RK2pPmU9/c+we8DFYgTJ1yirZEAPqr eusg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833276; x=1789438076; 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:content-type; bh=icmuinX9//mJxIKVWcJv3L9tPp5grv/qlwdMHAS7ZaY=; b=ERYOMizjpi8xs6WurBbrzxu//RHjt1YTB02JAfxS/7PZxkTqoJ2CDwmFtSs6+EWQLw LlBeZJ7mEuuysaq2e+M0YtsvCQet84M09fSc7IWD2MtpaCmj6Y2V3aTVUqIRErK1HwTB +IwZGdxJIH9tMlXKwP/hbmLdtYJdObTDXZLAUwbP4MD6hvsefHiMLuBekwwyAPqFxAGK NrNImLBj+Cm1HYBgM8jvYzkxlFweWGo24awJctSKSLgaGr88CUXytmZku8WivoTxFftp ++9q8DcCWf99tlgtyp1nGRa0WOSKjxoHrmnEeH4R7wEim9+avNGakSkgfOD8H0mh7DjU 4Ihg== X-Gm-Message-State: AFuF++lyhvtHiF448zIYx8AZ+PlBA96z77PfEHE3YLbRMGS2AP6kQTNS E5jkmjGxK7vNvMn35uSlXqbiQaOMSDN4YFrkfWfaQVce3u8Hh2wUoGu7uvFuNQ== X-Gm-Gg: AYBFou2HW0B8IiRAESeVgdOiU16slyRYw/Xn69CSk+GO0Y0ZcOITUakeG0yU//axUUw ko0xBug1fhFXNmb66Q4B4AP0gFlYSaOm5bmTZ+TQ+zugsCS7OqMj5MuaPWhc5QmUA6RLzJB+JMR iuwVpvv0NIt/JpqgAAuKgqRM5q6L7gGP+OqKObsf9dvauI/KHSgPTFsDxerM19CH2ld0ra1K2KT f994tg+2P8iEUGlMJf3207SHrxVdP1vLLtz4PaejU+jbCs0wlUNiXdrUddGzzwb2IxbOk1yxy0q kSNM8Nqh+TGIyyhea6T1bYJBPtAjhEB4Cfgpyu9eEmGL0w6kCkte+rbpeqjHkUD+Nkekd/9TSTB jnRHjiWLE72GCEAsPw3ab9t+sZEV+tcVg3hWX3M5fvTO8hjnm1pdMQ8RA2zuc2p7zYfNW6SX2z0 f/zqT1Czq0M+m2MjoJ/o0GN8bYAdVynXi+e4gdnQY+232AqtC2s0YubN03AsgW7GqSOzb/C8EJe BvyLeGctnzPJzltwaDeZyevLy+b8iMPhdDVUUqOBzgU5NeLTxelPAnkUAfoVGkoGtyZbpgNheLe pOa6I0nWqECEKSRddh9C5uNdY7BOHoOdqbwWTr4msATN970+PgQWlQkfMh1pFHLNU5WAcw2c0LE 2V5uwz1gZ+qDQ0nQqwCa1DKGHIvat4T7vdwPeezC3ebk4gQ== X-Received: by 2002:a17:90b:5344:b0:395:4de4:92be with SMTP id 98e67ed59e1d1-39b261b1a47mr42341640a91.13.1788833275944; Mon, 07 Sep 2026 19:07:55 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:07:54 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-oe][PATCH 1/6] assimp: Do not treat warnings as errors Date: Mon, 7 Sep 2026 19:07:47 -0700 Message-ID: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.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 ; Tue, 08 Sep 2026 02:07:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129849 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 Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/assimp/assimp_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-graphics/assimp/assimp_git.bb b/meta-oe/recipes-graphics/assimp/assimp_git.bb index b2d7a573de..561ef50508 100644 --- a/meta-oe/recipes-graphics/assimp/assimp_git.bb +++ b/meta-oe/recipes-graphics/assimp/assimp_git.bb @@ -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() { From patchwork Tue Sep 8 02:07:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97586 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 AFFCEC79FA1 for ; Tue, 8 Sep 2026 02:08:07 +0000 (UTC) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.523.1788833278263619530 for ; Mon, 07 Sep 2026 19:07:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=m15nVDcN; spf=pass (domain: gmail.com, ip: 209.85.215.182, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-c9aea40d799so2189450a12.0 for ; Mon, 07 Sep 2026 19:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833278; x=1789438078; 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:content-type; bh=Tcpu2tayQ3MjjMQOJ/znVq+TC/V7Sziy0CWcjxvoMig=; b=m15nVDcNgvbiRYuNBc/IC9UYFmXcxMmkcsUg/tK//2re8nL/xlgojCcse/EhhGQAYd 5UQi7tlSW9w1GXn1aPUxTAhGYnNvzh4PRpH5pHbzhmwV1L8GJtIYO2MLuleqwgdCbxU7 bgZAgl8UDK6Vf+HZVj3QpwhRlLb4L4eqhnFCJPKLrGcDHRPRCjfbx+g1mt8GE17yESm5 QspJb9HrAt6hbhQL4uHEInUxuL+8g+N4hjqX+gQpMoO8GRkqfl0vYFTowwufo5VNgO+P BHnPOr2oxgYchzHhVQ5bPqK3gWjteiS9DU+zZFGMZ7GhXs/443cCJRANpjVDQcmeuSwL s1qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833278; x=1789438078; 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:content-type; bh=Tcpu2tayQ3MjjMQOJ/znVq+TC/V7Sziy0CWcjxvoMig=; b=PCw+Xw1zeSbiJ1+z1RiiPB0aFjaKGJMG5z07u+JiZNPDedHXkH2YjkUqNsmLfiW4Tj lKbg+v98DCqoE+kg37L7s2Xew05AC5XYZ/VzUEtLXOMjklSrHvFXG1u9WhMo7wC0loa6 dAzVv0Ve6pvY71ob2bKKqaDsGiIHY9Xf2T3ZSwoKDhvvdoCWPaYQ0d1vxp579HXQjAix W194t2yATJLkbASj9fRuvTFbKjxkUKUQ70I+r4ktnv2WyFUIZDPFbLYj5pkhwos2Jg1I eq6S5SZGNFLdT7cS6hcE0Y3jAFq7mGDTMnYdIccbmbAYI85CFf2i+eeSlTUruYHD2lIp MFiQ== X-Gm-Message-State: AFuF++nIPrFfJIieWf9X4vJIj/hSr6ajG4Kxkd2Wm7e0RnPZM+4BsH0K IMMT3+scmqjdKo1r8ZxQ1P8+JTvvKiNn0SeyS68jqwnvf47MsJv/ASNE/eJjUQ== X-Gm-Gg: AYBFou1qb2AtBAMVK32M6DWNztQSPG+cwNkN3S2horpvfLyKwf+abiSMWwD+4VZa3OF QrqBNpRfvgaHXJtrFMD5gXyKWBYnRVBmHP0nieQY8VHVawT44PZMJLVk2sGRSNi/iUVd6KlzksN wpwJdLUxtoZoB+tOaMGPmkb+Z3SXk3gWQeAtBkdJ4vVBbcnguqZUSQnKKdM7kiFmrpOeJKFhV7F L6KwCCaCLw9JoDk6nEbKROvM/6Ku+uLikPOTjw5Z+bs6Fvrhbq/9lRk64XRYPv1vzO+PtdCy7cm bJ/DSHG+5xMBsRJ8qILgFfAPjEaUpDaWhCTMw/8ty6Zvi2o1SzTvQoNHnlpRLilh2MUqg7u0aiW Rqs60vYaP3zyD4e+b9uYALe/RiYTZjpgJ1MIrH6GeXvxnmvdJj/b68u1byl2nAxGwy086rJ2t4X 1Aen2mACBOlHRXGT0KS6Aq8oqO2DGF6wa4c/0lwedu1Vip8tjhU6d3ZTv/U5pe7PF4e01U6fm+0 36Z8QvEeClqNMdQlUbzUX06ln9R8AYqHLQkbvOmIJb1cvnEJriYGhcyqZTfu8IzcHJR1ZzQ5O6x vqoPHquaBMheGv7z12kZ3plqJfMjcRUnrcBFG6etHCoO7wzI4+HWUTkfQ6cf6CKQ8v+mqfBXxP3 jXIoYF4KzN+zxTHnttJVdn8hX4DhFM89UdrCLUp3j5+OsY4C9w16p6hiHXg== X-Received: by 2002:a17:90b:2ccf:b0:398:a2a3:b631 with SMTP id 98e67ed59e1d1-39b262aaf3dmr41856426a91.19.1788833277454; Mon, 07 Sep 2026 19:07:57 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:07:56 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 2/6] bpftrace: Upgrade to 0.26.1 Date: Mon, 7 Sep 2026 19:07:48 -0700 Message-ID: <20260908020752.2748681-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> References: <20260908020752.2748681-1-khem.raj@oss.qualcomm.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 ; Tue, 08 Sep 2026 02:08:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129850 Fix build with LLVM 23 Signed-off-by: Khem Raj --- ....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%) diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch deleted file mode 100644 index c9e1749dd5..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch +++ /dev/null @@ -1,39 +0,0 @@ -From ce5d908bb1256ede680fbfd521f087060a567dca Mon Sep 17 00:00:00 2001 -From: Martin Jansa -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 - -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") diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch new file mode 100644 index 0000000000..f224ca3d81 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0004-IRBuilderBPF-Fix-HasTerminator-on-LLVM-23.patch @@ -0,0 +1,38 @@ +From d09a791bb88c69c34dd2e294213ed2a47568267f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Viktor=20Mal=C3=ADk?= +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 + +Upstream-Status: Backport [https://github.com/bpftrace/bpftrace/commit/d09a791bb88c69c34dd2e294213ed2a47568267f] + +Signed-off-by: Khem Raj +--- + 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 diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0005-CMakeLists-Add-support-for-LLVM-23.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0005-CMakeLists-Add-support-for-LLVM-23.patch new file mode 100644 index 0000000000..b5f7f0e3dc --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0005-CMakeLists-Add-support-for-LLVM-23.patch @@ -0,0 +1,36 @@ +From f0768d0a3d08b4ba7fbc85f874fbe905cd4a6880 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Viktor=20Mal=C3=ADk?= +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 + +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 +--- +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})) diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.25.1.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb similarity index 87% rename from meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.25.1.bb rename to meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb index 7daf02ba1c..44e32cb9a4 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.25.1.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb @@ -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" From patchwork Tue Sep 8 02:07:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97589 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 D25D1C79FAA for ; Tue, 8 Sep 2026 02:08:07 +0000 (UTC) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.527.1788833279984578652 for ; Mon, 07 Sep 2026 19:08:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=SXlg1jtd; spf=pass (domain: gmail.com, ip: 209.85.214.176, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2d71ae3455aso63546165ad.1 for ; Mon, 07 Sep 2026 19:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833279; x=1789438079; 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:content-type; bh=1+SjpiAZJ0s7qHzDvRtXewYpGINuqoFCEcL3sAHMJqg=; b=SXlg1jtdQC4sJ1TUXHtpp3Y70d3Z1FfjiuAF4aN+ztR+ND+VK2Ttd2YjgW6qR1B/A3 CSx0TtillZ1vsCwlthz3yJFvk08dn9Pj0llTsdYH0vZt07HcLzeCilE03LSlSZXbwTbs Mc+NVOluHVYnfLbkIQs/tYCoGgF+loAmbxqRXsi4M2xoctBBLA4wHqzea3zx0BhrrS/Q waWS5D6NIqGBFPt/mk9We8lpessZjl7gBzi0d4kS+HBO/+jpQvTlAFvxd+UtL7a0/Ub9 6s17GuS+LddGWOMibwqzClPzz8HSFjCKVttLXnVDEH4DhN05ac2weolIBtOPvJhWFzGz h/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833279; x=1789438079; 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:content-type; bh=1+SjpiAZJ0s7qHzDvRtXewYpGINuqoFCEcL3sAHMJqg=; b=HVy688T6iyTho0qtxMZVGKAz9hPyI7jKezyn/V7TVjCK43xoc2ByODK4+jpW6ohlqC MKatDhcSHqD67VU7v0oCM7swRkx5AuRR4izwX1XluqQmTDZbkclyh8dRLGO9JnLQeLxi kfQOrX1vihWUw9XyYHvAWiAeYvwkAeh/xUx1oaP7iuP8kAiZQt+QXY0CH+t0q0awAyKn PbpDONK8Qj3xbuN7VjBr7ECxFOPM08OYxPWK/8gkGzMd3buDlW7vJM4m7X/5IhChYY9r qMVp3qVkXFjfcTiXpSXRGUH9n+OP95YrVpmXPd/uKn5cPS1xAzDLNL14DAg8T3IlMLtU aRAA== X-Gm-Message-State: AFuF++kzentmVy9g2UoExIMmy5L/Ch0eTXUa04oFIlqMhuW57LBP6QUH jPwWDluekk/zlGuR5NFYpp/A3P+ZsipWXM9+vjYbCRSTm1Vfxujoz+/96Swx4g== X-Gm-Gg: AYBFou195Yfo9mfMYY68lzueTHe3zhCDEfCMSewUdqbsMmf8iWY6hUgrTx2h0DzUyG7 oWSS/ROkKzQLSc2L5CPzE/TDdQ39sWhK0jfjyrp6TtggW1nNRlzw7UIFfR9982ujGidewwVwHyo rPn3Zv9moXWefZaB3WklZ2lSIs5MZNjUaJe+sCpxlwgX7kQw81cBVxnOMlxSoE/nzw2F1Nd6MIj uF5SMTMjP0j+lfNzrBZa49Stxia74qk73qXhyzk5mp99yJyHA8T9+XDAXNXobcgOuytMcy79zrM fynhw/mgBobb0hFShcHwvl6EkW3r0q3Ntw5R9x1M6pQlJ2SXKZ4EratO/1zPTjeoUyBZX1aQERP HL3GDP++aciT7YuahvWkjw6s7hM9yf3O+kuD3ieuaXqGlasyWx1e1S4ngq5voZypXhF8hdTsSKf IP30eWfAVSFRZ00cBykI5SSW4x2FiHytM59VxX+sQlKxO8w9l87zoetziOwAyIX/hRve63vMhYm DFWYVegrDFL7DRRXfLSdjElPlQ7HxjIL2ONmlbuyJqr/VeD+KEBmP4oxuFTf01B/ePE8NpvBv1R x6QQF7MK8NtWN4rSUBPS9Re7QAGNeJ04XB8q8as0EadmeHFPtVvd3MQUzJqZkfMerJP73ijQk4p 0LNibkd/t9Y8xumjJmOltq46VY+T2DaKLI5FNiNJhs2Zfag== X-Received: by 2002:a17:90b:5344:b0:38e:4f41:83df with SMTP id 98e67ed59e1d1-39b261e0f14mr39679140a91.15.1788833279244; Mon, 07 Sep 2026 19:07:59 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:07:58 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 3/6] bpftrace: Fix tests to cross compile Date: Mon, 7 Sep 2026 19:07:49 -0700 Message-ID: <20260908020752.2748681-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> References: <20260908020752.2748681-1-khem.raj@oss.qualcomm.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 ; Tue, 08 Sep 2026 02:08:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129851 Signed-off-by: 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 diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch new file mode 100644 index 0000000000..491b451ee9 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0001-tests-pass-C-linker-flags-and-sysroot-to-raw-compile.patch @@ -0,0 +1,79 @@ +From 94892d6ac971155b43a6bbff942acede21b60efb Mon Sep 17 00:00:00 2001 +From: 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 +--- + 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 diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0006-tests-do-not-embed-build-paths-in-split-DWARF-test-pr.patch b/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 mode 100644 index 0000000000..aecbabc8d0 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0006-tests-do-not-embed-build-paths-in-split-DWARF-test-pr.patch @@ -0,0 +1,61 @@ +From bc125c84cffdbb23ea7977b1f235635607e00a18 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 7 Sep 2026 16:36:50 -0700 +Subject: [PATCH] tests: do not embed build paths in split DWARF test programs + +The two split-DWARF test binaries are compiled by add_custom_command() with +an absolute -o path. clang derives the .dwo file name from -o and records it +verbatim in DW_AT_dwo_name, without applying -ffile-prefix-map, so the +absolute build directory ends up baked into uprobe_test-split, its .dwo and +the .dwp built from it. gcc remaps it, clang does not. + +Compile from inside the target directory with a relative -o instead. The +recorded DW_AT_dwo_name then becomes a plain file name, which is what the +dwarf parser looks for anyway (it uses only the basename), and llvm-dwp +resolves it relative to its working directory. + +This keeps the shipped test programs free of build paths, which matters for +distributions that package tests/ and check for host paths in the output. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + tests/testprogs/CMakeLists.txt | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/tests/testprogs/CMakeLists.txt b/tests/testprogs/CMakeLists.txt +index 4cc9967..2b407b7 100644 +--- a/tests/testprogs/CMakeLists.txt ++++ b/tests/testprogs/CMakeLists.txt +@@ -160,11 +160,16 @@ list(APPEND testprogtargets + ${CMAKE_CURRENT_BINARY_DIR}/.debug/uprobe_separate_debug-stripped.debug) + + # Build a binary with split DWARF (.dwo files) to verify parsing of the split debug info format. ++# Compile from within the output directory and pass a relative -o: some compilers ++# (e.g. clang) record the -o derived .dwo path verbatim in DW_AT_dwo_name without ++# applying -ffile-prefix-map, which would bake the absolute build directory into ++# both the binary and the .dwo file. + 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} ${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} ++ COMMAND ${CMAKE_C_COMPILER} ${testprog_raw_cc_flags} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o uprobe_test-split ${testprog_raw_ld_flags} ++ WORKING_DIRECTORY ${EXTERNAL_DEBUG_DIR}/dwo + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c + ) + list(APPEND testprogtargets ${EXTERNAL_DEBUG_DIR}/dwo/uprobe_test-split) +@@ -176,9 +181,10 @@ add_custom_command( + OUTPUT + ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split + ${EXTERNAL_DEBUG_DIR}/dwp/uprobe_test-split.dwp +- 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_C_COMPILER} ${testprog_raw_cc_flags} -g -O0 -gsplit-dwarf ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c -o uprobe_test-split ${testprog_raw_ld_flags} ++ COMMAND ${LLVM_DWP} -e uprobe_test-split -o uprobe_test-split.dwp + COMMAND ${CMAKE_COMMAND} -E rm -f ${EXTERNAL_DEBUG_DIR}/dwp/*.dwo ++ WORKING_DIRECTORY ${EXTERNAL_DEBUG_DIR}/dwp + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/uprobe_test.c + ) + list(APPEND testprogtargets diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb index 44e32cb9a4..836f4d2483 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.26.1.bb @@ -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" From patchwork Tue Sep 8 02:07:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97587 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 E0569C79FAC for ; Tue, 8 Sep 2026 02:08:07 +0000 (UTC) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.525.1788833281616836291 for ; Mon, 07 Sep 2026 19:08:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=RnNz4piN; spf=pass (domain: gmail.com, ip: 209.85.216.51, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-38ea87caafeso3280009a91.3 for ; Mon, 07 Sep 2026 19:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833281; x=1789438081; 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:content-type; bh=UdUAch8b6daIrNIEI68Eee+H3eZtjb7LAOqRHLnqwbs=; b=RnNz4piN8gimQH4rQBBDHbo1xpoLg2mGRIVJW0vD7k7KEHG/S5R1v6wKs0o8s9to6T 2w1QbaTgxNnAdnHBqfVKiZswC7Rcc/549R2TRxucP0aSad7a0KaDAyCHtwNJ+HqcQui9 5EVy1OD6bDso1NclC0F5f0QJawjRY5CJkwIdY65zUfUEoAnI9Dz1RpLPZFC1HvCKVHrN sCM4TuCJUMCwV+wXr+MWs3kzZ20AsiBpVL9y5TC7UgVZEEHMrtO7gNt+fmFVSJEuTty7 b0k57Z9UPhC6hBiocJ4vZqV8V1n11Qlo9zkrLYaFLIx/vLNsz/N4XNwq+5V5zQGldGRj 211A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833281; x=1789438081; 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:content-type; bh=UdUAch8b6daIrNIEI68Eee+H3eZtjb7LAOqRHLnqwbs=; b=s5deDiVrpCUiApc8PT4KGBmHziV7zowhBlDVs/tPddtdlc4sfqlf40L5GlI2pCqsc9 Jau0pKzz8SnMrW8+LgUwZ6n1QUZRGuFiJx9QSmojCATD6HedizZ4c5H8t4XxX0aJEt4d 1XlnK/FIcyQADRA08YGBYCSqJwZvu0wBeAE5vFTPQApa48SqxFMyTQQPOanLpqSWjbBH /GtiDeUupWtG/WB0L9Q12y5x5eGXOAdg23Tzl1z2SLeFVQltPDk1O/ozgO91XLocYNb+ GpknSxctlC9g2bf4//jIr3dGU0qwLG54PeFY0R2ZwieSe3vd2IonvVDQuYittB9/REEw ABMw== X-Gm-Message-State: AFuF++kziMpDt67ehHEQI8Z982nctqoLq1RHMlsB7ymbIjnkkdXtNZuD G+V2pUQf+HHdgM3cvo0LbaxVAK1QbzMIlQyY0CQzae1cHbvwgFOqkjCs9xs5rQ== X-Gm-Gg: AYBFou1t8yZKdm3ElGzjAGL/2scotsejlX2QqAPYyvxjp61DIy1pIDQ/6HCwbQc2S38 AuXq8qFXQEtVklTcEhbmygDyUUbvE90LxPCHtsYdvb469Yucv12mIgqCon8CQ7EL8l5YIzrqB+c W8EA3nxTnK7J3cAr6qYncOXZmaPsXRt9+5U3xTHR/JiuLW31G7+hl5ZJQIchZ0qqC2Wj/25LUKD r+Im/4u+xvXWxsaRNuJHsdMTqbKyvaM5aD/laRSpTp1ZkOx4jL4VzhAOFib5sEmRENry9k6aVkl idaEWD/IxeDyFK5Ig+24xVSBFMZSsZGRcAO/ILw1J10hTuEc2adfM1Rap3W2D//z3DbxLBFvAGn iiP3VGRQ2SkYORvihBkjQWUQCkkoo9BZNhcDSSQiv8GkLUctsFcUVLUI7YrZSfkmFv1OI2SsjYR j3jd8qv9lCrep8/Pz7TfwXkbgYD11bxv4uFfgedquG1UzMol3uhxJOwqVnhP6Lu4hL2o0bkQtAY 54mJx/CZahQnIPIo6yFRqJg1LKW6K0SCj7lM4l5S95/scygfjwPhikoBezGtCd2Zi8CMOHadCCZ Ik8q5kluIPHCMrtRV/RevLpg1km5HS1yDEPh9PrueEK+WyURpx7Oy76oyUYGjM1xNStkpBbuCyu 2rvrEcSuhI0H4QYuoaeZi0w5d4Hr7ijqnE+QreY5QvvBQbAY= X-Received: by 2002:a17:90b:2f87:b0:38e:250b:122f with SMTP id 98e67ed59e1d1-39b261e75femr39268134a91.16.1788833280827; Mon, 07 Sep 2026 19:08:00 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:07:59 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-multimedia][PATCH 4/6] libcamera: Fix build with clang 23 Date: Mon, 7 Sep 2026 19:07:50 -0700 Message-ID: <20260908020752.2748681-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> References: <20260908020752.2748681-1-khem.raj@oss.qualcomm.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 ; Tue, 08 Sep 2026 02:08:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129852 clang 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 &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. Signed-off-by: Khem Raj --- ...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 diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch b/meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch new file mode 100644 index 0000000000..4cb8c47050 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-ipa_data_serializer-Mark-vector-readPOD-overload-as-m.patch @@ -0,0 +1,65 @@ +From: Khem Raj +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 &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(_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 +--- + 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::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> * = nullptr> +-T readPOD(std::vector &vec, size_t pos) ++[[maybe_unused]] T readPOD(std::vector &vec, size_t pos) + { + return readPOD(vec.cbegin(), pos, vec.end()); + } +-- +2.51.0 + diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb index 3199ad8a4f..955cf041ba 100644 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.2.bb @@ -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" From patchwork Tue Sep 8 02:07:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97588 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 C13E5C79F9E for ; Tue, 8 Sep 2026 02:08:07 +0000 (UTC) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.526.1788833283374194439 for ; Mon, 07 Sep 2026 19:08:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=KNnixgxh; spf=pass (domain: gmail.com, ip: 209.85.215.171, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-cc149372c14so1932081a12.1 for ; Mon, 07 Sep 2026 19:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833283; x=1789438083; 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:content-type; bh=+c2dFac43txWhwdHWfxj7txH+u3lSEQIzej4CDqzChs=; b=KNnixgxh/JF6YpbpjOoe+mE+jxQX5fe1cvTesLKQAq14+fP3TsU3NgoDWEy5HXVXlJ 6aFQR0LLKAirp7nP4MssRkaLEWlmtOlyNPQ02JEW5zto2fyKLy6LNFnd/DfaAWJHhBeV 7hpBY8U43+RXvTKLuf7PHRmOeDPQHCfcj4FKow6ekrnHKsK6TfWWdFgitYJoEf0Dyc5p 5UtZTIo6rQJ59oPUvYZF7F6178Cn/Nyhsx77TXk4G2s/B3OfvcP1R/3eViILh7fQfaD8 DYcAuEC9IpogDL5fd8Ofhh2c0yXh51ssxeEg8Ec3QNSjKj+udN3q/5YptP1XHJDo0Cax 6/mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833283; x=1789438083; 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:content-type; bh=+c2dFac43txWhwdHWfxj7txH+u3lSEQIzej4CDqzChs=; b=pr7zl0YsY9bkWOfK9gjDDtlhMgNOY4PfmSbgs3V3vAlw0H+RoTgzUCiwt7ZxO5arGs VfwYE3QZKytQ8XIPI9zgFdWZbCPHiF8RwKpv0IxqwKkoAS3TyTZszRQi2gs2cErmFBDw 1rN9Gu6IX0LKIrBmF5FVcz0j1PbnYSyb1ImTe9eTJwlQ5p9FWJg1Oe1fWJrdtdGZ5pb9 MOxoH2+dB5Y0SFJ55+5GQz7kreCXLw3D4TQK0QfJfpwUN12aGuxDG4WTcoKOLL3/kGMp wt8XSCLPKAH1Ml9g5A1jp9pwEQN0trud/B8aVkD9yIjg1DsETAh9TaiL6WhXaStvoCsX wuqQ== X-Gm-Message-State: AFuF++nhzmdnRhqyK6GYPrV7vtftXxnjjncZQXWkUO0ttTAkVN+O0T76 2NuEVq/bsTa2VhccK5mZRlnUM6+hw/Gmiyl7+RuG5nJeLSs+LecBORwuNPCb+w== X-Gm-Gg: AYBFou1RmWJ/YsYW6VDYeIr0mFkTA/QWMH5yzX8R9kAnuvFIdHbrz+hq+qzKgN1ykbO Vb2GNqfVZUMktgPdXWZ8pGUw+Chb+ZiHxfY+n6oFGTZ3Y6qlxKVYskuPaPPjdOXbCIxKevIVLLl BzXsYu+xi7kWNXrpirzoa6TqP6yhRjOHKDYYwcey97V+qjpwdCh2kptWCUz7EWLiHEwigQvg3lH acLPWkv8qpCIhty9o6MwteL09klZsfpL48UyZaECLUc6nAWGiutUJLdtDEhd3IdPhVAKzQrgnF/ NTmgL/aTayDW4+9BFprbL9MdWkC9lKSBqe4gxcL9FHfJ26pQ0etjnnmhTLz6yJQEA9nLgDVO8IO UmNSOEu18Wx31uYM1IUZPgS4jH9yLTVr6uQ74NiRbxXShH+P3XPxCJsutgW59vTdROD/6NSC1pn E4ozF+lkhyd3POl0fBSDH4RWKkLzkPEHtvSJqy1OKBFp3yxyWaI7YtI8sguXbNz3NaSqoQFZti0 g/m8XxkE+R6x7xMRCAH4q302H11McEu62mUmEoo4Oe6X+ZGLhw/MThQUK+9g35jEJbp5zCQSCl1 anoq1jB5jsTln7pR9liNWC7zWYzyzrzbN6xNlrnfgONlrvkT3KzaVCkD8jHIC0wn7FtEkn/HKDW 9VWSqs0NvYzyuh6zUgwmmg1jMkLso4vQPumvJBgqGZwV6Fg== X-Received: by 2002:a17:90b:1643:b0:380:21b7:e727 with SMTP id 98e67ed59e1d1-39b26272f04mr38040582a91.14.1788833282541; Mon, 07 Sep 2026 19:08:02 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:08:01 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-filesystems][PATCH 5/6] zfs: Upgrade to 2.4.4 release Date: Mon, 7 Sep 2026 19:07:51 -0700 Message-ID: <20260908020752.2748681-5-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> References: <20260908020752.2748681-1-khem.raj@oss.qualcomm.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 ; Tue, 08 Sep 2026 02:08:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129853 Supports linux kernels upto 7.2 Signed-off-by: Khem Raj --- .../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%) diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb similarity index 98% rename from meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb rename to meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb index 241ae19209..a92efec541 100644 --- a/meta-filesystems/recipes-filesystems/zfs/zfs_2.4.3.bb +++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb @@ -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. From patchwork Tue Sep 8 02:07:52 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97585 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 A2A8AC79F99 for ; Tue, 8 Sep 2026 02:08:07 +0000 (UTC) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.527.1788833285133491868 for ; Mon, 07 Sep 2026 19:08:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=OxFAU+BY; spf=pass (domain: gmail.com, ip: 209.85.214.178, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2d5cad1a6baso34887155ad.3 for ; Mon, 07 Sep 2026 19:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788833284; x=1789438084; 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:content-type; bh=yatTqu0+MQ+AtgEaD/1KqeXbQ4JD5abuVNgj6AoY5ms=; b=OxFAU+BYNwj3xTijpzYuwPFSLAdxZBHVK1T3d7TusZQ6DUXJVxRdeyFEgK/Exc2OXL yuxU5fYDK2LO/GOgrGe1wUwdYJ2Nj9iND6jkd/1MRU8m0HJmp8+hqwFi5WTxen71SzCY 58C9mcb7NOC+RzLSC9gRLuM8Un8a8L841fy5fkP7IbYMvrRgzCWEjrakLAQZEv3Sqt+i hvX9hsiU6USDikx8hR79dAhj+5r4lrQbIzJtuaAnlMqm/aJYdVcqXtegrkDcLk/ZFZYe FZjW0bsRdE307xEiOC1TACXVkY7+oGdIOqrePhVQDpIDp6i42RMFsh+k63gXe6kPBlWO wXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788833284; x=1789438084; 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:content-type; bh=yatTqu0+MQ+AtgEaD/1KqeXbQ4JD5abuVNgj6AoY5ms=; b=Qyl7EV7LkFDPn6/vzmSCKIGWef2QMKZpZsvv3m+DicAuibWDM9LDyG+UEYZg2SiU4x hoPpG228AJ813AMpMsM8dfLx0385VqYLTTXHPPC6IQdWy7dqJjPmBSIPrkjhaaVoPxdH O2mjYvbNu3Q21xhKGnerPvJf/73dNmz5w6jKjkMDLPUc+ildGUohT+/DWUpVDj5wXU0Y +Wyodd8rHVP1dbeLML3Y+1AfCOzcnF2aO0GsU1s56RrA0TNUYo0vWnu4sAZrFK3hDICN hil8sHXNS22X6WfcFj7BKFFNGEtCjBbEqyT5I420f8Slwd6BH6Y3FG2oWJuQOSOdlENV byMw== X-Gm-Message-State: AFuF++l76ClmMEtxhM2WsyX9penhuUuxxKGK+kvdF1odLr1NrKthwbhO Dmxr8KF4C7k8WkAn1esbXMaKZLxbBP4QJCgj0+8Oqh9YoGZ6tpZYm3ceDFOAEw== X-Gm-Gg: AYBFou2e/O14EYPRwF7Es6vgSSIwAogsHUl+weqGdQvRKE7IHFITr3G1aulf46WCQLH eElAztXllbkiAZUJLpa4ewgShWh/H39oV/FKb1VAJTYXZ4QQzNz8iTPtJRXo1jf0dJkA1spLHnj +qzj61YG7+59VsGStGR+9LoFO1I72warqk/nPbUlSSLs7yIgD4wD1HqKcAai33hyAX1y23kjxrf pEZQmjO2m3F450s3ca0uHjShbAMt2G4A9oZc9kCeRNeSVsIBpOPpMhGDXSdiG0bzwiB6TG5VF7F OA4iBBIaP/ndewirdZGBITI4lJRsJv3b3gERtRXsSS4LkEnE1bug/qRLTsCXZYD5OLJAJTPcUcP 43ZEZoU3XvLsKvhuyt3Ow2EsvccD9zTut9X7T6X0MwbmyP20qQwaTOR/uvueZOwcSDYiY9snkHO tVLqS4X2olNdQzZcSJLksuc4Qcet4rIdE/obIz4wXillOfxundgBlUrGVu9jm99G99iidkD0sK2 We9kmoD7G5AcegQg9uruVtaXTvLqLHpOxdfPCcZIYb0cF0WdvCTsM8Bqi/YYvEvInVtteucby5e aMvKNhPusign3khZY4V9SzgO5jsf33yUt0cQdsS8ECZDtBTtIkjrj6PrPg6cyj/FS9iYhG1YnW/ +iuxjGFIReie9ciDMBnYw0eUa8raEeV5RmJ8fn8Bh+Z1o8oM= X-Received: by 2002:a17:902:d987:b0:2db:257c:9fd5 with SMTP id d9443c01a7336-2db257ca020mr333661245ad.16.1788833284323; Mon, 07 Sep 2026 19:08:04 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33688cfc714sm14044803eec.20.2026.09.07.19.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 19:08:03 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 6/6] libosinfo: Do not error on clang's -Wunused-but-set-global Date: Mon, 7 Sep 2026 19:07:52 -0700 Message-ID: <20260908020752.2748681-6-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908020752.2748681-1-khem.raj@oss.qualcomm.com> References: <20260908020752.2748681-1-khem.raj@oss.qualcomm.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 ; Tue, 08 Sep 2026 02:08:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129854 clang 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 Signed-off-by: Khem Raj --- ...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 diff --git a/meta-oe/recipes-support/libosinfo/libosinfo/0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch b/meta-oe/recipes-support/libosinfo/libosinfo/0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch new file mode 100644 index 0000000000..042aaac21a --- /dev/null +++ b/meta-oe/recipes-support/libosinfo/libosinfo/0002-meson-don-t-error-on-clang-s-unused-but-set-global.patch @@ -0,0 +1,45 @@ +From ab54bb415451f0b85207867ae2d68c5dcf1a191c Mon Sep 17 00:00:00 2001 +From: Khem Raj +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 _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 +--- + 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 _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 + diff --git a/meta-oe/recipes-support/libosinfo/libosinfo_1.12.0.bb b/meta-oe/recipes-support/libosinfo/libosinfo_1.12.0.bb index 94286872b3..2a8059cf22 100644 --- a/meta-oe/recipes-support/libosinfo/libosinfo_1.12.0.bb +++ b/meta-oe/recipes-support/libosinfo/libosinfo_1.12.0.bb @@ -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"