From patchwork Wed Jul 29 05:28:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93798 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 63541C54F55 for ; Wed, 29 Jul 2026 05:29:12 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4928.1785302945522741304 for ; Tue, 28 Jul 2026 22:29:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=qN9aUKF4; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-38e08baf860so595785a91.2 for ; Tue, 28 Jul 2026 22:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785302945; x=1785907745; 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=RHXBM+b2sNZpdd7GVEjCkgd44fCrdui/bdUtXGzXcm4=; b=qN9aUKF4vYL6Tm6j8+hhI4tVsYddCoWqJdoTBUFHUH2C8kTsYOgrp+1ISM8d+ABptd BjtY3kNeR1uT3X6cLpuPf8uPwIGN5oh3tlqA9TyulX0IjUAmD8FynCqnAEAytjD/4e6e vJS13TDIliWIMb+oxIOBo4vnMugH+TWck5ow+QK8mA162fDJYFTQn1rmFk/7wOYOPMhr hrXrsVNCcs5hVpp3gyRUsgeumjNGleQLfrJB5LiKR4u04eMJ+mkGkqfsZHpSN+t2ba3G PtNvlmMKoIBZXOpIVb6KJ21VQfJmR1bSxQwLGmRAm3Ha6ZwYFYieP0L4QsVr5humO/6+ UBfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785302945; x=1785907745; 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=RHXBM+b2sNZpdd7GVEjCkgd44fCrdui/bdUtXGzXcm4=; b=iy5zKFyaQ0JyaaIq2nRjZtjZ4JGTaG2XFhe2NRnSXgTOYyOsBG4LeUo6Xsa+Cu5Lm5 0zYSY/+z4rt0Bq1AvSjzGRjlGCz/VXzxgY3A/cYESxDi2Iksuy95Vzx0/Nly4+j+g5B4 /75cr/SiMv6jN9RA7lZ0meU9Kc6JPW005NlofFS0dhvay//8k0Fd6fUaY6psoql8pCdv 53/iXiWqeVaU/o8SAKw5mpZPbPomChpHOLizz9f55Y6vr2YAPV3gk0wqcQeISE1dMYzs QckXiTmGEtHH45kacecCohYguyD6NeQm12sl6wZKoRwqVhWCKhh5DkXE1n+hT8cZzX14 S33g== X-Gm-Message-State: AOJu0YyI3m8LSwAeZJWO8ies4KqM5StfcCprW/vU0WpO/G4l4/f9tRFd D1PkvetIoF8v05/ZsDghjuRuCIMImqPHS7WSalr/JRHYiH7wDJQQZ0E31piQzr+H X-Gm-Gg: AR+sD139rAMvPGN92hvSkKXaowe9fZ+VJfU48Biwhq2RIaNrnAjpTiaMQEYVUyykQzI /mHyLCQYRF/dQSew0UJsxIb3B1rEH7K6HmztZdZ2axpy9AQWY7Fw96q9boUMlSxX78nE4KBPuNC 2lbE5RJzf3Se8uaTrCup3FwxXFb+oAL754MHKc5UExexlTgyr/OxJ4xknn/FXjRf1nNk/7S+EAm w0XLyWoubl48YHg9A5aU+xbWxYCi8Rr1yhwe6Duj3rpdtJUZC2N8F+UJIpYZ6KKkkH+nlOGo50r hjE6efD8dUG7gZP8boeVnLTmzdO7xVupkEiuoWADwFPmI8qQQHTeulA+q50xtzBLQOlKT7LmTU6 FoBX1v4RN0TurQ8suhd2xkbVKq18HrVVoNI07BTyr7KvUEyR2LknM0rWfMLLXRl7vP0C2k46O+4 J95pQAD2SKWCaJDfn0kYE6r8s+JOp/Ow07yru148Kfqf6lZRDSdSDrueqnKWqvP7fhgcO0S6+Ii 8jgQyJR2vKsGq7N6UNlhkjlvi2MiRxHceWjSA+XElVeaFvopwg0WbJ5nupRjTpoipmcWAWMTJ1h 45rCROXcEiUw9Fzg89V5YgU17WkvpeHvjPHlVBJLVbyOsW10dZ7bvkW7FKqUAVLpLShwYdvFVou tjQ== X-Received: by 2002:a05:6a21:3948:b0:3c3:68b0:e273 with SMTP id adf61e73a8af0-3c8aaf7b156mr6135610637.15.1785302944753; Tue, 28 Jul 2026 22:29:04 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13e7271f010sm6097316c88.9.2026.07.28.22.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 22:29:04 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-python][PATCH 1/5] python3-thrift: Switch to python_setuptools_build_meta Date: Tue, 28 Jul 2026 22:28:56 -0700 Message-ID: <20260729052901.2147056-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, 29 Jul 2026 05:29:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128535 From: Khem Raj thrift's pyproject.toml declares setuptools.build_meta as its build backend, so setuptools3 is the wrong class and do_check_backend warns: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend] Signed-off-by: Khem Raj --- .../recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-python/recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb b/meta-python/recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb index f59a38a4eb..5f2bdc6e53 100644 --- a/meta-python/recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb +++ b/meta-python/recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62 SRC_URI[sha256sum] = "9ef601c49e988475ff0e741d8e1b45feec23b48514e524341efc274191f1789c" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta # Use different filename to prevent conflicts with thrift itself PYPI_SRC_URI:append = ";downloadfilename=${BP}.${PYPI_PACKAGE_EXT}" From patchwork Wed Jul 29 05:28:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93799 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 6EB86C54FCC for ; Wed, 29 Jul 2026 05:29:12 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.4906.1785302946548362129 for ; Tue, 28 Jul 2026 22:29:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=gm+I7dSt; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-382ef647e20so547928a91.1 for ; Tue, 28 Jul 2026 22:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785302946; x=1785907746; 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=aKoU4xwYZEhGAsm8IRz9OtU8NcHlYNpVoO7FH5IHy4U=; b=gm+I7dStn3UeptGDffpJrn/Nux2E8gQJ+Rb+2VrPBLJYo1R2OxsWB5YCfT0jN+ne5T OBdw6fhFfb9bC44dAO8Jn1Mrn/NK7m+143QlQtjv1H8xw07Tfbovn8wV7jfNbMaxtO3v x4wqF5zynr3N4/TrX/UFrupRdcwR8NuMAvrZb/1DH4WvFsRKfkszgol3iW8ntcg8WGep 2z42I12THWuneheqaT30zk4EouxEMvqA4cy7OrqFXAIVesAENIpwQKfsgisv1hKriZt5 RZpmTxQCcZb+AnpYAxJq3KzrQiSsILOBDZBvEX6ciD4QYx0RlEhe8IeRw2JOLeMKbIoj V1dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785302946; x=1785907746; 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=aKoU4xwYZEhGAsm8IRz9OtU8NcHlYNpVoO7FH5IHy4U=; b=D3PC30z+dgwhtkaVbp6pSGNsWJcI+pPAWajFlzn3akMJjRZW4U5w3gz5Hea4PXBZBy ZCn0yuGrz+9if5mKnwl+T0ChXpyPNI0bsjp1YWcK2Yw7i+Yi9mRZxrx4IgGb5zjts+Yv AUxj2RTvXEkUZfOYbHD+teMuuPUuMEdklpUqZzGvmLB/H30pwSXXV7CL9gsLOuUOmjtY FaOuOU4NiXciC0kNVO9/FeaRP/J0Lghkl65rrgaA+KeIlLvieHRfr0Cs3MC1iJ45Zg1y XfMuvtnBWea8xP9IyFswPBExraB6psK5RxyPKsy89nPaDmSup15ugPzQh06F4uXM4+At iy1g== X-Gm-Message-State: AOJu0YyOSGiPp6d/I29WlrCPGpYGt06NhK0eo+ZFkDGq7gYyJiGefoZi NS023AWaqQxeFxzC1yIS3AFduhivNecfsUuvTnkAsbecH791dPy6lMK7O6o0mZp9 X-Gm-Gg: AR+sD12NwC+tRfVxzjaL7FT3BekCI4Kurv2Vu5R9u7MC4tAG0iJ+9ch/1laIShpBcR4 K0/ZbhFEARdj09kHP1TkucSSRMRfJ71fXX0XOGlPU0SPUTh3Dd2y6zoXBDEayGcbIZxVR75Tdh6 hwWmZIMew2Lh0XCBLo3sJ+USpch30+ues4ft/aaFI7wpEeMMwzGXWVec+gCHscpaNmIZAufpNxO zYgFspa8+FwcMohe7DT3FP0In1ItiJPfDPQKvrveSFvXy8Upa4SSdZZpGS1hblzEXhEqoZQbhTu hp4RHJRM5dTtKpB1vxu0Gw/+mLvnEpVmCtvaKPa1Ix8LqfvM+4MW/Ve3Bmv026x1JtOpqQMFVP8 0F7ppNCZ3i4KWir5PdJeJNdFp2yW1gaP7xgu51MhfGn6Tlf9Cy9Euy8KfN5Mu9EuzcsIwCbzD38 WDP92B5jMMVhIVDC+oa+aqLW21xFP/bAW3WVa2/+oARERG46WPRF8FSjihu6uaSzey/oQ9Iw/pO zwqB7HO1PRNdGob7kIG0ivH/qqd1/5y4NtgGgLKJMH4swGSiOKROlmkVWf6iQSJnU0IFMqpLckM o6ww8Nv/mNWUf459CoGbUX5BfQ7BpmKtjKkDmw1dG5Jw6ALB8vDHcX/j3BkaibbmK+R/5z3c8m3 dlA== X-Received: by 2002:a17:90b:524a:b0:387:e0db:3d8e with SMTP id 98e67ed59e1d1-38f6a586290mr6131403a91.41.1785302945784; Tue, 28 Jul 2026 22:29:05 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13e7271f010sm6097316c88.9.2026.07.28.22.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 22:29:05 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-python][PATCH 2/5] python3-canopen: Switch to python_setuptools_build_meta Date: Tue, 28 Jul 2026 22:28:57 -0700 Message-ID: <20260729052901.2147056-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260729052901.2147056-1-khem.raj@oss.qualcomm.com> References: <20260729052901.2147056-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, 29 Jul 2026 05:29:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128536 From: Khem Raj canopen's pyproject.toml declares setuptools.build_meta as its build backend, so setuptools3 is the wrong class and do_check_backend warns: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend] Unlike setup.py, pyproject-build honours the declared build requirements, so the setuptools_scm dependency has to be provided explicitly, otherwise do_compile fails with: ERROR Unmet dependencies ... setuptools_scm>=8 wanted: >=8 found: not installed setuptools_scm was silently ignored before, so the package used to ship its metadata as canopen-0.0.0.dist-info. Pin the version to ${PV} so the directory is now correctly named canopen-2.4.1.dist-info. Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-canopen_2.4.1.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb b/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb index 80c39f6c2c..b0c6f9f10e 100644 --- a/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb +++ b/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb @@ -5,7 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=97f135a6ee6f800c377b5512122c7a8d" SRC_URI[sha256sum] = "20a84bc498b34dadd79cece467d3bbe19591c1c02a8f39331bcc6065c4d8b2eb" -inherit setuptools3 pypi +DEPENDS += "python3-setuptools-scm-native" + +inherit python_setuptools_build_meta pypi + +# The sdist has no git metadata for setuptools_scm to look at. +export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}" RDEPENDS:${PN} += "\ python3-can \ From patchwork Wed Jul 29 05:28: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: 93797 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 3C005C54F51 for ; Wed, 29 Jul 2026 05:29:12 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.4907.1785302947411298830 for ; Tue, 28 Jul 2026 22:29:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=mQUZQvMg; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-381b831d535so660224a91.0 for ; Tue, 28 Jul 2026 22:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785302947; x=1785907747; 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=UMMlXB6RoZnoWYiMFR1ZPLx3yCgqgrs+micLK1hYNZQ=; b=mQUZQvMgz79qOeqsr/YF1VSzj8Sp5c3ADH18aje75GgTT4dlZxNzTrQ6ZDdH2srq6V nEJzMMQH3AGp2/sOrE83ZvYHYXLJ099lZYgdZ30rBGY9Zhiiiwy1lSGio89KP9EBJt5A W6Rwr208MUZb3wQMge7z8fdtv9r0zgXBoYMuHmMdvDkA8eyI4uCrPwO2KsKM2xiGz+D8 pWqmEjk55oTu0evM5NECIRwFzAwpRswvg5ZLvklmOWp58lRVrrS6tBI4J7iE6BHm4d7l J4rSCqcg67b5qPgpS9xIcfO1SQfFyIQphs9MmKjJr/YKISku1R1s6Ngm5DPXr0yp4t7p Xw8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785302947; x=1785907747; 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=UMMlXB6RoZnoWYiMFR1ZPLx3yCgqgrs+micLK1hYNZQ=; b=k93ADwrH9PzPKk5Ovve1D3my8fxoSJE/vSQkrXYviMFKUg2EUygbeaCP8lbB7BPlnX FzE3/lzw7b9k+mliFgtad+ykMnZEtPo3qdC88tr9Mv88ZRAVmLr18g7FRK5mLaSwNfo3 EayaimJS2vim5WRO8kIcPvOFlJoFV90/r5lDEb7MxjOEULvK1OYrQbyluWdqqEyuvP+z gdpDROVBlNimjyvVGu1fXSP+mHVCrNQq5wzBs0ipXI6KQHOWZsBKSt4Ru9TlpNK8yANE 9xSHNCxcsh6wsvtydOMWYap2gfc10Odsi9STDoCMgmTwaWNZh0R2yru1LseKmfrwyhAk 2Vtw== X-Gm-Message-State: AOJu0YxQeg7Hui+xYsd4j453aStVL4ybL8NVAUGlc5HEG6gJZeAmRb4B R0+mo5mJAxWbZj0j2XmT7fAfWL6j47j6s+BHPRwsWWvgasN8J5GPH7jPDi6e1w== X-Gm-Gg: AR+sD12ubFZs1tp0IoWdjl6AYAtPueDSGcCj9oPgJp80FV1MScK8HCt+f6nd8cX0s57 /Ahequ8l9+v3MRSsD5G95TToIfBAUW42b5z0mryl3LDd64Bej35MKCyx+UL0LO+Djjl/+cadOsH U8ZNSynvG+sdmQwRRCUN6v+hei6ys4Y/cvWyqhxr9QSArrxTAZx0pJZVSmD8rHBbDR/oteAVy7z EKXL331qidO9/Nf9l5TFLD3inHdRi5iTXgo31Iv5tf3bX20jbo9xnOQtxYEYEB6bOpgSq1iWFO4 4PxnqdKHMJttUAzYVPrVWBiOpLoCjVPNBdH3YNGVHF7vdIAW3AyGuHY1ZKWlkHV8JuMw7X4DDdI Whl1BVSSRD2diNj7oJzTjnpWhkzV9Le9zIM6Kq547/NriLvihHQ+4r8lzJE2ETv4cdGWtwgbfcz 61thdkZ+N51lsnHep8DeWBMbF7r4AFpALo/MUaoA1OcbReJ3C/McovIgXoFxMg1x3QpHiRPrJsw 19TWKpZs7hgME3j5/RWwHivOjE9mOlkAmQcQhnaBrAacp2c1xEdT60GmH0FUV9d2RW061ElFpur RcrI5u+QRe1hCiYslAaZ+OOLRqU3Q/nOm2TO5FYFo1SBI7eScj0wXizWZfiLELvGCLjwNorrFwQ NLQ== X-Received: by 2002:a17:90b:2b48:b0:38e:120d:df09 with SMTP id 98e67ed59e1d1-38f6a4e2861mr5713833a91.25.1785302946811; Tue, 28 Jul 2026 22:29:06 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13e7271f010sm6097316c88.9.2026.07.28.22.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 22:29:06 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-python][PATCH 3/5] python3-uefi-firmware: Switch to python_setuptools_build_meta Date: Tue, 28 Jul 2026 22:28:58 -0700 Message-ID: <20260729052901.2147056-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260729052901.2147056-1-khem.raj@oss.qualcomm.com> References: <20260729052901.2147056-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, 29 Jul 2026 05:29:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128537 From: Khem Raj uefi-firmware-parser's pyproject.toml declares setuptools.build_meta as its build backend, so setuptools3 is the wrong class and do_check_backend warns: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend] Unlike setup.py, pyproject-build honours the declared build requirements, so the setuptools_scm dependency has to be provided explicitly, otherwise do_compile fails with: ERROR Unmet dependencies ... setuptools-scm>=8.0 wanted: >=8.0 found: not installed setup.py passes use_scm_version to setup(), which was silently discarded before ("Unknown distribution option: 'use_scm_version'"), so the package used to ship its metadata as uefi_firmware-0.0.0.dist-info. Pin the version to ${PV} so the directory is now correctly named uefi_firmware-1.16.dist-info. Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-uefi-firmware_1.16.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-uefi-firmware_1.16.bb b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.16.bb index 8ad195d7ae..a5d9011094 100644 --- a/meta-python/recipes-devtools/python/python3-uefi-firmware_1.16.bb +++ b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.16.bb @@ -11,7 +11,13 @@ SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch SRCREV = "e202e576cefd1fefb3f510237bbd0aea8aedca07" -inherit setuptools3 +DEPENDS += "python3-setuptools-scm-native" + +inherit python_setuptools_build_meta + +# The tarball is built from a git tag, so let setuptools_scm use ${PV} +# instead of deriving a version from the checkout. +export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}" RDEPENDS:${PN} += " \ python3-ctypes \ From patchwork Wed Jul 29 05:28: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: 93796 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 3AAC6C53219 for ; Wed, 29 Jul 2026 05:29:12 +0000 (UTC) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4929.1785302948588833616 for ; Tue, 28 Jul 2026 22:29:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=g/ivBcG3; spf=pass (domain: gmail.com, ip: 209.85.215.175, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-ca957432c7fso386984a12.1 for ; Tue, 28 Jul 2026 22:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785302948; x=1785907748; 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=C0+1cQeZVxKXtjv1ju3Hn4Be1D+SdWGo0WCwvr+aukI=; b=g/ivBcG3f8JHKgGBXdAMEIO4vld15gQYxuZZG8EOk/xHe63gYWDB14CopZBDGg3iLC CF2RRRK82YcqePQFLDuEkV4+QN3JkBmwCEkRCaT0w6ZdFStW8Dcoyw2WtYERszvlzYOM 8gu4V0P+BSsLYbmT4Y+zJMGoLVXzQ0snJzBXHvuADIThnPfI3keCvEWXL539eCmHmh4s Yu6O56yZ6W1I6JCA3FNVlcRx1mjZ5FbA+QdElx/ifBF0G3hyyi907HfPIUNnRgQrbOFa 2O2K1tnM0z/CyksbW8A+T0QP0Lf9s9m1Wt8q1ZRIW+f3JhnEnYdFa4kRMGMLj0PTLPCp 2OyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785302948; x=1785907748; 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=C0+1cQeZVxKXtjv1ju3Hn4Be1D+SdWGo0WCwvr+aukI=; b=ABPfsRNtcKptr5sLo7svkrMUpiDkfBa4DezGYkG//04qduMJQhnMYDyCkHeNgtJjiD DJ+hMvznm44XcM82dlnYSzi3Zlwgq0cQEukGBeFEMPUcxxCfEfmUzNhx0sxrr9iwB6wT VxG/o/7Pf6CiXR4Z0KA/NYUI2q6B74uoaJGaN16+UHf6Rq2+w+1n7JtZ4YSDS3aVXbbA uOpcZOlgzc4BdtUldFbAsYXo4x1b4R6Hq43nE8nYArk/JjbQ9qisf2is5BeEnbqz7nnv ZrR+aZ73hwxtywOPDT2ledeTLZNNBVXzROIAwexYwTteLzpCEP0ULpmlUKrHtoJqVQj5 d3Ug== X-Gm-Message-State: AOJu0YwJYCrI0ntCJE+XD6vwOiIKXKg4vPI2Yc9Wcl4gqCEHLfOpcnd3 Daa2u4GDAGHr5qDRLKsMhOo1OQlMbvnDOpisbuCZtd+cCnGcC7a9Cr9ZBSlGLZB3 X-Gm-Gg: AR+sD10r7EVrQeHYro59Gtx6STtomm5zFMBT7L7SZAaZHeSzThre2k3AgkUn9/wQAM6 JhH8bOVh53a9lK0w6OcaT9ujmihUihCb0fsZqjTSFRAUj0HiAoG/9kMfvJIyGqWANXMK9CO2K3r trA84plQQXrV9ibgmqKTzcfQ/k/z34p35d+4sBviQ5+OJEni4W1azojs0UYhnbIifnD8+8dlSpg 3bL4wvLF/r7ThUPjY8mEr2dRBne628VtJyEMCy+vNOU59gIr4/roEhJ3qjGQ2vl3wVEHMag2/nh fSQPOyWs+wckD/jhMYtaHd2AjbSYIusy7pegJvqn9k6YMFEUTHNrcXrkbGRmgWITpO55JQrAhR6 AmTyj2s6PnQVSdZ4R+EA+3BQtgdvGIukjdYTJQLT1N8CEdnXZiBVaD8M5lZeDB9byfRcmKf2Ilo Cgzw8OBXBzTlQei59EMTpf8/Sbv0NrH1dmdl2MX+N41uUU1T4we7qR513sPpdVVnCCt1HOYS7DM EhKPt5clDLrHisw9y1Y2baZUDkD0aj8bwwHIPHLDKZTlZtIoHDseiVVBgIonABdAw+KSEYGUXvo upmtyNjCVSjnEBDd4ned4fE3Lk2LTpYUryvqQJEfn7BNgzN73822By6XWuBrQkA6EO/aB+wL4rv L7cqZLywjVnDV X-Received: by 2002:a05:6a21:4cca:b0:3bf:a7d5:df38 with SMTP id adf61e73a8af0-3c8aaf28fe3mr6875083637.9.1785302947759; Tue, 28 Jul 2026 22:29:07 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13e7271f010sm6097316c88.9.2026.07.28.22.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 22:29:07 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-python][PATCH 4/5] python3-wxgtk4: Skip the pep517-backend QA check Date: Tue, 28 Jul 2026 22:28:59 -0700 Message-ID: <20260729052901.2147056-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260729052901.2147056-1-khem.raj@oss.qualcomm.com> References: <20260729052901.2147056-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, 29 Jul 2026 05:29:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128538 From: Khem Raj wxPython's pyproject.toml declares setuptools.build_meta, so do_check_backend warns: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend] Switching to python_setuptools_build_meta is not possible though. The sdist ships a build.py in its top level directory which shadows the "build" module that pyproject-build imports itself, so do_compile dies before it even looks at the recipe: File ".../recipe-sysroot-native/usr/bin/pyproject-build", line 5, in from build.__main__ import entrypoint ModuleNotFoundError: No module named 'build.__main__'; 'build' is not a package Signed-off-by: Khem Raj --- .../python3-wxgtk4/python3-wxgtk4_4.2.5.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb index a84648266e..9a8952df32 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb @@ -20,6 +20,14 @@ SRC_URI[sha256sum] = "44e836d1bccd99c38790bb034b6ecf70d9060f6734320560f7c4b0d006 inherit pypi setuptools3 cython pkgconfig features_check +# wxPython declares setuptools.build_meta in pyproject.toml, but it cannot be +# built through pyproject-build: the sdist ships a build.py in its top level +# directory, which shadows the "build" module pyproject-build itself imports: +# from build.__main__ import entrypoint +# ModuleNotFoundError: No module named 'build.__main__'; 'build' is not a package +# Keep driving setup.py directly until upstream stops colliding with that name. +INSANE_SKIP += "pep517-backend" + REQUIRED_DISTRO_FEATURES = "x11" export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR} --baselib=${baselib}'" From patchwork Wed Jul 29 05:29: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: 93800 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 58AABC53200 for ; Wed, 29 Jul 2026 05:29:12 +0000 (UTC) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4930.1785302949994369759 for ; Tue, 28 Jul 2026 22:29:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=G4dS4wpY; spf=pass (domain: gmail.com, ip: 209.85.216.52, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-38e3efab7e0so465362a91.0 for ; Tue, 28 Jul 2026 22:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785302949; x=1785907749; 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=B9dvt+8xYxPS4NxtYpv5WL8dE78kqJWYfgIPio1QDxo=; b=G4dS4wpYGGZuMyQ4lnOg2rKj4Zo+IRKvSa28O3xof3ZMgD7phlMf3/iai5DFphvXre /qbERT7IwzBk8wUepKt+6lgVKurNYKOjDms8iFkwLpvdOmcqiWg7uJyl/VLUdj63HdMS c5Iu+eUCnJ92AfCw36aC2hA4qo7JgKt8kEXo9Qo4GRTVJxP/cSHPHoQaSVyrU42oZWcR Ald+u1T419GKm5Nx3q36UMkTCOPvGicUfYcsC/pwdDpVdlKc0qw7R7KEHRiJsBb1wA4x Brc75PxcC5QDJDrdRwWarWRoFWe7OK3990vUS2Ii8MxpgruVebIci0QwXVKu4f9LGd8E Lx2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785302949; x=1785907749; 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=B9dvt+8xYxPS4NxtYpv5WL8dE78kqJWYfgIPio1QDxo=; b=TABJRz+UFw6ap6YO7dJhlRmCdqe+6AfzwYZZokk4PhIUtzJL5+hpQIcmdoWDN3th1V 4oF92WHA8vdb9wTqg2SBP8395sTBRbyiZq4GtnA/gOvL/T0T5AzXCWAWRIN+TPfFh9ym csZOEGzzCOxVQmZTiNEfevr1flmrBkKWhHLPsMT0n39e350ilOsSfou8Q92SE6nQJNO/ qS0hRrfdsxE6T/k2AjyRBqJg/kjfw9J3Bm1L7WOnWW+AwA2SgI4rbgvDYBItm3ewDdgM vSbGe4c2VFvAp3+s1Aj/5wNTEwmtZpVbGtvc47RlnHRuwDOWnIzuCBOaBhOcIIfsTLzd MlFw== X-Gm-Message-State: AOJu0YzpIP31EKOX1DM8cKay5+yUEawggkDDpY5tQU19t0QNabePvzBm SYbLuvRgDj93HgyC9BGSpEsVYVyPyVnSjaAOvUrU2vOXmChyOqMNw3LySd2/hnNY X-Gm-Gg: AR+sD13eG5rHU9pvaMeMjc5wAjXoLnXo0M6xLYamPbYxXS3YzoDjDvmsLJrn/csUs4m KtUnEIoSIwTf62wEzbFw4YEC4yx3EujG3vRM4cpmJ7XP8lIftcF0z9EYkDb4NspqbQEUE+ikaAy bYKLU4+dNi8Cx3YMqSlEY5dnquuS3gkru4Mpg/mVs5kjqcud2vS5W6vGZGFBiKWlWFXS4dtvsiw J6wxkg+MxBBGlWqhT3HanqoqataW9jVq6G6LagBkxTRNiJwA7sIp1Vt/lWh1mtdrSkl+iU9b3IP HF80UVNuqhWwEjcbmmftPPbWU5fpFvueveSB2Rk+LbFp44s12WJQyDMexre2NMscv6iFP3Jgjbw MksP6tKxj+qvrNE/ZV1CyF0+wUNaSgSK+bj4d4zZWT1TzzBSz1BIvoUxAw/HuFk70vI6Ws41Pkh d/LBqnOlaEke4uhr0ZFo9hRz60iYeeVA2h+AKhkVTjNkLUEi6/27iKMApCgc1rCPnEYRKOb8/fC 0kJK8pGX4bRf0Mso+LwdmyUoeEjuOv1Qs+hBynnD8OrVOA+hKC/VHP2iWa/nTUJC/xYf+R22ICG 0nj/qvIkLdT/EeLAEvL2XMZIKuz3JbctewPpyt5c0e51S22puz/QkJm9He4lurBOfkx8xpjJTiz 8JrJnfmFY6Chw X-Received: by 2002:a17:90b:4403:b0:381:10a3:8b10 with SMTP id 98e67ed59e1d1-38f8369c1femr900424a91.14.1785302949220; Tue, 28 Jul 2026 22:29:09 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13e7271f010sm6097316c88.9.2026.07.28.22.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 22:29:08 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj Subject: [meta-oe][PATCH 5/5] bcc: Stop baking the build directory into the ptest binaries Date: Tue, 28 Jul 2026 22:29:00 -0700 Message-ID: <20260729052901.2147056-5-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260729052901.2147056-1-khem.raj@oss.qualcomm.com> References: <20260729052901.2147056-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, 29 Jul 2026 05:29:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128539 From: Khem Raj tests/cc passes -DCMAKE_CURRENT_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}" to every test object so the tests can find archive.zip, the debuginfo libraries and dummy_proc_map.txt at runtime. That put 13 copies of the absolute build directory into the installed test binary: QA Issue: File /usr/lib/bcc/ptest/tests/cc/test_libbcc_no_libbpf in package bcc-ptest contains reference to TMPDIR [buildpaths] and, on autobuilders whose TMPDIR sits below $HOME, additionally: QA Issue: ... contains a reference to the build host HOME directory. The recipe worked around this by installing the assets to ${D}${B}/tests/cc, i.e. by reproducing the build path inside the image, and by demoting buildpaths to a warning. Add a patch introducing a TEST_ASSET_DIR cache variable, defaulting to CMAKE_CURRENT_BINARY_DIR so the upstream default is unchanged, and point it at ${PTEST_PATH}/tests/cc. The assets are now installed next to the test binaries and no build path is embedded, so the buildpaths overrides can go away. Also install dummy_proc_map.txt, which the tests reference but which was never shipped. Signed-off-by: Khem Raj --- ...verriding-the-runtime-location-of-te.patch | 49 +++++++++++++++++++ .../recipes-devtools/bcc/bcc_0.37.0.bb | 24 +++++---- 2 files changed, 60 insertions(+), 13 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Allow-overriding-the-runtime-location-of-te.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Allow-overriding-the-runtime-location-of-te.patch b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Allow-overriding-the-runtime-location-of-te.patch new file mode 100644 index 0000000000..71fc2f5b7e --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Allow-overriding-the-runtime-location-of-te.patch @@ -0,0 +1,49 @@ +From ba4c3827dd93a21e35d324b41b90ffbd1dff5c4f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 28 Jul 2026 21:04:15 -0700 +Subject: [PATCH] tests/cc: Allow overriding the runtime location of test + assets + +tests/cc bakes CMAKE_CURRENT_BINARY_DIR into every test object so that the +tests can find archive.zip, the debuginfo test libraries and +dummy_proc_map.txt at runtime. + +That makes the build directory part of the installed test binaries. For +distributions which build the tests in one place and run them somewhere else +this is both useless and a reproducibility problem: the absolute build path +ends up embedded in a shipped binary, and the assets have to be installed at +that same path for the tests to pass. + +Introduce a TEST_ASSET_DIR cache variable which defaults to +CMAKE_CURRENT_BINARY_DIR, so the default behaviour is unchanged, and use it +for the macro definition. Packagers can now point it at wherever the assets +are installed. + +The macro keeps its current name to avoid churn in the test sources. + +Upstream-Status: Submitted [https://github.com/iovisor/bcc/issues] + +Signed-off-by: Khem Raj +--- + tests/cc/CMakeLists.txt | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/tests/cc/CMakeLists.txt b/tests/cc/CMakeLists.txt +index b4dd3f9..8f56fc9 100644 +--- a/tests/cc/CMakeLists.txt ++++ b/tests/cc/CMakeLists.txt +@@ -19,7 +19,13 @@ else() + endif() + + add_test(NAME c_test_static COMMAND ${TEST_WRAPPER} c_test_static sudo ${CMAKE_CURRENT_BINARY_DIR}/test_static) +-add_compile_options(-DCMAKE_CURRENT_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}") ++# The tests locate their assets (archive.zip, the debuginfo libraries, ++# dummy_proc_map.txt, ...) through this macro. Let the runtime location be ++# overridden so that distributions can install the assets next to the test ++# binaries instead of baking the build directory into them. ++set(TEST_ASSET_DIR "${CMAKE_CURRENT_BINARY_DIR}" CACHE STRING ++ "Directory containing the test assets at runtime") ++add_compile_options(-DCMAKE_CURRENT_BINARY_DIR="${TEST_ASSET_DIR}") + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-result -fPIC") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result -fPIC") diff --git a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc_0.37.0.bb b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc_0.37.0.bb index 9ecc30b58b..9315a6e603 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc_0.37.0.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc_0.37.0.bb @@ -22,6 +22,7 @@ RDEPENDS:${PN}-ptest = "kernel-devsrc packagegroup-core-buildessential cmake bas SRC_URI = "gitsm://github.com/iovisor/bcc;branch=master;protocol=https;lfs=0;tag=v${PV} \ file://0001-CMakeLists.txt-override-the-PY_CMD_ESCAPED.patch \ file://0001-Vendor-just-enough-extra-headers-to-allow-libbpf-to-.patch \ + file://0001-tests-cc-Allow-overriding-the-runtime-location-of-te.patch \ file://run-ptest \ file://ptest_wrapper.sh \ " @@ -44,6 +45,11 @@ EXTRA_OECMAKE = " \ -DPYTHON_FLAGS=--install-lib=${PYTHON_SITEPACKAGES_DIR} \ " +# The C tests hardcode the location of their assets at build time. Point that at +# where do_install_ptest puts them so the build directory does not end up baked +# into the installed test binaries. +EXTRA_OECMAKE += "-DTEST_ASSET_DIR=${PTEST_PATH}/tests/cc" + # Avoid stripping debuginfo.so to fix some tests. INHIBIT_PACKAGE_STRIP = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" @@ -58,10 +64,11 @@ do_install:append() { do_install_ptest() { install -d ${D}${PTEST_PATH}/tests/cc - # ptest searches for shared libs and archive files in the build folder. - # Hence, these files are copied to the image to fix these tests. - install -d ${D}${B}/tests/cc - install ${B}/tests/cc/archive.zip ${B}/tests/cc/libdebuginfo_test_lib.so ${B}/tests/cc/with_gnu_debuglink.so ${B}/tests/cc/with_gnu_debugdata.so ${B}/tests/cc/debuginfo.so ${D}${B}/tests/cc + # The C tests look their assets up under TEST_ASSET_DIR, which is pointed at + # ${PTEST_PATH}/tests/cc at configure time, so install them next to the test + # binaries rather than at the (build host specific) build directory path. + install ${B}/tests/cc/archive.zip ${B}/tests/cc/libdebuginfo_test_lib.so ${B}/tests/cc/with_gnu_debuglink.so ${B}/tests/cc/with_gnu_debugdata.so ${B}/tests/cc/debuginfo.so ${D}${PTEST_PATH}/tests/cc + install -m 0644 ${B}/tests/cc/dummy_proc_map.txt ${D}${PTEST_PATH}/tests/cc install -d ${D}/opt install ${B}/tests/cc/test_libbcc_no_libbpf ${B}/tests/cc/libusdt_test_lib.so ${D}${PTEST_PATH}/tests/cc cp -rf ${S}/tests/python ${D}${PTEST_PATH}/tests/python @@ -75,18 +82,9 @@ do_install_ptest() { } FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" -FILES:${PN} += "${B}/tests/cc" FILES:${PN}-ptest += "${libdir}/libbcc.so" FILES:${PN}-ptest += "${libdir}/tools/" FILES:${PN}-ptest += "/opt/" FILES:${PN}-doc += "${datadir}/${PN}/man" COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux" - -# WARNING: bcc-0.30.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bcc/ptest/tests/cc/test_libbcc_no_libbpf in package bcc-ptest contains reference to TMPDIR [buildpaths] -# this one is difficult to resolve, because the tests use CMAKE_CURRENT_BINARY_DIR directly in .cc e.g.: -# https://github.com/iovisor/bcc/commit/7271bfc946a19413761be2e3c60c48bf72c5eea1#diff-233a0bfa490f3d7466c49935b64c86dd93956bbc0461f5af703b344cf6601461 -# we would probably need to use separate variable for "runtime" path for test assets from the standard CMAKE_CURRENT_BINARY_DIR variable or use relative -# path from the test binary -WARN_QA:append = "${@bb.utils.contains('PTEST_ENABLED', '1', ' buildpaths', '', d)}" -ERROR_QA:remove = "${@bb.utils.contains('PTEST_ENABLED', '1', 'buildpaths', '', d)}"