diff --git a/python3-pyside6.changes b/python3-pyside6.changes index b69d2ef..40b85a3 100644 --- a/python3-pyside6.changes +++ b/python3-pyside6.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 6 09:27:06 UTC 2022 - Christophe Giboudeaux + +- Use CMAKE_SKIP_RPATH when building python3-shiboken6 to avoid + non-existent RUNPATH entries in the library. + ------------------------------------------------------------------- Sun Jun 19 19:11:09 UTC 2022 - Christophe Giboudeaux diff --git a/python3-pyside6.spec b/python3-pyside6.spec index 4a5bdbc..944ca7f 100644 --- a/python3-pyside6.spec +++ b/python3-pyside6.spec @@ -144,6 +144,9 @@ pushd sources/%{pyside_flavor} -DPYTHON_EXECUTABLE:STRING=python3 \ -DNUMPY_INCLUDE_DIR:STRING=%{python_sitearch}/numpy/core/include \ -DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON \ +%if "%{pyside_flavor}" == "shiboken6" + -DCMAKE_SKIP_RPATH:BOOL=ON \ +%endif -DQFP_NO_STRIP:BOOL=ON %{qt6_build} @@ -181,6 +184,14 @@ export PATH=%{_qt6_bindir}:$PATH # Needed by the shiboken tests export LD_LIBRARY_PATH=%{buildroot}%{_qt6_libdir}:$LD_LIBRARY_PATH +%if "%{pyside_flavor}" == "shiboken6" +# Since we need CMAKE_SKIP_RPATH to avoid having bogus RUNPATH in the shiboken libraries, +# It needs to know the path to a couple tests folders +for dir in libminimal libother libsample libsmart; do + export LD_LIBRARY_PATH=$PWD/sources/shiboken6/shiboken6/tests/$dir:$LD_LIBRARY_PATH +done +%endif + %if "%{pyside_flavor}" == "pyside6" %define xvfb_command xvfb-run -s "-screen 0 1600x1200x16 -ac +extension GLX +render -noreset" \\