diff mbox series

[RFC,meta-networking,1/6] ntpsec: Support Python free-threading

Message ID 20260326153210.2245962-2-zboszor@gmail.com
State New
Headers show
Series Fix some fallouts with Python free-threading enabled | expand

Commit Message

Zoltán Böszörményi March 26, 2026, 3:25 p.m. UTC
Use PYTHON_MAINVERSION instead of PYTHON_BASEVERSION because
the former is suffixed with PYTHON_ABI for completeness.

This makes the python module to be installed into the correct
location when Python free-threading is enabled.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb
index 9704e2d15e..acde62a493 100644
--- a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb
+++ b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb
@@ -50,8 +50,8 @@  CC[unexport] = "1"
 CFLAGS[unexport] = "1"
 LDFLAGS[unexport] = "1"
 
-export PYTHON_VERSION = "${PYTHON_BASEVERSION}"
-export PYTAG = "cpython${@ d.getVar('PYTHON_BASEVERSION').replace('.', '')}"
+export PYTHON_VERSION = "${PYTHON_MAINVERSION}"
+export PYTAG = "cpython${@ d.getVar('PYTHON_MAINVERSION').replace('.', '')}"
 export pyext_PATTERN = "%s.so"
 export PYTHON_LDFLAGS = "-lpthread -ldl"