public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Zoltán Böszörményi" <zboszor@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: "Khem Raj" <raj.khem@gmail.com>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Trevor Gamblin" <tgamblin@baylibre.com>,
	"Alexander Kanavin" <alex.kanavin@gmail.com>,
	"Zoltán Böszörményi" <zboszor@gmail.com>
Subject: [PATCH v2 05/12] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION
Date: Thu, 26 Mar 2026 15:30:13 +0100	[thread overview]
Message-ID: <20260326143020.2083293-5-zboszor@gmail.com> (raw)
In-Reply-To: <20260326143020.2083293-1-zboszor@gmail.com>

Setting the ABI flag correctly is necessary for modules using
python_maturin.bbclass and others based on pyo3.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta/classes-recipe/python_pyo3.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/python_pyo3.bbclass b/meta/classes-recipe/python_pyo3.bbclass
index 7f5a00f584..c618d711ac 100644
--- a/meta/classes-recipe/python_pyo3.bbclass
+++ b/meta/classes-recipe/python_pyo3.bbclass
@@ -12,7 +12,8 @@
 inherit cargo python3-dir siteinfo
 
 export PYO3_CROSS = "1"
-export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_BASEVERSION}"
+export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_MAINVERSION}"
+export ABIFLAGS = "${PYTHON_ABI}"
 export PYO3_CROSS_LIB_DIR = "${STAGING_LIBDIR}"
 export CARGO_BUILD_TARGET = "${RUST_HOST_SYS}"
 export RUSTFLAGS
@@ -25,6 +26,7 @@ implementation=CPython
 version=${PYTHON_BASEVERSION}
 shared=true
 abi3=false
+abiflags=${PYTHON_ABI}
 lib_name=${PYTHON_DIR}
 lib_dir=${STAGING_LIBDIR}
 pointer_width=${SITEINFO_BITS}
-- 
2.53.0



  parent reply	other threads:[~2026-03-26 14:30 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <18A06529173E9998.57592@lists.openembedded.org>
2026-03-26 14:30 ` [PATCH v2 01/12] python3: Add warning comment before PACKAGECONFIG[freethreading] Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 02/12] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 03/12] python3: Use the variables from python3-dir.bbclass Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 04/12] python3native.bbclass: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-26 14:30   ` Zoltán Böszörményi [this message]
2026-03-26 14:30   ` [PATCH v2 06/12] clang: Use PYTHON_MAINVERSION for python module versioning Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 07/12] gdb, gdb-cross-canadian: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 08/12] boost: " Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 09/12] lttng-tools: " Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 10/12] lttng-ust: " Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 11/12] libcap-ng-python: Use PYTHON_DIR for FILES Zoltán Böszörményi
2026-03-26 14:30   ` [PATCH v2 12/12] hwlatdetect: Use PYTHON_DIR Zoltán Böszörményi
2026-03-27  8:37   ` [OE-core] [PATCH v2 01/12] python3: Add warning comment before PACKAGECONFIG[freethreading] Mathieu Dubois-Briand
2026-03-27  9:17     ` Böszörményi Zoltán
2026-03-27  8:30 ` [PATCH v3 " Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 02/12] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 03/12] python3: Use the variables from python3-dir.bbclass Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 04/12] python3native.bbclass: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 05/12] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 06/12] clang: Use PYTHON_MAINVERSION for python module versioning Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 07/12] gdb, gdb-cross-canadian: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 08/12] boost: " Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 09/12] lttng-tools: " Zoltán Böszörményi
2026-03-28  7:57     ` [OE-core] " Mathieu Dubois-Briand
2026-03-28  8:56       ` Böszörményi Zoltán
2026-03-29 17:52         ` Mathieu Dubois-Briand
2026-04-06 12:35           ` Böszörményi Zoltán
2026-03-27  8:30   ` [PATCH v3 10/12] lttng-ust: " Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 11/12] libcap-ng-python: Use PYTHON_DIR for FILES Zoltán Böszörményi
2026-03-27  8:30   ` [PATCH v3 12/12] hwlatdetect: Use PYTHON_DIR Zoltán Böszörményi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260326143020.2083293-5-zboszor@gmail.com \
    --to=zboszor@gmail.com \
    --cc=alex.kanavin@gmail.com \
    --cc=brgl@kernel.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    --cc=tgamblin@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox