From 830a70309d42800e96e441335077c31c12478144 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 24 Jul 2025 18:55:41 -0700 Subject: [PATCH] python3-shiboken6: Fix build when Python_SOABI is not correctly found On newer architectures e.g. RISCV python-config module fails to populate Python_SOABI correctly and returns empty string. Which result in configure failure Fixes: | CMake Error at cmake/ShibokenHelpers.cmake:223 (message): | Python_SOABI variable is empty. | Call Stack (most recent call first): | cmake/ShibokenSetup.cmake:54 (get_python_extension_suffix) | CMakeLists.txt:13 (include) | Pick-to: 6.8 Change-Id: I22c7756edcb21c9973b54207351d9cd4a99a0ea2 Reviewed-by: Samuli Piippo --- recipes-python/pyside6/python3-shiboken6_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-python/pyside6/python3-shiboken6_git.bb b/recipes-python/pyside6/python3-shiboken6_git.bb index 800a0d9..edf7dfe 100644 --- a/recipes-python/pyside6/python3-shiboken6_git.bb +++ b/recipes-python/pyside6/python3-shiboken6_git.bb @@ -4,7 +4,9 @@ DEPENDS += "qtbase clang-native python3-shiboken6-native" OECMAKE_SOURCEPATH = "${S}/sources/shiboken6" -EXTRA_OECMAKE += "-DSHIBOKEN_BUILD_LIBS=ON" +EXTRA_OECMAKE += "-DSHIBOKEN_BUILD_LIBS=ON \ + -DPython_SOABI='cpython-${@ d.getVar('PYTHON_BASEVERSION').replace('.', '')}' \ + " do_install:append() { # shiboken6.pc in package python3-shiboken6-dev contains reference to TMPDIR [buildpaths]