diff mbox series

[meta-oe,10/15] rrdtool: Support Python freethreading

Message ID 20260325122046.1211090-11-zboszor@gmail.com
State Under Review
Headers show
Series Support Python freethreading | expand

Commit Message

Böszörményi Zoltán March 25, 2026, 12:19 p.m. UTC
PYTHON_DIR now contains PYTHON_ABI. Use it for the correct
library path, include and site-packages locations.

Fixed runtime dependency for PACKAGECONFIG[python].

Note that there is an issue with the python module:

ERROR: rrdtool-1.9.0-r0 do_package_qa: QA Issue:
File /usr/lib/python3.14t/site-packages/rrdtool.cpython-314t-x86_64-linux-gnu.so
in package rrdtool-python contains reference to TMPDIR [buildpaths]

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
index 752ecc6c48..23b38182be 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
@@ -32,9 +32,9 @@  PACKAGECONFIG ??= " \
 "
 
 PACKAGECONFIG[python] = "--enable-python=yes \
-am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \
-am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\
---disable-python,python,"
+am_cv_python_pythondir=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages \
+am_cv_python_pyexecdir=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages,\
+--disable-python,python3,"
 
 PACKAGECONFIG[perl] = \
 "--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor" CCFLAGS="${CFLAGS}" NO_PACKLIST=1 NO_PERLLOCAL=1' \
@@ -80,7 +80,7 @@  do_configure() {
 
     #python
     sed -i -e '/PYTHON_INCLUDES="-I${/c \
-    PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \
+    PYTHON_INCLUDES="-I=/usr/include/${PYTHON_DIR}"' \
         ${S}/m4/acinclude.m4
     #remove the useless RPATH from the rrdtool.so
     sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am