From patchwork Wed Jan 29 11:40:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56222 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 F349AC0218D for ; Wed, 29 Jan 2025 11:41:05 +0000 (UTC) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.web11.10498.1738150843990228137 for ; Wed, 29 Jan 2025 03:40:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=kzhJ4Saq; spf=pass (domain: konsulko.com, ip: 209.85.221.43, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-388cae9eb9fso3996865f8f.3 for ; Wed, 29 Jan 2025 03:40:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150842; x=1738755642; 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; bh=BebjJCupH84XsGH4AZ/RxD5d/Y1TbvlT52PU+DXz+UM=; b=kzhJ4SaqmrpYO0lWqOzr4t3BPoO2Kreh2sysqWlS0+foYnnLHvGj6OEwtpvm24aXJx myUDUvaMY19NI4N87lQjY1lD6HIu4eouZjnysfjnDBcPN+H6pCEdrmoJn4SHcgbAsKzO s5pltUjbxHjVjdV5IKJnjZFk/ze8Bn5fwY3Fg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150842; x=1738755642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BebjJCupH84XsGH4AZ/RxD5d/Y1TbvlT52PU+DXz+UM=; b=ms6ok17DkY13c2fBadprHkDaoVHSp7pSQxYBzqTW/G1iJ6Tw3a+gJoaxSJFJkcB6ou SFZYomKQC5M6fx2nuUxmTkfXNFIjxkeuFy5wDhHGznRSUzZXkchRseiOepCKVgpU/TdC 3RMHkw2RIVZofypWIKFxq8ZDhUm3RZ8gQuB+AByPCTa0VXbqSrSZeEXOq+RYHgj7VR/L aXxzTO8kwnQawbCPlEscD3DiMpH1gBXET4Bgr0fVxnTdY8N5c/E2Vfs4ER4WgUuDIjXA R+tUxJi2PV3bNk0cZooB6UxCedAEUpgu3SPjIZUIYiW7rFv7roLRMzfndNxDqkfYqp08 wBpQ== X-Gm-Message-State: AOJu0YxTcaJNZv+w5jgpK4gvQ/atiM8Rs4im3hvmGAWndgzrSF9bpqKK +QXrwlOJ0DtryqPedbXLY/ShO98cBOtX4y9opRXdNRCVlMj6FUXJECcOdmyLZDbExoEG7sieLa2 K X-Gm-Gg: ASbGncssETmXXV4yNuaq3tEyEXp+aApaDGXxK+Z3tMc8VeF3gBbDD5Cxj8Ig2ImMtmH oxE89PWzvaB8+X0G8vxt+U/Q1I0/gT0MN5ePrTNrxXXCg3FTkb2KfxxhEJgupRyGAuCRvuZEmmf MJL/hjbv4H5JE0s7Rgk+rr99xhxzj2DNb2s6zYxEbpg5xSaw9oc75JSGfJbyKO+O06/mlpbGtj1 tbMkWpmY6Z56o8JxLuhj8PhKRRJW+jkL0/3k7MxLFh/GhL11g49pwC624CFMKdqjJXmMPRm4JE4 NLYCEn1oaaz7JjnyM+KDKzQiXdDWDQ== X-Google-Smtp-Source: AGHT+IHUDpK53Ff3CaMD9C/gpawgZn1TiEE9Bfsf7WFRTGH/ZziT4ovazmgtmBykLc6eT2bo6Gb71A== X-Received: by 2002:a5d:4904:0:b0:387:8752:5691 with SMTP id ffacd0b85a97d-38c520b964emr1623934f8f.47.1738150842123; Wed, 29 Jan 2025 03:40:42 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:41 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi , Stephan Kulow Subject: [meta-python][PATCH 1/7] python3-scikit-build-core: Use PYTHON_INCLUDE_DIR Date: Wed, 29 Jan 2025 13:40:33 +0200 Message-Id: <20250129114039.3562870-1-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115131 Add a patch to use PYTHON_INCLUDE_DIR to find Python Interpreter and Development.Module as suggested by Stephan Kulow: https://github.com/scikit-build/scikit-build-core/issues/952#issuecomment-2554058930 This work was sponsored by GOVCERT.LU. Suggested-by: Stephan Kulow Signed-off-by: Leon Anavi --- ...-builder.py-Check-PYTHON_INCLUDE_DIR.patch | 32 +++++++++++++++++++ .../python3-scikit-build-core_0.10.7.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch diff --git a/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch b/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch new file mode 100644 index 0000000000..13cb7b1e7f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch @@ -0,0 +1,32 @@ +From 5bc2d175c6a31a3de04444e5e22af310799ab10d Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Mon, 27 Jan 2025 19:17:48 +0200 +Subject: [PATCH] builder.py: Check PYTHON_INCLUDE_DIR + +Use PYTHON_INCLUDE_DIR to find Python Interpreter and +Development.Module. + +Upstream-Status: Inappropriate [oe specific] + +Suggested-by: Stephan Kulow +Signed-off-by: Leon Anavi +--- + src/scikit_build_core/builder/builder.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/scikit_build_core/builder/builder.py b/src/scikit_build_core/builder/builder.py +index b19173f..f4fb2af 100644 +--- a/src/scikit_build_core/builder/builder.py ++++ b/src/scikit_build_core/builder/builder.py +@@ -203,7 +203,7 @@ class Builder: + python_sabi_library = ( + get_python_library(self.config.env, abi3=True) if limited_api else None + ) +- python_include_dir = get_python_include_dir() ++ python_include_dir = os.getenv("PYTHON_INCLUDE_DIR") or get_python_include_dir() + numpy_include_dir = get_numpy_include_dir() + + # Classic Find Python +-- +2.39.5 + diff --git a/meta-python/recipes-devtools/python/python3-scikit-build-core_0.10.7.bb b/meta-python/recipes-devtools/python/python3-scikit-build-core_0.10.7.bb index 7c6c9ddda3..4df47c3c5d 100644 --- a/meta-python/recipes-devtools/python/python3-scikit-build-core_0.10.7.bb +++ b/meta-python/recipes-devtools/python/python3-scikit-build-core_0.10.7.bb @@ -9,6 +9,7 @@ DEPENDS = "python3-hatch-vcs-native" inherit pypi python_hatchling +SRC_URI += "file://0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch" SRC_URI[sha256sum] = "04cbb59fe795202a7eeede1849112ee9dcbf3469feebd9b8b36aa541336ac4f8" BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56221 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 0FB7EC02196 for ; Wed, 29 Jan 2025 11:41:06 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.web10.10682.1738150844859758935 for ; Wed, 29 Jan 2025 03:40:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=SQMvEV1q; spf=pass (domain: konsulko.com, ip: 209.85.128.53, mailfrom: leon.anavi@konsulko.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-43618283dedso70575025e9.3 for ; Wed, 29 Jan 2025 03:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150843; x=1738755643; 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; bh=cmon5yUJMX2KGk5RzXdT3s5wcErRM1Xhyig45CB7NZA=; b=SQMvEV1qhuLUCD4Ow20RKVRgu9o/2OxduClBcapvXsYYOSUrQmJnBhWAZs3cn5SW14 wbTuO6glqpbmobxEhD0Wetc946fSorYgk55yDit0xKDhyA1ErnjIfdssXs5k/dDykjNv 0F9WUhh+H+rFRvlmztNuuFj58VX/ic1smZLs0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150843; x=1738755643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cmon5yUJMX2KGk5RzXdT3s5wcErRM1Xhyig45CB7NZA=; b=jprE3vei4Nu9yH+WXqpajMP376HvnWaazDgoHvnoQ/J9OZanCJs8ngo+v5PO3XRe24 aUCdWMTBtoYE84wTwba0fNnr81M4td/E8Q6OpabS7g80SIG7PcZ/yLiBduRmgDXFZZ6I HVf3UItw7T722MtzmWBSzv3ylZOlx3UZrZfYLNkwj1zFBObdt/TGKUFzeDKSnbdu/CLz HxezhMocVSXcJBU5idB/zlXkv0iOCgznfgztaOewuFsLQRagy8UbVTbaXYD5eaYYGmd8 V27DyEZAkRQxQc6bfZKrfd0wNGhptWnNHGq7DucuJDOfm1hzkdkvoTMWBV84B9kulBFO 7gNA== X-Gm-Message-State: AOJu0YzGO4vViJLfJpnhh6a7GNpLzM8TGdaGQC7+5pcCcH+w4M1/pHce M02NEhkrT0tfkjxDxX4VYUSbjfhVcfMko0oTUx19bKmx7mbxuv7qsn1jebqjZbZDPQCCINF+bk7 0 X-Gm-Gg: ASbGncu5/LbqpBbZkYA9Z8B8TKh2Tft1ERJQO+lQXCP6HHlOyd9geJMrQ/1wH62I75V Y/v8TFq7Plg09msqvmbIIY9AgAYK+PXx/pms3X4VJzqSISRBFNBSzMLVVkFUpeVIKZL2PtUWFi8 jmbSiAEOSwd0ylAB8EnbDVQ4Mnl7R6q4AeghBES2Xrft1SV28DJhWEghxm6vwD5Fb7pVy7m/NUt 4tX3HLUJ6AacbyVnqZSIMb+oVNZ6ZpB44dUJqopKnWbIsDcl3c8d4987pgJAmSyS1F2U7U/ZXQ9 hQ5bAsqiNvWuY2wCxtR/ddnT2rbUwA== X-Google-Smtp-Source: AGHT+IF/4WExlWejHEVBfm7qHZBJW63eSeqpHCDW/5Cq3oc6KCV5XJ0RXA4zo//qxxhWLlCoFDdwKw== X-Received: by 2002:a5d:64a3:0:b0:385:ddd2:6ab7 with SMTP id ffacd0b85a97d-38c520af7f9mr2192150f8f.52.1738150842952; Wed, 29 Jan 2025 03:40:42 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:42 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 2/7] python3-annotated-types: Add native and nativesdk Date: Wed, 29 Jan 2025 13:40:34 +0200 Message-Id: <20250129114039.3562870-2-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115132 To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-annotated-types-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- .../recipes-devtools/python/python3-annotated-types_0.7.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-annotated-types_0.7.0.bb b/meta-python/recipes-devtools/python/python3-annotated-types_0.7.0.bb index 7b1bb11a1e..79e26e7ae3 100644 --- a/meta-python/recipes-devtools/python/python3-annotated-types_0.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-annotated-types_0.7.0.bb @@ -14,3 +14,5 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" inherit pypi python_hatchling RDEPENDS:${PN} = "python3-typing-extensions" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56223 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 1F334C02195 for ; Wed, 29 Jan 2025 11:41:06 +0000 (UTC) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web10.10683.1738150845495761357 for ; Wed, 29 Jan 2025 03:40:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=keXM5WAD; spf=pass (domain: konsulko.com, ip: 209.85.221.46, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-385de59c1a0so3903744f8f.2 for ; Wed, 29 Jan 2025 03:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150844; x=1738755644; 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; bh=dcTZ91OSzTx7MOfEX0UiCrXCoiZp/AIHDhvREl7Lnag=; b=keXM5WADxLFlKLIOrTbGzscDNsHn8GAuiQJqwLa7seKeoQwQYEr13oqUTo59Pzu+hg POGIlA/J+kQ9Viop9SW8TjKhT9OreAxM1hewWf1fEPDEI/cuL4d0qV6mWbCR4kCA2Jur Rm2CDIDmSq2kLFN4N/HF0MBW8zacfhm/IqfwM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150844; x=1738755644; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dcTZ91OSzTx7MOfEX0UiCrXCoiZp/AIHDhvREl7Lnag=; b=C59/gB862gvc6pFtfNjL3AevHwD2EK82UghK4mPDKM4hv0iCb4KidN0vQE1aeBJ8/P 2bb5BKuAx3tO5QzYiXTKs2hiWx51kOKy0yS33FmbGvGmriEptHXEAzEt0Da8g6BqXA7l 5j1PGYEpt8wUxrbnIEAx5cQ89Mgbo7zatHmqIQwmiAlCpcVa7dbKD9u9X8HjIuU223UQ xvQbNJYkJ8NI/AUWjLR14KFeUe0zEG9cD6t1QydXalxqFWhX4tjIZVYIaS0qaCY0LFhq rNhTxmqfdBxWSJU/K69zwOinGo/UftZKLhkjY2l5BuoN7XQvsk837DHQQH0umTYrj90I eXOw== X-Gm-Message-State: AOJu0YyrSIWKNF7zGi1c7gFpyHR77b+1kfyUiMs3xb+R42pAcB4e2YxH HetDIJIxtNV/sLegTwPDUoe1W5zpGUJWNYNtneO+XXWC6wmeZhsdRIkkE5+eoOEeLnhspnbT39u u X-Gm-Gg: ASbGncs/Ga6C3RVwvVP+v3I1rkKATH7qNRPPHkOU+Lf7uW2ZR1VAZPJQtV8mjEQ21lp 4YOYPA5FqVHp0EgzR8AutatZOLwPwAqYrhI9pt4c63ec5ahSOrWiLDaxxJVqN7BlWTRStMVO4k/ 1/68FnO1g3yPe8PxjKPJjoZ12d2V9b0igpQF0tZiCf3Af52Xygsl4euFDbyjUfiNbzzDGOPItuH CIo7Bhyfb3fPM2BNr9aV7BMWF+1a05s3+4c+ImW0T9FmJujp2aEjK8sJrVmVSyGd+J614nmApS8 01HGiemdtErCb+mVtTqoAV1EXh2pweyrSalFwse/ X-Google-Smtp-Source: AGHT+IFt3yYfOnxJqqf+SdoGQEDjeEu8adhnqRIrQDcXG7LxSzNhLnYtHMaDKzBOHolXif6urLsVKA== X-Received: by 2002:a5d:4ec2:0:b0:385:fc8c:24b6 with SMTP id ffacd0b85a97d-38c519602dbmr2082148f8f.27.1738150843746; Wed, 29 Jan 2025 03:40:43 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:43 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 3/7] python3-tzdata: Add native and nativesdk Date: Wed, 29 Jan 2025 13:40:35 +0200 Message-Id: <20250129114039.3562870-3-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115133 To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-tzdata-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb b/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb index 20e9715dd5..3d0166d20e 100644 --- a/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb +++ b/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb @@ -16,3 +16,5 @@ RDEPENDS:${PN}-ptest += "\ do_install_ptest:append() { install ${S}/VERSION ${D}${PTEST_PATH}/ } + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56220 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 0FB43C02194 for ; Wed, 29 Jan 2025 11:41:06 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web11.10499.1738150847008830583 for ; Wed, 29 Jan 2025 03:40:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=SoLgDAg5; spf=pass (domain: konsulko.com, ip: 209.85.221.47, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-38be3bfb045so426653f8f.0 for ; Wed, 29 Jan 2025 03:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150845; x=1738755645; 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; bh=udbzsRT16xPt9eP3XiOeTVFycQe1EvRsEQAsSK4jygE=; b=SoLgDAg5cjnbSoUYLueYw3L4mk3hCqUQhZgDKDEv88hTIky1zbLKZ3n9xuHHI24lBl 7bYFmTrO/tiwPgwMQGUExiuO6GmVAtclg7es8HCUvO/ufiNQKBiyucpwlBJFlSP+kHhp A1WjFEBtWivHLOlOO6p22Htfi/Vs725diazsg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150845; x=1738755645; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=udbzsRT16xPt9eP3XiOeTVFycQe1EvRsEQAsSK4jygE=; b=J6ciYgrsWIfIqzUgtE0ceuXIpzEq52vLPWz/t3IcUI9G+33jYzYgPMUCvQOtB9i95d SwriNCUj7DOUH6HtsH9NU9kdy/Kqvzcrlb66cYEA5PHlziakToDyuTG9WkJYxKqiLPOQ gL1t/qKXgAEH/bwzFU1SamjmxeR24C3B1Rj6sIUxqS4myyIai8w8UjUxGs2MZYO139dI 20oAvL3yjFojhAN5SOhZ/DGnQQL61q5FLc5OZHLFUC2PjLeeEfJjkfMp6M1LAQEt1wuy lr+dXfyczD6xGA4y3FCd4eO6nOEjbWrC7Ept2+JT0aQPiuotvWckiOteHdcLqzCnMbL7 nYoA== X-Gm-Message-State: AOJu0YxuvXze1w4Vi2jca0gEJOZx85W2yLY89WqyfkPPUgoTdOzLR6cK R69giHAM3ehls6dsH63DO/a4h0b27QvEkA0OIRzXha3own+kXteXNd88fNgUu4maqsXt+IUzM7I d X-Gm-Gg: ASbGnct1IFPV6Mn/7e/ou7TSIXVyXbYvjV9GEkSNjp1AdaFt9+WLbhWIcxouuZ4Pk3Z PqZHo+syjoRwt6Omy9Ua7BKWXrwg2AwiAsRcd+w/Ou1poa/hxFs24kqXdpZ/eK3X58CWnAvL7QL K4fUZdrOc68ytlQk0m+fOnc6ocCt70vIc1y7pn+k+WuzUy6EYk0RMkvwo6oRcCKT6F2y/ie8a8V yaimSIMo5T457dtf8U9LVfRO6zxLWkvyYEwjTb0X1lCUVdgkiViDJ0xFFdZ4urv/AGVfWBgJzwx ttnD+PMjIMO6eHxSgvLVxctPTMI9sw== X-Google-Smtp-Source: AGHT+IFJlcEykjXEpaMyWpM8NutfNY7QnxHBw9C3MeWf+BiVphYyXi/dUs2bBZuydkKkH095j5EtuQ== X-Received: by 2002:a5d:598d:0:b0:385:faec:d945 with SMTP id ffacd0b85a97d-38c50fe8025mr1694584f8f.9.1738150844447; Wed, 29 Jan 2025 03:40:44 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:44 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 4/7] python3-pydantic-core: Add native and nativesdk Date: Wed, 29 Jan 2025 13:40:36 +0200 Message-Id: <20250129114039.3562870-4-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115134 To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-pydantic-core-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- .../recipes-devtools/python/python3-pydantic-core_2.27.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.27.2.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.27.2.bb index 063730372b..7b84a3a6f7 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.27.2.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.27.2.bb @@ -44,3 +44,5 @@ do_install_ptest:append () { cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ sed -i -e "/--automake/ s/$/ -k 'not test_model_class_root_validator_wrap and not test_model_class_root_validator_before and not test_model_class_root_validator_after'/" ${D}${PTEST_PATH}/run-ptest } + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56217 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 176C8C0218D for ; Wed, 29 Jan 2025 11:40:56 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.web10.10684.1738150847485895573 for ; Wed, 29 Jan 2025 03:40:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Ex0xQkGa; spf=pass (domain: konsulko.com, ip: 209.85.128.43, mailfrom: leon.anavi@konsulko.com) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-438a3216fc2so68587615e9.1 for ; Wed, 29 Jan 2025 03:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150846; x=1738755646; 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; bh=yo4Z60c5AXA4vRs8Andn58t+O3IDLp6mgtDWBeRIcXM=; b=Ex0xQkGavEg04Oxa8WcWW4EfOP6op/uz6aiTTJBwrAKwSLbyoTu1LCg0U0K+KabiiN b9bOIRnaSQt/TOwugCGkQ1riyNMq+63iTmDdWCK1JqBMqXxuPK4VSfO6VsANLHA13O67 /ooyNuf7poVE7g2yqQefqZO49i6Sy/zsLvpSE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150846; x=1738755646; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yo4Z60c5AXA4vRs8Andn58t+O3IDLp6mgtDWBeRIcXM=; b=bToyjYDQFhHsfwoPj6+5g1s7i4y/5TfmwxS60mD+EG5pKJhXByMqC9KDVQeZt7BcKx nBv1IXlcVt5GyuJ5GnoeeY4ODK5EBewwFUG7UfwzTCJv2lx6aCtB31/dB6hnZ/4obxug xT87BcO95RGOdZtoPjnHJyKLGjvGImG25E1eIugPXOkRYWRoVPyxBg06O8O7JQ5PvC8X iYPlTYa1aHEQHfMkVdp3RgLK8Kj0JvTaS68efidJqEJnSUJ5RI0vnrWs05KmlYnisVbE fI0cKEZzaVaunOVrk6YUynvze8/5RT+wD4NTkF1qgw0JoVo9ea/2TMwKQhpbaaeIqirJ QKOw== X-Gm-Message-State: AOJu0YxGy8ByBT5EMOLxni5c6QM/w1jeRdh9mmUs5ic8FCmAFdnX2DHg uyxt+gpvNS3/E7N7MFiWtpUNPFzdbwggJ0azibN4arFnPz2YAOWXmlZDOLFDD553e65asgrve06 L X-Gm-Gg: ASbGncuPy51WRPUKST/jMDz7idNltuM4Lt7fx/SmGqI7vWNJZECWCEhSQQr73k7L9oX TpD5xoKGpK9E3dwUdCz1sXtqf1hozbfTWBNKD4D4McvDrszQSlpflPUW9nRLoN4/qfwC4V6VpJ+ z9eiXhMyTqzU0dTJojeSLF+BvEohAO8Tb0UEOjZmgeNjnZh5YSiR3d778e/lKUJNOI1OgHNzj7M mB7tSjR3ho52+3JdZDslOQE+FhGs5ryR1HW3+FXvkLIgBWKnOTd9yhhuc1KVLPAp2XL+v4f3Oa+ hbLXzrK9FSZ7BqOZn2AgPIljFJXItw== X-Google-Smtp-Source: AGHT+IH7eWcCvk3VVyw+7UAmsXdtQQH/XF9nQq97nrt7yA6SD4xfNXymFL7OibKNlMm96CBVGuWIpA== X-Received: by 2002:a5d:64a1:0:b0:385:f0dc:c9f4 with SMTP id ffacd0b85a97d-38c51967de4mr2135705f8f.20.1738150845176; Wed, 29 Jan 2025 03:40:45 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:44 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 5/7] python3-pydantic: Add native and nativesdk Date: Wed, 29 Jan 2025 13:40:37 +0200 Message-Id: <20250129114039.3562870-5-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:40:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115135 To build python3-lief we need python3-pydantic-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb index cf211972da..77568a368a 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb @@ -67,3 +67,5 @@ do_install_ptest:append() { rm -rf ${D}${PTEST_PATH}/tests/benchmarks sed -i -e "/--automake/ s/$/ -k 'not test_config_validation_error_cause and not test_dataclass_config_validate_default and not test_annotated_validator_nested and not test_use_bare and not test_use_no_fields and not test_validator_bad_fields_throws_configerror and not test_assert_raises_validation_error and not test_model_config_validate_default'/" ${D}${PTEST_PATH}/run-ptest } + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56219 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 0405EC02193 for ; Wed, 29 Jan 2025 11:41:06 +0000 (UTC) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web10.10685.1738150847959045906 for ; Wed, 29 Jan 2025 03:40:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=DDk+Svm3; spf=pass (domain: konsulko.com, ip: 209.85.221.50, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-38789e5b6a7so3717769f8f.1 for ; Wed, 29 Jan 2025 03:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150846; x=1738755646; 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; bh=cXdyGJDqB7CBbq67G0d7HFESa8asKWcDohRcDU+FeuQ=; b=DDk+Svm3+y5Ec4IQk4P9LYlNPCO0pCwGcIUuaCrYWO6Te8W+i8V2zbrnDE1IG9aF/6 FIUbLuYo0myx6NKOxEvT+WosiBiUwRGQhqUgDJ1CUHzS+CJrZd8c1WlOVDIAQ3xISUFW DoN+/xd24m8Ch/WYx1DbEywiaLGjgIBxcSzwI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150846; x=1738755646; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cXdyGJDqB7CBbq67G0d7HFESa8asKWcDohRcDU+FeuQ=; b=PL37XohqTPUofwq6PQay0osV0BVju4QaFAvwL24FmbGDCvAdRgg8uOabDSZHtJtZiq dup2hN3c6K7BZ1DwyvaBVlwpAiRwWF7XZTcF2UnuKQD/yugK1nXjLVu+bP+n660KBqLZ q8R8NUGTnvdpH+KB7Lo9fZXp1ikkcemaxxI4P6rYlOE8+zk9tJR90OA/W3aL9QNVIBRN UYHeQZftOwS/TtX05UWyhEP63K9USvW9yDkjKIasbr3ldOFZMdTqFajuHMQcxQCTraDY c6BgbDLuEUxhA0tuk4kQ4NBDuve8XuwPrRGAuKlQLsUTBRtrFnzMzkgxK5eMd6eu2dw6 jBng== X-Gm-Message-State: AOJu0Yy48UMdSLWZT8D4NQ0HJ9D5vUkg9VkIDYS19HDQ7gWfXEoL8lcK bSIahSFxQhYkA2R4FL3FPE6pDIYiU6yaYEFueC+UvPIZPnr/7N1JcVgScDwNBiR79sH4cKQel+t v X-Gm-Gg: ASbGnct1t9Qc5Hopf8Jtd3q9UwxkTQ/Wnd0FGENq1GaFqvczBPx0+b9wrODkbLRVn0O CnWtT4AzR4ww+a4B37oKc06DxOrjn0xBNQ10BJv+AgH0b6jhcLIhxEEYJXqmNhY7PLdMzhiSdwg hIb8plXDYy9JE149sPfSfdf0Pnizypp99kcGqUnbkFVCDMqFG21L1OJ1Es4lbLdE1H7m2+jSG7u SNBJbXnfSO9RDMC/LBM6WV2MGwCmg4JInyQEkZ7SkQsNY3tVDQV2STVm/vfztakh7mbxcpCyzNN 3f+sOF1y25QNVC3g7S1fLK0uxu/2Nw== X-Google-Smtp-Source: AGHT+IGZ11a+AIJ8UiEILRtoX3ASYqQRo1F2qyDxFjBn5tMsLvorL4/MRuSy1BSZtmcKOxFIyqCrHg== X-Received: by 2002:a5d:59a6:0:b0:385:df43:223c with SMTP id ffacd0b85a97d-38c5194b798mr2456551f8f.13.1738150845993; Wed, 29 Jan 2025 03:40:45 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:45 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 6/7] python3-lief: Add recipe Date: Wed, 29 Jan 2025 13:40:38 +0200 Message-Id: <20250129114039.3562870-6-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115136 Add recipe to build the Python API of LIEF (Library to Instrument Executable Formats). The purpose of this project is to provide a cross-platform library to parse, modify and abstract ELF, PE and MachO formats. Changelog for LIEF release 0.16.2: - Fix broken aarch64 Python wheel which is related to a toolchain issue This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- ...equirements.txt-Allow-newer-versions.patch | 39 +++++++++++++++++++ ...api-python-config-default.toml-Debug.patch | 28 +++++++++++++ .../python/python3-lief_0.16.2.bb | 29 ++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch create mode 100644 meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch create mode 100644 meta-python/recipes-devtools/python/python3-lief_0.16.2.bb diff --git a/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch b/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch new file mode 100644 index 0000000000..e2d041dac7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch @@ -0,0 +1,39 @@ +From d6686206658aadc74d21a29c781320e2e13fe8f3 Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Mon, 27 Jan 2025 17:05:53 +0000 +Subject: [PATCH] build-requirements.txt: Allow newer versions + +Allowing building with newer version + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Leon Anavi +--- + api/python/build-requirements.txt | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/api/python/build-requirements.txt b/api/python/build-requirements.txt +index 4c9004ca..fe0d1055 100644 +--- a/api/python/build-requirements.txt ++++ b/api/python/build-requirements.txt +@@ -1,10 +1,10 @@ +-tomli==2.0.1 +-scikit-build-core==0.9.8 ++tomli>=2.0.1 ++scikit-build-core>=0.9.8 + # For Ninja: msvc.msvc14_get_vc_env +-setuptools==70.2.0 ++setuptools>=70.2.0 + # For the "env" feature +-pydantic==2.8.2 ++pydantic>=2.8.2 + # Implicit from scikit-build-core +-pathspec==0.12.1 +-build==1.2.1 +-wheel==0.43.0 ++pathspec>=0.12.1 ++build>=1.2.1 ++wheel>=0.43.0 +-- +2.39.5 + diff --git a/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch b/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch new file mode 100644 index 0000000000..bc38a63726 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch @@ -0,0 +1,28 @@ +From 064f361f113e1e4496f40dd0a075f89d21bad5a3 Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Tue, 28 Jan 2025 12:25:31 +0000 +Subject: [PATCH] api/python/config-default.toml: Debug + +Fixes do_package: QA Issue: [already-stripped] + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Leon Anavi +--- + api/python/config-default.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/api/python/config-default.toml b/api/python/config-default.toml +index 519bc046..49477864 100644 +--- a/api/python/config-default.toml ++++ b/api/python/config-default.toml +@@ -1,5 +1,5 @@ + [lief.build] +-type = "Release" ++type = "Debug" + cache = true + ninja = true + parallel-jobs = 0 +-- +2.39.5 + diff --git a/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb b/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb new file mode 100644 index 0000000000..6cc6e7e5ae --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb @@ -0,0 +1,29 @@ +SUMMARY = "Library to instrument executable formats" +DESCRIPTION = "LIEF: Library to Instrument Executable Formats" +HOMEPAGE = "https://github.com/lief-project/LIEF" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=9ab5db472ff936b441055522f5000547" +SECTION = "libs" + +SRC_URI = " \ + git://github.com/lief-project/LIEF.git;protocol=https;branch=main \ + file://0001-build-requirements.txt-Allow-newer-versions.patch \ + file://0002-api-python-config-default.toml-Debug.patch \ +" +SRCREV = "d3ad812008fd286322b7085e84136e422b3afea4" + +S = "${WORKDIR}/git" +PEP517_SOURCE_PATH = "${S}/api/python" + +inherit python_setuptools_build_meta + +DEPENDS += "\ + python3-scikit-build-native \ + python3-scikit-build-core-native \ + python3-tomli-native \ + python3-pydantic-native \ + ninja-native \ + ccache-native \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jan 29 11:40:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 56218 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 002F7C02190 for ; Wed, 29 Jan 2025 11:41:05 +0000 (UTC) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.groups.io with SMTP id smtpd.web10.10686.1738150849299357079 for ; Wed, 29 Jan 2025 03:40:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=g6bg6mnc; spf=pass (domain: konsulko.com, ip: 209.85.221.49, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-38634c35129so6022133f8f.3 for ; Wed, 29 Jan 2025 03:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1738150847; x=1738755647; 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; bh=2pZQRnd/V2BUM7QJWt1lA8FGXV9NuHW2szu2Eq6omg4=; b=g6bg6mncZHz8PzLcYNAMokc5opFbNVRs/IOQa/lyAlMsKxmIoNgLgHH1KLBaac7bbD +3PxVp/I4kusgDEnwhUEkWf5cpZet94XcrUe4wXatyo7CGc+v+AgOBS3t+OL3qCKnM42 HNlju/h0HbPqMObK4rFdvzFVSnLf6wCBHUPP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738150847; x=1738755647; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2pZQRnd/V2BUM7QJWt1lA8FGXV9NuHW2szu2Eq6omg4=; b=n5hC+7KNWqBvZ/Am++hli+/f75gtKPw3MDA6dwbhJN+GM5uf5l/KGSrX3YAeMiSmOW 8G9doLMR71k1jlkq+tgYk63BbL/HyeUdQbNioL8oThlVrIXB3+HS+tGj0RS9s3xMY5gH N5oxL9DideUXyHwRokjDM5bGC0/xOVEBb4SXOQRlM41a7j8IDqbtRrVGZNjhiG4GJDfz UvhtDxp884Yhx56exAbikbJmrYkXN1cq8cv1O7QD1aBJXectCl9hUDwhmf3K8rH84z/z qfGGDVkRe4X0W+csRGlSe4emw8KewnGmcu+K4bMf75cri+TCzfaYZnOj77+X2Rv1DqAQ QX+A== X-Gm-Message-State: AOJu0Yy1KXbAcNrmFA3wUAXdZS7CEaWv3GvBuNfakRf1dm0d9K/SRslV NAYmVyRXsaMZucme4cwLVY9g7tuh0dTM1jW/Pmk98dBWty/u2sazLz5sc2jUGa+hEBDfuIxwj23 s X-Gm-Gg: ASbGncvY0AFO6Fa9C3agVU+Vb5jDRhqoFffDpod4935LpF/Naa4XaU5luIBoho4SGtK 2VfzK3JjTTwwjHGM72G2EURiqnP7bKnIFjaYRK9ZaFJKCyOdpvLl1gIb2zqV+mqEtA+SCEv4JK8 kJcEnMTpCzwxrLkzE40q/fDQkFympP5JNh2lUpDsauDFhQAn8CljhgxSHOZAd03aeJgQgxBGP31 n+llUM6qZFSry8wt9L0v7ryy0i76Bbl7Vk00FKPpXdmdWtsy9IJ1sFBcju8k46317jJoS5WUDiw DQLwmP++UIeldGS0LKhIEoI89Ku9eg== X-Google-Smtp-Source: AGHT+IFmnI8p1N6sTsCuHjMqAOCtgQbktLFfuDT3WoGB9vdpyqzXaUKj29jAJ7gH0y8yQGsGO66rVQ== X-Received: by 2002:a05:6000:1866:b0:385:df5d:622c with SMTP id ffacd0b85a97d-38c51b5f206mr2346340f8f.30.1738150846940; Wed, 29 Jan 2025 03:40:46 -0800 (PST) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176449sm16982283f8f.11.2025.01.29.03.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 03:40:46 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 7/7] python3-nanobind: Add recipe Date: Wed, 29 Jan 2025 13:40:39 +0200 Message-Id: <20250129114039.3562870-7-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250129114039.3562870-1-leon.anavi@konsulko.com> References: <20250129114039.3562870-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Jan 2025 11:41:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115137 Add recipe for nanobind, tiny and efficient C++/Python bindings. Changelog for version 2.4.0: - Added a function annotation :cpp:class:`nb::call_policy\() ` which supports custom function wrapping logic, calling Policy::precall() before the bound function and Policy::postcall() after. This is a low-level interface intended for advanced users. The precall and postcall hooks are able to observe the Python objects forming the function arguments and return value, and the precall hook can change the arguments. - :cpp:func:`nb::make_iterator ` now accepts its iterator arguments by value, rather than by forwarding reference, in order to eliminate the hazard of storing a dangling C++ iterator reference in the returned Python iterator object. - The std::variant type_caster now does two passes when converting from Python. The first pass is done without implicit conversions. This fixes an issue where std::variant might cast a Python object wrapping a T to a U if there is an implicit conversion available from T to U. - Restored support for constructing types with an overloaded __new__ that takes no arguments, which regressed with the constructor vector call acceleration that was added in nanobind 2.2.0. - Bindings for augmented assignment operators (as generated, for example, by .def(nb::self += nb::self)) now return the same object in Python in the typical case where the C++ operator returns a reference to *this. Previously, after a += b, a would be replaced with a copy. - Added an overload to :cpp:func:`nb::isinstance ` which tests if a Python object is an instance of a Python class. This is in addition to the existing overload, which tests if a Python object is an instance of a bound C++ class. - Added support for overriding static properties, such as those defined using def_prop_ro_static, in subclasses. Previously this would fail with an error. - Other minor fixes and improvements. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- .../python/python3-nanobind_2.4.0.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb diff --git a/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb b/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb new file mode 100644 index 0000000000..a151d6db4e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb @@ -0,0 +1,26 @@ +SUMMARY = "nanobind: tiny and efficient C++/Python bindings" +DESCRIPTION = "nanobind: tiny and efficient C++/Python bindings" +HOMEPAGE = "https://github.com/wjakob/nanobind" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c" + +SRC_URI[sha256sum] = "a0392dee5f58881085b2ac8bfe8e53f74285aa4868b1472bfaf76cfb414e1c96" + +inherit pypi python_setuptools_build_meta cmake lib_package + +EXTRA_OECMAKE += "-DNB_TEST=OFF" + +DEPENDS += "\ + python3-scikit-build-native \ + python3-scikit-build-core-native \ + ninja-native \ +" + +do_install:append() { + install -d ${D}${base_libdir}/cmake/${PN} + install -m 0644 ${S}/cmake/* ${D}${base_libdir}/cmake/${PN}/ +} + +FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*" + +BBCLASSEXTEND = "native nativesdk"