From patchwork Wed Jul 22 18:49:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93267 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 757E3C4453A for ; Wed, 22 Jul 2026 18:49:52 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7381.1784746184847449600 for ; Wed, 22 Jul 2026 11:49:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Xe51REQ7; spf=pass (domain: gmail.com, ip: 209.85.214.180, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2ce87c7e3bbso144792825ad.1 for ; Wed, 22 Jul 2026 11:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784746184; x=1785350984; 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=6MZzUfbWDw7z3bVpEj2jX7cj+j5gJQxNT5nTfecyYvM=; b=Xe51REQ7qrabpGmMalL8ZadLudu2NRoLHnWspyYR569dLUpfyqsQaJd42Fnmp96n1v Om1WDNHtNNgT8PH6O3gITcaVpLIjSPxNlVQrutNgyhxfog7aXDZAmsyl7XIaJLbDJ6In qcJbHF5dEDqdh8n/lJqs6P07MgFgxS8KAxdaZGMJNo64R43Yg/yFSR3BPnEnmyl3AH7Y MCK9RZDflUXd5toPqb3dPvLMdenZImc8mc5YN9HY2G4MGHklYglXriBBmhuqzb+ZoVnQ NmmH894FjZXkJHxDc+U5//q8t1hQicnfNscIVBwoI7LXBpVbqCYWwMtCCFGxVPby9jmX Wxvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784746184; x=1785350984; 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=6MZzUfbWDw7z3bVpEj2jX7cj+j5gJQxNT5nTfecyYvM=; b=TkzY6N+rBEJGtE6bkC0IpBI8HngAURqF7YqiLNExSUUnsnWFXJlfEz+o2/m3NpyRDZ YRXjozxCx606f53lGiPgk7r1A5tLmT8ue6GxV137wiy2N5xH3pfZWKi42WzimEOtYplU Ot/HyWR7ZMyPYx8IaRHii2cuJsE/CrMWcaI14AfUPk95ExCFg/K7lF4//upnRvEc9XgK KgWcC5FNfpUz1FUV7M61wnb+/SO+LqdnikDWFSELChbNjQ1v07FcqxmN0dgSWoVMHE7r c2VGOkb7qIpq11aBj54FWVSeI00Kjv2qj/tRHcOtemajnDU9aaSo7K3B53qNx26FQV2O VxaA== X-Gm-Message-State: AOJu0YzLOzODR98mAJH/yik5jcbvuGpyGAXTq+BPYRB/UCks7vGsYMyz zlb5SHmCQryZvq9ckh5S2swX7kH71LbeMH4jJt5wQehzgX9yhOcSw+x2pX7/og== X-Gm-Gg: AR+sD11VSND31TjtfR9a6HUtPcDQgGonTmZqRgDHVEan182kcANmr8U5w12LOQYaRlB Id9/pPiU2gkUPjmLu4GHo4b7NN45dW7z+JZWHDIEdVELIHcWmlNGAmVWuUfDVTpJ1Woc9xqjVWv HqiqVew6btKtQnzKecKMLYFu4VfpPXP8d+rG82m0/KfE7R0EenNt3MOST8iZQFHmPl5OL6JbXjp tLY5xDBPiCEz/vA70XJK5zorra1FP0nSNB6TE9KeqyV+rfrDXbzQkQMl1Vzv6N4yjFyH8gjF1DA RfktN7y4yg77XUssnDud1B3xMvwYO0fdq7QeIYomikyf7kfVeVY1ca+pb8BMDdFUR2qdBZBKb0v w8YygcAmMt1jEFefhzDocT83YtztPc3oTvg6D2U8uqP2iv+1sLzQIt7KJ7rH5t1997UP9GVxl5p s+FU2rej3jtxy7Qs3vW7C/GjFt2EQ5dKw0vtoB999RKYhAIMUJjRBO6DB38fcRp5xKi4Dtiwo3q xpWFjAd8i4o3X/clt51waR/KfUGzRhcTTfxv42d04pDn7jSM5wsuoToY1+Y/To/pbFzOZL5XbNP QE4A99wSvv1K/EK6Ivc= X-Received: by 2002:a17:903:238b:b0:2cc:df15:91de with SMTP id d9443c01a7336-2cfa752f053mr288455ad.42.1784746183988; Wed, 22 Jul 2026 11:49:43 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e1bc886sm11115841eec.26.2026.07.22.11.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 11:49:43 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 1/5] ufw: make usrmerge setup.py sed idempotent Date: Wed, 22 Jul 2026 11:49:35 -0700 Message-ID: <20260722184939.495321-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 ; Wed, 22 Jul 2026 18:49:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128408 do_package failed with a fatal QA error: QA Issue: ufw: Files/directories were installed but not shipped in any package: /usr/usr/lib/ufw/... (and on repeated rebuilds /usr/usr/usr/lib/ufw/...) [installed-vs-shipped] Under the usrmerge DISTRO_FEATURE, do_configure:prepend rewrites the single os.path.join('/lib', 'ufw') in setup.py to nonarch_base_libdir (/usr/lib) with an in-place sed. The pattern '/lib' is not anchored, so when do_configure re-runs against an already-patched ${S} (cached unpack/patch, as happens on world rebuilds) it matches the '/lib' inside the previously substituted '/usr/lib' and prepends another /usr, giving /usr/usr/lib and then /usr/usr/usr/lib. FILES:${PN} ships ${nonarch_base_libdir}/ufw (/usr/lib/ufw), so the doubled paths are unshipped and QA fails. Anchor the substitution to the quoted literal '/lib'. After the first run the text is '/usr/lib', which no longer contains '/lib', so re-running do_configure is a no-op. Verified two forced do_configure runs leave os.path.join('/usr/lib', 'ufw') and do_package succeeds. Signed-off-by: Khem Raj --- meta-networking/recipes-connectivity/ufw/ufw_0.36.2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-networking/recipes-connectivity/ufw/ufw_0.36.2.bb b/meta-networking/recipes-connectivity/ufw/ufw_0.36.2.bb index 171d0f6285..c6e106f934 100644 --- a/meta-networking/recipes-connectivity/ufw/ufw_0.36.2.bb +++ b/meta-networking/recipes-connectivity/ufw/ufw_0.36.2.bb @@ -41,7 +41,11 @@ RRECOMMENDS:${PN} = " \ do_configure:prepend() { if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then - sed -i -e 's|/lib|${nonarch_base_libdir}|' ${S}/setup.py + # setup.py has a single os.path.join('/lib', 'ufw'); anchor the match to + # the quoted literal so re-running do_configure on an already-patched + # ${S} (cached unpack/patch) is a no-op instead of prepending another + # /usr each time (which produced /usr/usr/lib/ufw and QA failures). + sed -i -e "s|'/lib'|'${nonarch_base_libdir}'|" ${S}/setup.py fi } From patchwork Wed Jul 22 18:49:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93269 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 AE720C4453F for ; Wed, 22 Jul 2026 18:49:52 +0000 (UTC) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7420.1784746185840461910 for ; Wed, 22 Jul 2026 11:49:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Z5XzC3VA; spf=pass (domain: gmail.com, ip: 209.85.215.176, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-caf45fc5202so9398051a12.1 for ; Wed, 22 Jul 2026 11:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784746185; x=1785350985; 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=DAmfm70JhrdGZc6rPcUD5bKUrYrxdhSTTqnAiiJU+Bw=; b=Z5XzC3VAKA3+ehVXAR61vbTDpveo+T7tds3t8/1BPIyBujK+5F85V6WPUFZafxO1SD qKWAvsAbYRy+04Vdc1mnjTTSaKtmQtIRzDJclCkMv+XexyCG/ElNLd1S4SGGk6OfVZll M56P84Bv6qsttgJLp64SbV6VnZ3IsqpcRkmYRTKXQrUdJTdcjyBQoMgEelGGjVilgG2W 2+JNFEzohVPj242RFjTStvT7mjYwMHSvWbv7ZEIYA9npOrr4/oDjIqATRH1Nlxv5pF2U hoxTCvTePXcWtTQeeO3aJyG5GzQaVbXBIp4NWvjsqTtDIfKxhOs7d7FG/RWSxfbNTyVy B87A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784746185; x=1785350985; 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=DAmfm70JhrdGZc6rPcUD5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a5rHvkAdeJoQPfRJsEd/h8Y7nAO/H+lwsSKdpDDB ptJZn2544+OoaS+QO0g= X-Received: by 2002:a05:6a21:4a97:b0:3bf:a638:4376 with SMTP id adf61e73a8af0-3c3ad62a286mr25689760637.21.1784746185097; Wed, 22 Jul 2026 11:49:45 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e1bc886sm11115841eec.26.2026.07.22.11.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 11:49:44 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 2/5] vboxguestdrivers: depend on virtual/libc for userspace mount utility Date: Wed, 22 Jul 2026 11:49:36 -0700 Message-ID: <20260722184939.495321-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260722184939.495321-1-khem.raj@oss.qualcomm.com> References: <20260722184939.495321-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 ; Wed, 22 Jul 2026 18:49:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128409 do_compile failed building the userspace mount helper: mount.vboxsf.c:38:10: fatal error: errno.h: No such file or directory vbsfmount.c:36:10: fatal error: assert.h: No such file or directory The kernel modules build fine; only the userspace utility fails. This recipe inherits module, and module.bbclass sets INHIBIT_DEFAULT_DEPS=1 (kernel modules build -nostdinc and do not need libc). That suppresses BASE_DEFAULT_DEPS (virtual/cross-cc virtual/compilerlibs virtual/libc) and only re-adds virtual/cross-cc + virtual/cross-binutils, so the target libc headers and crt objects are never staged into recipe-sysroot. But this recipe also compiles an ordinary hosted userspace program (utils/mount.vboxsf), which needs libc. Add back virtual/compilerlibs and virtual/libc. Using the same virtual/* provider names OE lists in BASE_DEFAULT_DEPS keeps this correct across libc (glibc/musl) and toolchain (gcc/clang) choices. Verified errno.h is staged and mount.vboxsf compiles, links and is packaged into ${base_sbindir}. Signed-off-by: Khem Raj --- .../vboxguestdrivers/vboxguestdrivers_7.2.8.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.8.bb b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.8.bb index 6b6a2f23ff..de47bb0e5a 100644 --- a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.8.bb +++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.8.bb @@ -5,6 +5,14 @@ LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://${UNPACKDIR}/${VBOX_NAME}/COPYING;md5=217590d3a513571b94632edf5fa1169a" DEPENDS = "virtual/kernel" +# Besides the kernel modules, this recipe also builds a userspace utility +# (utils/mount.vboxsf). module.bbclass sets INHIBIT_DEFAULT_DEPS=1, which drops +# BASE_DEFAULT_DEPS ("virtual/cross-cc virtual/compilerlibs virtual/libc") and +# only re-adds virtual/cross-cc + virtual/cross-binutils. As a result the target +# libc headers/crt objects are never staged into recipe-sysroot, so the userspace +# compile fails with "errno.h: No such file or directory". Restore the libc and +# compiler-runtime deps needed to compile and link the userspace utility. +DEPENDS += "virtual/compilerlibs virtual/libc" inherit module kernel-module-split From patchwork Wed Jul 22 18:49:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93268 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 8E853C4453C for ; Wed, 22 Jul 2026 18:49:52 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7382.1784746187220862575 for ; Wed, 22 Jul 2026 11:49:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=mmLqctwm; spf=pass (domain: gmail.com, ip: 209.85.214.175, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2cab973140bso159647085ad.3 for ; Wed, 22 Jul 2026 11:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784746186; x=1785350986; 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=NzVxm9PNDYiv1UcbmsqTgadpWc4u4HvjZpACsyleRFI=; b=mmLqctwmmwrA0iIOHIznuY6piDFlYqunzusNkwrLGdGzvn1fpz5b5esOOPPSt3zYhm mNZo52DSa75lHC/JFkaYItGwjQQXwU4OnvUsqXidlbz4YhXffUntmeKVYEw/mfncqBMJ E3RWasHjSOyBgIB0ZavHHMVxtE3OePwqmefMz3jOba85OEQFAbmXn7/tCq2zO2962Veg IvCJXHr+qw6ewXQ9bXU7oqwAlFPXGV2r2075IZl/Eo4KhM6XdYTWLSm2IunHHucGUnYp kMSLppoSBxn93V7pbqy8ugp+hfCVdhEi/fXQvWyWBNseMZEtc/8rNH696rUKiWCJm0tw K9XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784746186; x=1785350986; 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=NzVxm9PNDYiv1UcbmsqTgadpWc4u4HvjZpACsyleRF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cdx8zNPpO3kmsBg9V9rt1TXLPfJBmSsjgblcQUbH ka4CBn/t9wriUsICGHk= X-Received: by 2002:a17:903:41c3:b0:2ca:d7a0:1312 with SMTP id d9443c01a7336-2cfa6c5de50mr1064765ad.25.1784746186525; Wed, 22 Jul 2026 11:49:46 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e1bc886sm11115841eec.26.2026.07.22.11.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 11:49: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 3/5] librice: fix rice-proto.h lookup by not sysroot-rewriting internal .pc Date: Wed, 22 Jul 2026 11:49:37 -0700 Message-ID: <20260722184939.495321-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260722184939.495321-1-khem.raj@oss.qualcomm.com> References: <20260722184939.495321-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 ; Wed, 22 Jul 2026 18:49:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128410 do_compile panicked in rice-c/build.rs: thread 'main' panicked at rice-c/build.rs:101: Could not find rice-proto.h header rice-c/build.rs builds the internal rice-proto C library in-tree via "cargo cinstall --prefix /rice-proto-cbuild" and then locates it through system-deps + pkg-config. The generated rice-proto.pc carries an absolute prefix pointing into the in-build OUT_DIR. pkgconfig.bbclass exports PKG_CONFIG_SYSROOT_DIR=${STAGING_DIR_HOST}, and pkgconf prepends that sysroot onto the already-absolute prefix, yielding a doubled, non-existent include path (recipe-sysroot//include/rice). The header search then fails. The internal lib is never staged in the sysroot, so sysroot rewriting must not be applied to its .pc. Clear PKG_CONFIG_SYSROOT_DIR so the internal prefix is used verbatim. openssl-sys is the only other pkg-config consumer in the crate graph and would break without the sysroot, so point it at the target openssl directly via OPENSSL_LIB_DIR/OPENSSL_INCLUDE_DIR (openssl-sys returns those and skips its pkg-config probe when both are set). Verified a clean build: rice-proto.h is found and librice-proto/librice-io plus the header are packaged. Signed-off-by: Khem Raj --- meta-oe/recipes-support/librice/librice_0.4.3.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/meta-oe/recipes-support/librice/librice_0.4.3.bb b/meta-oe/recipes-support/librice/librice_0.4.3.bb index b479bc73f4..926244d780 100644 --- a/meta-oe/recipes-support/librice/librice_0.4.3.bb +++ b/meta-oe/recipes-support/librice/librice_0.4.3.bb @@ -15,3 +15,19 @@ require ${PN}-crates.inc CARGO_BUILD_FLAGS += " --workspace" export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}/libclang.so" + +# rice-c/build.rs builds the internal rice-proto C library in-tree (via +# "cargo cinstall") and then locates it through system-deps + pkg-config. +# The generated rice-proto.pc carries an absolute prefix pointing at the +# in-build OUT_DIR (.../rice-c-/out/rice-proto-cbuild). pkgconf prepends +# PKG_CONFIG_SYSROOT_DIR (=recipe-sysroot) to that already-absolute prefix, +# producing a doubled, non-existent include path and making build.rs panic +# with "Could not find rice-proto.h header". The internal lib is not staged in +# the sysroot, so no sysroot rewriting must be applied to its .pc file. +# Clear PKG_CONFIG_SYSROOT_DIR for the build so the internal prefix is used +# verbatim. openssl-sys is the only other pkg-config consumer here, so feed it +# the sysroot openssl explicitly (this bypasses its pkg-config probe entirely, +# see openssl-sys find_normal.rs) to keep it pointed at the target sysroot. +export PKG_CONFIG_SYSROOT_DIR = "" +export OPENSSL_LIB_DIR = "${STAGING_LIBDIR}" +export OPENSSL_INCLUDE_DIR = "${STAGING_INCDIR}" From patchwork Wed Jul 22 18:49:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93270 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 A3BBAC44536 for ; Wed, 22 Jul 2026 18:49:52 +0000 (UTC) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7422.1784746188659465238 for ; Wed, 22 Jul 2026 11:49:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=adr1Vxu9; spf=pass (domain: gmail.com, ip: 209.85.216.53, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-38dfe7eb825so7560256a91.0 for ; Wed, 22 Jul 2026 11:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784746188; x=1785350988; 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=Eq3yrdpTgNAMJj+lK5+dg5vnuODNJ1jViRD+xSkHyTQ=; b=adr1Vxu9DYAdVk5RuEghcgAHPoqQd60x6NpcYVvZTgv+hSIZjkwhtigR7MEnNIE8sx nYRXEVqwYkbjknJb99G08KCa1KySvy0FvPD5fZq4HaPU//3kABKj0BIMVYjG3mwzGCnJ YY5cBFuK3Owmp//5J38bpAUt4bnKbIaRbPMZlDtpI7uTDiA5Ia5iu3V+4MymO8vJ9Oij xKz9R/Cjuu9yCicQoj9pMIieYVrts9WuU0RA/7+76hxS0ASKCgdDH+FfPZl8bngl+OJa TvDEyYY54ML1dYelUCIXelKVMkIEOrGBV1/eLWSavlg+dYiRPqAyRRnkJlNi8IJVSP73 hBwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784746188; x=1785350988; 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=Eq3yrdpTgNAMJj+lK5+dg5vnuODNJ1jViRD+xSkHyTQ=; b=KQ8TjNAx7grnMb9L5mdWfM1Rt8O6oifR1NNasHWHmBWga07se7El3wArIdd/DYAWDW RqcCdv/X61csUSBt1UKPPfFGBymdtWnIFo4KztCbHGnQxefTFnvh4qDlJ70Dc7kvBLMi Urqd1sAEHffQ6eBybNehQne8d86gnuj1yIYZUTPDQM7XZBlcT2Ts9itZbM5XjhoZyKbW XJB503ty6IiGLteF+/rT9FDUzli6HJsA1RBCLKHyyIRcpBSD1AJBI0d+2VN/4HrWrvJc OolQF5Te3SoUTOpn2p5fl2hAQBwQXjFDJEwfVrSLnimTBS2uVvFEsKm7sS6vlYRbcO9u 5hwg== X-Gm-Message-State: AOJu0YwlnfXj/tDz6UAYxWBLjrmFLBiFRZFh2mV4dQXgTJoFdrwS6uyw OkxEgq5p6XPU8W61CiCDBk4qfFCd+9zFUM5zHQw5bh7Jergubnn48mZK34Fq5g== X-Gm-Gg: AR+sD12YctJzlUOlUX5FDQFgVdDQwRINRtjgAUvwp1lSFpf1EUYxWKMXUli3dgjJPe/ flRCwjui1zc6j8PaxrWRopN49Wb7kWy/srbzxkHINJavMHZqwpgKpHLo28o/f3AmtgTxB/miufw J9DYrPxRkZX2waqKGGIY2LOd8de5LtmVd9pByzzM8R4k48p4LCdvZC77JtUq3s7Qjfryok8apH4 d56fkCjlEyqsm4fRVgl4oAT6cgO6YD4RS7tMhjn8J7jiJ9BvHME6oaP3hJFhjPX4xcrUFYFgoE5 jzbKt2auujn/FmhMmqF3D2B1gJKbcOGpOp3eCOxGTiXfhZ7FesmXTMnc/ZiL4ErpR3aQ7zyI4Ze fobVDVIjXwETFOx/StIGnbwPTv1hTebV4MHLKTW3l9FPwNVTDni+0VJmR0SSe2jGvH+hIv2BsAs pgNICickS2rNgFKQh1aeB6QksyshS99o1UA5kzRmaEyZ07Dh7JzxwxtEJ+Adf1pun6YIN4Dieji MfZEIqw0nurbZYU2QSmp2/DmF/QzZrnd9t6V4WwpqhnaSy3MU2OjAv7JNm5k2VjDCMfYnCTKEGQ XJMTLy/uneqQ6bXDvBO2+SO35UvVHw== X-Received: by 2002:a05:6300:2289:b0:3c3:a20f:f729 with SMTP id adf61e73a8af0-3c3ad79feffmr24945911637.7.1784746187975; Wed, 22 Jul 2026 11:49:47 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e1bc886sm11115841eec.26.2026.07.22.11.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 11:49:47 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 4/5] xterm: Explicitly specify directories for gnu-configize Date: Wed, 22 Jul 2026 11:49:38 -0700 Message-ID: <20260722184939.495321-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260722184939.495321-1-khem.raj@oss.qualcomm.com> References: <20260722184939.495321-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 ; Wed, 22 Jul 2026 18:49:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128411 xterm do_configure runs gnu-configize (to refresh config.sub/config.guess), newer versions of gnu-config needs to specify the directory for configure scripts Fixes a build error abort in do_configure: gnu-configize: error: 'configure.ac' is required Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/xorg-app/xterm_410.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-graphics/xorg-app/xterm_410.bb b/meta-oe/recipes-graphics/xorg-app/xterm_410.bb index d10fb999fe..e116eedad2 100644 --- a/meta-oe/recipes-graphics/xorg-app/xterm_410.bb +++ b/meta-oe/recipes-graphics/xorg-app/xterm_410.bb @@ -30,8 +30,8 @@ B = "${S}" CFLAGS += "-D_GNU_SOURCE" do_configure() { - gnu-configize --force - sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure + gnu-configize --force ${S} + sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i ${S}/configure oe_runconf } From patchwork Wed Jul 22 18:49:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93271 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 BC6ABC531BC for ; Wed, 22 Jul 2026 18:49:52 +0000 (UTC) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7427.1784746190017582301 for ; Wed, 22 Jul 2026 11:49:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=jUF0rOPT; spf=pass (domain: gmail.com, ip: 209.85.215.177, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-c966b9ee9cbso7603746a12.1 for ; Wed, 22 Jul 2026 11:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784746189; x=1785350989; 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=XcQl8WpAduq449rTE7o1vQmOQAVmIHtEotqnJdxMQR0=; b=jUF0rOPTk0awYHkyP8fnt/YRAzaVkWpfgHuCf4FT8lyi+IrLhIGWWsibF9shN027KX d/G2v2/LEsjUmuMXdVjCpuF7D21SyluqG6Hsl00/bIT0BaYK7H4apulc5mTO1aE8o0C/ Qv90iRuGJNCQXOlMf37l+q0KyLr1Tw1Uw6/h46REUM01YeYq90zgyLxJ/MZFLKrQg2oC oDHq8lYsdHVyGKObIyCN9Yvz5qq4rgrpLpoeX3LBqWEjEB66pmw8u9N4rDw9x04Dh2bv pwdKoqaL4CjVd/wWCq7++KQ7oMtLe4rvLqq/Nm7KY5zE1Su1kXIXBowutBSYrqma75gh 0V8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784746189; x=1785350989; 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=XcQl8WpAduq449rTE7o1vQmOQAVmIHtEotqnJdxMQR0=; b=RGv4LNMEbFKG6RNpSns0hGDO9OxolW3DcMkMjaAUltpFmAAOKeOE7PJltgPpaEv9MN su6fUppVxexV02iLU9QaLWQwxjkHi+azxYEbcj9nYc8Hxw1TnSpuFVf8YZa17CZuCY/D CiFj2I/5vhsywTFFN1+DYN5bATYZZG4vSfOc0NVlQMLIw07/O4ZYvgs8tVYBxYXcoyyQ T1pVQv5TldZei4il51GkejwQ9ahuuEL8UbOWJdbcq1aP1bX5qowTjOIEm6Pp+dSsszwH OEQTp0fV9wNlvOB/BTdHhewtQob/wa5wjo7ZKsumtMCa0CYbUJ7TGzWnlP4aw9AMjl9k 3Quw== X-Gm-Message-State: AOJu0Ywo5kdEmozzW/5GdVpboiUKUEXNAMLYpI1ZgOFBYJOI+0xZOeeT qu1vD/4mG1p9RFOm0Ze1j6jUnZXPRGth/RwOzyWpmVn2Icm/Is3HOVfJ/n7ckA== X-Gm-Gg: AR+sD13vBl/5cYwNzDQancw08lZj7EUEL+k3IR+92ynBWKVPoflr1/B5+WhH4FSo9m8 RPTmtW7LFOSMLwF+D6Y8GuKZ3pQcKz/GmnaeQvgJJRX1GEB+N9YKY1Zk4S79HVsUvKovdijflvd R9sJld0qm37vvSTrauYC0FAl5f601uGzbkswOqO6Qi18UphwSLELR3U6tFFMliO8T6wLb+G61IQ zVJLJyrdnKFZMT6+NMNT8+8vcXKX3bxO7LlHbdO8ekvzPsgojBAmSdbxVLJVU967/8MSsc6QzUJ GJ3klteBTJT550NGHauD7WZRZJLElyrnOlJ/C9t5SxjlHRQ6ww41eqVT6BqIKyxo/vlPq3vduZ/ u1MMA7pG4SZZ0lrNju3/irr9/NeDN3sCX8tjXVRIwxmy/9HVpWZSHBQsWVH2x165l9q+G/zpTcn JoL18/tbX0PMoIpNoXb1bVCuHV5nuCg7F4NRayf1lHoomFXOLBi4koetFMLghUFsaF5UVG9wCft ueSTL+dDhbQrm+kZC0vFkmjBQuW2Fxubz7/kRUa+WQFqVjztH5ploG6x7IvVY/ZtUo1n+PdrD9m RaWMijwtCxjFDLIvrVY8KFYVdSVt6g== X-Received: by 2002:a05:6a20:cc0b:b0:3bf:9b3d:61bb with SMTP id adf61e73a8af0-3c3ad7aa226mr27197610637.16.1784746189324; Wed, 22 Jul 2026 11:49:49 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e1bc886sm11115841eec.26.2026.07.22.11.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 11:49: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 5/5] sysdig: pin Curses to target sysroot so chisel uses LuaJIT lua.h Date: Wed, 22 Jul 2026 11:49:39 -0700 Message-ID: <20260722184939.495321-5-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260722184939.495321-1-khem.raj@oss.qualcomm.com> References: <20260722184939.495321-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 ; Wed, 22 Jul 2026 18:49:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128412 chisel does #include "lua.h" and links libluajit-5.1.so, but the link failed with undefined Lua symbols (luaL_openselectedlibs, lua_setglobal, lua_getglobal, lua_pcallk). Those come from the stock Lua >= 5.4 header, not LuaJIT. The stray stock lua.h reaches the target compile line via ncurses.cmake: find_package(Curses) resolves CURSES_INCLUDE_DIR to the native sysroot (recipe-sysroot-native/usr/include, which also carries ncurses.h/form.h and, dragged in by lua-native, lua.h), then include_directories() places that dir ahead of the LuaJIT include dir. The prior CXXFLAGS -I workaround could not win because CMake orders target include_directories before CMAKE_CXX_FLAGS. Pin CURSES_INCLUDE_DIR/CURSES_LIBRARIES to the target sysroot so the native include dir never leaks into the target build; lua.h then resolves through LUAJIT_INCLUDE and matches the linked library. Signed-off-by: Khem Raj --- .../recipes-extended/sysdig/sysdig_0.39.0.bb | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/meta-oe/recipes-extended/sysdig/sysdig_0.39.0.bb b/meta-oe/recipes-extended/sysdig/sysdig_0.39.0.bb index a59e7d296c..b9bf8ba90f 100644 --- a/meta-oe/recipes-extended/sysdig/sysdig_0.39.0.bb +++ b/meta-oe/recipes-extended/sysdig/sysdig_0.39.0.bb @@ -60,17 +60,24 @@ EXTRA_OECMAKE = "\ -DUSE_BUNDLED_JSONCPP=OFF \ -DBUILD_SYSDIG_MODERN_BPF=OFF \ -DCREATE_TEST_TARGETS=OFF \ + -DCURSES_INCLUDE_DIR=${STAGING_INCDIR} \ + -DCURSES_LIBRARIES=${STAGING_LIBDIR}/libncurses.so\;${STAGING_LIBDIR}/libform.so \ " -# sysdig's chisel code does #include "lua.h". The recipe-sysroot also carries -# stock Lua headers (openembedded-core lua installs lua.h into ${includedir}), -# which are ABI-incompatible with the LuaJIT library sysdig links against: in -# Lua >= 5.4.4 luaL_openlibs is a macro for luaL_openselectedlibs and -# lua_setglobal/lua_pcallk are real symbols, none of which LuaJIT provides. -# sysdig's luajit.cmake only honours LUA_INCLUDE_DIR in its stock-Lua fallback, -# not when it finds LuaJIT, and the LuaJIT include dir does not win the search -# order, so lua.h resolves to the stock header and the link fails. Put the -# LuaJIT include dir first so its lua.h is used and matches the linked library. +# sysdig's chisel code does #include "lua.h", but the only lua.h it must ever +# resolve to is LuaJIT's (it links libluajit-5.1.so). The native sysroot also +# ships a stock Lua header (lua-native pulls lua.h into +# recipe-sysroot-native/usr/include), and in Lua >= 5.4.4 luaL_openlibs is a +# macro for luaL_openselectedlibs while lua_setglobal/getglobal/pcallk are real +# symbols, none of which LuaJIT provides -- so compiling chisel against it makes +# the link fail with undefined Lua symbols. +# +# That native include dir leaks onto the target compile line because sysdig's +# ncurses.cmake runs find_package(Curses), which resolves CURSES_INCLUDE_DIR to +# the native sysroot (native also carries ncurses.h/form.h) and then does +# include_directories(${CURSES_INCLUDE_DIR}), placing it ahead of the LuaJIT +# include dir. Pin Curses to the target sysroot so the native dir (and its stray +# lua.h) never reaches the target build; lua.h then resolves via LUAJIT_INCLUDE. #Add include dir to find driver_config.h CXXFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1 -I${WORKDIR}/driver_Make/driver/src" CFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1 -I${WORKDIR}/driver_Make/driver/src"