From patchwork Tue Sep 8 17:13: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: 97634 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 EF962C79F99 for ; Tue, 8 Sep 2026 17:13:58 +0000 (UTC) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.518.1788887637780188496 for ; Tue, 08 Sep 2026 10:13:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=KkqK3gl+; spf=pass (domain: gmail.com, ip: 209.85.216.41, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-395cf2535acso4867768a91.1 for ; Tue, 08 Sep 2026 10:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887637; x=1789492437; 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=X9xaRInst4sbOTa4Bg5L1JFYBpE+eFWhdVMEgAyUZb0=; b=KkqK3gl+AzRlIpuY3S0432jnlQYU0X4pDGbp42r9bkCfK+SbjHO3023uu9mmHNCtgc wdVlogxiYyswEi6fPTymznT0zmR4nYjN1mNPSjUe+9CFSTQ/7zqlaSP3zwYM+YopK5/U tl1u8Q++cznUMl2fs725FbqCPbLWkwKLuW4LVIiO672SYNR+OtuPWZWbpJa3+hh1aKjL CzDOVQb4Prfqcrq3VUnEx/sXklDdUZrCHH/izx5w0GeLEjGN52XwEbeR7+2ADfdT/erl t29wjWC7DnmSedmvVtSwV0TPlWDe31FaXBHi6RHN2iQiva2Li5+hSnAkd4tT0u+WjdoA wTgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887637; x=1789492437; 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=X9xaRInst4sbOTa4Bg5L1JFYBpE+eFWhdVMEgAyUZb0=; b=TBX6VZpzlPQSZO7sHi+cArO5UYelm45jIwR58X98heB1BJ+Bd4tbqcMw50ZL6Ccgy1 bS/vI0iKwVLAZl+rMAJSzWRIJyodGzsY8xAGt/DUqmird/PXyBFyMbeS6oO3kO7hlG6Y 4XXJgGoMCMbJYQTcld93KcHG2ZnRHLQ+b64pwM1Y/vo5KwAzQGeBxXCb/8+1Cs519dbW jpGgKpbEIf/WxBgCTLNQuNadORnzE8ilChOW6l7fKltwDysfNBUZYf0ujmjgMgSxAHUR mhLZX7CGZLzLunTl3/JB7cP3FiJAjfxq2lKbOtBIqbva5K0pq7avVsL9Osop6I5El6o6 G/UA== X-Gm-Message-State: AFuF++kc7XVIt+OG1N31PZsb1qGqJA6o66V59MsVHedUacKfWTEOuxcN JZgOEuEJIC4iW5q4EO/mYyXS/sin+HSZzx4JXqmViysS7jsX6dL+p8TFQCgtsg== X-Gm-Gg: AYBFou1wevcfT7rCIv+kTABlARgvTN5EtavS1FWf7EJcEBg6de4zAL2h4OPGST5H4P7 JkGi5l7zwuEYYRFImu+gjYuZ6S7HCtRJkUSXUBbeCzt4JQf7S+vhibZgTazd4XUmcvpk+Mx8P5B 90PqTiZImXsSBvPz0+hxNfSnpvFzYLG4jRNDLQPufMP8gt5vnkukGzT1hBtNGc3Rj6IUHo7UoE/ eELHxe+vPpl7nec6MAG19/EK2nczmX8AOlJ6jCUygKWF52DoU1f5aN6YSNMVPr84zTwROAlaVBR EC/E3inOWnLvhyYWFRpWgBla9WK2wQhu7nn8f7s/T75he/R8A2SN1DayvdEpo55sL77c1ypyQVT oSp97J+uwtKx35aKHBflTJWbSD56LHnsry2yga8thHEZhu+6hVh2eJOCQJc0NZULbd4EdztVozk TVG9cm62RJ0+DnuuVsq94akXI/F+CKb5nfvwyhok+M7ytY6Et0eX8pVlIf+5FAgOAEdwZoRDwDO XXRXkJqE2XRd5UsGy+Yv8GJgwlG+UwSC0VF4a2D1THYx/5O15jXYhFX1zfUINYplYQTqGJFCQz4 6nnT6HdrW3XIpaQcpxeiH6N9YLo8AMzDEaI3FSMGa+Nf5qHfMwmS6GdPpzaoOdteo3QH5VGQQ/P 6nV0DcvyhNWQrjB0Ee47f/iSXOA40OxXeTIQa0wBaCxGLBw== X-Received: by 2002:a17:90b:2249:b0:396:d28e:b53 with SMTP id 98e67ed59e1d1-39b0865350amr38527472a91.20.1788887637003; Tue, 08 Sep 2026 10:13:57 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:13:56 -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] turbostat: fix build with kernel 7.x Date: Tue, 8 Sep 2026 10:13:48 -0700 Message-ID: <20260908171353.701307-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 17:13:58 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129866 From: Khem Raj Since kernel 7.x tools/include/linux/compiler_types.h includes , a no-op stub for the new compiler-based context analysis annotations. The recipe copies compiler_types.h out of the kernel tree and rewrites its includes to local headers, but did not know about the new one, so the build fails: ./compiler_types.h:16:10: fatal error: 'linux/compiler-context-analysis.h' file not found Copy the new header when the kernel provides it and rewrite the include like the others. While here, fix the mangled quoting on the TMPCHECK line, which produced run.do_compile: line 138: TMPCHECK=grep: command not found and left TMPCHECK unset. The unquoted [ -n $TMPCHECK ] test then always succeeded, so the vdso branch was taken regardless of the grep result. Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/turbostat/turbostat.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-kernel/turbostat/turbostat.bb b/meta-oe/recipes-kernel/turbostat/turbostat.bb index fcd1b116b8..2e69f9604a 100644 --- a/meta-oe/recipes-kernel/turbostat/turbostat.bb +++ b/meta-oe/recipes-kernel/turbostat/turbostat.bb @@ -59,6 +59,9 @@ do_configure:prepend() { cp -r ${STAGING_KERNEL_DIR}/tools/include/linux/compiler.h ${S} cp -r ${STAGING_KERNEL_DIR}/tools/include/linux/compiler_types.h ${S} cp -r ${STAGING_KERNEL_DIR}/tools/include/linux/compiler-gcc.h ${S} + if [ -f "${STAGING_KERNEL_DIR}/tools/include/linux/compiler-context-analysis.h" ]; then + cp -r ${STAGING_KERNEL_DIR}/tools/include/linux/compiler-context-analysis.h ${S} + fi cp -r ${STAGING_KERNEL_DIR}/tools/power/x86/turbostat/* ${S} } @@ -68,8 +71,9 @@ do_compile() { sed -i 's##"compiler.h"#' build_bug.h sed -i 's##"compiler_types.h"#' compiler.h sed -i 's##"compiler-gcc.h"#' compiler_types.h - 'TMPCHECK='grep "" bits.h'' || true - if [ -n $TMPCHECK ]; then + sed -i 's##"compiler-context-analysis.h"#' compiler_types.h + TMPCHECK=$(grep "" bits.h || true) + if [ -n "$TMPCHECK" ]; then sed -i 's##"const.h"#' bits.h sed -i 's###' const.h else From patchwork Tue Sep 8 17:13: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: 97635 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 C1B9BC79F9E for ; Tue, 8 Sep 2026 17:14:08 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.486.1788887639512762436 for ; Tue, 08 Sep 2026 10:13:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=sLl0to3q; spf=pass (domain: gmail.com, ip: 209.85.216.43, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-38dfe7eb825so3956744a91.0 for ; Tue, 08 Sep 2026 10:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887639; x=1789492439; 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=TO9LQGS56DQcjeZGFTc0jObO6sMz2y1n02U5i4AwqqA=; b=sLl0to3qj9C2fh5kHAGq7scO48wOsTbPYDIgXUIMtuitjRoCNMRmw4V4Yr90rer0nF diiALUndj69Mj1oYnJt+UNstjTtVDApn1CabhLdMUCUfjtITyUtXcJN3t9zHHuVP06BD xSgPj2M8MarkwRv8Sk75pKY7yu0Tz2CTNHDABbr1crrts8RUsLph3Iai5QtkMZ56YLTT 7B7PPVUdAs8120fEwLP4JGSxz4+VJ1Jj+c0/CT2hkCZFQF8mJU0UXMhjYRzVIsk1+kyU sAeQf9+TJluPGziIB+KAvZiMkaGmXEevDDUQXUvgkOEC3KZG3b4W15jQkUEwxD9Up+Zc +Nzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887639; x=1789492439; 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=TO9LQGS56DQcjeZGFTc0jObO6sMz2y1n02U5i4AwqqA=; b=W7MzPW80S4/+2V6a9glfVE0asQDuPNcgnMu/nTtL2OkJEtiI+k5PrNOpu3Fqt77jNA 8BT0iAyLkDva2yyWVjzrc1J+XxPsqvpvPEkoY5NDGK2BPnFYoVBc98kUuW8EO9MqETRn kWhMdxLGwDAABjMqC1Fp1iIbqkpzBlVMV2rJulxtCaN/IQfDaC2d36ah42OYn8XgCQ5O eH68uv1nfU/RH8EbKchDPgSqghKHZUzcCCEogT9mmpJb8fl7pmjrKkFmfFa27r4NT0cy Ofz5XLgVGqALkRF2EHTfmzcPmZCE+CeN4lYpwRDHUBNf5wgtZAVnCm8Rx63IckyU5QR7 hOOw== X-Gm-Message-State: AFuF++lhAK61EJvm1LeC0Ba5jJYdmJLxgjE0JMwK3f10VXgS9++t63TR NLXqw6eTWl276lmp1uhDKib2Ohn7lHJrwt6tvz8q6JD/BZahz9cvUMKvrC7tWQ== X-Gm-Gg: AYBFou12PdbgKeKEAxM5FYOBe9hZ2e5J3sb5SEWHSl8ZacxiGKD8LHLxGSEQ31kYvfu GOtosCtp457QY/lwhZPLkoQJ+DQvIxHTsB4wNpB8NVsRrKU5InTd0oNHZvNzhWodjxXHCnE0JAf XLVk/qfNhxrq2LVKFS2UwOqR8SN95T5lCZLWdex6jsenu7e2Wrs7w75J6zqfLTJmGNm0SaA49DV KnlejEfXNEXcmgu+pOWW8CCpJ/jyGwAJLyAMKIajTU7/lFlkuqf2FqCqUXLK1RejLF0hhckHBLp /gTKondK0fWP2olev2YFY9GG7YBId5vIwL2PpT88IJF+o5ubHdlIdREsPeyNmze6HW9LNNxMft9 nlWOlhYZGncL1KdH9NoIEcm7fN72rDRsaUtORzWWw+CaAME3mAD12ma4r38rKa9Q8E6AFhNtE4+ LrK9e4XwKOZ3FmQJJecJaWEbGQV3JT8LoJXRjLdlgzXa5g+R+ttzQWnhUCtrrt3cCSBPS2AiXAo BvZdKSRLfwio08OX6hCRe6Yl/T9J6m8BGWib3ZJ1x+IWtTp5WUYne2I/CzQmaxqun5C8H1vRjlQ X5iOCMiSojSlxxau3BB/IySXlY1xIswBFHD+T8h04Qneh0EB4EtmV2iB7Vu1nl+JmioQCUpKnSz AJim8ilaxwTiq9RaWKpMLALd/0aVhltWv6+x7smtDGug4ug== X-Received: by 2002:a17:90b:4fca:b0:38e:5b59:c2ff with SMTP id 98e67ed59e1d1-39b260dd278mr44799376a91.3.1788887638589; Tue, 08 Sep 2026 10:13:58 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:13:57 -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] pcapplusplus: Fix build with clang-23 Date: Tue, 8 Sep 2026 10:13:49 -0700 Message-ID: <20260908171353.701307-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908171353.701307-1-khem.raj@oss.qualcomm.com> References: <20260908171353.701307-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 17:14:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129867 Signed-off-by: Khem Raj --- ...lign-template-inline-instead-of-stat.patch | 34 +++++++++++++++++++ .../pcapplusplus/pcapplusplus_26.07.bb | 3 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus/0001-Common-declare-align-template-inline-instead-of-stat.patch diff --git a/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus/0001-Common-declare-align-template-inline-instead-of-stat.patch b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus/0001-Common-declare-align-template-inline-instead-of-stat.patch new file mode 100644 index 0000000000..e796b6e35d --- /dev/null +++ b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus/0001-Common-declare-align-template-inline-instead-of-stat.patch @@ -0,0 +1,34 @@ +From fe044dbd8459924558c0965833b8f1e78c8921ea Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 8 Sep 2026 02:16:00 +0000 +Subject: [PATCH] Common++: declare align() template inline instead of static + +Newer clang (23+) enables -Wunused-template for namespace-scope static +function templates defined in headers, which fails the -Werror build for +every translation unit that includes GeneralUtils.h without using +align(): + + Common++/header/GeneralUtils.h:50:38: error: unused function template 'align' [-Werror,-Wunused-template] + +Declare it inline instead; that is the correct linkage for a template +defined in a header and does not trigger the warning. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + Common++/header/GeneralUtils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Common++/header/GeneralUtils.h b/Common++/header/GeneralUtils.h +index 060acb4c..ba5428d6 100644 +--- a/Common++/header/GeneralUtils.h ++++ b/Common++/header/GeneralUtils.h +@@ -47,7 +47,7 @@ namespace pcpp + /// Calculates alignment. + /// @param[in] number Given number + /// @return The aligned number +- template static int align(int number) ++ template inline int align(int number) + { + // Only works for alignment with power of 2 + constexpr bool isPowerOfTwo = alignment && ((alignment & (alignment - 1)) == 0); diff --git a/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_26.07.bb b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_26.07.bb index 948a694a8c..eff0b75072 100644 --- a/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_26.07.bb +++ b/meta-oe/recipes-connectivity/pcapplusplus/pcapplusplus_26.07.bb @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" DEPENDS = "libpcap" -SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master;tag=v${PV}" +SRC_URI = "git://github.com/seladb/PcapPlusPlus.git;protocol=https;branch=master;tag=v${PV} \ + file://0001-Common-declare-align-template-inline-instead-of-stat.patch" SRCREV = "0dbbb9c75eb232135f13fdb794318c4da3270ebc" From patchwork Tue Sep 8 17:13: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: 97639 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 02953C79FAE for ; Tue, 8 Sep 2026 17:14:09 +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.msgproc01-g2.488.1788887640683666722 for ; Tue, 08 Sep 2026 10:14:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=hRUbHM58; 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-2d032846c95so56666915ad.1 for ; Tue, 08 Sep 2026 10:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887640; x=1789492440; 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=9kRWP7NZ80J9znu7U7vmMQ9AYSB9q3tzXfXmuXYMasY=; b=hRUbHM58rFypLCNGt+J/TsSbKHNfN/r+tqEEAh0+bk2HC9l7gATkXo2wqMBE36lyWK dhhgpZpKfpYbNuOU8LgBZ2nc9LCu5DQxyPEd4HuM0aF8Jgl7pCkmTeutIwcENbKVqsqs CCQF56EPRFy6WLG4WuI6Mm4/hmIa3VLEw/Q7zwvAa8QSHwB+5k7z0BIKpMk2s+iGFOsc eRsKy+r624xnJRyB7/74mztqRuwuAc1A1R0zrn+C06XJGu9uamOFBDkENuJLNvlEzGmZ cnJMsJYPHnR9/Fg8DpUh77rVMzY2Rezcj6X0vCY8jc4D0LY9APNcZiJZXwEdorXGhSKj LKow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887640; x=1789492440; 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=9kRWP7NZ80J9znu7U7vmMQ9AYSB9q3tzXfXmuXYMasY=; b=NfNksBjwy7xbYpJ5CiKB2a1hGLTpU00GbkBhW7XG55EoUxGitAaJish7YfA1kH0b7X bIp+8Z94yOnbGx/4vyXbciEl/JZvasfiZ3rcDQX2lEyQ1noRh9gUwRar30CQNeKM0S7w BfDZyF0AYNfSSH3qeJiDNeHOnQA8YStWAZVkVtFCIhg1FULdyU9jtJ7CaGY+qcQ2ct41 jLbS82cXFUeNN92OmsPuKrTmFRJUy7ymqZ9WkKSb5inrUgVwiiJE5A1Fq6HnmTzkTbrh fEmlsGXEv21zl9KTuDzFjl3D+82ZUFiu7D+Dggb9+UPXZx98fiYe2sh0esulDlYrNcdF /F0g== X-Gm-Message-State: AFuF++kvOBkn67dpTmnLefmRe8sKBJXRx7U67ab/ofIWTIzxJnmvQ+6y gAAwiHWASwU3+ZUCAc6hH9x8RN6RijuMCQyNZaZQ/mGAYlTund7+5ueLCtY/6w== X-Gm-Gg: AYBFou3MBfXmopw4QT12OHFsiYhSYowCZQ3+GSfntgXqa2udvln7C5kT5xHLs+I32jU 5rdt4SQ1GcEIIA5zOBJhGL6GtTAeg4RJUXR7sUk8Iy+duLRPBdkYHirU9rnPDf87O1EgJ/vuQF+ 8moNzCviBCWiZ87+sLToWhr3PqzW8NUAey3ahl3MSKpZs4C5tKNsrsmPDz1AW5O8ANyqSLRow26 kT89vRD797QdR8T/XQZ8xWyI4bXfBctIQgIgfvT539AQe+NYwMhuQN0jk2rSZIXJbsDI6JsORj7 /xdWykMCr1xiIxFzs8xCwldYzVjZmZGLponv8M72uLaUiub62AvrSoFgZ0MG+Vb8MjTI/Tea19a hJCAvaEDrk/ixkPCkfQdrDDNvhb9G1//+3zDnqACOB0ICPhQgamzunW+g+Yqjvf1eXu6p0p3mJ2 ekFGJbtHXwk2ICUNABAUO1W/Qqp4p441qMxc2h+DOaLee3fHRWAmBbJbIiIp821oBsI//m5c4u2 cg4qesILNw4+g38CLzfa99mW/fqoPoneCv8Yzt0azBnM+XxjcgdrNaOPkWe8/g17uGmsawSwL9s wzrhSNj5Bl+Ej9US59oJkzQekDTGkCWifIFQp4l6X7q9tAWsaa6DOgZjzaYYSqje8jrBj91NKd1 6dS3vdShg+TLvGcTEYwn+OYBQPOaaAax2MtOVjMCI5iUVmQ== X-Received: by 2002:a17:90b:4c51:b0:38e:57a3:f218 with SMTP id 98e67ed59e1d1-39b26204e5bmr42095203a91.13.1788887639890; Tue, 08 Sep 2026 10:13:59 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:13:59 -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] libfaketime: Upgrade to 0.9.13 Date: Tue, 8 Sep 2026 10:13:50 -0700 Message-ID: <20260908171353.701307-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908171353.701307-1-khem.raj@oss.qualcomm.com> References: <20260908171353.701307-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 17:14:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129868 Release notes: https://github.com/wolfcw/libfaketime/blob/v0.9.13/NEWS Drop 0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch, it is merged upstream via PR #525. Add a patch to fix the build with clang 23, which added -Wunused-but-set-global and turns the -Werror in src/Makefile into: libfaketime.c:340:23: error: variable 'real_lstat' set but not used [-Werror,-Wunused-but-set-global] ftpl_init() resolves every real_* pointer up front by design, so the ones whose wrappers are not compiled on Linux/glibc end up written and never read. Annotate those with __attribute__((unused)) rather than adding -Wno-error=unused-but-set-global to CFLAGS, since the Makefile has no flag-probing and older clang rejects the unknown warning group under the same -Werror. Signed-off-by: Khem Raj --- ...qualifiers-to-fix-build-with-ISO-C23.patch | 34 ---------- ...-write-only-real_-pointers-as-unused.patch | 68 +++++++++++++++++++ ...ketime_0.9.12.bb => libfaketime_0.9.13.bb} | 4 +- 3 files changed, 70 insertions(+), 36 deletions(-) delete mode 100644 meta-oe/recipes-test/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch create mode 100644 meta-oe/recipes-test/libfaketime/libfaketime/0001-Mark-write-only-real_-pointers-as-unused.patch rename meta-oe/recipes-test/libfaketime/{libfaketime_0.9.12.bb => libfaketime_0.9.13.bb} (85%) diff --git a/meta-oe/recipes-test/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch b/meta-oe/recipes-test/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch deleted file mode 100644 index 1696e7146e..0000000000 --- a/meta-oe/recipes-test/libfaketime/libfaketime/0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch +++ /dev/null @@ -1,34 +0,0 @@ -From dbe865dfdba0145d993d70b7fd4ec88b2f47554b Mon Sep 17 00:00:00 2001 -From: Tomas Korbar -Date: Mon, 15 Dec 2025 11:03:21 +0100 -Subject: [PATCH] Add const qualifiers to fix build with ISO C23 - -Fix https://github.com/wolfcw/libfaketime/issues/524 - -Upstream-Status: Backport [https://github.com/wolfcw/libfaketime/pull/525] ---- - src/libfaketime.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/libfaketime.c b/src/libfaketime.c -index ef1dca9..02839c8 100644 ---- a/src/libfaketime.c -+++ b/src/libfaketime.c -@@ -2666,7 +2666,7 @@ int timespec_get(struct timespec *ts, int base) - static void parse_ft_string(const char *user_faked_time) - { - struct tm user_faked_time_tm; -- char * tmp_time_fmt; -+ const char * tmp_time_fmt; - char * nstime_str; - - if (!strncmp(user_faked_time, user_faked_time_saved, BUFFERLEN)) -@@ -3338,7 +3338,7 @@ static void prepare_config_contents(char *contents) - bool str_array_contains(const char *haystack, const char *needle) - { - size_t needle_len = strlen(needle); -- char *pos = strstr(haystack, needle); -+ const char *pos = strstr(haystack, needle); - while (pos) { - if (pos == haystack || *(pos - 1) == ',') { - char nextc = *(pos + needle_len); diff --git a/meta-oe/recipes-test/libfaketime/libfaketime/0001-Mark-write-only-real_-pointers-as-unused.patch b/meta-oe/recipes-test/libfaketime/libfaketime/0001-Mark-write-only-real_-pointers-as-unused.patch new file mode 100644 index 0000000000..c7a854a196 --- /dev/null +++ b/meta-oe/recipes-test/libfaketime/libfaketime/0001-Mark-write-only-real_-pointers-as-unused.patch @@ -0,0 +1,68 @@ +From d0fd7b4be89feb6a8809216b0dc1d84299bbad96 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 7 Sep 2026 19:27:57 -0700 +Subject: [PATCH] Mark write-only real_* pointers as unused + +clang 23 added -Wunused-but-set-global, which together with the -Werror +in src/Makefile breaks the build: + + libfaketime.c:340:23: error: variable 'real_lstat' set but not used + [-Werror,-Wunused-but-set-global] + +ftpl_init() deliberately resolves every real_* pointer up front ('Look +up all real_* functions. NULL will mark missing ones.'), but several of +them are only consumed on other platforms or under build options that +are off by default, so on Linux/glibc they are written and never read. + +Annotate exactly those with __attribute__((unused)). This is understood +by every gcc and clang that can build libfaketime, unlike a +-Wno-error=unused-but-set-global flag, which older compilers reject. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + src/libfaketime.c | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/src/libfaketime.c b/src/libfaketime.c +index e674883..2addaab 100644 +--- a/src/libfaketime.c ++++ b/src/libfaketime.c +@@ -337,26 +337,26 @@ static __thread bool dont_fake = false; + /* pointers to real (not faked) functions */ + static int (*real_stat) (const char *, struct stat *); + static int (*real_fstat) (int, struct stat *); +-static int (*real_lstat) (const char *, struct stat *); ++static int (*real_lstat) (const char *, struct stat *) __attribute__((unused)); + #ifndef __ANDROID__ + static int (*real_xstat) (int, const char *, struct stat *); + static int (*real_fxstat) (int, int, struct stat *); +-static int (*real_fxstatat) (int, int, const char *, struct stat *, int); +-static int (*real_lxstat) (int, const char *, struct stat *); ++static int (*real_fxstatat) (int, int, const char *, struct stat *, int) __attribute__((unused)); ++static int (*real_lxstat) (int, const char *, struct stat *) __attribute__((unused)); + #endif + #if !defined(__APPLE__) || !__DARWIN_ONLY_64_BIT_INO_T + #ifndef __ANDROID__ +-static int (*real_stat64) (const char *, struct stat64 *); +-static int (*real_xstat64) (int, const char *, struct stat64 *); +-static int (*real_fxstat64) (int, int , struct stat64 *); +-static int (*real_fxstatat64) (int, int , const char *, struct stat64 *, int); +-static int (*real_lxstat64) (int, const char *, struct stat64 *); ++static int (*real_stat64) (const char *, struct stat64 *) __attribute__((unused)); ++static int (*real_xstat64) (int, const char *, struct stat64 *) __attribute__((unused)); ++static int (*real_fxstat64) (int, int , struct stat64 *) __attribute__((unused)); ++static int (*real_fxstatat64) (int, int , const char *, struct stat64 *, int) __attribute__((unused)); ++static int (*real_lxstat64) (int, const char *, struct stat64 *) __attribute__((unused)); + #endif + #endif + #ifdef STATX_TYPE +-static int (*real_statx) (int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf); ++static int (*real_statx) (int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) __attribute__((unused)); + #endif +-static time_t (*real_time) (time_t *); ++static time_t (*real_time) (time_t *) __attribute__((unused)); + #ifndef __ANDROID__ + static int (*real_ftime) (struct timeb *); + #endif diff --git a/meta-oe/recipes-test/libfaketime/libfaketime_0.9.12.bb b/meta-oe/recipes-test/libfaketime/libfaketime_0.9.13.bb similarity index 85% rename from meta-oe/recipes-test/libfaketime/libfaketime_0.9.12.bb rename to meta-oe/recipes-test/libfaketime/libfaketime_0.9.13.bb index a434584c47..22c908f335 100644 --- a/meta-oe/recipes-test/libfaketime/libfaketime_0.9.12.bb +++ b/meta-oe/recipes-test/libfaketime/libfaketime_0.9.13.bb @@ -3,10 +3,10 @@ SECTION = "libs" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRCREV = "3ccdd344aadf1e317156fa5fb7c881f2c4404778" +SRCREV = "86b37fde2fed7336ea2d0c17928e3015a55d9b4a" SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;tag=v${PV};protocol=https \ - file://0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch \ + file://0001-Mark-write-only-real_-pointers-as-unused.patch \ " CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" From patchwork Tue Sep 8 17:13: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: 97637 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 D6915C79FAA for ; Tue, 8 Sep 2026 17:14:08 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.521.1788887641802813768 for ; Tue, 08 Sep 2026 10:14:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=UAow8MUh; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-cc1c8d4a959so3275464a12.3 for ; Tue, 08 Sep 2026 10:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887641; x=1789492441; 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=8GttS1ku4kBhXntFbw4DROiEWrlf7vXBgsu1LnEO07E=; b=UAow8MUh1AoOPKMF9xkdjC7egRwVvst/HdMpEL1ipFGr+TXOyORPlKfgoXmjs9ujGh Pc52HnswpQNX4tlp4o5ntoJL+FcCGhyWO2NqCDuWqQWvjQrS/cUMSH5+l7QwBpAKvVTD S4FhE6WmkeAgSFWwucPgeiNgHXsNWMUrwjumFGRruej7rWd6mmxrFxIIKriF82IngmUP yBbGH9tbzT0rqaZVJsnc7KNx4EwOFCiNZKtsQ64adrDzLpcbgmgz0tIvobBl/ErdI00C vYcgmfxot0ASOwPxwogphO0aQiqYyWFR+U4eft/EV6E1h1U5e51LLlx/3VDbd5xMtTbv 2vhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887641; x=1789492441; 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=8GttS1ku4kBhXntFbw4DROiEWrlf7vXBgsu1LnEO07E=; b=an2dT5BZjN2EyvDHSIw/aUJLmeLbc0azS+wc/GrPymcCGCPb4Y9OLhG/a9isVf6+ws i/7m5ETOPuPpmJCkzbf73Ak1WV34u5XSiD/PiKgR+lA3UQRZJquYD2GI5BWVRS6xpQA+ QYlTzNzRFgEQivQ9dGf+A6ttFfNnKMFGnhGGcyICRUoK8rJCwoCcxwaPUKBtIJig9IM7 Vy2+vr7tMcr7+eTSjeoewt0i9raEeFQkXOzpTD4PNmKXE6D9IB63hGuzTL1XxTH+ZEa/ MN08qmAOtRGjvRL6ZuMBApOdLYvhgYomDI1ypbAOpoh1/adLfX/d3QIajnG9+gitViEA buSw== X-Gm-Message-State: AFuF++k7Jlrrr75o2yYxSxzY5ikmTV5BZYcODI3+jjfG5CLf4a/ZioPO FVxx2S2qshTvDj8gG2MseqqTR4PaIu/Kc0qaUErXxfYMQdd6eUSkUNeUzLJ4Pg== X-Gm-Gg: AYBFou3Q4i0vbsrVE/hxFyZrul8K4Ydzkd2rWesZ+yuDIPfnYKO4aQnqP/EvOsxDVa4 VUUAwuhpyzFejp4EAG4q+hzIIbrs64RuGRaHFyyT9I1r5diPZE05RhezKDrrdYDKxYpXS226lb1 KTAHbMD56RMsAR7GN6kPhrc+V+C3SWFs5ofxOyV78WMN0puMLHljrOGbUnw9IcZmZdERuaSmL9m c1wedKlDm+uM8f4J6JX1MaO9HLt2wKmqUfOQgvmOyfdZjTBYtlARj2aPStyQGXHPRGb/44NFEcU kTpqvazqHFZKNjnaxn3u/8IMRTn76Pcspb85Dne2PSnQdK/WvgYOmItHHY5hhak9dBxqr/mOgsP wRd2FCteBEnDdC8STFzgbYCu7ISWcLFW7QoAgdF11HxajTYfCC6RvMLwDECGgkt19FM/5bcZiIj ytaR6ny1qwrJ/VmIvc/QCNrw4UXbdsPdOLq03mypDkCfmcNpQrcP5+GPlzy3C7BP/JI98lKHsat DN7gMJGHSKLvgCWmOan5hUyF1K0NrrP/uAooGhrq1EqqmEhyguS7vBka0PTNImy3FqBXtxP/69R CigBzgWTdo5a+pM1SnhTu6RNYzJhSYnSVyBXuZ3xM328njfUAglrEKuQU2qwHFWE8Jo0rE4AAIB ++kQKRQyGslmq0OsJUm/5J7aQ5liUyh7B1Gr/rBK4Xr3WNSmZ90xs4h52 X-Received: by 2002:a17:90b:2c87:b0:398:990e:1587 with SMTP id 98e67ed59e1d1-39b26191cf2mr44668865a91.9.1788887641013; Tue, 08 Sep 2026 10:14:01 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:14:00 -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 4/6] microsoft-gsl: upgrade 4.2.2 -> 5.0.0 Date: Tue, 8 Sep 2026 10:13:51 -0700 Message-ID: <20260908171353.701307-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908171353.701307-1-khem.raj@oss.qualcomm.com> References: <20260908171353.701307-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 17:14:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129869 Release notes: https://github.com/microsoft/GSL/releases/tag/v5.0.0 Switch to the rel/5.0 branch. New in this release is the gsl::dyn_array container, so the -dev package gains include/gsl/dyn_array. Fix the build with clang 22. The tests are compiled with -Weverything -Werror, so every new clang diagnostic becomes a build failure; the newly added lifetime-safety suggestions produce: notnull_tests.cpp:63:19: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions] Signed-off-by: Khem Raj --- .../microsoft-gsl/microsoft-gsl/run-ptest | 14 +++++++++++-- ...ft-gsl_4.2.2.bb => microsoft-gsl_5.0.0.bb} | 20 +++++++++++-------- 2 files changed, 24 insertions(+), 10 deletions(-) rename meta-oe/recipes-devtools/microsoft-gsl/{microsoft-gsl_4.2.2.bb => microsoft-gsl_5.0.0.bb} (75%) diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest index 2d5bdf4ff2..c6ce411029 100644 --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest @@ -1,4 +1,14 @@ #!/bin/sh -gsl_tests && echo "PASS: gsl_tests" || echo "FAIL: gsl_tests" -gsl_noexcept_tests && echo "PASS: gsl_noexcept_tests" || echo "FAIL: gsl_noexcept_tests" +# Upstream builds one executable per tests/*.cpp source, so iterate rather +# than naming them individually. +cd "$(dirname "$0")" || exit 1 + +for t in *_tests; do + [ -x "./$t" ] || continue + if "./$t"; then + echo "PASS: $t" + else + echo "FAIL: $t" + fi +done diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.2.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_5.0.0.bb similarity index 75% rename from meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.2.bb rename to meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_5.0.0.bb index 3d795878b2..1521ed1111 100644 --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.2.bb +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_5.0.0.bb @@ -8,10 +8,10 @@ HOMEPAGE = "https://github.com/microsoft/GSL" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7" -SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=rel/4.2;tag=v${PV} \ +SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=rel/5.0;tag=v${PV} \ file://run-ptest \ " -SRCREV = "152d6eb989a1ecd23fe9c9cfb2fb8cfc7c0cd0c1" +SRCREV = "417ef685eafd626db765f0027b7fc5a0057e0770" inherit cmake pkgconfig ptest @@ -24,18 +24,22 @@ PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}" PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest" # clang disagrees with https://github.com/google/googletest/pull/3457 -CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default" +# The tests are built with -Weverything -Werror, so each clang release turns +# its new diagnostics into build failures. +CXXFLAGS:append:toolchain-clang = "\ + -Wno-error=switch-default \ + -Wno-unknown-warning-option \ + -Wno-error=lifetime-safety-intra-tu-suggestions \ + -Wno-error=lifetime-safety-intra-tu-constructor-suggestions \ +" # Disable disabled-macro-expansion warning as error as its seen on musl CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion" do_install_ptest() { - install -d ${D}${bindir} - install -m 0755 ${B}/tests/gsl_tests ${D}${bindir} - install -m 0755 ${B}/tests/gsl_noexcept_tests ${D}${bindir} + install -d ${D}${PTEST_PATH} + install -m 0755 ${B}/tests/*_tests ${D}${PTEST_PATH} } -FILES:${PN}-ptest = "${bindir}/gsl*_tests" - # there is already other gsl recipe, so recipe name does not match the real component name CVE_PRODUCT = "microsoft:gsl" From patchwork Tue Sep 8 17:13: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: 97638 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 CE7F4C79F99 for ; Tue, 8 Sep 2026 17:14:08 +0000 (UTC) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.489.1788887643655984351 for ; Tue, 08 Sep 2026 10:14:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=M7abNOnI; spf=pass (domain: gmail.com, ip: 209.85.214.174, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2d71d1cc8b2so36140805ad.1 for ; Tue, 08 Sep 2026 10:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887643; x=1789492443; 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=GqaggVcONmQ1mCunfL4kLYcldsW3I7Norcdq4qldTFc=; b=M7abNOnICHZ9Q6IC+t+JfLWkTOBvPNG8IYd4Ajbyk3WZsn1cCTHx2gSC4UXItVBgqz 24WJ4jp2Ltfo/lyZU9mf0prVWOPrUWWzhopZfCZ6ENv9QC4K5CQnZspFPoW/NNFKve23 r8mp8upjVGKTMZggw7z8HaybvaE95m4M75i/YG9xsmKnSIhYObrlsb6OJGMC2VBQilCJ JTWYkfGqrtQcnkz7yOx/IltcQPBoWue73LapNqkwgPALcSwUL/A1ok5GbqJ70IDzDKX1 fWxlZfhpwN3YXOFaRlj5pE/qin18CE9qH8Lta3iCGYCfXp5l3AqhI4ygujWmZb3CEbrY kgng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887643; x=1789492443; 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=GqaggVcONmQ1mCunfL4kLYcldsW3I7Norcdq4qldTFc=; b=OFvb0M5Fqc8j1vuKdL8JUnCHJ2vdbz8pmU84Zu6hKLNPV/QecCL1nPAYK2lpjprbag Gd5Omgg2TYC2OTRK6QFfgydZnstsRX2iq05SYo5Yh1LSIiAG+xj93JXPq7mCtQFOHUF8 WyC6mowGVDGrd6ZkRoIkzIm6LyL8YshnaGIu19uQOXmK3RCtLuhGTpqof3e9wpaWIuf7 wcZyjHmgJS4wtZY4Tg7CvV6BITIAwoX+v0Oz2Id+KNwiNzvS+UXKvzZ0Z60qK6PWR6Ew okPEWNJTKhJVHBwFOqojGaTPmo9gOs+msMkw57rxyC7bAIAsQv/nzppAMxfhSgmc3fPP TSgA== X-Gm-Message-State: AFuF++nGb6ZczRABbsNVhf/rS7jZtAaJbVWOm2nUhmZBKRPUyJNRHZV0 aBZ4S3My2puc83Zw/MVXNSpIkykg7t3oYACKkiYMqoarznUpzX4S3d6nr3Edyg== X-Gm-Gg: AYBFou3QbJ/gdyDwV5enwH+W2ZAz76XnqyT9Gxjgu0PYdyyjLesxpuFjsJa5ookLQkM pSBRoUndeqdBIB5RfG20LqaU0dnmRAJI3YH8nzd35KYAPT5PRGNTVNCPC3WHXQlSYZESnaB4ep/ Av1D1nzCeMtm+P7mlTtrXx778H0XNW6h/UaCJZZW5vts7PSUw66I9R/8arG1BT4Njj4cCHe06Xq phqqre7+/TqZ4WKQ9LcUv4knrOpavWLQQMUXNQD73SEwSENfFxnGg5oYsTt1/WU4b5dL2E6Ptc3 ys13gZFiEmODMLEpP6IumPlBmg9ZrudF5KnXP2elsdTPrLM7SP90VWOBTPPsSgSh/6QxMjXHPHv wCswc7vvLXNm9scB/HFMS0HizbaVGigFhK9eloOqWphh+SFGsg/wcPUBYdW6ekaH6lwm/4zPbvA lBsvdmPXnKLWwAqlypFHjzK/zqFx/UFUrUYykmaYj0GLpr/dM1wxpryBn45URkV6e6s5jablyv9 8okEfA3k9pb9hl68wOJoerrEjmE2pHEM+/7YAL3XsO5uDTnRigmJL5lxWbS8QA9JMobH1MaoYgJ qZ7xmvGZh4jL2ALi579bjtkzC8NaeGNhca+hETIOuOEvpGLosYX+S+bjsQF6MEI23BBbyPHw/WC M4SM3C2zk/VHSqUkx11iO2GQbExWSrfxsJ64jcmjtm4OrFv4= X-Received: by 2002:a17:90b:538c:b0:38e:b400:a860 with SMTP id 98e67ed59e1d1-39b26204a3emr47270690a91.13.1788887642900; Tue, 08 Sep 2026 10:14:02 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:14:02 -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 5/6] pegtl: Fix build with clang-23 Date: Tue, 8 Sep 2026 10:13:52 -0700 Message-ID: <20260908171353.701307-5-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908171353.701307-1-khem.raj@oss.qualcomm.com> References: <20260908171353.701307-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 17:14:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129870 clang 23 enables -Wunused-template under plain -Wall, and every test in src/test is compiled with -pedantic -Wall -Wextra -Wshadow -Werror, so the whole test build fails: include/tao/pegtl/internal/match_impl.hpp:24:30: error: unused function template 'match_no_control' [-Werror,-Wunused-template] match_no_control() is a namespace-scope static function template in a header, so it has internal linkage in every translation unit. It is only ever referenced from other templates, so in a TU where none of those get instantiated it really is unused and clang says so. Add a patch declaring the two overloads inline instead, which is the correct linkage for a function template defined in a header. Signed-off-by: Khem Raj --- ...-match_no_control-inline-instead-of-.patch | 48 +++++++++++++++++++ meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta-oe/recipes-extended/pegtl/pegtl/0001-internal-declare-match_no_control-inline-instead-of-.patch diff --git a/meta-oe/recipes-extended/pegtl/pegtl/0001-internal-declare-match_no_control-inline-instead-of-.patch b/meta-oe/recipes-extended/pegtl/pegtl/0001-internal-declare-match_no_control-inline-instead-of-.patch new file mode 100644 index 0000000000..4b0821b9c1 --- /dev/null +++ b/meta-oe/recipes-extended/pegtl/pegtl/0001-internal-declare-match_no_control-inline-instead-of-.patch @@ -0,0 +1,48 @@ +From e5997938100dd459ad9473bf574ab9a75e5a0a53 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 8 Sep 2026 05:31:46 +0000 +Subject: [PATCH] internal: declare match_no_control() inline instead of static + +Newer clang (23+) enables -Wunused-template for namespace-scope static +function templates defined in headers. match_no_control() is only ever +referenced from other templates, so in any translation unit where none of +those get instantiated the internal-linkage template is genuinely unused +and the -Werror test build fails: + + include/tao/pegtl/internal/match_impl.hpp:24:30: error: unused function + template 'match_no_control' [-Werror,-Wunused-template] + +This breaks every test in src/test, since they are all compiled with +-Wall -Werror. + +Declare the two overloads inline instead; that is the correct linkage for +a function template defined in a header and does not trigger the warning. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + include/tao/pegtl/internal/match_impl.hpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/tao/pegtl/internal/match_impl.hpp b/include/tao/pegtl/internal/match_impl.hpp +index 8723dae2..c13dd4f7 100644 +--- a/include/tao/pegtl/internal/match_impl.hpp ++++ b/include/tao/pegtl/internal/match_impl.hpp +@@ -21,7 +21,7 @@ namespace TAO_PEGTL_NAMESPACE::internal + template< typename... > class Control, + typename ParseInput, + typename... States > +- [[nodiscard]] static auto match_no_control( ParseInput& in, States&&... st ) ++ [[nodiscard]] inline auto match_no_control( ParseInput& in, States&&... st ) + -> decltype( Rule::template match< A, M, Action, Control >( in, st... ) ) + { + return Rule::template match< A, M, Action, Control >( in, st... ); +@@ -34,7 +34,7 @@ namespace TAO_PEGTL_NAMESPACE::internal + template< typename... > class Control, + typename ParseInput, + typename... States > +- [[nodiscard]] static auto match_no_control( ParseInput& in, States&&... /*unused*/ ) ++ [[nodiscard]] inline auto match_no_control( ParseInput& in, States&&... /*unused*/ ) + -> decltype( Rule::match( in ) ) + { + return Rule::match( in ); diff --git a/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb b/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb index afaf8f997b..2ffa570c9f 100644 --- a/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb +++ b/meta-oe/recipes-extended/pegtl/pegtl_4.0.1.bb @@ -4,6 +4,7 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" SRC_URI = "git://github.com/taocpp/PEGTL.git;protocol=https;branch=4.x \ + file://0001-internal-declare-match_no_control-inline-instead-of-.patch \ file://run-ptest \ " From patchwork Tue Sep 8 17:13:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 97636 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 B3CEEC79F82 for ; Tue, 8 Sep 2026 17:14:08 +0000 (UTC) Received: from mail-pj2-f12.google.com (mail-pj2-f12.google.com [74.125.227.140]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.490.1788887645125344061 for ; Tue, 08 Sep 2026 10:14:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Mkddh5iB; spf=pass (domain: gmail.com, ip: 74.125.227.140, mailfrom: raj.khem@gmail.com) Received: by mail-pj2-f12.google.com with SMTP id 98e67ed59e1d1-396ccafb752so159451a91.0 for ; Tue, 08 Sep 2026 10:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788887644; x=1789492444; 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=mArLEtg55ge84HTiq282CoTBRLccu0yIhNHXT41GqsA=; b=Mkddh5iBN2Otebs7849RhtmZzDivdCXJ/dPQt1At0bbTC4wCNhmfRPIpBJCwqFjj6C dtQnhYk5+E5fxZsLgXEG3DT+BSkUSqIw9WNo0e9i8TGO6GJF2nYd27/Zw3a/OLJ/XsRR V0UnWeG/zG3rQBQ4h4ZYYDm9HUD1uiC+/UhSvmwN6CV8dt/RIGsVZaT0QBfS0Ixe37zv cgYzVnHc+yCfAII9xbwa+SUrFAdSfRz/k4yvGVyKi3mHy61E8v7nYMMeHTRVe1MaAy+1 GZQkzFV3T74YYIePgEBQwfi5Eh7bc2Qw+eqWgJWNhAvbejWQP6CTkwE/6lyGowapsbjE fvsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788887644; x=1789492444; 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=mArLEtg55ge84HTiq282CoTBRLccu0yIhNHXT41GqsA=; b=VgGLEs+w8higCSn1Z8EfeUR8ClavqAPiD+sPj4sjn2kZc0PlxbKkZANSKWzC6o3+jG Z7PQAiw5WDljfpAQ8NzWAK/GbNdMqwByQX3hTZCbQ98xkr8ofVRZ8mzIU+x3qc1nnsbq 6kTXwl0oAFqaimtFHWPEOHHQ6zDFBhY9IXGPYhsMyVE+fXY9N6O6p0MSjpDwQHNtVmLE cYvL8qcD+2G+lp7k9C61i/9bZ/sAyX0hNyVarTKPIUIS6JptTq/i7P5PZUhviio9Svm+ Ppbi9b2UZAxRcbRldFLcFWy6uNNFQFK23CHYL9Mn/+dVkhcqbCky9zwHDUoCgGsIWF1T bnbg== X-Gm-Message-State: AFuF++maE2X2A35SPdHRmkBbNmyDTztpW525vWu1s8J5zHraFJnAvtha vdH6LuHHb3sIAGm7rd+EXlJObUlUyY2n9aYzGVemtGTCKHbN+5JcB+EjnDKivw== X-Gm-Gg: AYBFou1cnGyDlPXLUcCJADwk1Oo5ioJJ4MKnc7z08w/tIYqejL72IemUoGZU1/4Q/X8 B3Z+wWdQHegjXwZYa3alIb+f2fYV8zgbMG6Wy1Uu5ErEehzSY5rU5ID/fLVWogCbR+WXooiYfiT wj/b5Bne4TWEjMKUTYl4OV0Lm7GuIhHS9ssCUTpRG/57YZIbiRWuPOR10MB42nHnI45SyroaP+3 6KgSh6RGebBRHHuVTEqh+hnCYOX7dQ0gqPqBWdJr6qN/mIThTu/eMSJMZADyujnWx9R+oczsRKl dlg3JpQVDcSQo3xe+rYPiorNX63Uvz6BisEFMjhIcnOcWCxrViaLVnZusr+QN2An/5T636kbYT5 TtP50IvK6wde4qIS2Pud/URpYLIk4ZuLyHuPgmdbiw/nLYrsz3KsP9mvt7xK6GB808MLOdTC1Uv ZodyVB9cJRZ5BLGjDaI3gazz9i4hZydo3WbvOntq8eNpX/aqBykwvc7HqXN69NoVbLFZmqzUPaU 87CpZYpE5FE8w9zcp28ETRTE+NMr8Catap0QSQI3yKfFxSKPovTvLqVCAlyEXUm0bFasx2a3+Ko Nb9zF/+mXirkL91L+BS1XYsJR3rNPXalWLGP5TTPAWVuOrDEfN4qn1zD9u3aKEtxQgcN+uu/GmS obiDUjKDPZ1iAHbQFpSG55ResT9YXt6GssrtQFkIsn616sA== X-Received: by 2002:a17:90a:d005:b0:398:a2ed:7b5c with SMTP id 98e67ed59e1d1-39bac4571c4mr1160314a91.24.1788887644346; Tue, 08 Sep 2026 10:14:04 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1433171a97esm39566297c88.12.2026.09.08.10.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 10:14:03 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-gnome][PATCH 6/6] polkit-gnome: Fix build against gtk+3 without the X11 backend Date: Tue, 8 Sep 2026 10:13:53 -0700 Message-ID: <20260908171353.701307-6-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908171353.701307-1-khem.raj@oss.qualcomm.com> References: <20260908171353.701307-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 17:14:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/129871 From: Khem Raj 0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch includes gdk/gdkx.h unconditionally, which does not exist when gtk+3 is configured without the X11 backend, as is the case on wayland only distros: polkitgnomeauthenticator.c:29:10: fatal error: 'gdk/gdkx.h' file not found The patch already checks GDK_IS_X11_WINDOW() at runtime, but that is not enough: the macro is declared in gdkx.h too, so the include and the gdk_x11_get_server_time() call have to be compiled out as well. Guard both with GDK_WINDOWING_X11 and keep gtk_window_present() as the non-X11 path. Include gdk/gdk.h explicitly before the guard. GDK_WINDOWING_X11 comes from gdkconfig.h and no gdk or gtk header is pulled in earlier in that file, so without it the guard would always be false and X11 builds would silently lose the fresh timestamp instead of failing to build. Signed-off-by: Khem Raj --- ...mestamps-when-displaying-authenticat.patch | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/meta-gnome/recipes-extended/polkit-gnome/polkit-gnome/0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch b/meta-gnome/recipes-extended/polkit-gnome/polkit-gnome/0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch index 2c9c5bb16b..9f3e8f5406 100644 --- a/meta-gnome/recipes-extended/polkit-gnome/polkit-gnome/0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch +++ b/meta-gnome/recipes-extended/polkit-gnome/polkit-gnome/0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch @@ -8,41 +8,60 @@ Bug: https://bugzilla.gnome.org/show_bug.cgi?id=676076 Bug-Debian: https://bugs.debian.org/684300 Bug-Ubuntu: https://launchpad.net/bugs/946171 +Guard the X11 specific parts with GDK_WINDOWING_X11 so this still builds +against a gtk+3 configured without the X11 backend, as is the case on +wayland only distros: + + polkitgnomeauthenticator.c:29:10: fatal error: 'gdk/gdkx.h' file not found + +gdk/gdkx.h does not exist in such a build, and GDK_IS_X11_WINDOW() is +declared there too, so the include and the gdk_x11_get_server_time() call +both have to be compiled out rather than only guarded at runtime. + +gdk/gdk.h is included explicitly before the guard because GDK_WINDOWING_X11 +comes from gdkconfig.h, and no gdk or gtk header is pulled in earlier in +this file; without it the guard would always be false and X11 builds would +silently lose the fresh timestamp. + Upstream-Status: Pending Signed-off-by: Khem Raj --- - src/polkitgnomeauthenticator.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) + src/polkitgnomeauthenticator.c | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/polkitgnomeauthenticator.c b/src/polkitgnomeauthenticator.c -index 23163b4..e57d76e 100644 +index 23163b4..ae237de 100644 --- a/src/polkitgnomeauthenticator.c +++ b/src/polkitgnomeauthenticator.c -@@ -26,6 +26,7 @@ +@@ -26,6 +26,10 @@ #include #include #include ++#include ++#ifdef GDK_WINDOWING_X11 +#include ++#endif #include #include -@@ -306,7 +307,17 @@ session_request (PolkitAgentSession *session, +@@ -306,7 +310,19 @@ session_request (PolkitAgentSession *session, } gtk_widget_show_all (GTK_WIDGET (authenticator->dialog)); - gtk_window_present (GTK_WINDOW (authenticator->dialog)); ++#ifdef GDK_WINDOWING_X11 + GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (authenticator->dialog)); + + if (GDK_IS_X11_WINDOW (window)) + { -+ gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), gdk_x11_get_server_time (window)); ++ gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), gdk_x11_get_server_time (window)); + } + else ++#endif + { -+ gtk_window_present (GTK_WINDOW (authenticator->dialog)); ++ gtk_window_present (GTK_WINDOW (authenticator->dialog)); + } + password = polkit_gnome_authentication_dialog_run_until_response_for_prompt (POLKIT_GNOME_AUTHENTICATION_DIALOG (authenticator->dialog), modified_request, echo_on, -