mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-04 16:10:12 +00:00
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)
|
Change-Id: I22c7756edcb21c9973b54207351d9cd4a99a0ea2
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
(cherry picked from commit 830a70309d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
19 lines
576 B
BlitzBasic
19 lines
576 B
BlitzBasic
require python3-pyside6.inc
|
|
|
|
DEPENDS += "qtbase clang-native python3-shiboken6-native"
|
|
|
|
OECMAKE_SOURCEPATH = "${S}/sources/shiboken6"
|
|
|
|
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]
|
|
sed -i ${D}${QT6_INSTALL_LIBDIR}/pkgconfig/shiboken6.pc \
|
|
-e '/^python_/d' \
|
|
-e 's|${RECIPE_SYSROOT}||'
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|