From patchwork Tue Sep 29 22:56:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99620 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 59443CA5FAD for ; Tue, 29 Sep 2026 22:57:33 +0000 (UTC) Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1478.1790722648036733333 for ; Tue, 29 Sep 2026 15:57:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=aJ0fXg3P; spf=pass (domain: gmail.com, ip: 74.125.82.180, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-34c4a0868b6so339365eec.0 for ; Tue, 29 Sep 2026 15:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722647; x=1791327447; 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=UhN4lXgh3+n6kgvieqnPTDLQYB+tbvSqli0iREbtuR8=; b=aJ0fXg3PqMJldZ1yQTPfbT3W9iqW6OXXigRGUHvwXx3ZCYpHzlXZMx/Q2jc+BSoT+q tCQK61HwUr5MgT4VajUO0KZ60GmSM2C4UNhfw2FuKifU9/TvAeio7qFVT/odY1E0M0GS lY/sHpaI2IvjIuT5DnDZa0/kYBGQQNKd3JCmUZXGQlHNg0XIrG+mj3nY2IyylASfEsRs uuLDh4QGqTN5p0nIeJJaDsJtvMCUjCWWHPlVWBCMq/DKZ/ndTwBKIl+UxHo8YwQPBboG cy2L2XRwzGfYYDvo6auzxMxtRBTIYQC97svw5tqeo0BCdnGLJszdnZ9lH67fpNn1SUpn nqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722647; x=1791327447; 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=UhN4lXgh3+n6kgvieqnPTDLQYB+tbvSqli0iREbtuR8=; b=Yk9MZb+WQ9S9eYeGq92jkAWU8xVlrB1pjpg36yF/BFZQvL9cAnOTyDcg7kTwdaQZGQ LIZvYLf2Md5tOaaVTe5RDRB5bgHXq2Cdt84Iq4mJWCM8DGbUOFGkXKDzu4qJ67kA9g66 ia9llWnNyFsPLBxpX+bpiHb9x2b3t3lxW54RD/mtJNWCxqeAx7cgwrTnbGnKoegh7umM J6WPl9rE/dO7/mZJKvt5fZmHfn+lkCh8CXr/APG5B/FQL3bqjMfaEx/F0OBInNkTxNEC X9zyLnhmCuPNhWdtpad6/OKMFsYzY/YTCg2JV6Le4fK1HkwxR8i7MJ3cByb12JtsPjKH qwjA== X-Gm-Message-State: AFuF++mX7wU5npweypK8e5Rd25Gbilp5xNdip1ksirZZ9Y4x9p4DkDtc uNhtucAu/v+UUtTIMpXlkxz7VrMYVIyXoHI75UXSErzZ4Qms5CERm/mF2ZMdhNQteoE= X-Gm-Gg: AYBFou2RpkVCnZ0pDKKyQ7S2BGWnR7uXNs79Xi2DVKVMaPwS6JviITmASKR6HxLFwTf uVbNVcvbOA6UmIONqjtQSGVApKOoMkWlt11G4jG0fxM2swR34KJ70NeeyEzsAYtuDGlwZjVu43D KfsBOliM8F+AQcScjxKdoUMz3zZbETfhgCUjF8KBSZs71Q36rXhTkfDeeMD/A7817cehmjp8six 7R3fxfh6M+o0UqOas5VWj/HdA9uheZT87mH/zCjyFgU8v8T5kIUNuWzO3yLIzoCRkQfVp306F2x DF7c2bBw2U4nK0Cq4TnhWUbH5AJUv7V2iI2KrcFeR3MTLBGMEoJM6MC0T+rEbSqhPRQWpS0NEJ4 PgE+31uvpuFondrVLUfrQ5CpCV2TUvGKGKOuWpP3Rw5zdg/zsxirXtbKJ1JV7QoAyxfDri0GfX/ XQJfS1/UtWstibKOjy6k3gJRH75ttP9ppERhze77/+we5ipsD4Lc0SitUuePgTYMFAcsqs4BEZR QdjhN0hYwyy9o2IfuDqERtiFqnQawSM2vu63+Iq44D3yTD2Jrlw5d5Z7wzq4acbppW2A3i1Hu2c FQSbzB/mjfJ6Ck5eayJb6aQG1YXuPyOqGfno9+BN7BTUV9BTvDhBlyNby/UXnXwy5rm7yBXYu9o u76OB/yvkTu0pkT0g9YO+p2V0hzfWw7dxOrIxPikWDYkaT9AdqTiXKnO4PGlmvZd25erYYEzn8Y YkUzHI+cJfXY4wmm7SC69+TNuOKCrvjVgFnI4l8gGppQPRJRZy X-Received: by 2002:a05:701b:260b:b0:143:1bb1:3302 with SMTP id a92af1059eb24-14b2e52d8f0mr5020502c88.19.1790722647131; Tue, 29 Sep 2026 15:57:27 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:26 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 01/26] canvenient: include for struct timeval on musl Date: Tue, 29 Sep 2026 15:56:58 -0700 Message-ID: <20260929225723.1046705-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, 29 Sep 2026 22:57:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130488 canvenient_socketcan.c uses struct timeval without pulling in a header that declares it; glibc gets it transitively, musl doesn't. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../canvenient/canvenient_1.02.bb | 4 ++- ...etCAN-include-sys-time.h-for-struct-.patch | 30 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/canvenient/files/0001-CANvenient_SocketCAN-include-sys-time.h-for-struct-.patch diff --git a/meta-oe/recipes-devtools/canvenient/canvenient_1.02.bb b/meta-oe/recipes-devtools/canvenient/canvenient_1.02.bb index ea5634ec07..ec4a568f01 100644 --- a/meta-oe/recipes-devtools/canvenient/canvenient_1.02.bb +++ b/meta-oe/recipes-devtools/canvenient/canvenient_1.02.bb @@ -17,7 +17,9 @@ DEPENDS = "libsocketcan" PV .= "+git" -SRC_URI = "git://github.com/CANopenTerm/CANvenient.git;protocol=https;branch=main" +SRC_URI = "git://github.com/CANopenTerm/CANvenient.git;protocol=https;branch=main \ + file://0001-CANvenient_SocketCAN-include-sys-time.h-for-struct-.patch \ + " SRCREV = "23408935f230f59632eafd56056824f8e91cd896" diff --git a/meta-oe/recipes-devtools/canvenient/files/0001-CANvenient_SocketCAN-include-sys-time.h-for-struct-.patch b/meta-oe/recipes-devtools/canvenient/files/0001-CANvenient_SocketCAN-include-sys-time.h-for-struct-.patch new file mode 100644 index 0000000000..86369edb6c --- /dev/null +++ b/meta-oe/recipes-devtools/canvenient/files/0001-CANvenient_SocketCAN-include-sys-time.h-for-struct-.patch @@ -0,0 +1,30 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:54:51 +0000 +Subject: [PATCH] CANvenient_SocketCAN: include sys/time.h for struct timeval + +On glibc, / transitively pull in a full +definition of struct timeval via . musl's headers do not +provide this transitive include, so struct timeval is only forward +declared (via ) and the file fails to build with +"variable has incomplete type 'struct timeval'". Include + explicitly so the type is fully defined regardless of +libc. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/drivers/CANvenient_SocketCAN.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/drivers/CANvenient_SocketCAN.c b/src/drivers/CANvenient_SocketCAN.c +index 1111111..2222222 100644 +--- a/src/drivers/CANvenient_SocketCAN.c ++++ b/src/drivers/CANvenient_SocketCAN.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #endif From patchwork Tue Sep 29 22:56:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99618 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 66942CA5FBA for ; Tue, 29 Sep 2026 22:57:33 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1457.1790722649404725205 for ; Tue, 29 Sep 2026 15:57:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Wb0hcgwV; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33e630052ebso5312277eec.0 for ; Tue, 29 Sep 2026 15:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722649; x=1791327449; 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=ABoeO9i/mOtdU2+b1YIlaU4PofXUKLNyG+q+DfAN23k=; b=Wb0hcgwVDAYZcn3MKUZ5RUp259lq8Q3RvD7Q6S0PjiNC8jSk0SnFu+ZkE2iHjVbwCv OySLLkhd044EYLCgSq9gRxp9dPsAOS7tQulG8Qzvgt5wymj46xdV7eLZLETEBlya0TC+ Dw0ru2NfU85Gd+VJ2m8+DzuBrxdd852pQaZUoDtDJb8lPMene3zX2IKorEOfck9lv0Y6 DVd49om5sIouRiwri6vFpelXob6ZLWMiyVPaN6tMQ39ahnSThrwOKfWP5QDCOgQibquL QG+BJ0Y5/HlJ3W1sYmdrh12cXvlcswu4CjWscw1taL4P2Nrab4zTScPdKDKf1cn83M7X x/Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722649; x=1791327449; 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=ABoeO9i/mOtdU2+b1YIlaU4PofXUKLNyG+q+DfAN23k=; b=ulyoLH6sKmlxBjgNv4Tf2trT2zkmTlvXA19UFK+vK2D24E4LzeNE2/sCKgxqMYNbmO 40aEW0c8Q2IPlqBRJxwNNXls7h6wB9Vz9NN6zqkW+rrDZvD+mt0Zc0EsdB7uKceTfHEY 2pXFcjE0hiBN5sO49fxQAuokFG8UmHn1RXnTmjqaWSVABdW7DMhpwVQCwQLRy3Hd/XbX irD02vkaZaWMAxZDXkUmEaQvxIbhv8saZZj7auhNM1Dyeoe5jzq6H9EZQW1SDRK5Ofbb IXHIEuCtKq+lpJQa5Jyp3jKkR9oK1c1hANXELKVmG4PaiXwb5pgPvCBkYNg1PrOdbKuF /u0w== X-Gm-Message-State: AFq9FYLgKioV/ifwYuQZlIVaZ74dHC3haa4NnCA6p/k6eZB7354Zy29p 8UkrhXRt6u3pUh3nhtzmiM/mzoS3klw8CYnJdu2HZPpiu9a+6n+hM12MCMwi0I44w1c= X-Gm-Gg: AYBFou25E95gbGrePkbsLWrwistCBEe47SD1IMuD7YddZnfQ2F/fM+2Y0h5Ln/xfdSD IMs0vgFHQgIzvffrOtyJ8leYx9rhZmQVLvGU3vilz92rvT9aqC9ozL4v4rVeTTygdDggSX5j74r cU9O13zhVBkhY70tYuIYdtxd8UGiFM/RzRAinjuwI5KktFw5QCmVUgqjHbBbNGUzfsgrqhpUVXM eZKMDa1NKscGabVKd3L7pA4iaCPyX2ElDRVy92ybmQ5ykeMrhLhR47Z1gTLPpOTnXV7NFhaWjzd 72s6EFhgUdvsp+PR/8Vbaq3cMnH9j4YQuYinbiRM8QYj387/GJmkV60A45c3jnF38MBQiZkz/i3 npL00c7VPElusQisMisx4fBfaEKEcaxRMnntWtiuJbFiRXvZFAIkOUGKJDZo2hrALTlhfeTPNDj tEPSub571ZsxbaelPyKmtDGOhcg+ag9BGQircqaWoV7L4kN8lAhrcOJEp4vx4oZ3+tWYD0fAK3I izI3CPTIley88PzlL0I9gIHepAbH6vuW0L0MZHFBfzWRLt2pgLg3lX+WIokomaXCgAoeWAYT0gp vziAo41EKHjFSBDAjUkzjHSoHbqhwhel9JyTf1UVIUOgSSOhZYc9APjjtUF2qkfiNURhF9kgk/R fCVtlw2JfHdewH6H6bYK0Pcb7RE/mkZj+Oxr90QA5DysC/Re51YwUje3h/cYc3KvXbcrq24LfIU 4eZCNtGp/4booziBFPtYu1tm1ucKsrFlvdTBJIXQ== X-Received: by 2002:a05:7301:4d05:b0:33c:14c9:c79d with SMTP id 5a478bee46e88-34c664374f5mr816880eec.9.1790722648577; Tue, 29 Sep 2026 15:57:28 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:27 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 02/26] floret: add missing include for int64_t on musl Date: Tue, 29 Sep 2026 15:56:59 -0700 Message-ID: <20260929225723.1046705-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130489 args.h uses int64_t without including ; glibc headers pull it in transitively via other includes, musl's don't. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-missing-cstdint-include-for-int64_t.patch | 32 +++++++++++++++++++ .../recipes-support/floret/floret_0.10.5.bb | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/floret/files/0002-args.h-add-missing-cstdint-include-for-int64_t.patch diff --git a/meta-oe/recipes-support/floret/files/0002-args.h-add-missing-cstdint-include-for-int64_t.patch b/meta-oe/recipes-support/floret/files/0002-args.h-add-missing-cstdint-include-for-int64_t.patch new file mode 100644 index 0000000000..cfececbad7 --- /dev/null +++ b/meta-oe/recipes-support/floret/files/0002-args.h-add-missing-cstdint-include-for-int64_t.patch @@ -0,0 +1,32 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:54:51 +0000 +Subject: [PATCH] args.h: add missing include for int64_t + +args.h declares getAutotuneModelSize() returning int64_t but never +includes itself. On glibc/libstdc++ this compiles because +some other transitively-included standard header happens to declare +int64_t first, but that is not guaranteed. musl's libc++/libstdc++ +headers do not provide this transitive declaration, so args.h fails +to parse with "unknown type name 'int64_t'". The existing +0001-PATCH-floret patch adds to args.cc, but only after +it includes "args.h", so it does not help args.h parse itself. +Include directly in args.h so the header is self-contained. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/args.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/args.h b/src/args.h +index 1111111..2222222 100644 +--- a/src/args.h ++++ b/src/args.h +@@ -8,6 +8,7 @@ + + #pragma once + ++#include + #include + #include + #include diff --git a/meta-oe/recipes-support/floret/floret_0.10.5.bb b/meta-oe/recipes-support/floret/floret_0.10.5.bb index 52c46b2a4b..fd96ed701c 100644 --- a/meta-oe/recipes-support/floret/floret_0.10.5.bb +++ b/meta-oe/recipes-support/floret/floret_0.10.5.bb @@ -16,7 +16,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4ce16d1d2b4c556959d654417007b713" DEPENDS = "zlib" SRC_URI = "git://github.com/explosion/floret.git;protocol=https;branch=main;tag=v${PV} \ - file://0001-PATCH-floret-Adjust-CMake-flags-for-cross-compilation.patch" + file://0001-PATCH-floret-Adjust-CMake-flags-for-cross-compilation.patch \ + file://0002-args.h-add-missing-cstdint-include-for-int64_t.patch \ + " SRCREV = "775638223bee4fabc420cc8234632557452558e0" From patchwork Tue Sep 29 22:57:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99617 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 66902CA5FB5 for ; Tue, 29 Sep 2026 22:57:33 +0000 (UTC) Received: from mail-dy1-f177.google.com (mail-dy1-f177.google.com [74.125.82.177]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1479.1790722650567590265 for ; Tue, 29 Sep 2026 15:57:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=ZekCeHd8; spf=pass (domain: gmail.com, ip: 74.125.82.177, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f177.google.com with SMTP id 5a478bee46e88-34c4a0868b6so339394eec.0 for ; Tue, 29 Sep 2026 15:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722650; x=1791327450; 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=zJjjKZzwTTRY7GI+4fKxfihQDxFSckPM1t2bBefVkX8=; b=ZekCeHd8OzihOWH/6x/L+lHIHqE15LfzC2C2NT0ILE0vgIMTi1v7jMBmkUKJxQMTpa D8EJ0QtZw529K1CgJlDXCqdr8EemsyVE+ujIaTGLnpb0lySQkNkNR8IeVomY8sjeca2g 2DD9v7OaarQxL6+J4DO62THTQFVhJfSf+mP/f4SVt0Fpe6dWYDEstDUX54Tam6VBhKKS sdfhihVTdIFLYqhMgKnBzLu7DRi2e7LBoBr7I6tUdYBuT1H0ccqr3dy7CMtgKNGVdJJs okwD/5Wg5MJi2ph9xNGmTplFA41kvw/kxAHPb0B8O+wu1AYzUekjZ8BoRkemj9nIyFxX Oa4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722650; x=1791327450; 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=zJjjKZzwTTRY7GI+4fKxfihQDxFSckPM1t2bBefVkX8=; b=f84/PCvDsiE2d+3tPL1GYWapI9stMXLQ/ncFnZF2Z8vJQcPLk1IIf8c6ytaePpLoMu 3BjMPUHr0ma5YF3uBkjCrndWKgUr0dzFbXUBoffLJIfObqqcQH/v3muiJWhxowoBV92T jFKqWS/EDi7dLvm7ycMVdC578yVK6ST/Cf29cTon5RQQ0yJXc1pbZQ7X43Oju/DEUCEU vsaxSmpvNrGdMqHffMEtIBbPq1JSQWvtJaqJeD6dBfjoqXBTSQUA8n6zs81mPM/c6Avd BW041M8Oaq69pm3L6KRqeLqKL7GkgbpOxxZA5tdswR/mU2N82Dft4PcHM13b7DBLfUTg HQ+A== X-Gm-Message-State: AFuF++kKYv9G5/Osxc41QcbhCoabFkWpIQWaLPiND//gjIDgfEw5B/Tk Zy4Lferk6qFJCEeBrxvbKRGhpJHukB4JL9Yqsg+AnxynyvG4ejFP1yp3MRABpyv36Kw= X-Gm-Gg: AYBFou2WlU8RwirHF2D0CWh2TQVPZy0vGCoMBQxfqfHh8YHaRMylLqegXjMQJ+xqtvz REJKBT4WTEM4IJePNIj2K0LOBo8wpU2O3zEdcLJb1YPNaufupzDcgVdzSFFSqTJGdL147qcgqHJ dGKlpvlBhNNNLjwbixWMplrRnaswufoWH2KiT37Q0wgM/ubbXlc6fBfBXcKyRmKWLfZjN9ur8+Y nU4aVmWwCqWeU7Pa2P0MrN9VGQPUAIaO+mZNgD9+iA76nkqQ9AW0ejyEXHQgtLKPWil5K8hhTC6 /VoRqCTy8XstDLgrDQmqPkJ0dajJ+LuZGkASEiL5mT5+2wVetZD46wH/VG54HJrX254vcYIkEYS D+abFEMhSUrUyJf7/bO5nfiDv9oxo4GcqB8BvyA+LZuaFdAYeBfrLuukquzWa7rOEFpQoX3gxr7 3ahiJZaRq4RfufYaCC5WmuQjMwVRtq21kEgub0UVx+cLOGqxdVn28eV33aBZdN4YsaQrPjMJ9H/ 4H7Fa2OlS08VsoaZ4NY7T1DQta2ExgEv7DG6pqlzdZhYWFfexz/eX/jORejBxN7DlKWkmfD3YUZ fnAg0kLvrz2Voi7/jFPxI1LOsykl7LQIpJ7qxgeFD9jh+7HBjzUcA1ArX/eBvPwiYf3o4nMVq2e seS7OpXfpZk7+KthnzWBhaIg0Rpppf6OTtPa+vm++um8wo6ukkl6vH5/lIpDoUsMP6DVwQbHi8f 4aRFnC7mVh3y3t7jixMLRtlBfxCO8sF9IMkFrCqg== X-Received: by 2002:a05:701b:260a:b0:143:f79:f662 with SMTP id a92af1059eb24-14b2b6c1bb3mr4134610c88.1.1790722649762; Tue, 29 Sep 2026 15:57:29 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:29 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 03/26] minifi-cpp: add missing include for int64_t on musl Date: Tue, 29 Sep 2026 15:57:00 -0700 Message-ID: <20260929225723.1046705-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130490 StreamCallback.h uses int64_t without including , relying on a transitive include that only exists on glibc. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...h-add-missing-cstdint-include-for-in.patch | 35 +++++++++++++++++++ .../minifi-cpp/minifi-cpp_0.99.2.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-extended/minifi-cpp/files/0007-StreamCallback.h-add-missing-cstdint-include-for-in.patch diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0007-StreamCallback.h-add-missing-cstdint-include-for-in.patch b/meta-oe/recipes-extended/minifi-cpp/files/0007-StreamCallback.h-add-missing-cstdint-include-for-in.patch new file mode 100644 index 0000000000..f19cea494c --- /dev/null +++ b/meta-oe/recipes-extended/minifi-cpp/files/0007-StreamCallback.h-add-missing-cstdint-include-for-in.patch @@ -0,0 +1,35 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:54:51 +0000 +Subject: [PATCH] StreamCallback.h: add missing include for + int64_t + +StreamCallback.h uses int64_t in ReadWriteResult and in the +InputStreamCallback/OutputStreamCallback std::function aliases, but +never includes itself. On glibc/libstdc++ this happens to +compile because some other transitively-included standard header +provides int64_t first, but musl's libc++ headers do not provide +this transitive declaration, so the header fails to parse with +"unknown type name 'int64_t'" (which then cascades into std::function +template errors). This is the same class of issue already fixed for +LibWrapper.h and RepositoryMetricsSource.h by +0001-Fix-build-with-gcc-16.patch; StreamCallback.h needs the same +treatment. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + minifi-api/include/minifi-cpp/io/StreamCallback.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/minifi-api/include/minifi-cpp/io/StreamCallback.h b/minifi-api/include/minifi-cpp/io/StreamCallback.h +index 1111111..2222222 100644 +--- a/minifi-api/include/minifi-cpp/io/StreamCallback.h ++++ b/minifi-api/include/minifi-cpp/io/StreamCallback.h +@@ -16,6 +16,7 @@ + */ + #pragma once + ++#include + #include + #include + #include diff --git a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb index 88aa8adf69..5854483ba9 100644 --- a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb +++ b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb @@ -29,6 +29,7 @@ SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git;protocol=https;branch=mai file://0001-Add-missing-include-for-malloc-free.patch;patchdir=thirdparty/fmt-src \ file://0001-generateVersion.sh-set-BUILD_DATE-to-SOURCE_DATE_EPO.patch \ file://0001-Fix-build-with-gcc-16.patch \ + file://0007-StreamCallback.h-add-missing-cstdint-include-for-in.patch \ file://systemd-volatile.conf \ file://sysvinit-volatile.conf \ " From patchwork Tue Sep 29 22:57:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99619 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 91690CA5FB8 for ; Tue, 29 Sep 2026 22:57:33 +0000 (UTC) Received: from mail-dy2-f41.google.com (mail-dy2-f41.google.com [74.125.229.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1459.1790722651799822208 for ; Tue, 29 Sep 2026 15:57:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=SOORwkG+; spf=pass (domain: gmail.com, ip: 74.125.229.41, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f41.google.com with SMTP id 5a478bee46e88-34bcb929cceso652793eec.0 for ; Tue, 29 Sep 2026 15:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722651; x=1791327451; 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=Cc+4bewFZFYJxbJpp9pjmrEz4JWSivI3kT5ZIrMQ8Sk=; b=SOORwkG+l4e9Bvq0Zi/Q/iShsGv6xSkCP8A1dEl6KvXXAqRye+QjAVU0xf2F4naJBo YcuF6R2AJ+p3JcPoDi/p0OlmfeDC3QYx1NF+O6SqmrfFhejHFbC2QO6N0mLBPbN15XDY F4yEo6RCC341iTGUksbeVdiJKCrkjljjbgolQW7UdzCqoxxzD1Al/Flsn31BnN5eJb0U Poh6Hc/Y9HMdzbk3PWrGUEGyCGkMcShxIoIMtltq+F8agSe1KhfHhC8i4FqDIRscCI3q exxUo924m/Lk8/yeyRBtOq3nf5fWr4TyzHG7iDpb+pUD9cGVPWD6W//82LEEaVLvPo7x eLDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722651; x=1791327451; 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=Cc+4bewFZFYJxbJpp9pjmrEz4JWSivI3kT5ZIrMQ8Sk=; b=IHHH4atCdnKlxBA6pu3qT/9FqR8iTGozH8sOOYk17rN5CToSoiybw3/drtbbT6Cp9D v7qrdPYFxbU81ZxudK+wqwEvb2UKylIT9CXDiEAPuJYbov2j+5XHBvF1awe+D7RYlWjM 5gVo97rS9xt1Usat8Ct/W5faKQHk6eJCp9uqR345kLq5b+Sqoe3H7ssAT9xVIbfoQLkB 76ZETEV8jFp4eZfeGI/+YVKZQkrMAozPWSvarqUE7yrenw517HXZeppI8hJFoedPF0NU UoMKA4IPd98/tsApNC3Bjdx0m+qwry0ehnUgA95F3DXBIuQex6u0PaioYqYxOubnjrCQ 6PGQ== X-Gm-Message-State: AFq9FYJp3DNKCh7qY0f74DMeRwgi9EejxkADZumUEU1eqWI3z3c5R0g4 ZIqGEdZD9hwobeJizRFJh7UmwDVGhVPhAKtDUs/QSVc0ouZu4VTBGvQE8kWHSBW10KM= X-Gm-Gg: AYBFou3BtvBBz7UWc0FHZ85Nf2SP+a3n4oliO12LPQ84xMDNOhO+WLJkiAK5p39QAwn RmAdSLuhrDExA8Jn7b1IwTvwD43xvGddaQwf2d/R9SlzRB0L0tn8kk3f4uXbZIX/pXw2YAT3wcV vD7jHlR7r3e9AEdDFG9ybyv6BarMfCMBlAhRbwF/OQemyPKiAg/ejZ2fpbm19li8b31w+FJvb1S P5tjTpsa5+7njnHWhPRbVpSM+V6PLhmvfi1JO7ooG7lA4WozyqMbd4cN2DstyCded4JzoD0qXmK luto18/APIBhZDDtb1d4FQz1P/afFBdHEaaqOvhQ5OvHZghwXJyUsDD+1lJSQ8SV4WDGEgUwITU AlzDP0n35f/lONTzu9EmD0VymL6kQMkfTcnFwgr8UFM2tRloosGz57VLdmGOQgqo36RlFBJ729d SHAUchWBCo7MLONuSYUsfljdvONOevo4oRgKsAF86zG+jmbGSwQtwproimV5eAK9ECY0orVH6ar qbBAqLp+8gyLVSqduQqgerwo1sG0yltcttDizVoHFQmOibzU/cm2MKfByuc5cE01mBp2+Vtbrur oOa+fKYGHf1iJm9ezDbHv8CX6o60mwuDsiWHpJb+2ZsqHymhGjt55u7NsQJ/MiuzkKPgM9q6gA8 C5JcfqUFmfRYPT2kbLKlwi1I/2SoheE8qN0iaFV1wqpGE3Q2fxLyrvtn/zQofB1/HLdBjrJntqm oEDEz0G2xtUr0rDgOQlhJY/wQGwXY0N3YeowTjdA== X-Received: by 2002:a05:7300:ff41:b0:34b:8ebd:e3b with SMTP id 5a478bee46e88-34c63036c71mr832090eec.14.1790722650932; Tue, 29 Sep 2026 15:57:30 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:30 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 04/26] smolkit: include for uid_t/pid_t on musl Date: Tue, 29 Sep 2026 15:57:01 -0700 Message-ID: <20260929225723.1046705-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130491 SystemUserLookup.h uses uid_t/pid_t without including ; glibc's transitively declares them, musl's doesn't. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...p.h-include-sys-types.h-for-uid_t-pi.patch | 30 +++++++++++++++++++ meta-oe/recipes-extended/smolkit/smolkit.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-extended/smolkit/files/0001-SystemUserLookup.h-include-sys-types.h-for-uid_t-pi.patch diff --git a/meta-oe/recipes-extended/smolkit/files/0001-SystemUserLookup.h-include-sys-types.h-for-uid_t-pi.patch b/meta-oe/recipes-extended/smolkit/files/0001-SystemUserLookup.h-include-sys-types.h-for-uid_t-pi.patch new file mode 100644 index 0000000000..d2adf9177b --- /dev/null +++ b/meta-oe/recipes-extended/smolkit/files/0001-SystemUserLookup.h-include-sys-types.h-for-uid_t-pi.patch @@ -0,0 +1,30 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:54:51 +0000 +Subject: [PATCH] SystemUserLookup.h: include sys/types.h for uid_t/pid_t + +SystemUserLookup.h uses uid_t and pid_t but never includes + itself. On glibc, (or other headers pulled in +transitively by the C++ runtime) end up exposing these POSIX types, +but that is not guaranteed. musl's libc++ headers do not provide +this transitive declaration, so the header fails to parse with +"unknown type name 'uid_t'"/"'pid_t'". Include +directly so the header is self-contained regardless of libc. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/SystemUserLookup.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/SystemUserLookup.h b/src/SystemUserLookup.h +index 1111111..2222222 100644 +--- a/src/SystemUserLookup.h ++++ b/src/SystemUserLookup.h +@@ -1,5 +1,7 @@ + #pragma once + ++#include ++ + #include + + struct group; diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb b/meta-oe/recipes-extended/smolkit/smolkit.bb index 4ac9ee69f7..6ba338ef05 100644 --- a/meta-oe/recipes-extended/smolkit/smolkit.bb +++ b/meta-oe/recipes-extended/smolkit/smolkit.bb @@ -22,5 +22,6 @@ PV = "${VERSION}+git" SRC_URI = "\ git://github.com/bmwcarit/${BPN}.git;protocol=https;branch=main;tag=v${VERSION} \ + file://0001-SystemUserLookup.h-include-sys-types.h-for-uid_t-pi.patch \ " SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe" From patchwork Tue Sep 29 22:57:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99616 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 5AD17CA5FB3 for ; Tue, 29 Sep 2026 22:57:33 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1460.1790722652716052143 for ; Tue, 29 Sep 2026 15:57:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=XTk/35dm; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-34b3e517e6dso618509eec.1 for ; Tue, 29 Sep 2026 15:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722652; x=1791327452; 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=jR6gwmmSEGXCxsY4mzH5gLBtjbDU/2N0BEEAT0DNtWA=; b=XTk/35dm3CseC/EsPYRHhqnGTlcuSprVcUWA/5vRdhUZcS7ZN5PueX7vjLQbKRe2rC N+29FdYwyFqYsSgLgV9O13s2LyH1mWia4wuYyA5kWTzU/E+0PVCZ2k6ZqBCEN3D3/p0Z qQeLXkKeFcnHuiagQylzizusT/Z7SuReM9/9w54GiYPptHhPHUtqFCY+2tgjajmjG7Lc Xxc06yYp5IhHG+IkaL7daIsVGx6jPzb55utEhfTkxTqTxvqfBndC2V5YN5yEIGfx/IHt sHVehiv4sj+piYrkd6KoKvdZctLAjnLMZFcam4h4WTQFCExapyn8ySspDmt6vx4hBxGm 408Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722652; x=1791327452; 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=jR6gwmmSEGXCxsY4mzH5gLBtjbDU/2N0BEEAT0DNtWA=; b=Kckai0tQvBYwixB/CWREEhZWnzMh0ur3PnG99ImJNeUnxJkUKMt4pFoD3eTe1oGXk1 4GmNwbmyMfW9EDYqUn3SaqEGzzc9dbiOyZVu0ksgx/uftUjoXq3Z1OFx7ZG5rwludxIB xAoUbE0ofX49HQtyw5sCBTchx7UHLYhTqoMMW9U6InTq3VXiEIBd3ZnK8J/qIw82LlQQ azb/ZPI6ogArA9b/PJA1qp5oBEV1Vkg4VNzElK/7pbnNM6+i3xhaQTsiAc6kRafiA8QC Aj4kHhQUDqtQLN50XTRDhNiKYR+LXLKaYLNZpRTbhyNQM/Ks6WppdE/O8iuHKTgEBkhq f1kQ== X-Gm-Message-State: AFuF++lmxCD+98YIg71rKY/QQcQuizZ2CHllrqLskckymzdtGR6tOLgm tiTsVx0FZNyOourZVj+to7EqmT6757E1T8mWxqec30UywoPnAIBEwRe04CQ4QVDWak4= X-Gm-Gg: AYBFou0kztsin+sdbNBL2PEIw5oBvBTgTFIde2Ot8KefVzhrdhjvz38TQp5NLH70LFh R8zEGbQcmq60PPr9LcXg9P8/WHhMjho8RdnaDGcTtf+sAjew9KWgh4HsrkA6hUMKb/E9WCdqqEZ hX844SVCkYMmXeOA6WF0Q/ZQ+u2zNc3+4h9zugzVUeyJLhLVNWLQ/U4C/EUxtZ3Gg4acaPeViAG CasIwOu6p/OI8W8ZkaLRW7/fTzfFsra82CI7LBXADxWLETTL5M3WfL2LMY/eybl2cjZ8oxeYHeM 9A/XzkhMDBHQAg/Iv7sCLAvD9nZJTX4yxnKJ3VHdWXxG9vakWNcrCpYXiyT7n1ZrQqo8FG6r+0V 9wn/FfBdiVjO9jp89KKZeT3PY+e7Rofdt3GxD6LTjIS0IbC9N7ZurLu2ce1sV1CAeGZ0Rl/xdb3 sA0HBEFo4CnWCvNOxLuo+gJoJdSBX5HkAWqaasavrcnYLmJ5qwz46qaEz8aFJvBVDc6xcExfAJE S/EPv23nkkFTn7nKOy8uu0ygb4kBtIg0//IWg3BOzjD/v6FHwICoirLqCwS2wA+WYEBrzMZrUCO ecMY7OtFwob9fZEP4ZWn10FfwoSQQ3K/CKMtoAD6k7tUrlKcbYP9RhWjZMHGjplxzGBLPqhivVU +BpLhh14sORCsmePNg3Bj3rQifaxyh+R10zMaS816ivvVwtZ/1JxEJdXwbdiqXpxj17oMm1g8dF cKgd2SX4MgVadmed0L6aLdQ7GwQByE9rl72zR1GA== X-Received: by 2002:a05:693c:37c3:b0:346:d790:9e10 with SMTP id 5a478bee46e88-34c6519fad1mr1238005eec.39.1790722652011; Tue, 29 Sep 2026 15:57:32 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:31 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-multimedia][PATCH 05/26] tinycompress: use unsigned int instead of glibc-only uint Date: Tue, 29 Sep 2026 15:57:02 -0700 Message-ID: <20260929225723.1046705-5-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130492 sofprobeclient uses the bare 'uint' typedef, which is a glibc/BSD extension musl doesn't provide. Use 'unsigned int' instead. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...use-unsigned-int-instead-of-the-bare.patch | 40 +++++++++++++++++++ .../tinycompress/tinycompress_1.2.16.bb | 4 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-multimedia/tinycompress/files/0001-sofprobeclient-use-unsigned-int-instead-of-the-bare.patch diff --git a/meta-multimedia/recipes-multimedia/tinycompress/files/0001-sofprobeclient-use-unsigned-int-instead-of-the-bare.patch b/meta-multimedia/recipes-multimedia/tinycompress/files/0001-sofprobeclient-use-unsigned-int-instead-of-the-bare.patch new file mode 100644 index 0000000000..7a3fb61160 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/tinycompress/files/0001-sofprobeclient-use-unsigned-int-instead-of-the-bare.patch @@ -0,0 +1,40 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:54:51 +0000 +Subject: [PATCH] sofprobeclient: use unsigned int instead of the bare uint + typedef + +uint is a legacy BSD/glibc typedef from that is only +exposed under glibc's _DEFAULT_SOURCE feature-test macro. musl does +not expose it by default, so probes_demux.c fails to build with +"use of undeclared identifier 'uint'". Rather than relying on a +feature-test macro that differs between libc implementations, use +the portable "unsigned int" spelling directly. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/utils/sofprobeclient/probes_demux.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/utils/sofprobeclient/probes_demux.c b/src/utils/sofprobeclient/probes_demux.c +index 1111111..2222222 100644 +--- a/src/utils/sofprobeclient/probes_demux.c ++++ b/src/utils/sofprobeclient/probes_demux.c +@@ -318,7 +318,7 @@ + + int parser_parse_data(struct dma_frame_parser *p, size_t d_len) + { +- uint i = 0; ++ unsigned int i = 0; + + p->len = p->start + d_len; + /* processing all loaded bytes */ +@@ -383,7 +383,7 @@ + } + /* data copying section */ + if (p->total_data_to_copy > 0) { +- uint data_to_copy; ++ unsigned int data_to_copy; + + /* check if there is enough bytes loaded */ + /* or copy partially if not */ diff --git a/meta-multimedia/recipes-multimedia/tinycompress/tinycompress_1.2.16.bb b/meta-multimedia/recipes-multimedia/tinycompress/tinycompress_1.2.16.bb index 50ebdd67ee..52c771f993 100644 --- a/meta-multimedia/recipes-multimedia/tinycompress/tinycompress_1.2.16.bb +++ b/meta-multimedia/recipes-multimedia/tinycompress/tinycompress_1.2.16.bb @@ -6,6 +6,8 @@ LICENSE = "BSD-3-Clause OR LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=cf9105c1a2d4405cbe04bbe3367373a0" SRCREV = "6b064c5b614bde950560a345ca0702e76668bdab" -SRC_URI = "git://github.com/alsa-project/tinycompress.git;branch=master;protocol=https;tag=v${PV}" +SRC_URI = "git://github.com/alsa-project/tinycompress.git;branch=master;protocol=https;tag=v${PV} \ + file://0001-sofprobeclient-use-unsigned-int-instead-of-the-bare.patch \ + " inherit autotools pkgconfig From patchwork Tue Sep 29 22:57:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99621 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 7B194CA5FAD for ; Tue, 29 Sep 2026 22:57:43 +0000 (UTC) Received: from mail-dy2-f41.google.com (mail-dy2-f41.google.com [74.125.229.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1464.1790722659394065652 for ; Tue, 29 Sep 2026 15:57:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=eBTWBrU/; spf=pass (domain: gmail.com, ip: 74.125.229.41, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f41.google.com with SMTP id 5a478bee46e88-34c2a97ec17so387015eec.3 for ; Tue, 29 Sep 2026 15:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722659; x=1791327459; 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=G7OPlAdo4ErmxCXfmbB4bzx87kBLxRnIIQv8IWPuNWE=; b=eBTWBrU/gln6rggd3yDf6KLYcVKvyQFL8wlpJ7eb/cJMif1TXupgaC/CfZOObVyfsa 2TfbV6ngeuh8jQFR/4lSzI2i6Kx3ttJwidODAg7K+agTmEeyO7qEN/p+H0TTMPP9lN1O 2dsWqeGwwma/2XIKXKk53RvVgdqBdkEBzrd6YQ3Dwmci/wWujwfnmZECzRUlgMrFKu03 433h5FAWYs4oCctRTCn2yQI9p/QcKsoLse7ukRMaQdp3QSJeEZ7m7zjhkvhdWgIVuv2A STZkDVsWBHvL5VRQgI4R57ZUYK0I1pKTykIgn3RPFqdwI/qHM0Q1R3awNuks5Yisf/wZ HO3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722659; x=1791327459; 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=G7OPlAdo4ErmxCXfmbB4bzx87kBLxRnIIQv8IWPuNWE=; b=KCvVwYe/whOKwmJJP/lU0OuIjVyxosEDEvz711mRuI4W5z4Qv4FKuTsjXVIYSjyyQ7 4086G+xpJcPGChqYh1bPwfixBjgX337Q0eKp2is8TzFZI+CjyT3IyorhQNqGI1XThQJB 2Bw0thTRvJs2pNF9Sf0biRxQE4XeWmAXl2weps70NCIbvWKfgOwbAC0Q3ZE7dk5G3roZ c3gs2MG7nFX1rQ1zNoqG0I07jRw+CxxCPNI21ABNxuiTIE8+L9rnKdodnHqYNmtfeKO7 1Rh7oa/8xJykK3Av/q9w7z7MwmL9V9drOZ0oHwMc5UdmWQg4t1uZ/NbitdIUiI76/HP3 oO0A== X-Gm-Message-State: AFq9FYKv8RGaNlKHdVACj4i9xt8DIlyu03acNQid0lgqafZLJ63SaLY/ tWHuWF2E/r9eUBQEN2OlVrUaV548VOfabMpfLeNwTez4302QuyXH2DsZ2S3LbtBq+14= X-Gm-Gg: AYBFou0TFyeFPMbdUXcKK8gTfrEWZWn6JE2M+I/MhiU1CgGZhR7xe9zfhBe4s0OMzru Vmze5RWFaeEKxNgNdebbpoWmKB4ebpd1oBIxs7fB98+siU0r+EiNqQ3h8BRh54wXObLxZLLwcCC 9wjmpJxW46qLXKWhTtGjoo2mpdr2CO61c2gsGw5YR9DaZURJOoVjBdc6WuntCDXHsjnz7x5rkcb bTF+58bFWJ4EWTRDH6DDKBt3Guj5xY+oeWq1haovc1/VlsBE8kvpk+bRJkYHpiB/ivrpuAds8q3 BUjn+8Uaxtr4IKjqf2APftPUKeUaRU89mVXgG/NNwzq59vMQ1oduFt5bIzUoP0ftUmOk2+YYgR6 RL26Hadousa+jBrPx5xnkN/gTPwxBzHLnK+9kaNvqRc8Q3PI5suNPmQMmzsR4miO2L5W0kVri0u W7wexOxUoVoScQzbP6i/jeyRngA0pjXJ8DutEw+6dpZKK4i3XgiYHJkLjqgL8iT6kziqcpmwIxC baSk7DyS21ZpyE8vAlTf3PizqNdNIlC5LPfTqlvkuNLZ20LruUATLU4bKVZxxG/ufn5Sb+rs5Zq qseIn5EKa4FRKDHn0NKigYChnUEMQ8oidgQSSqumX9fnqrgic2WiZL5Autl5eQVgTBnJvondJJ1 aPvmwHwA1lK5P/+/5I9SNGHzLJiwgqJT2tM/oQTWwvMkUfzYYtplp+LXkzD6WqTL+A+xfNwF8kI +X8FWRbTyselAuL25FCochK/4HpyQlhcH/B/t+NA== X-Received: by 2002:a05:7300:8a30:b0:347:93a3:4d6b with SMTP id 5a478bee46e88-34c6672f1d1mr723152eec.23.1790722653744; Tue, 29 Sep 2026 15:57:33 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:32 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 06/26] bit7z: replace glibc LFS64 names with portable POSIX ones for musl Date: Tue, 29 Sep 2026 15:57:03 -0700 Message-ID: <20260929225723.1046705-6-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130493 bit7z's internal code uses off64_t/stat64/lstat64, which musl doesn't provide since its off_t is already 64-bit. Use the plain POSIX names. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...e-glibc-LFS64-names-with-portable-PO.patch | 59 +++++++++++++++++++ meta-oe/recipes-extended/7zip/bit7z_4.1.0.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta-oe/recipes-extended/7zip/bit7z/0003-internal-replace-glibc-LFS64-names-with-portable-PO.patch diff --git a/meta-oe/recipes-extended/7zip/bit7z/0003-internal-replace-glibc-LFS64-names-with-portable-PO.patch b/meta-oe/recipes-extended/7zip/bit7z/0003-internal-replace-glibc-LFS64-names-with-portable-PO.patch new file mode 100644 index 0000000000..eb2e9ae29b --- /dev/null +++ b/meta-oe/recipes-extended/7zip/bit7z/0003-internal-replace-glibc-LFS64-names-with-portable-PO.patch @@ -0,0 +1,59 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:57:13 +0000 +Subject: [PATCH] internal: replace glibc LFS64 names with portable POSIX + equivalents + +musl does not provide the glibc LFS64 off64_t/stat64/lstat64/lseek64/ +ftruncate64 names at all; off_t/struct stat are already 64-bit on +musl, so there is no separate 64-suffixed API. This broke the build +on musl targets: + +| src/internal/fsutil.hpp:33:24: error: use of undeclared identifier 'lstat64'; did you mean 'lstat'? +| src/internal/fsutil.hpp:34:23: error: 'stat64' does not refer to a value +| src/internal/fsutil.hpp:185:6: error: incomplete result type 'FileMetadata' (aka 'struct stat64') in function definition + +Extend the existing BSD/Apple compatibility branches in fsutil.hpp +(FileMetadata/os_stat/os_lstat) and filehandle.cpp (NO_LSEEK64) to +also apply when building against a non-glibc libc (detected via +!defined(__GLIBC__)), so musl uses the same plain POSIX stat/lstat/ +lseek/ftruncate/off_t names that the BSDs already use. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/internal/filehandle.cpp | 5 ++++- + src/internal/fsutil.hpp | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/internal/filehandle.cpp b/src/internal/filehandle.cpp +index 4cff411..22aeeef 100644 +--- a/src/internal/filehandle.cpp ++++ b/src/internal/filehandle.cpp +@@ -24,7 +24,10 @@ + #include + + #if defined( __APPLE__ ) || defined( BSD ) || \ +- defined( __FreeBSD__ ) || defined( __NetBSD__ ) || defined( __OpenBSD__ ) || defined( __DragonFly__ ) ++ defined( __FreeBSD__ ) || defined( __NetBSD__ ) || defined( __OpenBSD__ ) || defined( __DragonFly__ ) || \ ++ !defined( __GLIBC__ ) ++/* musl (and the BSDs) do not provide the glibc LFS64 lseek64/ftruncate64/off64_t names; ++ * off_t is already 64-bit there, so lseek/ftruncate with off_t suffice. */ + #define NO_LSEEK64 + #endif + #endif +diff --git a/src/internal/fsutil.hpp b/src/internal/fsutil.hpp +index eaf9ae9..2b173c1 100644 +--- a/src/internal/fsutil.hpp ++++ b/src/internal/fsutil.hpp +@@ -24,7 +24,10 @@ + #include + + # if defined( __APPLE__ ) || defined( BSD ) || \ +- defined( __FreeBSD__ ) || defined( __NetBSD__ ) || defined( __OpenBSD__ ) || defined( __DragonFly__ ) ++ defined( __FreeBSD__ ) || defined( __NetBSD__ ) || defined( __OpenBSD__ ) || defined( __DragonFly__ ) || \ ++ !defined( __GLIBC__ ) ++/* musl (and the BSDs) do not provide the glibc LFS64 stat64/lstat64 names; ++ * their off_t/struct stat are already 64-bit, so the plain POSIX names suffice. */ + using FileMetadata = struct stat; + const auto os_lstat = &lstat; + const auto os_stat = &stat; diff --git a/meta-oe/recipes-extended/7zip/bit7z_4.1.0.bb b/meta-oe/recipes-extended/7zip/bit7z_4.1.0.bb index 5f0b65b3cc..d0693cc5f1 100644 --- a/meta-oe/recipes-extended/7zip/bit7z_4.1.0.bb +++ b/meta-oe/recipes-extended/7zip/bit7z_4.1.0.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=48a3fe23ed1353e0995dadfda05ffdb6" SRC_URI = " \ git://github.com/rikyoz/bit7z.git;protocol=https;branch=master;tag=v${PV} \ + file://0003-internal-replace-glibc-LFS64-names-with-portable-PO.patch \ ${@bb.utils.contains('PTEST_ENABLED', '1', d.getVar('SRC_URI_PTEST'), 'file://0001-cmake-disable-dependency-inclusion.patch', d)} \ " From patchwork Tue Sep 29 22:57:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99624 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 8D0B6CA5FB8 for ; Tue, 29 Sep 2026 22:57:43 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1480.1790722660807983393 for ; Tue, 29 Sep 2026 15:57:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=kAFBkaBj; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33c11ef641aso4996457eec.1 for ; Tue, 29 Sep 2026 15:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722660; x=1791327460; 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=m2IRv/FdD5IfCHVTbQjBNYBf0VfO9Nti23eMGacRHRg=; b=kAFBkaBjy4d/5EFJUcazvdXA8pVRB7x4BaM/aaLjC+s3eWMvS74KezozwMLeXr9G2M 5RBoPJa1sUmWH7xap8JjPuHA8g6v/4OZApMOOJiAmZq7SNMjzGMAc7/AmMIckRy6zMHB EH/BLgueYVPny1qCiZx+vzAf+eGGw8JpCAVjPzmVe1g2f/6s5rp2JCB/Bf7lCYh++BEw w4aBCYk6I7bNQD4DJEf6xv3zKofvK5TUiCFlwEtzdkRg9Vly9rLE/k2b6RRyynnBrISe kTgVIRO4I+uEBkx4uKWkt7+R4jGSbbA6iDa0wx428FxS19Zf4WWLiYn+Y9mEyc6oF6RY Z5fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722660; x=1791327460; 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=m2IRv/FdD5IfCHVTbQjBNYBf0VfO9Nti23eMGacRHRg=; b=ecVJbUCmDC+1H3Kjl6rIJ6XjqITC9nWD59bQf9AORUYB+pOIXHJI1t5gJztvfIMKub 97VInv6tnS8amxeV79sSupqDOZGMjMel8QHYFA4DiDUJbDnYAsVMg8KpVwZKfIfzF0/b WgZyotA/rRA7MdoRaxrw15QZuKoGcm9a0Hjex7pmUrRVmB8xTTh5+ZdtnTqeyR7pHwab /VNhmAjFZdUDhtqhEge7tso/CkgEG5rP8d2S1tqtJUDcJgCKbnr3OY1mU99Gpf+KahRB psI0q0Bw3fh76SVRKwD8KeB2tEo+3R7KNnsubvXqSzOyPgSa7jiB5ZHhGC8VwrpFmWCp qmTQ== X-Gm-Message-State: AFq9FYJMCGEveRQy+CShkjGMbYvmG5D5b9RBGfFZ7SAdPpsAcE9cylU7 f+JyOglBRu8+zOYa8xET0SID6QnLEVzcUqd4BNO25EMicARiNYH5bVgLv8gJhUdb4eE= X-Gm-Gg: AYBFou2teEpItkO9osXLVR8qkK49p9dK7QdgZyo2++wiMwfG996ZsYnh9fg38B7kkUg i6t9CcfLgjNuxbrRUwSl/AjHJRZJ5CARhnZpRTVdrelDM4fFJGX5LzhDk6yH8sjd1Mu7NHqpQn1 lDsRUnkXwYRRnT1Xa/YZNE8FPIDP6kzBNotxqmU/MrovGztWQQSxaB94aIUrmuMI0JcBDzNaa/T tTiL2JP2STVCtvLliN2jo5Aeo1yP8U/YwmHKnciUrJDvsUAVUEUrnoGxjo4V3Xz4gXFylv/9BTd RkGs8ZFT58gpSxCxuiIqbWzHnNowi+6y6Kzsm6NGTYM2PDJl0NTPBPYwVx53iCxhHGmmWOjU6a2 HlZr1kaN5W7UUIhLHBGcq1IbirvIHlKK5QhhurHAKKukm2W1+YMECTxuJq5HjYJtJmoX/5EvmGi UhB9dMVLU5FrBAw3tATtam/u4SRTnxGwQfidk05jF6pG8LMHwfDO+2mY5JUaUTKbDkFNl77lF7r eZr1nZfMMcEJJWOFOsRJGGAeEsGNPeiRmpHv3KOUqG5hiYk57pcS8/2qMtKixJ8dpGG49CUfvdU yVvytBY5V0MQpz4tIzicdRruYVndSHVty+WIqtCiILTjmM/goO5+ujaE200lu8yU6D5hMj1i5Uh DnrAynazfLpKL4BZvf0wMWghQzSCe3eOgzGoCk7/0zPZmyx50uYcg0jAaEsbm/qVcrMs3/PXxL5 KO350qJL8gT6JpNdyws3Qq61f8tuAJdCSCbSxSoQ== X-Received: by 2002:a05:7301:b0e:b0:34b:efa3:ea63 with SMTP id 5a478bee46e88-34c678b98a9mr870217eec.28.1790722659753; Tue, 29 Sep 2026 15:57:39 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:39 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-multimedia][PATCH 07/26] libdvdread: fix off64_t definition in dvd_filesystem.h for musl Date: Tue, 29 Sep 2026 15:57:04 -0700 Message-ID: <20260929225723.1046705-7-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130494 dvd_filesystem.h unconditionally uses the glibc LFS64 off64_t name. musl's off_t is already 64-bit, so typedef it the same way the other non-glibc branches already do. This also fixes libdvdnav, which consumes this staged header. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...em.h-fix-off64_t-definition-for-musl.patch | 39 +++++++++++++++++++ .../libdvdread/libdvdread_7.1.1.bb | 4 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-multimedia/libdvdread/files/0001-dvd_filesystem.h-fix-off64_t-definition-for-musl.patch diff --git a/meta-multimedia/recipes-multimedia/libdvdread/files/0001-dvd_filesystem.h-fix-off64_t-definition-for-musl.patch b/meta-multimedia/recipes-multimedia/libdvdread/files/0001-dvd_filesystem.h-fix-off64_t-definition-for-musl.patch new file mode 100644 index 0000000000..e73e93ed38 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/libdvdread/files/0001-dvd_filesystem.h-fix-off64_t-definition-for-musl.patch @@ -0,0 +1,39 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:05:57 +0000 +Subject: [PATCH] dvd_filesystem.h: fix off64_t definition for musl + +dvd_filesystem.h defines off64_t itself for _MSC_VER, __GLIBC__, and a +fixed list of BSD-like libcs (Apple, FreeBSD, OpenBSD, NetBSD, +DragonFly) whose off_t is already 64-bit. musl falls into none of +these branches, so off64_t stays undeclared, which breaks any +consumer of this public installed header (e.g. libdvdnav): + +| dvd_filesystem.h:87:5: error: type name requires a specifier or qualifier +| dvd_filesystem.h:87:39: error: unknown type name 'off64_t'; did you mean 'off_t'? + +musl's off_t is also already 64-bit (there is no separate LFS64 API), +same as the BSDs/Apple, so replace the closed list of libcs with a +catch-all "else", covering musl (and any other libc in the same +situation) alongside the ones already listed. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/dvdread/dvd_filesystem.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/dvdread/dvd_filesystem.h b/src/dvdread/dvd_filesystem.h +index 1111111..2222222 100644 +--- a/src/dvdread/dvd_filesystem.h ++++ b/src/dvdread/dvd_filesystem.h +@@ -37,8 +37,9 @@ + #elif defined(__GLIBC__) + /* sys/types.h may have been included before _LARGEFILE64_SOURCE was defined. */ + typedef __off64_t off64_t; +-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +-/* off_t is already 64 bit here so off64_t is not provided. */ ++#else ++/* musl (and the BSDs, and Apple's libc) do not provide the glibc LFS64 ++ * off64_t name; their off_t is already 64 bit, so it can be used as-is. */ + typedef off_t off64_t; + #endif diff --git a/meta-multimedia/recipes-multimedia/libdvdread/libdvdread_7.1.1.bb b/meta-multimedia/recipes-multimedia/libdvdread/libdvdread_7.1.1.bb index f57515f732..7b644a1265 100644 --- a/meta-multimedia/recipes-multimedia/libdvdread/libdvdread_7.1.1.bb +++ b/meta-multimedia/recipes-multimedia/libdvdread/libdvdread_7.1.1.bb @@ -3,7 +3,9 @@ SECTION = "libs/multimedia" LICENSE = "GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=64e753fa7d1ca31632bc383da3b57c27" -SRC_URI = "https://download.videolan.org/pub/videolan/libdvdread/${PV}/libdvdread-${PV}.tar.xz" +SRC_URI = "https://download.videolan.org/pub/videolan/libdvdread/${PV}/libdvdread-${PV}.tar.xz \ + file://0001-dvd_filesystem.h-fix-off64_t-definition-for-musl.patch \ +" SRC_URI[sha256sum] = "a0d47876548bec806774bbf8dbf20bb19ba139464383156b32eb8e59915b90a9" inherit meson lib_package binconfig pkgconfig manpages From patchwork Tue Sep 29 22:57:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99622 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 87DD7CA5FB5 for ; Tue, 29 Sep 2026 22:57:43 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1481.1790722661982152438 for ; Tue, 29 Sep 2026 15:57:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=i4kh0WNR; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33bfb26865fso4691892eec.2 for ; Tue, 29 Sep 2026 15:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722661; x=1791327461; 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=1pUlH6MigxuRrho1dJBcKtchFJUMsTHIf5H3cG9UiGU=; b=i4kh0WNRzyX6YJBTzVnrZfByNGZQKc73OL9sHRCXqW0Yv1uwEaL3O9feqHv1ZGKu5r 9lrrfW3IYO9YQPwV2uVtELXz7Sh/GtHRogmVRAMEX9AaFqfu12WkroLgDN750Bsy4zQO z7/jr+EBdEFNqZDZ5iePEDgXPrVl1/mQCL587c2tjd33ZB3iwQRrVWMGiMDijZuAmcsE oXWz9AU9dJ3hSG9xVSprqXHHW+27hUiz/XgVq0n9JuSU5C3ArD8d+h5BnigR0ku2SLR5 eELsUsVLGkS9KIHhSbFKsPea2BB4rMjvWCJALmLyIFkHC9u33Rhb/BqI5bUJWWh1NkuZ bqOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722661; x=1791327461; 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=1pUlH6MigxuRrho1dJBcKtchFJUMsTHIf5H3cG9UiGU=; b=HWiHYc+QqGUmt5t1gtiJxbi4MRFcHEMGFwQo+G1w2XZ0ncBjaMPjQ75YAUWbxCeRX2 AMACkG730r+6Vsr0lYKrpPMPxQr89URUObz5wzfxbmoinV7MU1koFbP4zkm0DT4+T+cK N9et8I0bhH0c8OJNffd4Y810KpvlkN/ptgXR+BFUZEqL5PvQifT1DOdMGcvnmo+/3vS9 90u2MUAzrdT96qfGysA+UiuW3vN7o+o3YwEU3NbQSde5RuxAVb1MZkgUqJpNFeaU02B6 TJYd2FVq2BKapRImJYOwDx/AkFJHHehTW5U5x3bfX2YwwOHfWLit6BjrhmRhqip585H2 +qtQ== X-Gm-Message-State: AFq9FYKw+8zRp+qDO4kAukGGWVgwfHT5TT8+cWvh3RAg2CTD1lmAPAi8 x+04vsj8sO1K0PlJnKk82KeioClSKuNp7ODUvTA5fzor2WFDUuTKvv4tL13j37w0wTQ= X-Gm-Gg: AYBFou21jV52FwJjC4D/sK+SxNJcWyCtY0hqTA8S4M5nfLdX+eRWd/XrPQ32TOa+/7m 68TXkaH9PAvO7siLO/rC8ZQVDdYxCT8Pi6sOGdKSQTjftyC7yRNHxtHxGMpxU+s93nBLPXjxKNq 4brZzm+X103BWzQgXgZk+v96c2jGTxyWDqJWL86k0zZIXmlHVDQekh1RbOctmwL1iNuEljxvD4/ G341bPtRPVfuf5J5mxTSZMw2XoON2eaVlzp/8KtVSgESPL1d4CZvgCxA5Ym8QRPa88DZEsyJSGM SlsXIBSsS0vVRzr2Enanv97PIlHmg7GFUG7lxsk893HXUcwQvwIoyignMv3oI0CE7ReU7ri2Kiy EywQJkGO/vzXpz1tE5VHZhHaoYGDvl/YQSa6kk63rB/2rnl84pJfz3d9b+YXs1/HXQRu0+GTa9P FB69bMaH/IxKb7Y4/dmThQPJMX2VSCmMSBFe8eMGphs7nkelhuDIGQ8u8Km2A1vEhcyxBzI1xYn bNLIc2g6m/12U1lhAsQ8jwdu1duz726I+n8CdgFcc8jZ2G/DK/xxZewo6edBFW+CkUhNMCeeT9o 8OYp4SepZXAESYZqGXmZk8kqX1p6ktMHKcqjg0mIu5/piz2oJIxI9rYw2w/NIAxY5yHBUf/0pb+ IcWlJmm370abOQAmnb/OzLdjxhb4sG+mb9vrrTARuo+KhZ/JUpdIF5Ju6tSrZSpFF0zx78g1tBN F+j5yrzErxwV0pr8gu+Uym1DK/3wRA7GfL8Jicyg== X-Received: by 2002:a05:7300:c01b:20b0:348:201a:6c8b with SMTP id 5a478bee46e88-34c642e07d6mr1030875eec.38.1790722661086; Tue, 29 Sep 2026 15:57:41 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:40 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 08/26] ettercap: don't strip a pre-existing _GNU_SOURCE define in ec.h Date: Tue, 29 Sep 2026 15:57:05 -0700 Message-ID: <20260929225723.1046705-8-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130495 ec.h unconditionally #defines _GNU_SOURCE without checking if it is already defined, which trips -Werror on musl toolchains that predefine it via the driver. Guard the define. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../ettercap/ettercap_0.8.4.1.bb | 1 + ...ip-a-pre-existing-_GNU_SOURCE-define.patch | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 meta-networking/recipes-support/ettercap/files/0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch diff --git a/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb b/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb index e8679bf463..9a2090719b 100644 --- a/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb +++ b/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb @@ -22,6 +22,7 @@ DEPENDS += "ethtool \ RDEPENDS:${PN} += "bash ethtool libgcc" SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https;tag=v${PV} \ + file://0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch \ " SRCREV = "0dc8409779f3a09cbfff4434b9a4d7b33480d88d" diff --git a/meta-networking/recipes-support/ettercap/files/0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch b/meta-networking/recipes-support/ettercap/files/0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch new file mode 100644 index 0000000000..126d37ff50 --- /dev/null +++ b/meta-networking/recipes-support/ettercap/files/0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch @@ -0,0 +1,58 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:00:10 +0000 +Subject: [PATCH] ec.h: do not strip a pre-existing _GNU_SOURCE define + +ec.h temporarily defines __USE_GNU/_GNU_SOURCE around the +include (to pick up memmem()/strsignal() on musl) and then +unconditionally #undefs them again afterwards. This recipe already +passes -D_GNU_SOURCE on the command line (CFLAGS += "-D_GNU_SOURCE"), +so the unconditional #undef strips it right back out for the rest of +every translation unit that includes ec.h -- which is effectively all +of them, since ec.h is the first header pulled in everywhere. + +On musl, many POSIX/BSD-ish declarations (struct ifreq and IFNAMSIZ in +, struct sigaction/sigfillset()/sigaction()/sigwait() in +, pthread_kill()/pthread_sigmask() in , isascii() +in , nanosleep() in ) are only exposed when +_GNU_SOURCE (or an equivalent feature test macro) is defined at the +point those headers are processed. Once ec.h undefines it, headers +included later in the same file lose that exposure and fail to +compile. glibc does not gate these declarations as strictly, so this +was never observed there. Only undo the temporary define if ec.h +itself introduced it, leaving an externally supplied -D_GNU_SOURCE +intact for the remainder of the translation unit. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + include/ec.h | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +--- a/include/ec.h ++++ b/include/ec.h +@@ -20,19 +20,23 @@ + + #if !defined (__USE_GNU) /* for memmem(), strsignal(), etc etc... */ + #define __USE_GNU ++ #define EC_UNDEF_USE_GNU + #endif + #if !defined (_GNU_SOURCE) /* for memmem(), strsignal(), etc etc... on musl */ + #define _GNU_SOURCE ++ #define EC_UNDEF_GNU_SOURCE + #endif + #ifdef OS_SOLARIS + #define _REENTRANT /* for strtok_r() */ + #endif + #include +-#if defined (__USE_GNU) ++#if defined (EC_UNDEF_USE_GNU) + #undef __USE_GNU ++ #undef EC_UNDEF_USE_GNU + #endif +-#if defined (_GNU_SOURCE) ++#if defined (EC_UNDEF_GNU_SOURCE) + #undef _GNU_SOURCE ++ #undef EC_UNDEF_GNU_SOURCE + #endif + #include + #include From patchwork Tue Sep 29 22:57:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99623 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 A9EABCA5FB3 for ; Tue, 29 Sep 2026 22:57:43 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1482.1790722662985576206 for ; Tue, 29 Sep 2026 15:57:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=hXrC81rE; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33e46a15703so4541133eec.0 for ; Tue, 29 Sep 2026 15:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722662; x=1791327462; 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=VpMJhyeaey6DBL6emw/+/Bj0T/6rMQuI9X52auIBuKs=; b=hXrC81rEIBQWkVSAjXCsWnscGdzaHvGD0ETs1hGDIb0eCTJPnn2cVb23WO1T+tBsei /TFxsLy6/ZW2Jlx0C7rGysc+dUd9X0oDsVVaOYVj9cLBQp23bj/Lj2MarhTE62t/63j/ qHdIu7cxqlZWxO3meEafJe7sQSOQlEJ2c2b04Mi395+gRT8xpzPrheNeL1XHo1Sw+4Co nl8VtwjepmlAT2cGaY/O/14b4K4qLHo7htkaiR3crmgCwYPvM8l1YcflZwBpqY+uptbl eRQKIP0VAvPQ7kNxK+L2uLTeV1gDx6zV2otAR7cZ5nlImtrhsVkeXc3NM1vE5jJi8dTv qNSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722662; x=1791327462; 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=VpMJhyeaey6DBL6emw/+/Bj0T/6rMQuI9X52auIBuKs=; b=kYgp80KJb6d5Ahp4fOkOOPt7qKJ5CZKBU9zdAN2o2/9bChrOFUjqimy+oFosrYLRpw 8SqcY7Ck4AaIQxn/Mv3X8qpi2WqrOJxzUHcVdBqTqprbqOPKnt29trrbss/jGODfSBqh HsyJCKuR9FRcobPU9xkNIT5PBb8B12stTNZXFu13c9P3n99rdam1UFt3W+Xsxcn5m907 LnTMS8GCHKEOcS8hpxbPFscaxrIQDhgTMkzmE48erjFxCNlK9XhW6QRI6cKJ93549Bqk T0Bx+4GdbrXhzklmPdr5z6I6Sc0oewEWrjyULNUGDyQzcKVnfZrpkjH4Ngg3/MMdDgFC /Pgg== X-Gm-Message-State: AFq9FYI2pA86uSzhl3EGnUgrq7MH11kFx5TNFrKagyBLayzd2/+VLJ7C 63JDZVTdZYl3Gu7E+XozHg47dfQzK4DBzjZYNDWBwQ7k9t76iZeAekomfViXlgY3270= X-Gm-Gg: AYBFou07tcVcVgf/gpXV44HGHUYcBETosyAWdm4gIEEDisj1XpDtrYO6SM/5H5ObCRp C8fmo5DSxPT3Y4WdeUcCfN9AFM7/U7gy7wlaFe7K/z8yRDtKXy7TMG05JFmFZAFnOGIdvKb64Ae dfiIilOgnyC+TGNaMd8JowthUruJo2t/ZYW1nCRpnLk/jWDYW/LLHgp7DTIpOxcuhNHfg1ckn/n KmAXvibgmlgpy8lO7DlHWj2sgZun4jCpiGyd+flLcZkS7oGIHGWAwddW4Z/HVI/ms+iEKT1d/bz LVU4iaP/WswxctBIO0kF3MtaXqh1EwOD445ofJPCWrKmzIMRbMAmJMRtqKHlzp/NLOTHT05309j IrMrSfb4JuZCyUhRxdBWUQBJz/BkXyJpIDbJ55qIuItjp+PTwlnMsDpSjo57no7S/oDCNoR4c5b MEFQTZVw3yQcSCCvQ3UQQHONUny0jpprPYPS9JJZy7aMpgqmYUklHuAORD+5iRGnxfyQ3ZtAI6G LQCkp3yRZj6gGkPz4BTA/L04Fbnfqrxj8lpWPlsGdD1ENZBKfn9poc+FcPF3M08jYCCFlCPUdcl Lq6G6A1Uq+z5qd4196qb8mgWiR+ObaVbgwT37m4lJqWkmxSyu0Uo2WNOpVC5WVF0YksDKHrciX0 9v4tPMXHeb6vZW3jvDsQQiTRia7Kc6ss1R7rvAsu4wEbqSmlS/AUXmt5WrV5DufJHiaI+jyTJ18 Dh5RCgJeTdj5reWIwpG7aIo8K+QJrIbxmii5xFYea15zgbW1sg X-Received: by 2002:a05:7300:c389:b0:327:e68e:3230 with SMTP id 5a478bee46e88-34c65c625bdmr767565eec.10.1790722662239; Tue, 29 Sep 2026 15:57:42 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:41 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 09/26] switchtec-user: include switchtec-endian.h for musl htole32/le32toh Date: Tue, 29 Sep 2026 15:57:06 -0700 Message-ID: <20260929225723.1046705-9-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130496 lib/cap-cli-main.c uses htole32()/le32toh() from without including it directly; pull it in via the project's own endian compat header. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...n-include-switchtec-endian.h-for-mus.patch | 44 +++++++++++++++++++ .../switchtec-user/switchtec-user_4.4.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-oe/recipes-support/switchtec-user/switchtec-user/0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch diff --git a/meta-oe/recipes-support/switchtec-user/switchtec-user/0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch b/meta-oe/recipes-support/switchtec-user/switchtec-user/0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch new file mode 100644 index 0000000000..c59e76e496 --- /dev/null +++ b/meta-oe/recipes-support/switchtec-user/switchtec-user/0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch @@ -0,0 +1,44 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:56:40 +0000 +Subject: [PATCH] lib/cap, cli/main: include switchtec/endian.h for musl + +lib/cap.c and cli/main.c call htole32()/le32toh()/le64toh() etc. +without including inc/switchtec/endian.h, the project's own portable +endian-conversion shim (already used by lib/diag.c, lib/switchtec.c, +lib/pmon.c, lib/fw.c, lib/fabric.c, cli/mfg.c and cli/diag.c). On +glibc this went unnoticed because some other transitively-included +header happens to pull in as a side effect, but musl's +headers don't have that side effect, so building with musl libc fails +with "call to undeclared function 'htole32'" and friends. Add the +missing include to both files so they pick up the same +declarations (switchtec/endian.h just wraps on Linux, +which musl provides unconditionally, unlike glibc which historically +gated it behind feature-test macros). + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/cli/main.c b/cli/main.c +index 6dc4524..b0bdcc3 100644 +--- a/cli/main.c ++++ b/cli/main.c +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + #include + #include +diff --git a/lib/cap.c b/lib/cap.c +index b10685f..52ee3f5 100644 +--- a/lib/cap.c ++++ b/lib/cap.c +@@ -32,6 +32,7 @@ + #include "switchtec/cap.h" + #include "switchtec/switchtec.h" + #include "switchtec/mrpc.h" ++#include "switchtec/endian.h" + #include "switchtec_priv.h" + + #include diff --git a/meta-oe/recipes-support/switchtec-user/switchtec-user_4.4.bb b/meta-oe/recipes-support/switchtec-user/switchtec-user_4.4.bb index 61d431178a..32c75c1bfe 100644 --- a/meta-oe/recipes-support/switchtec-user/switchtec-user_4.4.bb +++ b/meta-oe/recipes-support/switchtec-user/switchtec-user_4.4.bb @@ -8,6 +8,7 @@ DEPENDS = "ncurses openssl" SRC_URI = "git://github.com/Microsemi/switchtec-user.git;protocol=https;branch=master;tag=v${PV} \ file://0001-lib-diag-do-not-use-a-variable-length-array-in-a-str.patch \ + file://0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch \ " SRCREV = "d995512f3bf1ceb98eefada813642d5ba5d62cd1" From patchwork Tue Sep 29 22:57:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99627 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 9F2EBCA5FB5 for ; Tue, 29 Sep 2026 22:57:53 +0000 (UTC) Received: from mail-dy2-f36.google.com (mail-dy2-f36.google.com [74.125.229.36]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1484.1790722664511580339 for ; Tue, 29 Sep 2026 15:57:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=W67vPBDs; spf=pass (domain: gmail.com, ip: 74.125.229.36, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f36.google.com with SMTP id 5a478bee46e88-328664c2da6so3978958eec.1 for ; Tue, 29 Sep 2026 15:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722664; x=1791327464; 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=9rHrRVL6iG7rNs1aIFRHUFkqat1zRMVVcdde+taN7ZE=; b=W67vPBDsLwhFsXg1Jvvyq4b48A0N8qjOMuwgcTadcYo/hYXNqGxUk470Ma5H73APwS 7guzDqPR7as0YvxO97CCyTZPw/TmBpsfWceE7w00c82gQ/JdU1rzfIJq8PoAmeq3l0c0 mpl+sqOEtO2CP7kpmHnY1As736US6h9t1udp3sYZ99QgZxqBWkblXr5LVFkCM6cMiUUw cDieCUNZcne6qfHLogGK8wt2HWC3lMv8QhjGK07eLZsQ7wXp4ge3CmDA9x1L/ChdugZ4 iZyY37Ah4AE0n4bNXiWlg6BLT13yAhFxMlHCqLQK6xpO6g3EThhJmRMjoYOfV7LUDfkB FedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722664; x=1791327464; 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=9rHrRVL6iG7rNs1aIFRHUFkqat1zRMVVcdde+taN7ZE=; b=tosyOpDG7TAxFpAyOpkuHZ+ElGWIrAujKUqnIC/zY8EzLJC1UXVL/+a9hH9uf1snMl +3+rEAZr8Dg4Qb4R/PTqlSgAs14ZfXr7B2+/EkktjB+BDNAXjxDe8KydbU/j6kkLp5hu c0yRdV1DipvkkfZfAyMhF0zQrkznyTkCYbG+I2liwZiH0WjT6C8oynZDf8J0MpPZTAZh zG8CXhlmDZYPm/vM2/VVpjjfh+H1Q+3+RRGA9yhL7rMozsA0vVrz+4s5uPg1f5tlDhpF rU+n/aNLghQrVFT+koRGv+iNd/L6Z8qNZ4bKQBBDsl/SjUb7oUlgkbRQ46sFY244jpof N0bQ== X-Gm-Message-State: AFq9FYJr4qKw9rPwrHKHlJnOQR2hqYtyLNxmR1taMH0DJs4x8EgoYBQV iMHrPzQ/kvrja0WDONqk1poRwLmqhTlegn5iGzGb2FiiuZcS5GB8xLhdf1B7LtKG4A0= X-Gm-Gg: AYBFou1nVxSuHdTuwc51v36I3KX97eECZgQ7faTO8or8C/vJJnyekUo6PLl0TSZuf0q ZGNRhnUqeiiOYSxKYH+MP8FiJfHDACcwkS/J/41LIqDNPCvN2Gsfuw7KiX9hEyirIQgRYs7L3+d lkJIAfL33ibLo8M4zlIkRiQoXbCTac+DNxwmZjU00+Cx0aQd17Ia1hwGQ9TFEPVP/wPB9Xz46yp SJIeD8lUXRFCT+PDaAEku5pCL4qOND4WbnWLETobnPBY9Swwcvo+6EVIlFLUyiZef9ZK2MC5lIq bWJYsnAPvgnXSlgh+eDKaDG0jYjzy5gzn2i2u5e4yPljzZD6uDD6AEpzPu4dqQv8+5XXLp6p/iT rcsE43g56aCRC5ou7iY0tJV2voNcxLCaZLDnjeTxG/1UncRX2gci53zhEONBcrvBOZugy4UCVpc 8l3cr1cL7PliOz5CjRv84c6hg9zaYfWMu7TLBreuhWpoGKDn+0ylyfX7m1hUkFLMy8GD97HFOP7 fPQn8v1yqoeh5hFfEmpbqv9Z28SFvtDRMjf/4Uc4lb+c1bcgYWbUYEVustiJej8oMVxOrBxtmyH 9MaexjKILnIq0oWtolFZJlBJeYUaa5XZbHOALbui+228EjFOPyDk2D8YvrCB41ue/6lt2ms0Sl1 Ehwb+51g/ZIuA/9/rDmBvyakTxbIe6QN8Rbwoz9ZR5gWHhQSHft9okruecvLdjqV7Kz3fVEFN4F g8s0qX8kIk1k+gFG4o5qfxPF5QWMTZ4GV9xjaTEWoW1gCvb3yB X-Received: by 2002:a05:7300:a225:b0:343:6622:ee15 with SMTP id 5a478bee46e88-34c65a74014mr894014eec.11.1790722663734; Tue, 29 Sep 2026 15:57:43 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:42 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-filesystems][PATCH 10/26] xfstests: fix musl build (linux/types.h, RWH_WRITE_LIFE_NOT_SET) Date: Tue, 29 Sep 2026 15:57:07 -0700 Message-ID: <20260929225723.1046705-10-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130497 fs-monitor.c uses __s32/__u32 without , and rw_hint.c uses RWH_WRITE_LIFE_NOT_SET which musl's headers don't define. Add the missing include and a guarded fallback define. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...nclude-linux-types.h-for-__s32-__u32.patch | 24 +++++++++++++++ ...lback-define-for-RWH_WRITE_LIFE_NOT_.patch | 29 +++++++++++++++++++ .../xfstests/xfstests_2026.06.21.bb | 2 ++ 3 files changed, 55 insertions(+) create mode 100644 meta-filesystems/recipes-utils/xfstests/xfstests/0003-fs-monitor-include-linux-types.h-for-__s32-__u32.patch create mode 100644 meta-filesystems/recipes-utils/xfstests/xfstests/0004-rw_hint-add-fallback-define-for-RWH_WRITE_LIFE_NOT_.patch diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0003-fs-monitor-include-linux-types.h-for-__s32-__u32.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0003-fs-monitor-include-linux-types.h-for-__s32-__u32.patch new file mode 100644 index 0000000000..74b1d42f57 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0003-fs-monitor-include-linux-types.h-for-__s32-__u32.patch @@ -0,0 +1,24 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:03:26 +0000 +Subject: [PATCH] fs-monitor: include linux/types.h for __s32/__u32 + +The local fallback definition of "struct fanotify_event_info_error" +(used when the libc's predates FAN_FS_ERROR) uses the +kernel-style __s32/__u32 typedefs. glibc's headers happen to pull +these in transitively via other system headers, but musl does not, so +building against musl fails with "unknown type name '__s32'/'__u32'" +unless is included directly. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/src/fs-monitor.c ++++ b/src/fs-monitor.c +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + + #ifndef FAN_FS_ERROR + #define FAN_FS_ERROR 0x00008000 diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0004-rw_hint-add-fallback-define-for-RWH_WRITE_LIFE_NOT_.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0004-rw_hint-add-fallback-define-for-RWH_WRITE_LIFE_NOT_.patch new file mode 100644 index 0000000000..a69dd6811b --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0004-rw_hint-add-fallback-define-for-RWH_WRITE_LIFE_NOT_.patch @@ -0,0 +1,29 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:03:26 +0000 +Subject: [PATCH] rw_hint: add fallback define for RWH_WRITE_LIFE_NOT_SET + +The musl shipped in this toolchain mistakenly names the +"not set" write-hint constant RWF_WRITE_LIFE_NOT_SET instead of the +kernel uapi's RWH_WRITE_LIFE_NOT_SET (the other RWH_WRITE_LIFE_* +values are spelled correctly), while glibc's +defines RWH_WRITE_LIFE_NOT_SET as expected. Guard a local fallback +definition so the test builds against either libc, without needing to +pull in and risk clashing with musl's own F_*_RW_HINT +macro values. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/src/rw_hint.c ++++ b/src/rw_hint.c +@@ -7,6 +7,10 @@ + #include + #include + ++#ifndef RWH_WRITE_LIFE_NOT_SET ++#define RWH_WRITE_LIFE_NOT_SET 0 ++#endif ++ + int main(int argc, char **argv) + { + uint64_t hint = -1; diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests_2026.06.21.bb b/meta-filesystems/recipes-utils/xfstests/xfstests_2026.06.21.bb index ad1ceea463..f6f246332e 100644 --- a/meta-filesystems/recipes-utils/xfstests/xfstests_2026.06.21.bb +++ b/meta-filesystems/recipes-utils/xfstests/xfstests_2026.06.21.bb @@ -13,6 +13,8 @@ SRC_URI = "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master;ta file://0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch \ file://0001-bstat-use-uint32_t-instead-of-__uint32_t-to-fix-buil.patch \ file://0001-locktest-do-not-tie-struct-delegation-to-the-F_GETDE.patch \ + file://0003-fs-monitor-include-linux-types.h-for-__s32-__u32.patch \ + file://0004-rw_hint-add-fallback-define-for-RWH_WRITE_LIFE_NOT_.patch \ " From patchwork Tue Sep 29 22:57:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99630 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 059B4CA5FBD for ; Tue, 29 Sep 2026 22:57:54 +0000 (UTC) Received: from mail-dy1-f177.google.com (mail-dy1-f177.google.com [74.125.82.177]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1465.1790722665613134640 for ; Tue, 29 Sep 2026 15:57:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=XAyvhh1f; spf=pass (domain: gmail.com, ip: 74.125.82.177, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f177.google.com with SMTP id 5a478bee46e88-3115c4451c8so1125218eec.1 for ; Tue, 29 Sep 2026 15:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722665; x=1791327465; 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=Qh7nBqIfPPUocIlA3P/VRvkcRiFlkdUkXd+PzFo2AcM=; b=XAyvhh1fRa8ot91Mlw1S2u1ul5iuwHCqTsfo95w1OxUqslQ7MJ4OHpqWYafedk499H umRxxOjHyw6/wZ77ChEAYnt+m8vHqftOY7NHsGwjzjnJaS+WLeX3+HwFAH5LkLdpOjI3 CTA1TwGxytjvFskNxfmKp5wCMk5lGgIMC1tF0hfo3cJJB48RExKKmtYQvA40Oo0WNHAt 4WHGF9TXBY0jiRaEeaQiBablduG2YfjBexlWTrmkuBH3Or2DIXz+hjBQWFztmMqiy0Qo U1qLtIxlJTqJqkeBEXCfF/GXOCl1QRA7AcpWGpjPiS0MpKWdR65ZrIBQm/NmhaBpkEYY CoDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722665; x=1791327465; 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=Qh7nBqIfPPUocIlA3P/VRvkcRiFlkdUkXd+PzFo2AcM=; b=1NljaWLNJNtIHVFpbgjt2idx+hdGHAQugmYLNYBYT2Cr8VgaUwljnHU3gJlWWlpyo/ 0gCoeoS8A2JzcoWWOcjDHmrVy+xDABvsIgbD/9csFbXaPaPJfmjq4fMp1GrpX9TojRfu a6GT4jrmlOsG0EI/H21IHZL8/SV/tTLl9Xn1GrxGKfSDzsS3jUpL02xlFar+IPTQDpE2 dBxOpdcxMsO+JEWG4kgUM2A0PHLLr0tUKhvhe3op6hjITTZ1ArbMDFmPkyxPCccKsePq y3rcm2ZE/U4iEVUCSg2IfujZ68uf/cLjdVGoqcTq+JxFBXJi5KAE7nEGxGs1l1p4WFxu YufQ== X-Gm-Message-State: AFq9FYKiO1eBUswGKz7ML3jec9phkFJWCe+nd7gyLsipAyYREUIyLmD4 YEsC4tkDNRfi3idP5Okdy1B6+A6Pm4Zs2IKTXpnmrtSZ2tKN3MhUKCPe7GDRKIgxgzo= X-Gm-Gg: AYBFou2f7HYAhfh+VNWOimUzh/y21dOc7CwrnP16PIIiv7EPGpQrlmUpSL4nbdB+tTJ LD4p035Eu+nXh9Os+18O7Dlx6wsYNgjYQ055/3ul7ebNabXwNTdPaqnDOe7gt9HXNqMkIo5IsmR spfgHNGYIeROENSjwM1wY/2bAEG9jRuC0t9CYxVMbrGVpVWeJQFnFHe2wutq0QbRL0iKR9gwEOS qvrn5ZQMsdpuiWjLZWQlhulguk7rg2FX0lfA+8I5306LjZnrH6NneDMD2WwxBsJyaE9AH4UY0Ie T9ZAVeEzpb1GsbuK0uIYIKGBMHnHM+r2Q03d/flGn8NmYbtPprqWpEO2LAy0Oh233tmJCFc/BM5 oxX2JwAGqRGGaFoPsAmj0OPpahzfRolublskBrXqfoLB77tI3OJPzJSjwO0aDPk07yZbvBEoeGh btpx7q4x1G+3CYbsR31uuxLEAFdNzlL68MlY/Ox8goPpv1+k+OLxQ0+8jU1yRTAcVRPR+CaBvBq 6q658lHdWdmOo8HhwMu9KROf3FINbljcmh74auVi7YUlsggKZ7lu/q4SLUqiKKYFxJhrMdZrJFG 1YDgs3ngulxKLGR4nTxcE4+QJFgXBeLK0QA9bx2d8de2HCo9Gm28PH6PhIKNmI9UA+fWR1NyBeJ oWuVp2+0rd7FAtEBOL3SbqKHe1iRI3iDJgvD/o2l/nIisnapPnxKf7FODeSCRe+aDH1kuWZe20z vHA7lC/AqMqnpW7F8sY9kMM82XU8mrQzJ38tcSQQ== X-Received: by 2002:a05:7301:433:b0:342:890a:4088 with SMTP id 5a478bee46e88-34af520868fmr4258048eec.2.1790722664863; Tue, 29 Sep 2026 15:57:44 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:44 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-gnome][PATCH 11/26] evolution-data-server: define _GNU_SOURCE for strcasestr in imapx test Date: Tue, 29 Sep 2026 15:57:08 -0700 Message-ID: <20260929225723.1046705-11-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130498 The camel-provider-imapx test uses strcasestr(), a GNU extension that needs _GNU_SOURCE defined before is included to be declared. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../evolution-data-server.bb | 1 + ...vider-imapx-define-_GNU_SOURCE-for-s.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0005-tests-camel-provider-imapx-define-_GNU_SOURCE-for-s.patch diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb index 8ed111b334..d1108b6b93 100644 --- a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb @@ -17,6 +17,7 @@ SRC_URI += "file://0001-cmake-Do-not-export-CC-into-gir-compiler.patch \ file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \ file://0004-call-native-helpers.patch \ file://0001-data-CMakeLists.txt-dont-create-automatic-google-log.patch \ + file://0005-tests-camel-provider-imapx-define-_GNU_SOURCE-for-s.patch \ file://iconv-detect.h \ " diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0005-tests-camel-provider-imapx-define-_GNU_SOURCE-for-s.patch b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0005-tests-camel-provider-imapx-define-_GNU_SOURCE-for-s.patch new file mode 100644 index 0000000000..133932fb04 --- /dev/null +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0005-tests-camel-provider-imapx-define-_GNU_SOURCE-for-s.patch @@ -0,0 +1,33 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:56:54 +0000 +Subject: [PATCH] tests: camel: provider-imapx: define _GNU_SOURCE for + strcasestr + +musl libc only declares strcasestr() in when _GNU_SOURCE (or +_BSD_SOURCE/_DEFAULT_SOURCE) is defined before the header is included, +whereas glibc exposes this GNU extension unconditionally by default. +Define _GNU_SOURCE as the first thing in the file, before any +includes, so the prototype is visible on musl too. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/camel/tests/test-camel-provider-imapx.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/camel/tests/test-camel-provider-imapx.c b/src/camel/tests/test-camel-provider-imapx.c +index 1111111..2222222 100644 +--- a/src/camel/tests/test-camel-provider-imapx.c ++++ b/src/camel/tests/test-camel-provider-imapx.c +@@ -3,6 +3,11 @@ + * SPDX-License-Identifier: LGPL-2.0-or-later + */ + ++/* Needed for strcasestr(), which musl only declares in ++ * when a GNU/BSD feature-test macro is defined; glibc exposes it ++ * unconditionally by default. */ ++#define _GNU_SOURCE ++ + #include "evolution-data-server-config.h" + + #include From patchwork Tue Sep 29 22:57:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99628 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 EDDA4CA5FBA for ; Tue, 29 Sep 2026 22:57:53 +0000 (UTC) Received: from mail-dl2-f12.google.com (mail-dl2-f12.google.com [74.125.229.140]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1486.1790722667286829361 for ; Tue, 29 Sep 2026 15:57:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=ArExJv5h; spf=pass (domain: gmail.com, ip: 74.125.229.140, mailfrom: raj.khem@gmail.com) Received: by mail-dl2-f12.google.com with SMTP id a92af1059eb24-142dd025d07so4273951c88.2 for ; Tue, 29 Sep 2026 15:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722667; x=1791327467; 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=KVDOx7rzTRvyrhi9Q6GrcsuJd8gHUCAmi3SL6dpx+cQ=; b=ArExJv5htpfm/b2G0Pa/aS19U0++w8BHHGqFoNpUWAn63gJhj8mMubiT8rOrN2taRY AbSR9SsSCA5RftGONYjL+HeSopUu0jyXoQgIKpHu75XUKyVOFKGyVQjA+NdOjX2kYwKc qhcjmV9kqULlcCBUi4yuE9+rtqjloEXfHqciiRkFhuNtwhI7LkzFmSTh+Q5e5LYhNVuf 9RysG/mC3hGARZNO7epA2N9BKF0CphQ8fp+lnddq8mUIuPoAi/B+j9BUZlvhqK4Cr89S G/ea8E4mYbLAfBIZ3QlW4nUTmWYs+MGWBwvWVyro7vcnBX25u+LXTJXtmTxw9WvY83cR ZMkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722667; x=1791327467; 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=KVDOx7rzTRvyrhi9Q6GrcsuJd8gHUCAmi3SL6dpx+cQ=; b=NQ8dDKmOX7GSY2XnsNFfVabJv93UMHLmwmiL9DLgqvtAiMF5y6yLuNbGO1DBZ43fbz nCwb0a6he8QXb9IDHyX8V1qhcWoCxf/QTaOmQXNA5GiknU4uPpczzC6W82FdJxDaDnEw J5RAVfzt0sbI+ylAolNlD9tUoGyYpiA7Zav9RUCI8zqTDaSQP2y5x/PGDPMifESViYkc TBzE2iPDGWAtE3RwnsfWMyx1348euFqoFEptSKPfINa2Ab4jUIgIaCwYZZJLR+Oh9gEE ZSQq2CW4ZADTE0sOFFlmj7ToGV+4uGI/YdIW4lTNADiu0UIbYyGVJQDwp+NLyaR7B1gY SLCw== X-Gm-Message-State: AFuF++kkemQ2BTHG6qEcB+uQW+JB3SSL6N8SLPHnOxfhhal/byWGygjr 8E4xzW903TUc6SgRNejwBD+dwDZO1NwQsswqvUbGNPpnIyy+84341NvWxb1EugiRR0E= X-Gm-Gg: AYBFou2lksR3dZz3RBSE2p0Wx175fJCe8b34N8Q2Plbw0JFUIlIwj7xUUl2m2zXi8If uUDDEmTclJa74+jM0JSGNmYUzXEuRTd96bTtNfz5QBOTiHLXGxZUGPmRme63rFWtIHOKtjkcmGC FkIMFzEmJhJgzMScTFLa3vyfYFoZvrxKeUSbTZvcNm90xVD4+kVTohECvjVo/4cavXKqGENbvFI 8r0HThifJ/OWnwRNRSiA7zbaWvKiG356NC3jZzW2NdPSjFG6NMLSWwSabvTtuZzaKr9M4QXlWPD NkAUvuyfZ0ahW/MSAqaXGanVm2MDBNzqJsQ/63mee2424eOokM55sDXHZaSYDm+VhXhtKUwOSnx NdXazosMGdHfCRaPomiL4R/KNiFuTrNx9m4t9+d4hhl1gmaly+WrTu3CL/aFC0qK+NV9fDRR8DN yDWAq2dTdcbHRMVlfxnySJESr/8JwLh9lbRX6OH9cNhSwLOnpzttcSb31KNTFmMHfhg4i62DcKa 8pIXXaIhz/BAF8Dwym0Qa/aCkjiZWVJ00JS2TRcSkvbBCgd6HGtAvXE02V2FsEt95Iv+edXaAs7 wbEjCKLcN1UmaVmsMx+XzypcMR/B8Pc80tHm+ZVoseETuot3mEAYkYiwQuTowcNQkXlimdOR8Db mJIj+sUEq7dHelqCAqbQ6MpQ+dsziiku+fBpGLsfGi1cMUDx7ucR+3Gj7vx7SqRcNPaM4ZXdpV5 l0NCAdN0tYNsX0eJzhlpHihTyQPfWwnUSyF75Wp6vRn++EhCIcvA== X-Received: by 2002:a05:7301:4697:b0:327:c036:1c7a with SMTP id 5a478bee46e88-34c6370d9a1mr915254eec.10.1790722666366; Tue, 29 Sep 2026 15:57:46 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:45 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 12/26] bpftrace: define _GNU_SOURCE for pthread_setname_np in testprogs Date: Tue, 29 Sep 2026 15:57:09 -0700 Message-ID: <20260929225723.1046705-12-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130499 A test program uses pthread_setname_np(), a GNU extension that needs _GNU_SOURCE defined before is included to be declared. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-define-_GNU_SOURCE-for-pthread_setn.patch | 28 +++++++++++++++++++ .../bpftrace/bpftrace_0.26.1.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0007-tests-testprogs-define-_GNU_SOURCE-for-pthread_setn.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0007-tests-testprogs-define-_GNU_SOURCE-for-pthread_setn.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0007-tests-testprogs-define-_GNU_SOURCE-for-pthread_setn.patch new file mode 100644 index 0000000000..d9d297055e --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace/0007-tests-testprogs-define-_GNU_SOURCE-for-pthread_setn.patch @@ -0,0 +1,28 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:56:02 +0000 +Subject: [PATCH] tests/testprogs: define _GNU_SOURCE for pthread_setname_np + +glibc exposes GNU/BSD extensions such as pthread_setname_np() by default +in its headers unless the build is put into a strict ISO mode, whereas +musl only exposes these extensions when _GNU_SOURCE is explicitly defined +before is included. Without it, musl's does not +declare pthread_setname_np(), causing an implicit-declaration error under +clang's -Werror=implicit-function-declaration (mandatory in C99 and +later). Define _GNU_SOURCE before the first include so the declaration is +visible on musl too. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + tests/testprogs/multi_threads.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/testprogs/multi_threads.c b/tests/testprogs/multi_threads.c +index 1111111..2222222 100644 +--- a/tests/testprogs/multi_threads.c ++++ b/tests/testprogs/multi_threads.c +@@ -1,3 +1,4 @@ ++#define _GNU_SOURCE + #include + #include + #include 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 a2f6a93f66..e217ac150d 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 @@ -21,6 +21,7 @@ SRC_URI = "git://github.com/iovisor/bpftrace;branch=release/0.26.x;protocol=http 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 \ + file://0007-tests-testprogs-define-_GNU_SOURCE-for-pthread_setn.patch \ " SRCREV = "1bac8a8daad6e0aa579980e877d0c9d5fc296593" From patchwork Tue Sep 29 22:57:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99631 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 310C9CA5FBB for ; Tue, 29 Sep 2026 22:57:54 +0000 (UTC) Received: from mail-dy2-f42.google.com (mail-dy2-f42.google.com [74.125.229.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1466.1790722668250888100 for ; Tue, 29 Sep 2026 15:57:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=NTd/0Mk0; spf=pass (domain: gmail.com, ip: 74.125.229.42, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f42.google.com with SMTP id 5a478bee46e88-341d0522b4dso7213830eec.1 for ; Tue, 29 Sep 2026 15:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722668; x=1791327468; 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=kyS0bHt9EdUZVL8e995Qgt4mAyTAXoTEqF8pihyTiq4=; b=NTd/0Mk0tFM+fASmg+4WfiSrSvm+0RcDyLuVZ8Ah9LyVOCeMtyAUpa8h1EVmibYFFy Yf8RM9QAZ5LlWLEQvNhHTqddKZugoP/QIQf+BZuZysGP27+1KOT0ux0vU6X4lOKlVLkU 9NHdDUCA1Yr8HrKTGKfXmpqxDbI5+Wy6Q8Jerxf12rUVXSegUDy00v8y/AfvNHiA0FXx /cdnUvEbHqnKn2mOUyfRrXGi6M6VdOvJOr8eQ0bGcbyna43W5T+Z54FklB/deECigtKn WH/XGI+9Y3FPoNjs0Icknk65tH/OGqWWsLFGM4UWWguh29/X++8jnGHfOOknfYHw0sUn v5uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722668; x=1791327468; 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=kyS0bHt9EdUZVL8e995Qgt4mAyTAXoTEqF8pihyTiq4=; b=LUAjxQb6LzlC9sIsh0YjE9fGcCFLHwdn4C59C+AO9T+qJ4m2oyUOtzTw9ZTw6In/VT kYJE4s9+9kS+9V8112IUWvOR1VTrMoWDAuTClAPuXHZ3/BRNW95eQm+RaGViJoHp9T1E rHQdtz4wtmNrgqpWSdstRYyB6UD0KDvLExTeqZuiWVAodLR5gv+Bjs3oh+R7ESOEbSL7 Fk5LUMu07s4OSJlq2Xx3Y/OgSyxvvvJF0r2aBC/tv8TrPEMXu92s/LWdOCpnzuq2FBnV eiWcOtzSWkl27w8rLIPOXr5VpysZ8TmItcijRYTqC0dZw5p+sqLOMXS8kVr9wISOnbyA OPvg== X-Gm-Message-State: AFq9FYKKGfocIU0oX9Mu4zoNVZP3w6rWx0kA/Pk79zGTSGcvdQAI2m5I mTy/OKDQoagZu3ct3dLTt2mZ4w3ZQrzX9gVhFv7mqZXO7XDXpcdGtfbnLL7XQPI9IGg= X-Gm-Gg: AYBFou3/un4ciyhIRrVPO3rAsX8UhjzYWt1sG7S6P1Pc7YD7GurR+GD7MsL+LIpB4lx Rxa25fYioBwVRznALCPzMzk38/ef43v1RIgn9nH2+hpUBgzaHgR44cpHq5V6gUjOx63HdKi8Pwr ys16tQmXmVTuoqP8ewVkFNHBHULs4QdtpptleXdA5yO8M6izqOiLws7sXEQRznQ+ymVbh/PXd51 FPm7WIl/58Uoqw1qrBKe3dcIWDs0mXDs7kesPrXUfxhgItcaKZT1RK/EYBCd19W16XB19UsMSy+ q6bC3mZesvadi66Vh2jneiTqFoVWNIcJHxZib1vN4FgSsrespVObhs5aLZWBMaxb+9J/Lm7QWmK 1Vl9yeStjwj8P1DkUfyl7sMPpMc4+dlkm7Rq9dlsa3KZo3t02EVM82Wlday5r5A3ZLWF6V7kp+a p9YH9Jrxq5xIbIJ3YhoPas81JdLcy452LTtbjx+vd9FZAeWKYOXXPF2BRZ8mzuPkTEdgPkUnTx1 a4V94CvmgFDvvFmhJq36lGfihpi9/LIvjq5TQI2iJDc2VAN6etmsOMi2L5DGZXZZIk/p6qY+NTj 6vkWjumbyp50LXrSHlsOAWYn5rCgWMguoBb9rvUzTns89oxBm2Avz37k3FwwxZtGJnTDtddlxJD KxaYYNzKVtzFYoQEGCQWsWWkxsbeKz/D5o9XvVU6BEiSw00t7IQYkTv/E60Nc07pkg75qBl+MzO uNA5mtjkclX9n2v6BAhyu3/OzvdUWt1O2ggh3mYQ== X-Received: by 2002:a05:7301:18a5:b0:33b:dfe3:250d with SMTP id 5a478bee46e88-34c671e531bmr696963eec.23.1790722667530; Tue, 29 Sep 2026 15:57:47 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:46 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 13/26] atop: use wide ncurses pkg-config cflags so waddwstr is declared Date: Tue, 29 Sep 2026 15:57:10 -0700 Message-ID: <20260929225723.1046705-13-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130500 atop calls the wide-character ncurses function waddwstr(), which needs NCURSES_WIDECHAR defined; get that (and the right include path) from the ncursesw pkg-config module's own Cflags instead of hardcoding plain ncurses flags. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../atop/atop/ncursesw-pkgconfig-cflags.patch | 29 +++++++++++++++++++ meta-oe/recipes-support/atop/atop_2.13.0.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-oe/recipes-support/atop/atop/ncursesw-pkgconfig-cflags.patch diff --git a/meta-oe/recipes-support/atop/atop/ncursesw-pkgconfig-cflags.patch b/meta-oe/recipes-support/atop/atop/ncursesw-pkgconfig-cflags.patch new file mode 100644 index 0000000000..60441f4ab4 --- /dev/null +++ b/meta-oe/recipes-support/atop/atop/ncursesw-pkgconfig-cflags.patch @@ -0,0 +1,29 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:56:24 +0000 +Subject: [PATCH] Makefile: pull in ncursesw cflags via pkg-config + +atop links against libncursesw and calls wide-character curses +functions such as waddwstr(), which ncurses only declares in +curses.h when NCURSES_WIDECHAR is defined (normally via the +`-DNCURSES_WIDECHAR` cflag reported by `pkg-config --cflags +ncursesw`). The Makefile only queried pkg-config for glib-2.0 cflags +and never queried it for ncursesw, so on distros shipping a unified +curses.h (as this OE ncurses recipe does) waddwstr() is left +undeclared and the build fails under -Werror=implicit-function-declaration. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/Makefile b/Makefile +index 3a73bd2..7d1a3c4 100644 +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ + + PKG_CONFIG ?= pkg-config + +-override CFLAGS := -O2 -I. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0) -Wmissing-prototypes -Wmissing-declarations -Wformat-security $(CFLAGS) # -DNOPERFEVENT # -DHTTPSTATS ++override CFLAGS := -O2 -I. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0) $(shell $(PKG_CONFIG) --cflags ncursesw) -Wmissing-prototypes -Wmissing-declarations -Wformat-security $(CFLAGS) # -DNOPERFEVENT # -DHTTPSTATS + + CC_CHECK := $(shell echo | $(CC) -dM -E - | grep -q __clang__ && echo clang || echo gcc) + ifeq ($(CC_CHECK),gcc) diff --git a/meta-oe/recipes-support/atop/atop_2.13.0.bb b/meta-oe/recipes-support/atop/atop_2.13.0.bb index 625a7b0937..28292f244a 100644 --- a/meta-oe/recipes-support/atop/atop_2.13.0.bb +++ b/meta-oe/recipes-support/atop/atop_2.13.0.bb @@ -21,6 +21,7 @@ SRC_URI = "http://www.atoptool.nl/download/${BP}.tar.gz \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://volatiles.atop.conf', 'file://volatiles.99_atop', d)} \ file://fix-permissions.patch \ file://sysvinit-implement-status.patch \ + file://ncursesw-pkgconfig-cflags.patch \ " SRC_URI[sha256sum] = "ea182f84c9f52ca922e5af4f17dff97ff424400a4f2f92393317a6af66e6a874" From patchwork Tue Sep 29 22:57:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99626 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 AC06ACA5FB3 for ; Tue, 29 Sep 2026 22:57:53 +0000 (UTC) Received: from mail-dl2-f43.google.com (mail-dl2-f43.google.com [74.125.229.171]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1468.1790722669538542315 for ; Tue, 29 Sep 2026 15:57:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=cL5CZVl0; spf=pass (domain: gmail.com, ip: 74.125.229.171, mailfrom: raj.khem@gmail.com) Received: by mail-dl2-f43.google.com with SMTP id a92af1059eb24-142dd025d06so3449001c88.1 for ; Tue, 29 Sep 2026 15:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722669; x=1791327469; 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=RJY+FdSbP/MdWLZI/4HfdzGkoeVG9c2WJ5m5qR0CinE=; b=cL5CZVl0NS0Kz5TsZ54e+evL4UG4Gz3uehzkxOY4f/1TCGGI36b07FvdrwT167T4ls a4EkUkd9XEaejBsB7GhuguTIf9vhTLH2EDDg7jztKCZ4nWi5ORAlhMpj9MHyvnV3Lygv /sagxKKrbhkADiVK+PpYipo0gdd4dCg7itHVUz1j4M9X8irI0pp9NHx+2lr9J+m0Tui2 C91oZ8lsrb8huhxn2snSEmh4nhAfYpQ6H2QaNF9W/vy9OntIQoJqAro5NP2QHiMRP69U 6VeIZ3Zmoh2VdOwJGUjg4ISSXZgP8TNcveJ9k0XXjOM8XlbttVeQ7dkSQUC7Wh3hWNNC E7og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722669; x=1791327469; 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=RJY+FdSbP/MdWLZI/4HfdzGkoeVG9c2WJ5m5qR0CinE=; b=AVZDiCMgzDOyGsVaRkKi4hjAx0JdPBfyh+r0b68cJVOvcN21unnpjAmebi19i1tT/9 qliVaosbmw/u0OJBOxIeGVdS+eAMjyPWxPbS3inukxyHDniIoDKpfvzV84MjdOqYnic4 T1Ue8KT/LESL3RbBazqCm8Q6mFVYNAthmHosjF16s/i65atnK25sCg3YPfVus0KQFY4u NHx6bASSVlMkXH6vSFOzM22rjl135sQmtstyjLBc5m2l7geBLFVT8g704xGzAXhJMyeL W0Ppqm6nQAjfs3UdfuZ7s0Nrx/p+LNZ1J2L2iu+Ri47LcVQ2PDe8cEzCd89CFBaxEOEg GV0g== X-Gm-Message-State: AFq9FYJRB4mLC/UsDapERubc+CxUAWMZsxkbk00lgaXV4YcMgJ5Ak0i8 xA4mU8iQk4rvn813kwwEA6ITw3uLdZIDgCMJCK29wZ0uzPrn/laQDOhn8E6gZ73Tjl0= X-Gm-Gg: AYBFou0wcfXSsrE9j+3sifZ0dXCoBA8MId3wNGcabKFRg7S8ek7jMUUCTyibL97zVln HXtUw4eUeC5ZGjrRCnoCP1HXL/+3ANwfQBie9CU51wIQnOXT2uPl9rlxMQNO+Xi1gUB8c1l+24D zjk9UOvzZdj2/BkqXkGVxfSRYX2Jg8pfAEcVnVNdRv4A+Ih+J9hBc0ATtCusjAC3WqEBVwthU4n CvsYg0OhRFmbDGrqVaOPrvGgyoVW+GdqIf8TXIhbLJlwxgUyXVjUL+SzrnU1Nc4mPDAHb9cEdRx +vrmjzGIfs6xmzqDCn9hcvDeF7OrzdvG+DlKMapP1mbBQfMv7dXF05Ib83lOPUFVyUe8UgafVmA ekoZmtdNw4qiO8NG2wlECiio/N5ewUr/T4mDZMsJtbHfcU6OCBucFSPVAqIHQAy8CX7BJAwl5Ox +A8oB3hnwQiVLS7JMqUXc+eYGrTRtyjRVL2lgQyhg0bZPv7+IKMUo1zMLpU7yRbRcLbnogodTbw 9qRYW6A5Cbn7LEChY7REDJIoGeIoGbkxYCqw00EJHQT1MuFKLoDYx4ZROUeKCaU6BIG7YQM5h0k dT5WzXAFku8NXSEhCbWtdWXptBZR2U311PyHdjYlt61P1xotBAMPrej9yLma/YYgoASs/rUSsGa As2E6lHMrkMg7OOPtRBDWzDg3Oge8JYnfyzsCnsLCDeF2vM6X1YcZWOvR0XAOawvDpVecmehyQX iNSLFlxPQCCOUjVpJe46kmnjdVizULGjgNyyWk8c703rqYod0ZK5qeC3YUpAo= X-Received: by 2002:a05:693c:6010:b0:341:3ca2:de2d with SMTP id 5a478bee46e88-34c6370d990mr940036eec.6.1790722668659; Tue, 29 Sep 2026 15:57:48 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:48 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 14/26] xdp-tools: avoid struct ethhdr redefinition on musl Date: Tue, 29 Sep 2026 15:57:11 -0700 Message-ID: <20260929225723.1046705-14-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130501 musl's and the kernel's raw both define struct ethhdr, and only avoid colliding if (or something that pulls it in) is processed first. lib/util/params.{c,h} and xdpsock.c, xdp-filter.c and xdp-dump/xdpdump.c all got this backwards in various ways; fix the include order/choice in each. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...d-struct-ethhdr-redefinition-on-musl.patch | 81 +++++++++++++++++++ ...dump-avoid-struct-ethhdr-redefinitio.patch | 57 +++++++++++++ .../xdp-tools/xdp-tools_1.6.3.bb | 2 + 3 files changed, 140 insertions(+) create mode 100644 meta-oe/recipes-support/xdp-tools/files/0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch create mode 100644 meta-oe/recipes-support/xdp-tools/files/0004-xdp-filter-xdp-dump-avoid-struct-ethhdr-redefinitio.patch diff --git a/meta-oe/recipes-support/xdp-tools/files/0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch b/meta-oe/recipes-support/xdp-tools/files/0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch new file mode 100644 index 0000000000..607c7c7038 --- /dev/null +++ b/meta-oe/recipes-support/xdp-tools/files/0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch @@ -0,0 +1,81 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] lib/util: avoid struct ethhdr redefinition on musl + +lib/util/params.h and lib/util/params.c only need ETH_ALEN from +, but including that raw kernel uapi header can +collide with musl's own : musl only skips its own +struct ethhdr (via __UAPI_DEF_ETHHDR) once its own header has already +been processed, so pulling in first, or from a +translation unit that later also includes , defines +struct ethhdr twice and fails to build. Switch both files to use + directly instead of the uapi header. + +lib/util/xdpsock.c already includes (which pulls in +musl's ) after also including +earlier in the file, i.e. in the wrong order for musl's +__UAPI_DEF_ETHHDR guard to take effect. Move the +include to after so the guard suppresses the uapi +header's struct ethhdr as intended. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/lib/util/params.c b/lib/util/params.c +index 5a5ee11..f4b143c 100644 +--- a/lib/util/params.c ++++ b/lib/util/params.c +@@ -10,7 +10,9 @@ + #include + + #include +-#include ++/* ETH_ALEN only; see params.h for why this uses the libc header instead of ++ * the raw uapi one. */ ++#include + #include /* XDP_FLAGS_* depend on kernel-headers installed */ + #include + #include +diff --git a/lib/util/params.h b/lib/util/params.h +index ab0ee4a..b50c259 100644 +--- a/lib/util/params.h ++++ b/lib/util/params.h +@@ -8,7 +8,12 @@ + #include + #include + #include +-#include ++/* Only ETH_ALEN is needed here; use the libc's own header (rather than the ++ * raw kernel uapi one) so we don't end up defining struct ethhdr twice when ++ * a translation unit also includes / (musl ++ * only suppresses 's struct ethhdr via __UAPI_DEF_ETHHDR ++ * when its own netinet/if_ether.h was included first). */ ++#include + #include + + enum option_type { +diff --git a/lib/util/xdpsock.c b/lib/util/xdpsock.c +index a893728..46379dc 100644 +--- a/lib/util/xdpsock.c ++++ b/lib/util/xdpsock.c +@@ -9,7 +9,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -17,6 +16,12 @@ + #include + #include + #include ++/* must come after above: musl's ++ * (pulled in by netinet/ether.h) defines its own ++ * struct ethhdr and then sets __UAPI_DEF_ETHHDR=0, which this header ++ * checks before defining struct ethhdr itself. Included the other way ++ * around, both structs get defined and the second one is a hard error. */ ++#include + #include + #include + #include diff --git a/meta-oe/recipes-support/xdp-tools/files/0004-xdp-filter-xdp-dump-avoid-struct-ethhdr-redefinitio.patch b/meta-oe/recipes-support/xdp-tools/files/0004-xdp-filter-xdp-dump-avoid-struct-ethhdr-redefinitio.patch new file mode 100644 index 0000000000..8c4c72c81b --- /dev/null +++ b/meta-oe/recipes-support/xdp-tools/files/0004-xdp-filter-xdp-dump-avoid-struct-ethhdr-redefinitio.patch @@ -0,0 +1,57 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] xdp-filter, xdp-dump: avoid struct ethhdr redefinition on + musl + +0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch made +lib/util/params.h include musl's (rather than the +raw uapi header) so that struct ethhdr is only +defined once. That only works if (or something +that pulls it in) is processed before any raw +inclusion sets __UAPI_DEF_ETHHDR=1 as a side effect of defining its +own struct ethhdr. + +Two translation units still get this backwards: + +- xdp-filter.c directly includes before "params.h", + even though it doesn't use anything from that header itself (ETH_ALEN + already comes via params.h). Just drop the redundant include. + +- xdpdump.c includes (which itself pulls in + for struct ethhdr) before "params.h" is reached + further down the file. Include musl's ahead of + so the guard is already set when ethtool.h's + transitive is processed. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/xdp-dump/xdpdump.c b/xdp-dump/xdpdump.c +index fa3aeb3..395226c 100644 +--- a/xdp-dump/xdpdump.c ++++ b/xdp-dump/xdpdump.c +@@ -21,6 +21,11 @@ + #include + + #include ++/* pulls in , which defines its own ++ * struct ethhdr unless __UAPI_DEF_ETHHDR is already 0. Include musl's ++ * first (it defines struct ethhdr and sets that ++ * guard) so doesn't try to define it a second time. */ ++#include + #include + #include + #include +diff --git a/xdp-filter/xdp-filter.c b/xdp-filter/xdp-filter.c +index 8e9d344..89286fc 100644 +--- a/xdp-filter/xdp-filter.c ++++ b/xdp-filter/xdp-filter.c +@@ -14,8 +14,6 @@ + #include + #include + +-#include +- + #include "params.h" + #include "logging.h" + #include "util.h" diff --git a/meta-oe/recipes-support/xdp-tools/xdp-tools_1.6.3.bb b/meta-oe/recipes-support/xdp-tools/xdp-tools_1.6.3.bb index b0571c2754..bcaa8c91c4 100644 --- a/meta-oe/recipes-support/xdp-tools/xdp-tools_1.6.3.bb +++ b/meta-oe/recipes-support/xdp-tools/xdp-tools_1.6.3.bb @@ -16,6 +16,8 @@ SRC_URI = " \ git://github.com/xdp-project/xdp-tools.git;tag=v${PV};nobranch=1;protocol=https \ file://0001-configure-correctly-handle-CC-when-validating-requir.patch \ file://0002-lib-libxdp-Makefile-use-cp-fRd-to-preserve-symlinks-.patch \ + file://0003-lib-util-avoid-struct-ethhdr-redefinition-on-musl.patch \ + file://0004-xdp-filter-xdp-dump-avoid-struct-ethhdr-redefinitio.patch \ " SRCREV = "8fbad9f0af621a22aa87ff2520b3735915b1f0fd" From patchwork Tue Sep 29 22:57:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99629 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 B9C79CA5FB8 for ; Tue, 29 Sep 2026 22:57:53 +0000 (UTC) Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1469.1790722670692499358 for ; Tue, 29 Sep 2026 15:57:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=s3Kg7CJq; spf=pass (domain: gmail.com, ip: 74.125.82.174, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-3115c4451c8so1125256eec.1 for ; Tue, 29 Sep 2026 15:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722670; x=1791327470; 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=EhK16U5EusfOvd5qFw6sh2DrQPK1hOuEr6Z32clDANU=; b=s3Kg7CJqHasorY05G1ZFtAhQLwVaBw2HT/K+nfFEWe74NLeDAA7IeqUaFiH5WOEsvb ILX2sdIyjnGjSRMrOw+hofweMNOLQ3erwSjvdYxIHVhXx4qiAlUvJy+dvfc5gIuClMhb JJu2H40dbl6O9+Hwb72FhsFXi+bmKltGSOF7MRi9gF+dtZk47JwuRj4jRioGPdSoOice yNTdzpnNZK6J1nWKfBjzMRUpJ4aPjW+Ms2BfFLhXcAleZvfYqJM5qhgnks6jHELGx6dT LU0UlItqoWhf4IgeGAnkqfGbEGSLG292eN6IvvF6jkjDglgsbbr40AQuNohSv49UYS2k BI5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722670; x=1791327470; 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=EhK16U5EusfOvd5qFw6sh2DrQPK1hOuEr6Z32clDANU=; b=SsJy41CiDug0bD3lv37yPZGtsK2BxuZosKcafkbWmLLdR0m/IyB6vkZ6f0UOsFQgN8 Uglvrs66FEXUGaHCpsX2G6cPtDtractlaBEHpLhkyjXHo6oyZz7TBaO9X0qaddpsule7 bpqDC4lAOjhXMUaYmjhIgnNrqgOVsZmHDfaLzLwTAJh6TkXWyizw+AAnkGqSeLHeL6+B p/njxu1KuEjPDkil3sNb8cZWFC5YHcFgACJ/rWnEnBPz5FirYHU3QSpw23mOVNH5cDZX n8O0sikVHrAxX9DX83dC5eP59Ua8mapiHD0JaRik4kLPzRLskzkN2ywwwciV2CpQ/Teu k3RA== X-Gm-Message-State: AFq9FYL7AADb5xHnIDOa4HX+y6GjTgk2IM/Dk1GaLnSn6j8TxsbdmsFP iDu7bbotaE1AMtcK1IMGE7685Qyeg+tE9IB/CdYSHs1gn33u51EKYLGuPCJ55B+JOII= X-Gm-Gg: AYBFou0QdNQ/tdNqbMpEgjl5gg+GQywzeKcc+tRkzyR1/+2v7D1sVSAfhO6Of6Cw/6s inxwYd7pFjO+0kJ3x2dU3/qmRQULXjcK0U3k5BNOoC3CK9TmvZVSv65Szem25ulX1VMQamTvRDO 8utEWjFtcU5ekTr5gH5Pr7XupU3Wm24NL5MAraUQOclCJNfJg85CRyNPW6JRN9MY+A3zT0QL5sl qoD3OW54/Kr+J4nL5WaZbHpf7GY3uxjM6NrvEW1pbY+sFHm4r/1YSbFkdTY6T8NIk44g8gbyMUd r+iNTQXMFC345qbirHF9nENep2qt8rg3wJRpaQisG13W1r+PAVzhp5QVIGBoHivceYZAM0u+MNx IQpvA1OAiv8uIoKh1wH+C0UEx/Ou39rbYqMCw/CnKa7xvXfrvp4iWFpOBGfqh8WrcMgVR7kzaak O2z/VVrmpDjjDY4AGFsUCF0aPZudL3paqS4oUudN5W3mQOLfuwmbjaHc1NuRDc3tj4gMMjuRwYI u6hHH4vgVZRyq5ajc3oHW96/7G/vuGBZpMk2AH5eH39d6XZpbXJytWQyqr73vgzVB6b+C2IqyUM vmXXt1xODlYsoKAH8Xe8WIPhshTwYPX2QMIlga14uT4387jf3ERJp4B8uhRW3RMoHA7+VZZrFeG IPt3N9t4NrDjmoFxuKCIoRafAfBIwPVZGApxAAJjz0MkS6MExqEAxAB8V2kX33XrxDRqPCbzy/O PSRJxQ8WNVP6CyySvCKAVOK9Z059477FUe5cfKUn4= X-Received: by 2002:a05:7300:cd08:b0:34c:9b33:f384 with SMTP id 5a478bee46e88-34c9b33f40fmr293948eec.11.1790722669874; Tue, 29 Sep 2026 15:57:49 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:49 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 15/26] tcpreplay: fix struct ethhdr redefinition on musl Date: Tue, 29 Sep 2026 15:57:12 -0700 Message-ID: <20260929225723.1046705-15-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130502 Same struct ethhdr / __UAPI_DEF_ETHHDR ordering issue as xdp-tools: common.h/txring.c pull in musl's after the raw uapi header has already defined struct ethhdr. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...ix-struct-ethhdr-redefinition-on-mus.patch | 43 +++++++++++++++++++ .../tcpreplay/tcpreplay_4.6.1.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch new file mode 100644 index 0000000000..827b083712 --- /dev/null +++ b/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch @@ -0,0 +1,43 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] common/txring: fix struct ethhdr redefinition on musl + +This #if was gated on "__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1", which is +false (and always has been) for any non-glibc libc, so musl always took +the #else branch and included the raw kernel uapi +header. sendpacket.h already brings in musl's own +earlier in the translation unit; musl's header defines struct ethhdr +itself and only then defines __UAPI_DEF_ETHHDR as 0, so the *following* + checks that guard and skips its own definition. With +the #else branch taken, is included via this file +without musl's guard ever being set, so struct ethhdr is defined twice +and the build fails with a hard redefinition error. + +Widen the condition so any libc other than a pre-2.1 glibc uses the +portable path (which both glibc and musl have always +provided) instead of falling through to the raw uapi header. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/src/common/txring.h ++++ b/src/common/txring.h +@@ -38,7 +38,17 @@ + + #ifdef HAVE_TX_RING + +-#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 ++/* This block used to be conditioned on plain "__GLIBC__ >= 2 && ++ * __GLIBC_MINOR__ >= 1" i.e. it always took the #else branch on non-glibc ++ * libcs such as musl. That branch's then races with ++ * sendpacket.h's earlier : whichever of the two struct ++ * ethhdr definitions is seen first "wins" and the second is a hard error ++ * (musl's defines struct ethhdr unconditionally and ++ * only afterwards sets __UAPI_DEF_ETHHDR=0, so must be ++ * included after it, not before). is the safe, universal ++ * choice here (glibc has always had it too) and avoids the raw uapi header ++ * entirely. */ ++#if !defined(__GLIBC__) || (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) + #include /* the L2 protocols */ + #include + #else diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb index 8259c4ef1f..5234da282a 100644 --- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb +++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb @@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8" SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \ + file://0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch \ " SRC_URI[sha256sum] = "cc3642816073fb1d96b3af36df4fb66c11f523da427f95b7b0c4c99deaa53afb" From patchwork Tue Sep 29 22:57:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99625 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 9F2B7CA5FAD for ; Tue, 29 Sep 2026 22:57:53 +0000 (UTC) Received: from mail-dy1-f175.google.com (mail-dy1-f175.google.com [74.125.82.175]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1488.1790722672456716639 for ; Tue, 29 Sep 2026 15:57:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=B6aDqWTg; spf=pass (domain: gmail.com, ip: 74.125.82.175, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f175.google.com with SMTP id 5a478bee46e88-343479e6005so879619eec.0 for ; Tue, 29 Sep 2026 15:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722672; x=1791327472; 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=cHhbwPUmfVrAXBNW3I4jiE7uALF0GZdkmdCVEJHG1y8=; b=B6aDqWTgd9Jqqm1BXdCVqnSA3oikg3mKHq5v+lP3SMCvINQOGxOaGrIB7kQ9hP2Xe3 BZUMIewt4SK9c+vmwY4maokw5TYdtotqiWe6qsT8l7bPFe9O7PsO1QgJGO++Jh58qtN7 0WP5JXLqDjWAg2FSysjdZ9yFC2vPlNP7VctPOhst0pDH5Cj593yGVPfhJx2Z/62465GM sXY1VIZhdFl7QZFld1GAODnS2czIOcRTORSh6M2UNQbCPnM53hbgI9tc7XqY8QjIPf9Z YUcBc+5Y0u8LbtDsm3vk98Ewpr724nga6Qyr7uo1PPIPbOiWSvaf9VLV+Llgs8NCiJKZ aLpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722672; x=1791327472; 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=cHhbwPUmfVrAXBNW3I4jiE7uALF0GZdkmdCVEJHG1y8=; b=rKI1V8dldiCdSLUc5x5JynMjr77NcSDw2kGhN/AnPv0qZugrO+McRH5cwoP//eU9eA tVaeVzmHcqk08zBWc5JBIIJYSjkk6MWAot5RFrbFDLxGWSocxCdw/xm1UEF6zg7lPNTF o1TToSrazerkwPlrQLr+HuWSU7HXCE7ytVw4IdhfqG9xUp16wklWgoq0rVmpHLKnzDUS ib3faMoAeVKtKlZvWQ4njkSCfN0JR3yaeoDItOxPFqyhvPHWd/A4blQdpEuGdq8weM3s hPAaaFjmmCBm1AWog/kxZCBsXHAwsB41RTQ5r6fHZOlGfKnjz18XZ1Qo3TEOtw6w5r9E EhrQ== X-Gm-Message-State: AFq9FYLgYXpaM/vAEoVYFvOi9pq0aA7OGs4HLvVN4oDKOsLQVxjB7q/g pg2rOgwTLNNMr8frfCCh5X3urLKD9bpXWbeOgeUbsnEyzJFttbA42zSoSh9FBtg541I= X-Gm-Gg: AYBFou3DnEugKi9ShtBiIDAYZGr5nFC9PcybNbFG77448PiQVCtQgPqHDKdC/M6b1Nv sNeSq4Fyt3lYHWzkyMEolFeXxSYWC1yzOtbcBMKu1JWE6g1YhX4/d5z3EtuyaFTOXVTRCkfOCao vE0vJlgACRM4sjqX/N065DnDjD06Tv1pkPLhBAzj/5BawDcSFooTP/PjaDHVWcgy0MpZWpqcDyf 4jNuPucrXU+H2UQpfdyzcB5OXIEM7QyzZqDPbDSaYEkK8D5P3mXdW3U2NP0J3qduqVKbHqBKS7k 7yLb39wBWU4aql2H443QUY1xFwdxBCupqbmYRT1bKtDZc74wElNYxAS0VJXmSI/3wbbT090U7JF c7SUSXw0YNFxPIUSi/tRGrYJSlqb0uJrh5fBLFhh7Hhbv1J2Tncbz5stNjH9haNF3eguNQnuR3E 8Vo6w1umonSkppN55iOqfdGlbPvVXnH4UJLOe+f4tKWoOHQ+C/RyCvksdRKGcMY+HjOQ6m0tTvt IUvvBoHT65eeswNxGOcFVLXPwHn2QZTdBTG+/6BfE1QQkiJUvjcp6UqmYkd1WtNTxfZ7RY6O5tJ /Da08MLSM1xr9cj94MuVlh+Dm3jvGivUvTYLtk8w+wB26NkfEIvhWQP4GGbYOlbSv+z5vx950Gz ATl2YuDjpxTckx3pK+inzhoYQ0R396yvoDQ2hW8krB0txfYvQGxIU7gcTbP++UIYvrjWfPCKA1q Is+WCr8Utn4nq+sGbVvkSHPkAn2hKP1hzVrQaVUWw= X-Received: by 2002:a05:7300:ff44:b0:343:562f:a671 with SMTP id 5a478bee46e88-34af7c523f5mr4067695eec.6.1790722671661; Tue, 29 Sep 2026 15:57:51 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:50 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 16/26] leancrypto: drop redundant include Date: Tue, 29 Sep 2026 15:57:13 -0700 Message-ID: <20260929225723.1046705-16-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130503 secure_execution_linux.c includes both and ; musl's already declares everything needed, and including the raw uapi header afterwards redefines struct prctl_mm_map. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ..._linux-drop-redundant-linux-prctl.h-.patch | 35 +++++++++++++++++++ .../leancrypto/leancrypto_1.9.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-crypto/leancrypto/files/0001-secure_execution_linux-drop-redundant-linux-prctl.h-.patch diff --git a/meta-oe/recipes-crypto/leancrypto/files/0001-secure_execution_linux-drop-redundant-linux-prctl.h-.patch b/meta-oe/recipes-crypto/leancrypto/files/0001-secure_execution_linux-drop-redundant-linux-prctl.h-.patch new file mode 100644 index 0000000000..dd6db04c2d --- /dev/null +++ b/meta-oe/recipes-crypto/leancrypto/files/0001-secure_execution_linux-drop-redundant-linux-prctl.h-.patch @@ -0,0 +1,35 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] secure_execution_linux: drop redundant linux/prctl.h include + + alone already provides everything this file needs +(PR_SET_SPECULATION_CTRL, the PR_SPEC_* constants, and struct +prctl_mm_map on libcs that define it). Do not also include +: musl's defines struct prctl_mm_map +unconditionally, and defines the identical struct with +no compatibility guard against it, so including both is a hard +"redefinition of 'prctl_mm_map'" error. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/internal/src/secure_execution_linux.c b/internal/src/secure_execution_linux.c +index 7264edf..df57a88 100644 +--- a/internal/src/secure_execution_linux.c ++++ b/internal/src/secure_execution_linux.c +@@ -17,7 +17,14 @@ + * DAMAGE. + */ + +-#include ++/* ++ * alone already provides everything this file needs ++ * (PR_SET_SPECULATION_CTRL, the PR_SPEC_* constants, and on some libcs ++ * struct prctl_mm_map). Do not also include : musl's ++ * defines struct prctl_mm_map unconditionally, and ++ * defines the identical struct with no compatibility ++ * guard against it, so including both is a hard "redefinition" error. ++ */ + #include + + #include "ext_headers_internal.h" diff --git a/meta-oe/recipes-crypto/leancrypto/leancrypto_1.9.0.bb b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.9.0.bb index 566f44fb76..5cd9f02254 100644 --- a/meta-oe/recipes-crypto/leancrypto/leancrypto_1.9.0.bb +++ b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.9.0.bb @@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = " \ SECTION = "libs" SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https;tag=v${PV} \ file://leancrypto-tests.sh \ + file://0001-secure_execution_linux-drop-redundant-linux-prctl.h-.patch \ " SRCREV = "0110b781707c7bdde88482933811387b744d21eb" From patchwork Tue Sep 29 22:57:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99632 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 35C09CA5FBE for ; Tue, 29 Sep 2026 22:57:54 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1470.1790722673568878375 for ; Tue, 29 Sep 2026 15:57:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=FT8MZe4H; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33bfb26865fso4691986eec.2 for ; Tue, 29 Sep 2026 15:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722673; x=1791327473; 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=qpjI51PL8jvKNbd6LU/OOAIaCrE/RoE+KkF2HYtv0WU=; b=FT8MZe4Hd563NM6ytGi/Sq2fNu2jxergby586qGEssezyq13Mpk5tu6WNyvUx1TREP Opp54Gk4lD4tESKqzgizWP/w6cM3BFuyelKJCznWzKs+WDjunrdMTft2LV5jNwYi9Cjv Q1PatJLzy3P7d3d87JGww1gBZDP5zriawCX7s++lfM8wFMwPU/HEjgXzSlAH8LyzDsPm KobSvI2mosfN8IpxyVCJOOLwNP+S/2dQSRp0U3CiXZ9/cqHeIvsOflsvZMf7x3DmaJm3 6xYggD0hWZN7mFSmQxr4cgZ4fPOaVsE99jLgiYamA2iM7XLcQ4ifb0uRLybXGIoXy/aP BNMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722673; x=1791327473; 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=qpjI51PL8jvKNbd6LU/OOAIaCrE/RoE+KkF2HYtv0WU=; b=Mqv8Ait+Cv5pe0FGZzcPB41a2gb1+8g5SuLm1F5foWbWhkxCU8VAAU7JmO0lGxFpQ5 RA8nx45lIhkCDw26HGRQANU96i/Xjh3GmTD5hj1XoNQfFZypCtmvRTwuUesh0uuUiHVx TrV73kJVRhMv1Uwkq//dbHlCBbONlqtmc7rPzvKl30JL0dtL0wMBya9vMAw+dH2gY4WZ 1AJsCxW9cg/pPMx8tHf438xlJ8/3UdHxMWxigmgOvlOGAknw1LmmWMlDkWDTImFKESqM jDXDrJLnAKBYAZwOnH7MYwBWxGGVZBkWmOWrSRQM2btRtIAOtyDflMQIW7I+FhVIptb6 AEuw== X-Gm-Message-State: AFq9FYJ2Js+Fm3zrTL8De+ZTZ7nkE8gB30LLwPsu69xpYvJyek+HWfFs Us3TMLVN5OYOqBJ7elot/6iVYdeEqxWKWMp0rX6Vg1nDtyuEg5nrTksc5X+SyNaRf+A= X-Gm-Gg: AYBFou2hwnV6cdiTYSH61+e5qf2UeVgbPRveXvRZVAC4EdSWhkh4GL2bElInKNkNOfH eEiXuvUlk21uAo+K0i8n+h46LWovhF0Jsx0pVLJppRqmcBMp7zSM5q526sL/J9F1x10QryImwIA 6cE/Ej6AQmI4YAZEkV1i65UlJJHVtp8Y5MChu4g6PRc1fXSOTfYkVHHel322Car6VrAYYzx4Ny0 PiSW16LHyxkwagIRf48/qf8jhNM6FJBgTye/wqYDVcAEMTkBpxiSQQfdmOyJYeKWRHR48f510z3 BoZnJJa9QRhzzpjjii38rvyv0c62KNDGh7dwSIAq9OOLH79cv+wcW7TACa5zxbLbfHvCyRcwmH8 nsCIwopcr0j6ewAtrbQknPg5RqOqxWtfjUh8esH6B/lH9ltAtEtaZxEuZVbaSXpLGKg+oEfx/SZ z1NwmkHhFNj6V+iNZim21oALiFPxwXHTenOTLRkbu4gnn41rwuuDLRO1Mp6hIHwxghB3Zi9V9lb eeb2lxPIxXZnqQVuFndE7nyIcxupkQguxw90hxSXLANcR2LBve95f08oEeRbzv4LxxIBhBp1q3x 5ISfM5P8M5sW8C2Y5LFyIcwqftKGykKW+SvYOijHDRm5olnWq5945MsZIzkIFZH5Z4KFSkxzen3 JQwFsrHCycxRe5sNyjmOGgeSqIxmuXK/itYATbxCiSPs1PtY5WuHLmGENDjDNnMeVHtVjPj6jQg h2Uth4NM8lMcGj8k75LBsFsJBNSiW+UM3kGiXvo7GBdv8Ee2JV X-Received: by 2002:a05:7300:6021:b0:343:bc3c:6c38 with SMTP id 5a478bee46e88-34c63deabc5mr980283eec.31.1790722672834; Tue, 29 Sep 2026 15:57:52 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:52 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 17/26] libmodbus: pull in TCGETS2/TCSETS2 from for musl Date: Tue, 29 Sep 2026 15:57:14 -0700 Message-ID: <20260929225723.1046705-17-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:57:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130504 modbus-rtu.c uses the Linux-specific TCGETS2/TCSETS2 ioctls, which glibc's / chain declares transitively via , but musl's don't. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch | 35 +++++++++++++++++++ .../libmodbus/libmodbus_3.2.0.bb | 4 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/libmodbus/files/0001-modbus-rtu-pull-in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch diff --git a/meta-oe/recipes-extended/libmodbus/files/0001-modbus-rtu-pull-in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch b/meta-oe/recipes-extended/libmodbus/files/0001-modbus-rtu-pull-in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch new file mode 100644 index 0000000000..e584f7609c --- /dev/null +++ b/meta-oe/recipes-extended/libmodbus/files/0001-modbus-rtu-pull-in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch @@ -0,0 +1,35 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] modbus-rtu: pull in TCGETS2/TCSETS2 from asm/ioctls.h on musl + +When HAVE_STRUCT_TERMIOS2 is set, this file issues the TCGETS2/TCSETS2 +ioctl requests together with struct termios2. On musl, +only declares the plain (non-termios2) TCGETS/TCSETS request codes; +TCGETS2/TCSETS2 are only available from the kernel uapi ioctls header, +so the build fails with "use of undeclared identifier 'TCGETS2'". + +Include in this case. It is safe to add unconditionally +here: it redefines TCGETS/TCSETS with the same values musl's + already uses, and glibc ships (and already indirectly +includes) the very same header, so this is a no-op there. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/src/modbus-rtu.c b/src/modbus-rtu.c +index 87e0887..1e98e74 100644 +--- a/src/modbus-rtu.c ++++ b/src/modbus-rtu.c +@@ -14,6 +14,12 @@ + #endif + #if defined(HAVE_STRUCT_TERMIOS2) + #include ++/* On musl, only provides the plain (non-termios2) TCGETS/ ++ * TCSETS request codes; TCGETS2/TCSETS2 (used below with struct termios2) ++ * come from the kernel uapi ioctls header. is safe to add ++ * unconditionally here: it redefines TCGETS/TCSETS with the same values ++ * musl already uses, and glibc ships the same header too. */ ++#include + #endif + #include "modbus-private.h" + #include diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus_3.2.0.bb b/meta-oe/recipes-extended/libmodbus/libmodbus_3.2.0.bb index 1eddfb8bd1..748a87dc14 100644 --- a/meta-oe/recipes-extended/libmodbus/libmodbus_3.2.0.bb +++ b/meta-oe/recipes-extended/libmodbus/libmodbus_3.2.0.bb @@ -6,7 +6,9 @@ SECTION = "libs" LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "git://github.com/stephane/libmodbus;branch=master;protocol=https;tag=v${PV}" +SRC_URI = "git://github.com/stephane/libmodbus;branch=master;protocol=https;tag=v${PV} \ + file://0001-modbus-rtu-pull-in-TCGETS2-TCSETS2-from-asm-ioctls.h.patch \ + " SRCREV = "a9b025d12289855490b10d77461c99e001abfc0f" From patchwork Tue Sep 29 22:57:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99633 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 37DA8CA5FAD for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dl2-f33.google.com (mail-dl2-f33.google.com [74.125.229.161]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1472.1790722675157765969 for ; Tue, 29 Sep 2026 15:57:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=ijJA3GSt; spf=pass (domain: gmail.com, ip: 74.125.229.161, mailfrom: raj.khem@gmail.com) Received: by mail-dl2-f33.google.com with SMTP id a92af1059eb24-1438e88300cso4596345c88.0 for ; Tue, 29 Sep 2026 15:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722674; x=1791327474; 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=qAq08clOhz8EQ3Q4ty9ApsLTPRgGC+bsGynhOnKfy4Y=; b=ijJA3GStM72AT7EHfhvsE9OUCgl+90B4NGi3E3ySCb4NAAM5XdiFsAltPA+Zfs7AHt vDkltAwH5K7v8FhIso0TaoUf5XZwtcYeV47rSN5OBriFJWrpDCnixN8LTlfFXKzEqP0a z6ujyvN+zNNqsEF0dbYgVG6sRIPut7kA2l3IPhVcTVVESLnPFgd/Gx/hLOXC8Xz27+qV 2k2vC9kvWxEBHfZfLxFY2EmrbJrwGHfA//XqmAZ8aEmcYey1+602Vz3NEAwm4yFVTnQ8 us+MFDFhoj3kaUvnzXyC4mUjm41JgY9EZ4BrOoaXsEf9A1nQMrTS9BtOdLixyvfc3G9K 1H/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722674; x=1791327474; 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=qAq08clOhz8EQ3Q4ty9ApsLTPRgGC+bsGynhOnKfy4Y=; b=y6SjBb26w/2rOYIVMFqz5TI6tWAwbJKUm+tiJkFweCH5pKQGRbnl7/lZ7y4spANFbA U09TZExEm0sRJxheDnGdBJFSpIaM40PZV8HSovlZoNp7RX/ivZ74E1xR8yG0dUGJbutb R6AsiHwMhcZEWGzIoHVsAwPTYYNCWLf2zLXySbLTjNwXT7EmxxQp82VGPodQA9YeuYxz 5uYRbkmDhoa9/9/2PME482GTmhYs8TBk74t53QksaK+XRiaGsi58m+2lo9F5R7y+QKxJ yAPmi1qmN1wxcWo254JFIgowbnCDZ38JhvYSH2OfaMuqfRoDqpuCd+6V7O33VAJuMHSD rT8A== X-Gm-Message-State: AFuF++nLJ62Pnbj0iWnMVGJ/dOU2HA2b9mSusFNxswChYcboWiXEMLhd ycEfgrz1DuJCC5Z9c0L8Z/1wFTnoXSFgfAoD5NOr7o1pln8gzI8dAqopdAbp8GsWLYM= X-Gm-Gg: AYBFou0LNleobNjtPDDRNccH2kiVZK85xtNzOw3l+VnpzLLZgoWV8IZxZkWNmM5HzZy KT+XfqX64QEWKQHC4H4qyhF5x6PObgEQd/uEOrpS0ktfTD4G2oJSCQdaZF4zUJ42qNQE9+4M2LP sCQIpHVEY9uxEqEe2535paj7JJtmkMyiRg8jbGpnwhcSO14KsUwhaH1bG9ZIWd/PnOmDRWBVDyI 0AYaOZ5oYrBz8M97dK+O+yYQfMPtsMmkwp30lAbddX5IS6iPi9Lieeq3Y7tE5BvXfnPybL9xngA rjcQpgzD5743FQdEOpoYaR3DPgKjXwlYTwacPEYw8sEKyq5qdJcBZCvqjGtJSAsvdzeffIUhLlm b6u/MAtJsIRRwPlHJzxVFZ0Ep2LRQYzql4RUFiYelzs6vfZ/vh30ouTOPcwP+XZxww8WL58yE0u ZEwQX8Eyy/NV4cdukZcFNnlCn8E/mhIuX1jhHssnFUAlSOTTR1wJmiJY5srhWiQC6FzzV6YPi+q qyQiG3imJILDbYTWS/QVknFUZdgBD9ps02+dENj0cjMtQoomo59+pkHk0beaNHYtGwgWLTv/AIO S7Upgha6jt4tld2U0XUUlnvLvilC4swqS6L7n3FbS3gKIlzWvZsRxvRqBTmirN1Ml+55r7S9Fld nhjrnho/isSwdDoLH9bmh//EgW0nAVqlO/ocTzptByIFmT6K6yPtnv7LYDMtBAGYdbHZyONjSIX dY2Zf7R/Kgmd8tTIWpVKaLQcOP8hR0WbAI0TvcUw== X-Received: by 2002:a05:701b:2607:b0:145:15d:3717 with SMTP id a92af1059eb24-14c9ef30178mr762506c88.10.1790722674282; Tue, 29 Sep 2026 15:57:54 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:53 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 18/26] spdm-emu: provide AF_MCTP fallback for musl Date: Tue, 29 Sep 2026 15:57:15 -0700 Message-ID: <20260929225723.1046705-18-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130505 spdm_emu_mctp_kernel.c uses AF_MCTP, a very recent Linux socket family constant that musl's doesn't define yet. Add a guarded fallback definition. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...rnel-provide-AF_MCTP-fallback-for-mu.patch | 45 +++++++++++++++++++ .../recipes-security/spdm-emu/spdm-emu_git.bb | 4 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-security/spdm-emu/files/0001-spdm_emu_mctp_kernel-provide-AF_MCTP-fallback-for-mu.patch diff --git a/meta-oe/recipes-security/spdm-emu/files/0001-spdm_emu_mctp_kernel-provide-AF_MCTP-fallback-for-mu.patch b/meta-oe/recipes-security/spdm-emu/files/0001-spdm_emu_mctp_kernel-provide-AF_MCTP-fallback-for-mu.patch new file mode 100644 index 0000000000..80aa78bc08 --- /dev/null +++ b/meta-oe/recipes-security/spdm-emu/files/0001-spdm_emu_mctp_kernel-provide-AF_MCTP-fallback-for-mu.patch @@ -0,0 +1,45 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] spdm_emu_mctp_kernel: provide AF_MCTP fallback for musl + +AF_MCTP (Linux commit 583be982d934, merged in v5.15) is a newer socket +address family. , which this header's implementation +files include, assumes AF_MCTP is already declared by the libc's own +socket headers and does not define it itself. This musl version's + has not picked up AF_MCTP yet (its AF_* list stops at +AF_XDP), so building the AF_MCTP-based kernel MCTP transport fails +with "use of undeclared identifier 'AF_MCTP'". + +Provide the numeric fallback (45, matching the kernel's +include/linux/socket.h) so kernel-mode MCTP socket support still +builds against this libc. Drop this once the staged libc defines +AF_MCTP itself. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/spdm_emu/spdm_emu_common/spdm_emu_mctp_kernel.h b/spdm_emu/spdm_emu_common/spdm_emu_mctp_kernel.h +index 4c0eb2b..5feb99f 100644 +--- a/spdm_emu/spdm_emu_common/spdm_emu_mctp_kernel.h ++++ b/spdm_emu/spdm_emu_common/spdm_emu_mctp_kernel.h +@@ -7,6 +7,20 @@ + #ifndef __SPDM_EMU_MCTP_KERNEL_H__ + #define __SPDM_EMU_MCTP_KERNEL_H__ + ++#include ++ ++/* ++ * AF_MCTP (Linux commit 583be982d934, v5.15) is a newer socket address ++ * family. assumes it is already declared by the libc's own ++ * socket headers and does not define it itself; this musl version's ++ * has not picked it up yet (its AF_* list stops at AF_XDP). ++ * Provide the numeric fallback so kernel-mode MCTP socket support still ++ * builds; drop this once the staged libc defines AF_MCTP. ++ */ ++#ifndef AF_MCTP ++#define AF_MCTP 45 ++#endif ++ + /** + * Register the Linux kernel AF_MCTP IO ops and reset the peer address state. + * diff --git a/meta-oe/recipes-security/spdm-emu/spdm-emu_git.bb b/meta-oe/recipes-security/spdm-emu/spdm-emu_git.bb index 2a9735fc7c..33c02dae72 100644 --- a/meta-oe/recipes-security/spdm-emu/spdm-emu_git.bb +++ b/meta-oe/recipes-security/spdm-emu/spdm-emu_git.bb @@ -6,7 +6,9 @@ HOMEPAGE = "https://github.com/DMTF/spdm-emu" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=ed4cfe4688e1ac2cc2e6748766571949" -SRC_URI = "gitsm://github.com/DMTF/spdm-emu;protocol=https;branch=main" +SRC_URI = "gitsm://github.com/DMTF/spdm-emu;protocol=https;branch=main \ + file://0001-spdm_emu_mctp_kernel-provide-AF_MCTP-fallback-for-mu.patch \ + " SRCREV = "ea77f25410cc01098320c0b44b3e150192ec4d5e" # Upstream release tags are "X.Y.Z" (newest 3.8.0). From patchwork Tue Sep 29 22:57:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99638 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 8C151CA5FBD for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1490.1790722676206570866 for ; Tue, 29 Sep 2026 15:57:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=XFxFs5JG; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33e46a15703so4541233eec.0 for ; Tue, 29 Sep 2026 15:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722676; x=1791327476; 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=mpVWx64ZIgwm2pJzUZV20f/YZB0cUfixaNP5SQtIYQE=; b=XFxFs5JGUQ1/Q5FtF6bwgisXWnSO8J5CNfiA22wNyhXK7ChKCCAPW8VigsXoDGKrW3 ZGLbrezuDp5eNcIawSpmUJuLnt7Heov9exE3Yh7rcUZbKOuAotWA7uppeUyzklkPYgcC HnwKKjpDUVMeQ5ZuK/WDxw2/uTm0hqonJwU4OfMSj17Ia2qFwymKpb6Y5f8W59DCgp7q I/T5lB6jioipYCnwA6mC0vJnsz7EdCEr0AZYPKz0XS+LDmfyzNLTuWW7aew9OSmApzu6 hMQ1zZcy2N/VUj4/lgrdrrvqcz/NhWcBH7pfmbp4IWgWWHry0/fvd0P9/4OkHpvyPK+B 2FVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722676; x=1791327476; 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=mpVWx64ZIgwm2pJzUZV20f/YZB0cUfixaNP5SQtIYQE=; b=egleZIiIdzHU7aoMHEN4hgVxA1eAU/BxJuhcd5GINo60smWTQbfcLYKRzSIMK+SD3A U86j9G+EaAhsjiCaxi1n4agkByynvtrwVgMZem1CxiXiHp3AWWzId7hItCPnICoNxaMn 6qNE25S6tSKWkxj3vdobbfdn92YH/0hhuKlavmaXWy1i4jN8r+CA0dLu0WPHjoF4TZEy yimJjV7WMkI/rFDw6q9qqZTE9plGbainptJ7BSU/1FwFvJ4iv5feZLGH20kYperwWVYj 5POaPYBVjkyaWd/It2WOuJUkflvRRjoDsIycjaRzg0irFKf86kU3P7cvkRPwzw725ixk vqHQ== X-Gm-Message-State: AFq9FYJfYOn9uf2TOUDEJYV4qeWnAhDLF2Ybj+XJ2/FDVr0GEzFRM5ih zGpm35po/6kbiLNDuv290poYGM9sLaPQ3H78/+NjYAk3cbI8biLF+/mtNjf8wXjpe8Y= X-Gm-Gg: AYBFou3ld6RBL607dNQR1/1JlVt2/Sh8ui5SnDkY0ukNhhuYP3zx7QT+ZtmX98stbMY ZLFZS3bt2t/QIu6zza3/VK6TG5C5bQxKVWKQW5HRgEJ/5xmJZmHID6OYWryylREu+0QaaYY2DY4 OZrdC3yC5NLSa9F0P3YtgPDv2NlIepXxdYaO9HREYXrlUsEIQUMZIfrHf6dZcrFH5HfQ0cPrD/o 3rzux2w30GMryk/G6anuKhwtRX5XPiD5FTwVJxPi94DLwYBUGdXJ5rsOM5DgiaEQ2ucQxQdMrKz ky4EIMbGKH6lReS8DULSWy3/U+jcVJHnzR8o6JvXeBjdQXtRaljsOH3e+twM65LODW+wf1c6nj5 4H9V/gPWAu8wrR36659zroMkHdAo0SNKJ/B40H1/UnV6iACWO2wRESguUiPX98T5A6uWx0v+Enr 5p6w9MUQHsGlLHIgw9sI6UOsahsSrGU2yKaPdg1uRijKrzbmsy6VmoCTPLz+TmJ1pafT1GGM13p beXT1pJlKZ9JaXKCFgRUcqeIEgTNwpjIjGDt23FJKK50wYZ5WM+RM8+QCVDD1hS7NP1hTRa57gW eLEl3yvWB3WWcnE82P1AQBQXtzH8SeaU0oSgT3FOFFM4jMz8sciz+qra1cLuDVZTeV9EdA+AA91 Bdqx1q4ioWYlCM56E2CRYpzJsf8D7w2D5xweQb+TP3eh2Alhm+6ZsmVPqHFjSyWvQbvltNYO2JU L63BCeZ0IGz1WfwwAE364R4Cud8DXjwUuF/02Akjc= X-Received: by 2002:a05:7301:9c:b0:344:7aad:8eb5 with SMTP id 5a478bee46e88-34c6672f3damr903870eec.23.1790722675425; Tue, 29 Sep 2026 15:57:55 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:54 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 19/26] netcat-openbsd: define IPTOS_DSCP_VA for musl Date: Tue, 29 Sep 2026 15:57:16 -0700 Message-ID: <20260929225723.1046705-19-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130506 netcat.c uses IPTOS_DSCP_VA, which glibc's defines but musl's doesn't. Add a guarded fallback definition. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...netcat-define-IPTOS_DSCP_VA-for-musl.patch | 34 +++++++++++++++++++ .../netcat/netcat-openbsd_1.238.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd/0002-netcat-define-IPTOS_DSCP_VA-for-musl.patch diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd/0002-netcat-define-IPTOS_DSCP_VA-for-musl.patch b/meta-networking/recipes-support/netcat/netcat-openbsd/0002-netcat-define-IPTOS_DSCP_VA-for-musl.patch new file mode 100644 index 0000000000..2b642b26b6 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat-openbsd/0002-netcat-define-IPTOS_DSCP_VA-for-musl.patch @@ -0,0 +1,34 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:14:39 +0000 +Subject: [PATCH] netcat: define IPTOS_DSCP_VA for musl + +netcat.c uses IPTOS_DSCP_VA (the RFC 5865 Voice-Admit DSCP codepoint) +as one of the recognized --tos names. glibc's defines +IPTOS_DSCP_VA as 0xb0, but musl's does not define it at +all, so the build fails with "use of undeclared identifier +'IPTOS_DSCP_VA'". + +Add the same fallback definition already used here for the other +IPTOS_DSCP_* codepoints missing on musl (see the neighboring +IPTOS_DSCP_EF block). 0xb0 is DSCP value 44 (decimal) shifted into the +TOS byte's DSCP field, i.e. (44 << 2), matching glibc's value. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/netcat.c ++++ b/netcat.c +@@ -89,6 +89,13 @@ + # define IPTOS_DSCP_EF 0xb8 + #endif /* IPTOS_DSCP_EF */ + ++/* Voice-Admit DSCP codepoint (RFC 5865): decimal 44 shifted into the TOS ++ * byte's DSCP field, i.e. (44 << 2). glibc's netinet/ip.h defines this as ++ * 0xb0; musl's does not carry it at all yet. */ ++#ifndef IPTOS_DSCP_VA ++# define IPTOS_DSCP_VA 0xb0 ++#endif /* IPTOS_DSCP_VA */ ++ + + #include + #include diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.238.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.238.bb index 01eafa06d0..e7272dc0a9 100644 --- a/meta-networking/recipes-support/netcat/netcat-openbsd_1.238.bb +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.238.bb @@ -10,6 +10,7 @@ do_patch[depends] = "quilt-native:do_populate_sysroot" SRC_URI = "http://snapshot.debian.org/archive/debian/20260519T203124Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \ http://snapshot.debian.org/archive/debian/20260519T203124Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-1.debian.tar.xz;name=netcat-patch;subdir=${BP} \ file://0001-bundle-own-base64-encode-decode-functions.patch \ + file://0002-netcat-define-IPTOS_DSCP_VA-for-musl.patch \ " SRC_URI[netcat.sha256sum] = "9f72a37d85dec1366309fdb0172be4e67e09ec26e89f13156315149e17c02479" From patchwork Tue Sep 29 22:57:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99636 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 8752ACA5FBA for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1474.1790722677705575336 for ; Tue, 29 Sep 2026 15:57:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=rwI7KIn9; spf=pass (domain: gmail.com, ip: 74.125.82.179, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-343479e6005so879648eec.0 for ; Tue, 29 Sep 2026 15:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722677; x=1791327477; 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=IaRt9KYHoEssABYH1p8pYazjI7+hbklDAMkO4dR4h3E=; b=rwI7KIn90yj9aasV85HhECbdRMyBxRn+ZkD+c9aF1S7V3slUeXT2YT0tfAXWDBDlvt grtnl1aUVXOf+VkZwR/xR9t1eamDIDslsAP+py/mhSZiaPMwf9yvtLy/PsLlVE5dhL9R bhEjMXr+VPUnjkKxxA80FgB3/w3wgbCl22Xms2NGgU0Np+JGavYXf/QGKo2f/SRcjXT7 yU6VnnghVSmp86GvqXeT21hvlX+ufQfNN9PEEvdMzBcujlAnG/M+fpS9NvLgfN0vgCAC H408iA81hJ93JJwFh7r2AwTnarInAL7CNpWdZm92ZIs5yFwmr1mQw//VcJZzpCfbd0D/ SvgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722677; x=1791327477; 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=IaRt9KYHoEssABYH1p8pYazjI7+hbklDAMkO4dR4h3E=; b=TNeF0G6anLBQNiar3EaajuOAwTpUjAFLQjT1P6cKbYaDDGiEReW0HxaOUgeNGlZXvF S0y0ksbEBlPZW6/j6kcxG2avaRUHBcR5bdWnyx8oRHKdz8DlA8D/IO6gAjNaSinR+X1o Bjia7UkpPZd5oF/Mk4oHrOHySQ1SQNIoiRlr04Guju/WNTPfrXKUO0iKj3me0hfL2CwM h22vUdRE9/X4v7nm4KmlbmWpdxuG4Mn3YzoWNGj17H4VFs2QjOCgUG0b7crILGIuRw31 B+MROse0M6OAjgIQopnC9B0dmnjQucRDoR/4KjOOqRBWbZDcUxeMp5CCZvOntHckCVf8 7Pew== X-Gm-Message-State: AFq9FYK+wY9CCxjJKCk/t9Vrm9W50HNzVBYErrg0Gee5KPq8MGNq3Q1u kljZhUjCx2r1mJqJkA534wP8lryBhNaUYE3LFF6uZ4yV0Qt4ioSiN4K1X+m/v3G43yA= X-Gm-Gg: AYBFou3QJIirVa/oOXC8YdzbL70d60B5mbPZjrkJ46tQAttSFHvKZFMiccY+C8pgwFm 47Sltx7J+W9NHmS/e5TMpA5pmRegp8mohIsw9CIvY0U6+jm40+ILz/3E17ic0GbIfAYo4KxRN7j mKnB3UalLDiaAjVotCtKle7Zn8bttGJ8QVnYJA+Ws7+E/DyZTEq3WSUszi4IZvrLU391R/qfR7S H0i9wedJXlRstgr6baZxvD4B9igOytKUaN/RQQU4P6Tj5VJv5T6+SSj0eYkiIyq4NuK0qeciXsq LFijbmoMi4oIHe5q7TOcD7tqhyQBZfxSk4veE5e8ytHrLcqzU7ECGjlXLj0Phd8efXA/gGWwzma arN72uZPWIznHTvivDdiyjira+zGxvmTEAslIGg97KKZafAs7ecSNRCxSm6V9NvGIEP06joL+jM aZBbFPnG2TUbbbxHJ30N5iBe6KDNwHmkOTflv6xw2R4MOmHPPf/6kodp6IiOhptlxaLx8EhgyK+ degrYygdPAyyLEygnmSEwiX0UKxEM5g1rjXl9HvrbxrLI+mlLCrmdP3IMek3tCqqN+5WfcI/hsW bVUzXl5FrxKyjFV7WlUrkNW32XA55zFBggplwydRBxRYgKs+fqit0FUufMviNa57lYwzT1MN/N5 UU5Q1TRsYL/DoKR44i61UrbVbwAwu1y/qhXe1QhOSPyv46GclhOLqNm0tBraKE7Dpo9yy9GNNVS nXaiyVVeXnKMXOOzQgBoQIiRgZSmQIaYWfRTlHHA== X-Received: by 2002:a05:7301:dd92:b0:341:c383:9afb with SMTP id 5a478bee46e88-34af9303d98mr4205717eec.20.1790722676913; Tue, 29 Sep 2026 15:57:56 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57: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 20/26] bmap-writer: cast BLKGETSIZE64 ioctl request to int for musl Date: Tue, 29 Sep 2026 15:57:17 -0700 Message-ID: <20260929225723.1046705-20-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130507 musl's ioctl() takes 'int request' where glibc's takes 'unsigned long', so passing BLKGETSIZE64 directly trips -Wsign-conversion under -Werror. Cast it explicitly. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../bmap-writer/bmap-writer_1.0.5.bb | 4 +- ...-library-s-ioctl-request-type-for-BL.patch | 50 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/bmap-writer/files/0001-device-Use-the-C-library-s-ioctl-request-type-for-BL.patch diff --git a/meta-oe/recipes-support/bmap-writer/bmap-writer_1.0.5.bb b/meta-oe/recipes-support/bmap-writer/bmap-writer_1.0.5.bb index 160d1b7112..71ea721eed 100644 --- a/meta-oe/recipes-support/bmap-writer/bmap-writer_1.0.5.bb +++ b/meta-oe/recipes-support/bmap-writer/bmap-writer_1.0.5.bb @@ -8,7 +8,9 @@ SECTION = "console/utils" LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=e49f4652534af377a713df3d9dec60cb" -SRC_URI = "git://github.com/embetrix/${BPN};branch=master;protocol=https;tag=${PV}" +SRC_URI = "git://github.com/embetrix/${BPN};branch=master;protocol=https;tag=${PV} \ + file://0001-device-Use-the-C-library-s-ioctl-request-type-for-BL.patch \ + " SRCREV = "c7b1bec0f40217d17e315226552e461a4a816abc" DEPENDS = "libtinyxml2 libarchive" diff --git a/meta-oe/recipes-support/bmap-writer/files/0001-device-Use-the-C-library-s-ioctl-request-type-for-BL.patch b/meta-oe/recipes-support/bmap-writer/files/0001-device-Use-the-C-library-s-ioctl-request-type-for-BL.patch new file mode 100644 index 0000000000..236ff7d1ef --- /dev/null +++ b/meta-oe/recipes-support/bmap-writer/files/0001-device-Use-the-C-library-s-ioctl-request-type-for-BL.patch @@ -0,0 +1,50 @@ +From 7b96cb4998714bbb338adecafad8614484feb8cd Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 29 Sep 2026 12:56:53 -0700 +Subject: [PATCH] device: Use the C library's ioctl request type for + BLKGETSIZE64 + +The type of ioctl()'s request argument differs between C libraries: +glibc declares it as unsigned long, musl and bionic as int. BLKGETSIZE64 +is an unsigned long constant, so with -Wconversion -Wsign-conversion +-Werror passing it directly fails on musl, while casting it to int fails +on glibc: + + device.cpp:163:50: error: unsigned conversion from 'int' to 'long unsigned int' changes value from '-2146954638' to '18446744071562596978' [-Werror=sign-conversion] + +Deduce the request type from the ioctl() declaration and convert the +request code to it explicitly, which builds on both. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/device.cpp | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/src/device.cpp b/src/device.cpp +index 2c06c84..d1fa995 100644 +--- a/src/device.cpp ++++ b/src/device.cpp +@@ -151,6 +151,13 @@ int openTargetDevice(const std::string& device) { + return fd; + } + ++// The type of ioctl()'s request argument depends on the C library: glibc ++// uses unsigned long, musl and bionic use int. Deduce it from the ++// declaration so request codes can be converted explicitly on all of them. ++template ++static Request ioctlRequestType(int (*)(int, Request, ...)); ++using ioctl_request_t = decltype(ioctlRequestType(&::ioctl)); ++ + // Capacity of the target in bytes, or 0 when it cannot be determined (a + // regular file which simply grows as needed). + uint64_t getDeviceSize(int fd) { +@@ -160,7 +167,7 @@ uint64_t getDeviceSize(int fd) { + if (::fstat(fd, &statbuf) != 0) { + return 0; + } +- if (S_ISBLK(statbuf.st_mode) && (::ioctl(fd, BLKGETSIZE64, &size) != 0)) { ++ if (S_ISBLK(statbuf.st_mode) && (::ioctl(fd, static_cast(BLKGETSIZE64), &size) != 0)) { + return 0; + } + From patchwork Tue Sep 29 22:57:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99639 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 AB547CA5FBB for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f41.google.com (mail-dy2-f41.google.com [74.125.229.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1491.1790722679109543677 for ; Tue, 29 Sep 2026 15:57:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=RLJRuDOm; spf=pass (domain: gmail.com, ip: 74.125.229.41, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f41.google.com with SMTP id 5a478bee46e88-34b590a5b5eso1377404eec.2 for ; Tue, 29 Sep 2026 15:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722678; x=1791327478; 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=j83HoH/yIdpueNHkb60iPQY0Jy4jJHh0gQxzlF5wuKg=; b=RLJRuDOmEvF3Vmjkr6aST1zTNZwXpuW89b/vyjCePMe/Bqs50vFzXIjVVtK9V1Y8MP Pc6adMdpJtV9Efj9h6Ra/yKSKd/sWN8XhLsK9sg6fVCUQmyG+Cpk1XIAiv3ddQH28+zm ykZcW8rPo9HDG0sD8dtElPXyM1eayl2jv8wvSFJ53j5zzSOpkIfS2Rj4DSkP+NzRSbsO 4DFv8apFWsbH/BHsM307x8S6B1W2A2+OyVOcjd/iwZsOrlkELPcLgaK0nPWi47HM+Sq/ Bin6Abnsqqu7RO7T7YHIRXM4ZVtlk1QhKo5kTGj8sDqG5omuRn4rrfOnB0K1YT0rRf/7 +iEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722678; x=1791327478; 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=j83HoH/yIdpueNHkb60iPQY0Jy4jJHh0gQxzlF5wuKg=; b=lNnBO2rCacMdSmckZ8F71xsHBABZIg0YuSPm7rl3g70YBQxXbVPzgZWgj79LkMoL+X AdQu/usXvZRPKpJewZm2IWUmKnvwbWysuGVrLc9Qn9osLdOGyQNrygLBI9AjbWG0wbbX oJ8INf/HVkv6ncSYTLByXI733c4p4sI+WXxV1T9SbcGh+vEoNu9daFj6JQleKdyvNUKt hehe7QzsjVepsbRc+Bt26kfqvrF3URTOF14sdTPtHDSqdqXJCpXkISB7KEWMyNheNhya TmMPRXc8hiTNLAk3zYSBBPbzOOmAr2UpGX2Sozzddrl4Nm2BUf9WRQWVFOyjdxaRF8Sa 34Kg== X-Gm-Message-State: AFq9FYJHP6A2EZfuplxm8irKHK11XsGg+SoPTXUkhAdNY25vaSjpDqFc Bh38TvZV40WyV8ERat/Ki/Jefc9LadxaNIKCfCJEHBq/z58yFz3SV/SmRzrh962Q8D0= X-Gm-Gg: AYBFou2oP15JdE/10DMUNVLkeNB5BxJLvH2yD2hq5yapOZuKHZ8QIZySx8klvIX2KqN SqxY7NwUK6FACEpMKyX45fDqnFv/+fVOJ/0DkpjH56g57jytHUk348fUkiUbMQSwaQDuacgF6OT UPH0FXUWlRG06neuUfXM4gQfwvczNGpmbRk6L3ySdo68O/F88RznhrAp6sEjNHZbDsOhrlgd4i2 1hZIJARbzYiTZmyD47vS+mrFO99s85boZTCGtMLsMQQsOCmo1e7wU75+XMxmWqvz/KjZSg1Y/ZM MgUGEpT9+68t5A1Eb2uD5CaWAvVkiTw6/DGBmVmM41lcqRQ9B3G+rCS5PweRwuveYdnlRmC789J PjMZsmoGByFN3TkKbDUs3Znz5SlU924dIBKvaRlklAgJEGaSOTmPPuvzBsp5/6JQD6VpT7YHd6P GjeqgVl4xhSB0zgEMkTWte51pyE6TzOtFKSX216GqhBfM676o09+vH7Sr5sB7/Q5/nQM6aQnYw4 NDkbTEPKIJHu7aKjOkqN72A/z4K+BajhHFZe23nJFpZ2JrjmkLozJNG03d+KutDUd0Kz+HAAgG0 nANGYTec3J9nNE8q+T9OiY8pLeIHqB7A+WwKDaIAl89y4SaQPntd3GBKIWUSel4J1w+S1Wsmccn uj7EQBsQkkaaZQG4EeTE1RsTPVFjQFZePwOcMb5qkWZHso8pxuCnIk10DL7gykuKCfAXaLvO1mE 1s1GzgEbrokYa2K4VbB0XuZZw8CQFctcyk62e8Ig== X-Received: by 2002:a05:7300:d105:b0:34b:7158:974d with SMTP id 5a478bee46e88-34c676c5ae6mr774091eec.27.1790722678429; Tue, 29 Sep 2026 15:57:58 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57:57 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 21/26] ot-br-posix: reference sCrashCallback on non-glibc Date: Tue, 29 Sep 2026 15:57:18 -0700 Message-ID: <20260929225723.1046705-21-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130508 backtrace.cpp sets sCrashCallback but only reads it back inside a glibc-only execinfo backtrace path, so on musl (no backtrace()) clang flags it as -Wunused-but-set-variable under -Werror. Reference it in the non-glibc branch too. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-Reference-sCrashCallback-on-non-gli.patch | 34 +++++++++++++++++++ .../openthread/ot-br-posix_git.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch new file mode 100644 index 0000000000..88c3b67314 --- /dev/null +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch @@ -0,0 +1,34 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 01:57:51 +0000 +Subject: [PATCH] posix/backtrace: Reference sCrashCallback on non-glibc, + non-Android builds + +sCrashCallback is set unconditionally by otSysRegisterCrashCallback() +whenever OPENTHREAD_POSIX_CONFIG_BACKTRACE_ENABLE is set, but it is +only read from signalCritical(), which is compiled solely under the +`OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__)` branch. +On musl (neither Android nor glibc) that branch is replaced by an +empty platformBacktraceInit() stub, so the variable is set but never +used, which clang's -Wunused-but-set-global (promoted to -Werror) +turns into a hard build failure. Use the existing OT_UNUSED_VARIABLE() +idiom already used elsewhere in this file (e.g. in signalCritical()) +to acknowledge the variable on this code path too. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/posix/platform/backtrace.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/posix/platform/backtrace.cpp b/src/posix/platform/backtrace.cpp +index 1111111..2222222 100644 +--- a/src/posix/platform/backtrace.cpp ++++ b/src/posix/platform/backtrace.cpp +@@ -185,6 +185,6 @@ void platformBacktraceInit(void) + } + } + #else // OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__) +-void platformBacktraceInit(void) {} ++void platformBacktraceInit(void) { OT_UNUSED_VARIABLE(sCrashCallback); } + #endif // OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__) + #endif // OPENTHREAD_POSIX_CONFIG_BACKTRACE_ENABLE diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb index 8c49a30327..59e1dae2a3 100644 --- a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb @@ -17,6 +17,7 @@ SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=m file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \ file://default-cxx-std.patch \ file://0001-x509_crt-Zero-initialize-mbedtls_x509_time-at-declar.patch;patchdir=third_party/openthread/repo \ + file://0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch;patchdir=third_party/openthread/repo \ " SYSTEMD_SERVICE:${PN} = "otbr-agent.service" From patchwork Tue Sep 29 22:57:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99637 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 48519CA5FB3 for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f42.google.com (mail-dy2-f42.google.com [74.125.229.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1477.1790722680626104128 for ; Tue, 29 Sep 2026 15:58:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=TA5Jl4S2; spf=pass (domain: gmail.com, ip: 74.125.229.42, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f42.google.com with SMTP id 5a478bee46e88-341d0522b4dso7214007eec.1 for ; Tue, 29 Sep 2026 15:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722680; x=1791327480; 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=7bTrqmyBpWHXda0bl73lhfeK7eDotD7ieUls5qJelfY=; b=TA5Jl4S2D303tjeEEzThIKU6AkLcJRY+5wgc6SpUpBeYWcXl3i53u8NOhoGFoC07zJ 7BgQP59hOLs1qip/2GUQuInYtlnhiBb0wVBnTzirTDMCGNO1Y2K3aj4NmQKxtESRy6LY mGOqFJxnT2H3rDShQhPO5GujtOPx5fQXaqiO8jQkZEue+zvwSfpJPD+m964EsO/St0pA hDv6QfTlBOmswNDa6BK3qcehrKx+53HKYIb+jcHZkbDExPhN1QSm2X6VnFa63gIkCY/Z eCk0w8IQmPnOS8wUaURjD/gIcXFVP3HZEU70mjtNLlcGxa3mYPtkKi41RwzDAk5FdYga 4Sww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722680; x=1791327480; 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=7bTrqmyBpWHXda0bl73lhfeK7eDotD7ieUls5qJelfY=; b=Tkx32wQqAehlN3L9d8aLHX7pVpO9VmWg6QmD+febernists+KbC9Ikx7zouZbZA2J3 puxRbpmyG+f65l8sYOAxcU3YZvg/mBifCwgvmj9QBLvee6zrYkqy4yjyk9bw9YKn/IQ0 0rcwnbZO8PKtMuJtoGAZPYBv9M1vmYgsK11//+AwmQ8B5ZLy5ZtFNekrmnGfbdU2rwmv 7WU8Z0McUdSe41XZMoNTxicmfmtsBxtW0eDiALZ9TYJhGazpinlWOoMFXo4x0IKHQEwx sHG1w2bkapW3ROPK3cq4cLKDc8Gw2KQctp22IP5B/cqDDpcDS1gx0Ugb/9Ldyx2Id3Cl UaWA== X-Gm-Message-State: AFq9FYJE9WhdTu0d5cxWUTuKmiShwfPpNK15qw/yrDMXu/rOYAIsM5jI wMA6rFAvxIdn+ffH2RayfC2zN7OSvhhkfoyyqb+CAkGG8Jv1LV/Ie4dSykjJWpDj9qk= X-Gm-Gg: AYBFou2Fq8i/mYi51+jZkqHHbh+xyxJYNXZGb902LMGl8gIOPyzk2Lwko+GJqtJpfDO zUlDk8858TV1W0b+qkpcYsoX2hoqrVkJN5RCn/kU+bOod/hKcZrADZ5Go199HMSIy3bz3tZVET5 d+7qKP++USkoIu9cCsr0E2E4gtYmMQf3qMVimbKpqG5iNklRyArGe1YXTJfPCph5MqYpMekv9wN DeBMqgDQrvxHFVNOaZPwRk+CZ3r86aT6H+fGf57dyOd1Hqw4yVdHDsx2PTa2VmM/Sy35npxuzA1 jjunWiktZcLsFja1PPXVdWPbtmumf1o99qbdl8CJoRp8GUah2dFa30NAigMAIw/yaa4PMZAhrmq louCP2BZfhaj3p5GQk9Iqm9wDvySWN57kPhPW/xWtt/REsTspwkF6g/Q9c6H2fBXVVgkSabKgOG HVW7mgG3dekEYnhkhViW07Kp5phT7yDj31jNQgU3bWQt11zV1GOkQUwP8aM4btRG1cC2uQsoKr2 C3pvXqe5uNE9qE1bWh1Jb/dCYBpI8Fv4xiRSmLYqi2cgyfiG9pCKjQEK340BWK63aJhe5EDWHXC 9zrOLo580hLPxOv4md/V70OU0kKSAYw5vsNw2HIQ7J3+LgyWNBh3njev6DDHCAruLheOBZMaqE5 cvIZR9rdHen2C7MOCBFo/PtdJKPtC29/C50eCDrgTtnWjU8uH4gYCbW7QKC0T6RM2iZISkS9EmI pmccPci6HjMmMeKBv+B6jKmQZpR77h/781tf2ojQ== X-Received: by 2002:a05:7300:f58c:b0:32e:ca1f:e285 with SMTP id 5a478bee46e88-34c66c07388mr897513eec.14.1790722679806; Tue, 29 Sep 2026 15:57:59 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:57: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 22/26] perfetto: avoid getprogname() macro clobbering its own fallback Date: Tue, 29 Sep 2026 15:57:19 -0700 Message-ID: <20260929225723.1046705-22-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130509 The bundled liblog/libbase compat shim defines a getprogname() fallback macro and then immediately redefines program_invocation_name using it in a way that collides with musl's own declaration. Fix the ordering/guard so the two definitions don't conflict. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/perfetto/perfetto.bb | 1 + ...me-macro-clobbering-its-own-fallback.patch | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 meta-oe/recipes-devtools/perfetto/perfetto/0002-Avoid-getprogname-macro-clobbering-its-own-fallback.patch diff --git a/meta-oe/recipes-devtools/perfetto/perfetto.bb b/meta-oe/recipes-devtools/perfetto/perfetto.bb index 978a8611cc..f21b983a2b 100644 --- a/meta-oe/recipes-devtools/perfetto/perfetto.bb +++ b/meta-oe/recipes-devtools/perfetto/perfetto.bb @@ -27,6 +27,7 @@ SRC_URI:append = " \ git://chromium.googlesource.com/external/github.com/google/re2.git;nobranch=1;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/re2;name=re2 \ \ file://0001-Remove-check_build_deps-build-steps.patch \ + file://0002-Avoid-getprogname-macro-clobbering-its-own-fallback.patch \ " SRCREV_bionic = "a0d0355105cb9d4a4b5384897448676133d7b8e2" diff --git a/meta-oe/recipes-devtools/perfetto/perfetto/0002-Avoid-getprogname-macro-clobbering-its-own-fallback.patch b/meta-oe/recipes-devtools/perfetto/perfetto/0002-Avoid-getprogname-macro-clobbering-its-own-fallback.patch new file mode 100644 index 0000000000..20a06c4e19 --- /dev/null +++ b/meta-oe/recipes-devtools/perfetto/perfetto/0002-Avoid-getprogname-macro-clobbering-its-own-fallback.patch @@ -0,0 +1,58 @@ +From: Khem Raj +Date: Mon, 29 Sep 2026 01:59:00 +0000 +Subject: [PATCH] buildtools: don't let the musl getprogname() macro clobber + its own fallback definition + +On musl, the recipe passes -Dgetprogname()=program_invocation_name via +TUNE_CCARGS so callers of getprogname() resolve to musl's +program_invocation_name. But android-logging's logger_write.cpp and +android-libbase's logging.cpp each already provide their own +"static const char* getprogname()" fallback for any non-Apple, +non-Bionic target (which includes musl-linux). The function-like macro +textually matches this definition's "getprogname()" declarator too, +rewriting it into "program_invocation_name" and turning what should be +a function definition into an ill-typed brace-initialized variable +definition of type "const char*", which then conflicts with musl's own +"extern char *program_invocation_name" declaration: + + error: redefinition of 'program_invocation_name' with a different + type: 'const char *' vs 'char *' + +Guard each fallback definition with "&& !defined(getprogname)" so it +is skipped when the build already supplies getprogname() as a macro, +leaving the existing __APPLE__/__BIONIC__ exclusions untouched for +platforms that don't define the macro. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/buildtools/android-logging/liblog/logger_write.cpp 2026-09-29 01:58:46.064186639 +0000 ++++ b/buildtools/android-logging/liblog/logger_write.cpp 2026-09-29 01:58:46.065218637 +0000 +@@ -109,7 +109,11 @@ + } + + // BSD-based systems like Android/macOS have getprogname(). Others need us to provide one. +-#if !defined(__APPLE__) && !defined(__BIONIC__) ++// Skip this on platforms where the build already provides getprogname() as a macro ++// (e.g. musl builds define -Dgetprogname()=program_invocation_name), since the macro ++// would otherwise rewrite this very definition's "getprogname()" declarator into ++// "program_invocation_name", clashing with musl's own char* extern declaration. ++#if !defined(__APPLE__) && !defined(__BIONIC__) && !defined(getprogname) + static const char* getprogname() { + #ifdef _WIN32 + static bool first = true; +--- a/buildtools/android-libbase/logging.cpp 2026-09-29 01:58:46.066054793 +0000 ++++ b/buildtools/android-libbase/logging.cpp 2026-09-29 01:58:46.067074541 +0000 +@@ -62,7 +62,11 @@ + namespace base { + + // BSD-based systems like Android/macOS have getprogname(). Others need us to provide one. +-#if !defined(__APPLE__) && !defined(__BIONIC__) ++// Skip this on platforms where the build already provides getprogname() as a macro ++// (e.g. musl builds define -Dgetprogname()=program_invocation_name), since the macro ++// would otherwise rewrite this very definition's "getprogname()" declarator into ++// "program_invocation_name", clashing with musl's own char* extern declaration. ++#if !defined(__APPLE__) && !defined(__BIONIC__) && !defined(getprogname) + static const char* getprogname() { + #ifdef _WIN32 + static bool first = true; From patchwork Tue Sep 29 22:57:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99635 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 57F0BCA5FB8 for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1494.1790722681642525435 for ; Tue, 29 Sep 2026 15:58:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=UXrwYCjW; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-34abf779ac9so1225058eec.1 for ; Tue, 29 Sep 2026 15:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722681; x=1791327481; 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=aQFs366jxqxin5BgBrw5BBHKXjoSjvvlkufc7+xvdus=; b=UXrwYCjWVL80/+QZJObWCQq1AE6l7GCspr5sMq+7LuSHexWC78ADkUFAuChmAPBvvZ NnLo1sNiqmoqj8CD8TeZDI6htqDezmlvVi+BLOR/81meQDiKxk1RLeRSU4EGSs7AuOUq gZ/pe6nnWtlLtmILIzKTEhg9Q9zulNz1yz6CSI+YFQx7ZeBWnn/J9wPWj38nnRpeydKJ AZ4eT4salE0svNa3WOk3UxxwQcVR7uRBX3Si+XXIo5Xru8WKWsPkzr5kq7xLEdw4axcN zXPZAM+yKSX3c5CcgrZZiv7E9unkBtTxN4DjcxdsqHguQv9OXM3ojGAIlBRypsKaFnVb tscA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722681; x=1791327481; 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=aQFs366jxqxin5BgBrw5BBHKXjoSjvvlkufc7+xvdus=; b=Uy1vkkla2tXkaU1ixD7CmHfRbSR/76EyOL5UTHehLKwn0RzgWPXGkFyW6Sbf6uH7GZ UXQZ5VhmKcoyiWRnQN7Ig6lm0So0aBEn9HPgXFIHg8Q0tPcdeG6e/5jGJM+4T0Ie7qeW YxF13ezG0/cgtiAg+cmNzWTlnZjkRwfDpTlrWDc2qV0lf7CF/xrxlVtE8RsIJ3qf9H7C 5wd5Ab5+L4lxE4Hu1Aixu96Pa9buYi+W6sM7oqXyEivWvwag6Nt3TPGpyc9EZU/e3AGP 4yFOf6BhdtiVodnP6mb38IZO41/e1c0ABDVHCsiOjFiMSrUZSt3e1p0UZJdrapijW0bk 8oaw== X-Gm-Message-State: AFq9FYKP/HKTdsRiKv2kuprCHQgYR8cINUKd0WNCQRKcFquDU122cJpG rdN04ZlZaiX40IiTwt2e76HXEpstB+PKeki1y1z1e7h4GUceQWY8rQobGxH/BJYcbLU= X-Gm-Gg: AYBFou0gjustJG6iFAOMeq6GnG58ia2KokMxZpMiSXXCqw3Yef4lk//gJfU0rXpK3OQ tT+RPz4Zj80Mo7oNPRWcbn5wquUi+nJPr1qElrI9easS8Li5hJ82nC1GdrJXoI++pyZQA4APpw0 66Mo3qpQITQxHl63e47drBAjrRn1xO6RZ2MT8fbmwqN188P8uexlFvzf/XhbhDkY6BsCTDitXG3 uTyA3ShOLnNHaxBAsIBcuwCAnLmgJhg9gWbRK5KHU0h7DHZFT9mz1btEGF8TI3PdyRAetdLBtaH DMIsTKisCK6oTsOIasn/lKvu6qMlQDXXWBbFqZi3/zyernkz4MnLsUZgsXeRpSrvEvxmLSPBxqJ BoANNZctUFH5p0PhO0D3a55wMNx4BET27grFtjuzdkNDGvd9vD9h8CZia97gX6Yw6HFb/swAdQg TJIUD267xdTlzlvCI8NTon0dcgX81FtYavrb0nCbc18RpWKJ+1gk7oWn4sC+IZIeo1p2M5ywCdi OIFkXE9jBPSUE4RppOkxFK9IKnPpPSGn0xLiKU3vRpg1enMcJGYJCyQN90DJkaqVHmReiKzi6zS CTuyZFs46BQF90SZksQno13X6oUXy/S/mOTgPYp3TdHgoopRNwZ/hS88LIMFhpUsJy6CmQy1xlD 2myjiKlYEwmURi67gcRoQ0r6w0eDHARZhq2o7oI7JeCURWBm/bpTkmgJFQnGGiBnOpZbaX9ruoH ODdUCTzSoE7GF95lBY0v3g+azR7wQr0rEWXcNNyA== X-Received: by 2002:a05:7301:2525:b0:33c:259a:759 with SMTP id 5a478bee46e88-34c68185f7cmr792168eec.36.1790722680934; Tue, 29 Sep 2026 15:58:00 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:58:00 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-webserver][PATCH 23/26] netdata: disable systemd units plugin when systemd is not enabled Date: Tue, 29 Sep 2026 15:57:20 -0700 Message-ID: <20260929225723.1046705-23-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130510 netdata's cmake build unconditionally requires systemd for the 'Systemd units' plugin unless explicitly disabled. Tie ENABLE_PLUGIN_SYSTEMD_UNITS to the same DISTRO_FEATURES systemd check already used for the journal option, so sysvinit builds configure cleanly. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb b/meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb index 709538b1d4..ed4c54fbe4 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb @@ -102,6 +102,7 @@ EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF \ -DENABLE_LIBBACKTRACE=OFF \ -DProtobuf_PROTOC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/protoc \ -DBUILD_FOR_PACKAGING=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \ + -DENABLE_PLUGIN_SYSTEMD_UNITS=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \ -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=OFF -DCMAKE_INSTALL_PREFIX='${base_prefix}'" do_compile:append() { From patchwork Tue Sep 29 22:57:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99634 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 3AEC7CA5FB5 for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1495.1790722683373746775 for ; Tue, 29 Sep 2026 15:58:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=faCK7aN+; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33bfb26865fso4692064eec.2 for ; Tue, 29 Sep 2026 15:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722683; x=1791327483; 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=6wu8067CYQ5bgKmylpZtK9Ohb/uOEaW+VVJUO9coEZM=; b=faCK7aN+inKLtnQg7fDlwsbmVKU0EURDXoRW+vZmhT/q9+U6VtAHI/WJR05a+AjESt lB1ZH+gOe8pZxCvx80SDQidMO4vRFR05TN+nVSKgVtBlU9c7Rrg0Wq97teuHbRb0F8Mx UHYSZQPychyBnyJu6FfqhgmozqvZUHl0MLFe+6hGbg495IRDd0KDSIUIaonNoJSGPfYq gz0ym4F8Cj9WHGzSwdO4YcG/XulqxfKJ/PIHszdHEtATUOaroproRvKKl3iNFm0bJWLv v83lsDAy09B19d/i03+bEW6xR0ZdWQYEC6CpZ6rAJxLdPhH1kDD1TWLYqSzfXRWpT2cb gXnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722683; x=1791327483; 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=6wu8067CYQ5bgKmylpZtK9Ohb/uOEaW+VVJUO9coEZM=; b=SxlDSkEcBBTMWKbpBuQUkPTbCXFmStWHyvkuAt4gaSQN+SdtamzaX/p/1fk4+hfFXd WHcl6kdyI9nGP1EZT29s7z3SOo0skt5kASx6dL9YIM09BTIlYzj34P4x15HsJ/JB2ypr 6oNeG4q5mPVOL7GA2kjsk0hwQ0x/ZYwuoR6xivVzLco18rz1j4YENaS9sSoExo1KflU8 E5gXUc06LheOHNvO9s2atQfxfkW22qNSQUgKYTK0skkJhuFTjl0790X2jBjyjuNL5daT o/MC6w7rNjUXF2TjzARyPZ55Cj/WZDY5X/Cg9c0NpKFoK3+YOWgqcVM9lrdSFvlcD+fx t9tg== X-Gm-Message-State: AFq9FYKV+rh3evBDARh4+APh2475BXXIKOXsNroSZU6vqGHsybmxmQAU K8W6ii0rtVBUUy54KqwpcK3uO+b8TX8oALUM6WT3w++fDZO/tMoradbjtLfcZrWNMjY= X-Gm-Gg: AYBFou1g0pxm1LDQX7sWaToXmScpC4hOM7IWbK0IwTxxkiYC0QskaCXh3HaDnklewXL P6Iyjp6fNiMGTH+/AQ6VzwWV22dQs/QzoppSnpmj3ZyCWF58tDyoeQNezh/CCI/sQEaUujxNHvG Hsw3A3jsbtO7Im9kA1jKrYhRfyRTIfKjmxrP0YoBxC3xZOLJKXziBUzxyIiFD0zfL+G2rjZApWc YPaQI7acCUQsR3GzZcSGqjUh16mlblpaT5vQYe857oXqVud4E5+O5P0cvC0KrTyzYcLL3+6mtgf M+E9nuvd6IpVA82F53U69jIgsKDPkR71tp8jV6TUgyid7gdKyFKydNajiAU0th571JJHj0gaCpT EIfn6SSCit4b0yyt/sfc1srSnTFDVB9ngWZZFG5lO7kqwaA9CgdEWfqCi10FFz+uNx6hkNijgk7 lIPaWCv9IMCp8h9ppkUGgJ2p4cdEuTeyc7SFr5ztQ2eMak2rz1Xt0pL0CiZidOmibQF09OIwiXm 6IIVXAx1E49MggtcM9G294VcNgz0zxXosxb3BqHhnKmFR2dNCUcyZQLgX5s1O4NrayAW05/xpOi ndTjV/IdjdhvD8JJfAOJfEpa2U9kqk+bB1VqMJ7hLRPdM10VdIEv0NAm1xQzkNqbfTMqRILO7+u HlIeU99yFjYIGbE/p+ckcbhO3nmu13XQ5T7yLwHZROa0Sx8UimPrHjEdJECYzISkyyR/Y8D99Wh hxWZ4n5NDrGgY7ZwYshVF3ZjWgUymacKJBx6XmRQ7CbEC0fNf8zQ== X-Received: by 2002:a05:7300:c01b:20b0:348:201a:6c8b with SMTP id 5a478bee46e88-34c642e07d6mr1031823eec.38.1790722682352; Tue, 29 Sep 2026 15:58:02 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:58:01 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 24/26] android-tools: fix musl build (off64_t, LFS64 fns, b64_pton, ANDROID_HOST_MUSL) Date: Tue, 29 Sep 2026 15:57:21 -0700 Message-ID: <20260929225723.1046705-24-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130511 Several independent musl gaps surfaced one after another as each was fixed and the build progressed further: - android-base/off64_t.h only worked around __APPLE__ lacking off64_t; extend the same typedef fallback to musl. - sysdeps.h's adb_pread/adb_pwrite/adb_lseek only fell back to the plain (non-LFS64) functions on __APPLE__; musl needs the same fallback for pread64/pwrite64/lseek64. - daemon/auth.cpp calls b64_pton() from , which the Linux host build gets via -lresolv and bionic provides natively, but musl has neither; vendor the standard BSD implementation for it. - android-base/endian.h and threads.h already gate a musl-aware branch behind ANDROID_HOST_MUSL, matching upstream's own expectation, but nothing defined that macro for this recipe's build; define it via CFLAGS/CXXFLAGS for the musl toolchain. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...end-non-glibc-compat-typedef-to-musl.patch | 42 ++++++ ...vide-pread64-pwrite64-lseek64-fallba.patch | 58 ++++++++ ...dor-a-portable-b64_pton-for-non-glib.patch | 131 ++++++++++++++++++ .../android-tools/android-tools_35.0.2.bb | 11 ++ 4 files changed, 242 insertions(+) create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/0013-adb-sysdeps-provide-pread64-pwrite64-lseek64-fallba.patch create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/0014-daemon-auth-vendor-a-portable-b64_pton-for-non-glib.patch diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch b/meta-oe/recipes-devtools/android-tools/android-tools/0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch new file mode 100644 index 0000000000..59feb3c1ed --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch @@ -0,0 +1,42 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:01:07 +0000 +Subject: [PATCH] libbase: extend the off64_t compat typedef to musl + +android-base/off64_t.h already works around Apple's libc not +providing the glibc LFS64 off64_t name by typedef'ing it to off_t. +musl has the exact same situation -- it never defines the LFS64 +names because its off_t is already 64-bit -- but the guard only +checked for __APPLE__, so building against musl failed: + +| system/libbase/mapped_file.cpp:47:67: error: unknown type name 'off64_t'; did you mean 'off_t'? +| system/libbase/include/android-base/file.h:105:71: error: unknown type name 'off64_t'; did you mean 'off_t'? +| system/libbase/include/android-base/mapped_file.h:50:61: error: unknown type name 'off64_t'; did you mean 'off_t'? + +Both file.h and mapped_file.h (and every .cpp that includes them) +already pull in android-base/off64_t.h, so extending its guard to +any non-glibc, non-bionic, non-Windows libc (i.e. musl) fixes all of +these call sites in a single place. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + system/libbase/include/android-base/off64_t.h | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/system/libbase/include/android-base/off64_t.h b/system/libbase/include/android-base/off64_t.h +index a4b7715..857ff29 100644 +--- a/system/libbase/include/android-base/off64_t.h ++++ b/system/libbase/include/android-base/off64_t.h +@@ -16,7 +16,10 @@ + + #pragma once + +-#if defined(__APPLE__) +-/** Mac OS has always had a 64-bit off_t, so it doesn't have off64_t. */ ++#if defined(__APPLE__) || \ ++ (!defined(__GLIBC__) && !defined(__BIONIC__) && !defined(_WIN32)) ++/** Mac OS has always had a 64-bit off_t, so it doesn't have off64_t. ++ * musl doesn't provide the glibc LFS64 off64_t name either, but its off_t ++ * is already 64-bit, so the same typedef works there too. */ + typedef off_t off64_t; + #endif diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0013-adb-sysdeps-provide-pread64-pwrite64-lseek64-fallba.patch b/meta-oe/recipes-devtools/android-tools/android-tools/0013-adb-sysdeps-provide-pread64-pwrite64-lseek64-fallba.patch new file mode 100644 index 0000000000..54c931c210 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/0013-adb-sysdeps-provide-pread64-pwrite64-lseek64-fallba.patch @@ -0,0 +1,58 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:36:00 +0000 +Subject: [PATCH] adb: sysdeps: provide pread64/pwrite64/lseek64 fallback for + musl + +adb_pread(), adb_pwrite() and adb_lseek() in sysdeps.h already special +case __APPLE__ to call the plain (non-LFS64) pread/pwrite/lseek, +because Mac OS never had the glibc LFS64 names. musl has the exact +same situation -- like off64_t (see +0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch), +it never defines pread64/pwrite64/lseek64 since its off_t is already +64-bit -- but these three call sites only checked for __APPLE__, so +building against musl failed: + +| sysdeps.h:522:31: error: use of undeclared identifier 'pread64' +| sysdeps.h:544:32: error: use of undeclared identifier 'pwrite64' +| sysdeps.h:554:12: error: use of undeclared identifier 'lseek64' + +Extend the same non-glibc/non-bionic/non-Windows guard used by +off64_t.h to these three functions. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/packages/modules/adb/sysdeps.h ++++ b/packages/modules/adb/sysdeps.h +@@ -516,7 +516,10 @@ static inline int adb_getlogin_r(char* buf, size_t bufsize) { + } + + static inline int adb_pread(borrowed_fd fd, void* buf, size_t len, off64_t offset) { +-#if defined(__APPLE__) ++#if defined(__APPLE__) || \ ++ (!defined(__GLIBC__) && !defined(__BIONIC__) && !defined(_WIN32)) ++ /* Mac OS and musl don't have the LFS64 pread64: their plain pread is ++ * already 64-bit (see android-base/off64_t.h). */ + return TEMP_FAILURE_RETRY(pread(fd.get(), buf, len, offset)); + #else + return TEMP_FAILURE_RETRY(pread64(fd.get(), buf, len, offset)); +@@ -538,7 +541,8 @@ static inline int unix_read_interruptible(borrowed_fd fd, void* buf, size_t le + } + + static inline int adb_pwrite(int fd, const void* buf, size_t len, off64_t offset) { +-#if defined(__APPLE__) ++#if defined(__APPLE__) || \ ++ (!defined(__GLIBC__) && !defined(__BIONIC__) && !defined(_WIN32)) + return TEMP_FAILURE_RETRY(pwrite(fd, buf, len, offset)); + #else + return TEMP_FAILURE_RETRY(pwrite64(fd, buf, len, offset)); +@@ -548,7 +552,8 @@ static inline int adb_pwrite(int fd, const void* buf, size_t len, off64_t offs + // (write and pwrite macros omitted: incompatible with GCC/abseil compat) + + static inline int64_t adb_lseek(borrowed_fd fd, int64_t pos, int where) { +-#if defined(__APPLE__) ++#if defined(__APPLE__) || \ ++ (!defined(__GLIBC__) && !defined(__BIONIC__) && !defined(_WIN32)) + return lseek(fd.get(), pos, where); + #else + return lseek64(fd.get(), pos, where); diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0014-daemon-auth-vendor-a-portable-b64_pton-for-non-glib.patch b/meta-oe/recipes-devtools/android-tools/android-tools/0014-daemon-auth-vendor-a-portable-b64_pton-for-non-glib.patch new file mode 100644 index 0000000000..f658fb3c57 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/0014-daemon-auth-vendor-a-portable-b64_pton-for-non-glib.patch @@ -0,0 +1,131 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:47:00 +0000 +Subject: [PATCH] daemon/auth: vendor a portable b64_pton() for non-glibc, + non-bionic libcs + +adbd's daemon/auth.cpp calls b64_pton() from to decode a +client's base64-encoded public key. Android.bp gets this on the Linux +host build by linking -lresolv ("b64_pton" comment at host_ldlibs), +and bionic (the Android target libc) provides its own. musl has +neither the symbol nor a libresolv to link against, so building +against musl failed: + +| daemon/auth.cpp:119:13: error: use of undeclared identifier 'b64_pton' +| daemon/auth.cpp:166:13: error: use of undeclared identifier 'b64_pton' + +Vendor the standard BSD base64 decoder (the same implementation +glibc's own resolv/base64.c is derived from) as a local static +function, gated to only be used where the libc doesn't already +provide it, rather than adding a new libresolv-equivalent dependency +just for this one call site. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +--- a/packages/modules/adb/daemon/auth.cpp ++++ b/packages/modules/adb/daemon/auth.cpp +@@ -22,6 +22,10 @@ + #include + #include + ++#if !defined(__GLIBC__) && !defined(__BIONIC__) ++#include ++#endif ++ + #include + #include + #include +@@ -49,6 +53,93 @@ + #include "transport.h" + #include "types.h" + ++#if !defined(__GLIBC__) && !defined(__BIONIC__) ++/* ++ * musl doesn't provide libresolv's b64_pton(): glibc gets it by linking ++ * -lresolv (see Android.bp's host_ldlibs) and bionic has its own, but musl ++ * has neither the symbol nor a libresolv to link. This is the standard BSD ++ * base64 decoder (the same one glibc's own resolv/base64.c is derived ++ * from), vendored here so this one call site doesn't need a new ++ * dependency. ++ */ ++static int b64_pton(const char* src, uint8_t* target, size_t targsize) { ++ static const char Base64[] = ++ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; ++ static const char Pad64 = '='; ++ int tarindex, state, ch; ++ const char* pos; ++ ++ state = 0; ++ tarindex = 0; ++ ++ while ((ch = *src++) != '\0') { ++ if (isspace(static_cast(ch))) continue; ++ ++ if (ch == Pad64) break; ++ ++ pos = strchr(Base64, ch); ++ if (pos == nullptr) return -1; ++ ++ switch (state) { ++ case 0: ++ if (target) { ++ if (static_cast(tarindex) >= targsize) return -1; ++ target[tarindex] = (pos - Base64) << 2; ++ } ++ state = 1; ++ break; ++ case 1: ++ if (target) { ++ if (static_cast(tarindex) + 1 >= targsize) return -1; ++ target[tarindex] |= (pos - Base64) >> 4; ++ target[tarindex + 1] = ((pos - Base64) & 0x0f) << 4; ++ } ++ tarindex++; ++ state = 2; ++ break; ++ case 2: ++ if (target) { ++ if (static_cast(tarindex) + 1 >= targsize) return -1; ++ target[tarindex] |= (pos - Base64) >> 2; ++ target[tarindex + 1] = ((pos - Base64) & 0x03) << 6; ++ } ++ tarindex++; ++ state = 3; ++ break; ++ case 3: ++ if (target) { ++ if (static_cast(tarindex) >= targsize) return -1; ++ target[tarindex] |= (pos - Base64); ++ } ++ tarindex++; ++ state = 0; ++ break; ++ } ++ } ++ ++ if (ch == Pad64) { ++ if (state != 2 && state != 3) return -1; ++ ++ if (state == 2) { ++ for ((void)(ch = *src++); isspace(static_cast(ch)); ++ (void)(ch = *src++)) ++ continue; ++ if (ch != Pad64) return -1; ++ (void)(ch = *src++); ++ } ++ ++ while ((ch = *src++) != '\0') { ++ if (!isspace(static_cast(ch))) break; ++ } ++ if (ch != '\0') return -1; ++ } else { ++ if (state != 0) return -1; ++ } ++ ++ return tarindex; ++} ++#endif ++ + using namespace adb::crypto; + using namespace adb::tls; + using namespace std::chrono_literals; diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb b/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb index 623dfa7717..300a92df00 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +++ b/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb @@ -57,6 +57,9 @@ SRC_URI = "https://deb.debian.org/debian/pool/main/a/android-platform-tools/andr file://0009-libbase-include-stdint.h-in-hex.cpp.patch \ file://0010-adbd-make-systemd-sd_notify-conditional-on-HAVE_SYSTEMD.patch \ file://0011-adb-drop-non-portable-is_standard_layout-assertion.patch \ + file://0012-libbase-off64_t-extend-non-glibc-compat-typedef-to-musl.patch \ + file://0013-adb-sysdeps-provide-pread64-pwrite64-lseek64-fallba.patch \ + file://0014-daemon-auth-vendor-a-portable-b64_pton-for-non-glib.patch \ " SRC_URI[orig.md5sum] = "352376965cdef7bd7505d8fefdd43d50" @@ -81,12 +84,20 @@ SYSTEMD_PACKAGES = "${PN}-adbd" SYSTEMD_SERVICE:${PN}-adbd = "android-tools-adbd.service" CFLAGS:append = " -fPIC -std=gnu2x" +# android-base/endian.h and threads.h already have an +# ANDROID_HOST_MUSL-gated branch for building against musl (alongside their +# __GLIBC__ one); upstream expects the build system to define this macro, +# which the debian/ Makefile-based packaging used here doesn't do on its +# own. Without it those headers fall through to their Windows-only branch +# and fail with "'winsock2.h' file not found". +CFLAGS:append:libc-musl = " -DANDROID_HOST_MUSL" # The bundled fmtlib 10.2.0 validates FMT_STRING() inside a consteval # basic_format_string constructor whose parse path evaluates "it - begin()", # which current C++ frontends reject as a non-constant subexpression. Define # FMT_CONSTEVAL to empty so format-string checking falls back to fmt's runtime # path instead of the broken compile-time one. CXXFLAGS:append = " -fPIC -std=gnu++20 -D_Nonnull= -D_Nullable= -I${STAGING_INCDIR}/boringssl -DFMT_CONSTEVAL=" +CXXFLAGS:append:libc-musl = " -DANDROID_HOST_MUSL" LDFLAGS:append = " -fPIC -L${STAGING_LIBDIR}/android" From patchwork Tue Sep 29 22:57:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99640 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 B76D9CA5FBE for ; Tue, 29 Sep 2026 22:58:04 +0000 (UTC) Received: from mail-dy2-f41.google.com (mail-dy2-f41.google.com [74.125.229.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1496.1790722684183608116 for ; Tue, 29 Sep 2026 15:58:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=MWXQzo0j; spf=pass (domain: gmail.com, ip: 74.125.229.41, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f41.google.com with SMTP id 5a478bee46e88-34bffc8105eso725261eec.0 for ; Tue, 29 Sep 2026 15:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722683; x=1791327483; 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=VZxp3G8M0u19hKnDte3z2t0wRpVMeInDnih0L+jSBEI=; b=MWXQzo0jLN0xzX6dy+WkDmCf09qwWTi/0l48PY46T8e8IO+I+qBFeiqr8iRdtYh6ot 7FS7cjixw1bGaOcUnsb7AafSZFZ75VqY9Uehm/OKyAceocAKJ3jFSIcZNVEep87lCSwR krKoqx1isQMKEkgYyaGvuYo3JrYC4WULDTaEnPEvJfqi69WTpw87wu2VsL9kLkgimpgS 0NCilGEQ9S/Ki4I4iM7EWQ26hT+9OnMY65j6gQ+VgwGZlpHi8DYt0tdsOeou0nZoq94I 0zL5up2tDdfOs3/xoePnKNyHPsEuTI/3QXRSD+Q/Bvpppnu8rJ6gUA5H26rXe5DbnBzt 2Vxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722683; x=1791327483; 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=VZxp3G8M0u19hKnDte3z2t0wRpVMeInDnih0L+jSBEI=; b=AXm8+34i54CHYHuRImfeNNbKekYi0SxDrja+bRV0mfHhIYUlJ45PjBnvZ3k4zSL31u Tv22Nlu7ij/umXJmrCuYRuP8L36tJPr7RLhIyGQ/WkZmjeBAvWROcPaJac1QWN8HFbT9 q3dnqHW0VgVCRGmKW3PsHI0BPx8ZDXrPDroz+0Scd46jH6304j2xLmI6PuxFei/u/dYh ueaHApVdjE0Z0BBeHYfXC04i+fvi8tMLMTfunhvJye7Qcch2hZq5Uc7Ns6Kp6Un6pOVb nPOYt5luxxfSGa6ix1s4ySeQ9yS7KAft+0pdvy91eZ8of4L7/J4YRDc6f85i2fHbJ6kB 3DWA== X-Gm-Message-State: AFq9FYI7B1JBL+7da004+z0YF8nV+NCHsRT9L19PY7alankZ5BnowyBW K26Ldjfg+fPGvQGXMir5HvycwJT5ICgBaf6we7MgUE3HApeOkCYLmr7zsBpic20Hs58= X-Gm-Gg: AYBFou2eTrvnMO+KiQLBirwUo10s3Y5Z+lzTKS3iWYFl+ny4k8lXX5bfKofoufByZHB QZnpPiU58QMaXTb1ATPMYM3RC7PMWAV0yRUNnWETszzqlmOQPaXJtTaQ4QKZZqkvk4mVc4dZZIL HDgiNtV86jCYlxGsQnLe3A/c5ej9MyV/2FX4Fu/zROpd2Z5VG60o/u+HfequhIvokYF3+6uhJM6 w9R8fiYs6se2NWzXpx5noGdNrmDrApCPnLqkJOrqmPWNHHDnOkBW7iLeVRbrH4qU1+o0bOgja/y bcCSzQzryNSgVG8sw/UH96Je7Jh89zIUaHBzJYYc7N6W4HM1wX6lb2NPSJgZWekHWnC6c1qNu7x J6j1HOR2b+GmLLfJug71QQAD9YpAgp5/SiJLIKtpMwwyQmLb+pAKVWl04SmenwQKXi5npkl0rZF pIffbrzuGIZmpND9W3xCVuHrTq3JEf/Tww3HRtV1Go9TkBmLS5wmDMSxfGdcuAvQJmb8ydQ50sH 3xKToMM8ifwrc9/0Z31CyHLJdY2igXN7WYTro9QEg2GR/LjatIWLGBU31lq6RC1nO0qRVZLi4U/ zPbtWPCq9slregbNfY3UDJjcVoIjGGZQ6gfVCWYBfeRCXbJQsx8st/WMMWGTqyaeRsOq1/QdBoG 335/MWNAUwOOlzVXsD7gpIeyKSvyBbpUGz/G04g6nlMMrrWdfWW6FNZ9llCpqT22k/l4RUh/rL9 mTBfcik8O3+q+4ZsVRbweCjRvdG8HiH6EuJ+HzJA== X-Received: by 2002:a05:7301:1401:b0:339:7675:18e with SMTP id 5a478bee46e88-34c63bfd10bmr862338eec.9.1790722683463; Tue, 29 Sep 2026 15:58:03 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:58:02 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 25/26] sockperf: fix musl build (libexecinfo dependency, missing includes) Date: Tue, 29 Sep 2026 15:57:22 -0700 Message-ID: <20260929225723.1046705-25-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130512 configure.ac's AC_SEARCH_LIBS([backtrace], [execinfo], ...) fails with 'libexecinfo not found' on musl, which lacks glibc's backtrace()/backtrace_symbols(); depend on the libexecinfo compat library there. Once configure succeeds, ticks.h's timeval2nsec() needs struct timeval, which was only pulled in via under __FreeBSD__, and vma-xlio-redirect.cpp calls sscanf()/sprintf() without including ; fix both for musl too. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-includes-for-musl-struct-timeval-ss.patch | 54 +++++++++++++++++++ .../sockperf/sockperf_git.bb | 11 +++- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-benchmark/sockperf/files/0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch diff --git a/meta-oe/recipes-benchmark/sockperf/files/0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch b/meta-oe/recipes-benchmark/sockperf/files/0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch new file mode 100644 index 0000000000..3a59a8dbbe --- /dev/null +++ b/meta-oe/recipes-benchmark/sockperf/files/0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch @@ -0,0 +1,54 @@ +From: Khem Raj +Date: Tue, 29 Sep 2026 02:40:00 +0000 +Subject: [PATCH] src: fix missing includes for musl (struct timeval, + sscanf/sprintf) + +ticks.h's timeval2nsec() uses struct timeval, but the header only +pulled in under __FreeBSD__ -- glibc's happens +to declare struct timeval as a side effect of other headers already +included elsewhere in the build, but musl's does not, so building +against musl fails: + +| ticks.h:115:30: error: member access into incomplete type 'const struct timeval' + +Always include instead of gating it on __FreeBSD__. + +vma-xlio-redirect.cpp uses sscanf()/sprintf() but never includes +, relying on it being pulled in transitively. That doesn't +happen on musl either: + +| vma-xlio-redirect.cpp:92:14: error: use of undeclared identifier 'sscanf' +| vma-xlio-redirect.cpp:99:5: error: use of undeclared identifier 'sprintf' + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/src/ticks.h b/src/ticks.h +index 679f3d9..6e38095 100644 +--- a/src/ticks.h ++++ b/src/ticks.h +@@ -99,9 +99,10 @@ with simple integral values. The following describes these calculations: + #include // for int64_t + #include // for qsort + +-#ifdef __FreeBSD__ ++/* struct timeval is used below (timeval2nsec()); alone doesn't ++ * guarantee it, so always pull in rather than just on ++ * __FreeBSD__. */ + #include +-#endif + + #include "ticks_os.h" + +diff --git a/src/vma-xlio-redirect.cpp b/src/vma-xlio-redirect.cpp +index 5554d4a..a54a6c1 100644 +--- a/src/vma-xlio-redirect.cpp ++++ b/src/vma-xlio-redirect.cpp +@@ -28,6 +28,7 @@ + */ + + #include "vma-xlio-redirect.h" ++#include /* sscanf(), sprintf() */ + #include + + socket_fptr_t fn_socket = NULL; diff --git a/meta-oe/recipes-benchmark/sockperf/sockperf_git.bb b/meta-oe/recipes-benchmark/sockperf/sockperf_git.bb index ab0e35667e..fe285465e6 100644 --- a/meta-oe/recipes-benchmark/sockperf/sockperf_git.bb +++ b/meta-oe/recipes-benchmark/sockperf/sockperf_git.bb @@ -5,9 +5,16 @@ SECTION = "console/network" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://copying;md5=b4563b57c98bc23c8cecbc0b6d9546e9" -SRC_URI = "git://github.com/Mellanox/sockperf;branch=sockperf_v2;protocol=https" +SRC_URI = "git://github.com/Mellanox/sockperf;branch=sockperf_v2;protocol=https \ + file://0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch \ + " SRCREV = "3c65ad99cd385e18f8a2a655c19826e81a4d17e8" UPSTREAM_CHECK_COMMITS = "1" -inherit autotools \ No newline at end of file +# musl lacks glibc's backtrace()/backtrace_symbols(); configure.ac uses +# AC_SEARCH_LIBS([backtrace], [execinfo], ...) which errors out with +# "libexecinfo not found" unless the compat library is available. +DEPENDS:append:libc-musl = " libexecinfo" + +inherit autotools From patchwork Tue Sep 29 22:57:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 99641 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 B42ECCA5FB3 for ; Tue, 29 Sep 2026 22:58:14 +0000 (UTC) Received: from mail-dy2-f43.google.com (mail-dy2-f43.google.com [74.125.229.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1480.1790722685267222915 for ; Tue, 29 Sep 2026 15:58:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=m7E4HBWg; spf=pass (domain: gmail.com, ip: 74.125.229.43, mailfrom: raj.khem@gmail.com) Received: by mail-dy2-f43.google.com with SMTP id 5a478bee46e88-33bfb26865fso4692069eec.2 for ; Tue, 29 Sep 2026 15:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790722685; x=1791327485; 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=EVqBpr5S9cwpo6SB5ibCnebrp8QLKpvpksYUjiyUWC8=; b=m7E4HBWgvsSAT70CPEfRP9v1orA2eUTuxO6yZZ1A330xQ8dC1EALjKYTPp10iH9ESL JBRMMnL6hcQYtL7rhBFUbxmp1NNMUKMBBjqM6MZexDTFIwyzYFqRjSCpMgrA1U5FuKXn 1t6Qr3uvaHmwM3Sgl59gcrw/i4AgyCN4aH8WeZCbO1fVTyH8h5u3wVoVF9nh7dAuhnzN tMMktlt41wUWvHC93ipe6xPqCimfcqUH4Wjdo1UJMGXn5Aq175q1aSCoOXjAFQoJp3So h2DB1rXmCtU93ztNUNee0cZs/KT2YPeN0RoXtmJV2tZsUiCjRcv8ErxLxrELdmxFmKvz BLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790722685; x=1791327485; 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=EVqBpr5S9cwpo6SB5ibCnebrp8QLKpvpksYUjiyUWC8=; b=0EMHedklzHZj/46PTITXmHv4eACO318Zq8eo7uyuGuDM05+YD5IPbE5xebmkGr+JGM 0AxSyXsk7GSJRKR1x7NKIEgv7SrChcib40nl/wOaj3nt0riXdNtvVC9jhD+Oo2tpJ6lA RPe4Okrxtf7GD9u9S0pYenDYB39taTIs16klwC1fSYFAehN8Wo0c8vj7yGKGYSbDjdny ns03h11llG7b0NxJhxChZJIvZF1/I8cMLyKnv5+Zux8s9Iz/u6JuybgSE20P7WsjVRgA 636baYzuO8EliERiXEbBZICrMJd7sNSFcSy2MTmtR6uNSlITNBqOmKMQNyC5PQxR+snG 1uNA== X-Gm-Message-State: AFq9FYJTbI6UQYYFRTSQLie8Se1aavYopuMGmtTNaHFeNaE030ZrxPpB 7hp++vISOTiTkdkjqwWdGWPSwKsL9Mvvza+jnBL1Qkgwu3L0Y+3Tfntuofk19nB5ouE= X-Gm-Gg: AYBFou3KWYdYQz9kgJAqJondeRxK4iNeu0foq7wUQ9Wcd/witpM9BmjF9QbZR1sYEDj auRTuc91ukk3VHbsnd2lrxPVt45wI+cdcqX5vLvuhrWNcusNyLTEGyPrnuuHDX9AdDDDUQPKTYo lIe9h+FEymvpinP+cs8b5PeBBkwTY/WhsNaF03XxZ/RY1TF794Xg6/ZEwHhAPmZDmUg2LGmrjCL k63yBmOt4vV4MU5iDtQRALqrG07c6j1woT9EgkqQTj1jIpekxTFW/Xz2ou3bqYj7Kr/Jk7GeZzJ Wyeboldxpt8VIqTUaQjXp3O6fiJcQYIFcbrOyFNj0SHeV7mGD4VVFZy8JBEldhPS8ZLevlc4X3Q 6rNzJ1KvAAaOJ3NifEnJhI/K+D/Q75U14oTroe4Lf4Q7CVFlWrlyRb8IhbGVDfK240yrRpwYxY1 c9RWtYd7nm+6mQkR/oikaZDEALhOVjckVzoRESMP4JgmjVPO8Yn4qSOEf9cAQXC4ta2ZBpSV/lA PYk/FR+bnRzcpevxQ+YGYL/iekyoqcRl9WioDcHMBW9ycVFgK2naKPgOvBqvJid9qcLBl34Mzzz BUdElDn7tUPn1cQulxSxuVRe/mQhgkpRdhT4/S28XVKHfuQRzMtQkwAJyIP8CLeueEGzZLPmfxi nrJXbSXygYnyrLxnj2Z1oDowMvFCWKxYWV9vQM94G7PfQfz7jVNVQAQCYxAg3/C6oQHkLGq73Vp PqitQwzDIlOrevyUtPW93DrMBFU7lQs6nF6CCg8Q== X-Received: by 2002:a05:7301:428d:b0:33c:e93:764d with SMTP id 5a478bee46e88-34c644d1084mr807186eec.39.1790722684525; Tue, 29 Sep 2026 15:58:04 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34c38bf0948sm1595527eec.25.2026.09.29.15.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 15:58: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 26/26] rtc-testbench: Fix build with musl Date: Tue, 29 Sep 2026 15:57:23 -0700 Message-ID: <20260929225723.1046705-26-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929225723.1046705-1-khem.raj@oss.qualcomm.com> References: <20260929225723.1046705-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, 29 Sep 2026 22:58:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130513 Cast socket addresses to struct sockaddr * for bind() and sendto(), since musl has no transparent union for them like glibc, and pin threads with pthread_setaffinity_np() after creation where pthread_attr_setaffinity_np() is not available. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../files/0002-Fix-build-with-musl.patch | 121 ++++++++++++++++++ .../rtc-testbench/rtc-testbench_5.5.bb | 1 + 2 files changed, 122 insertions(+) create mode 100644 meta-oe/recipes-test/rtc-testbench/files/0002-Fix-build-with-musl.patch diff --git a/meta-oe/recipes-test/rtc-testbench/files/0002-Fix-build-with-musl.patch b/meta-oe/recipes-test/rtc-testbench/files/0002-Fix-build-with-musl.patch new file mode 100644 index 0000000000..9fa1138952 --- /dev/null +++ b/meta-oe/recipes-test/rtc-testbench/files/0002-Fix-build-with-musl.patch @@ -0,0 +1,121 @@ +From: Khem Raj +Subject: [PATCH] Fix build with musl + +- bind() and sendto() take a struct sockaddr pointer. glibc accepts other + sockaddr types in C via a transparent union, musl does not: + + net.c:417:25: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] + + Cast to struct sockaddr * instead. + +- pthread_attr_setaffinity_np() is a glibc extension musl does not have: + + thread.c:67:8: error: call to undeclared function 'pthread_attr_setaffinity_np' + + Without it, pin the thread with pthread_setaffinity_np() right after + creating it. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- +diff --git a/src/log_json.c b/src/log_json.c +index 5ac7e87..e13b1fe 100644 +--- a/src/log_json.c ++++ b/src/log_json.c +@@ -44,11 +44,11 @@ static void log_json_add_traffic_class(struct log_json_thread_context *ctx, + switch (ctx->dest.ss_family) { + case AF_INET: + ret = sendto(ctx->socket, stat_message, strlen(stat_message), 0, +- (struct sockaddr_in *)&ctx->dest, sizeof(struct sockaddr_in)); ++ (struct sockaddr *)&ctx->dest, sizeof(struct sockaddr_in)); + break; + case AF_INET6: + ret = sendto(ctx->socket, stat_message, strlen(stat_message), 0, +- (struct sockaddr_in6 *)&ctx->dest, sizeof(struct sockaddr_in6)); ++ (struct sockaddr *)&ctx->dest, sizeof(struct sockaddr_in6)); + break; + default: + ret = -EINVAL; +diff --git a/src/net.c b/src/net.c +index 408920b..14d1e29 100644 +--- a/src/net.c ++++ b/src/net.c +@@ -414,10 +414,10 @@ int create_udp_socket(const char *udp_destination, const char *udp_source, const + + switch (source.ss_family) { + case AF_INET: +- ret = bind(socket_fd, (struct sockaddr_in *)&source, sizeof(struct sockaddr_in)); ++ ret = bind(socket_fd, (struct sockaddr *)&source, sizeof(struct sockaddr_in)); + break; + case AF_INET6: +- ret = bind(socket_fd, (struct sockaddr_in6 *)&source, sizeof(struct sockaddr_in6)); ++ ret = bind(socket_fd, (struct sockaddr *)&source, sizeof(struct sockaddr_in6)); + break; + default: + ret = -EINVAL; +diff --git a/src/thread.c b/src/thread.c +index a679164..635dda7 100644 +--- a/src/thread.c ++++ b/src/thread.c +@@ -64,11 +64,13 @@ int create_rt_thread(pthread_t *task_id, int thread_priority, int cpu_core, + + CPU_ZERO(&cpus); + CPU_SET(cpu_core, &cpus); ++#ifdef __GLIBC__ + ret = pthread_attr_setaffinity_np(&attr, sizeof(cpus), &cpus); + if (ret) { + pthread_error(ret, "pthread_attr_setaffinity_np() failed"); + goto err; + } ++#endif + + ret = pthread_create(task_id, &attr, thread_routine, data); + if (ret) { +@@ -76,6 +78,15 @@ int create_rt_thread(pthread_t *task_id, int thread_priority, int cpu_core, + goto err; + } + ++#ifndef __GLIBC__ ++ /* No pthread_attr_setaffinity_np() e.g. on musl, pin the new thread instead. */ ++ ret = pthread_setaffinity_np(*task_id, sizeof(cpus), &cpus); ++ if (ret) { ++ pthread_error(ret, "pthread_setaffinity_np() failed"); ++ goto err; ++ } ++#endif ++ + ret = pthread_setname_np(*task_id, thread_name); + if (ret) { + pthread_error(ret, "pthread_setname_np() failed"); +diff --git a/src/udp_thread.c b/src/udp_thread.c +index bcdd000..ffbeba9 100644 +--- a/src/udp_thread.c ++++ b/src/udp_thread.c +@@ -68,11 +68,11 @@ static void udp_send_frame(struct thread_context *thread_context, const unsigned + switch (destination->ss_family) { + case AF_INET: + ret = sendto(socket_fd, frame_data, frame_length, 0, +- (struct sockaddr_in *)destination, sizeof(struct sockaddr_in)); ++ (struct sockaddr *)destination, sizeof(struct sockaddr_in)); + break; + case AF_INET6: + ret = sendto(socket_fd, frame_data, frame_length, 0, +- (struct sockaddr_in6 *)destination, sizeof(struct sockaddr_in6)); ++ (struct sockaddr *)destination, sizeof(struct sockaddr_in6)); + break; + default: + ret = -EINVAL; +@@ -107,11 +107,11 @@ static void udp_gen_and_send_frame(struct thread_context *thread_context, unsign + switch (destination->ss_family) { + case AF_INET: + ret = sendto(socket_fd, frame_data, frame_length, 0, +- (struct sockaddr_in *)destination, sizeof(struct sockaddr_in)); ++ (struct sockaddr *)destination, sizeof(struct sockaddr_in)); + break; + case AF_INET6: + ret = sendto(socket_fd, frame_data, frame_length, 0, +- (struct sockaddr_in6 *)destination, sizeof(struct sockaddr_in6)); ++ (struct sockaddr *)destination, sizeof(struct sockaddr_in6)); + break; + default: + ret = -EINVAL; diff --git a/meta-oe/recipes-test/rtc-testbench/rtc-testbench_5.5.bb b/meta-oe/recipes-test/rtc-testbench/rtc-testbench_5.5.bb index 6aa2a76a09..92b5cac1a6 100644 --- a/meta-oe/recipes-test/rtc-testbench/rtc-testbench_5.5.bb +++ b/meta-oe/recipes-test/rtc-testbench/rtc-testbench_5.5.bb @@ -15,6 +15,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = " \ git://github.com/Linutronix/RTC-Testbench.git;tag=v${PV};nobranch=1;protocol=https \ file://0001-CMakeLists.txt-make-BPF-clang-and-include-paths-conf.patch \ + file://0002-Fix-build-with-musl.patch \ " SRCREV = "b7541b4b93b4d9fe6f395bc53d3cb50401d406a4"