From 427a39fcfc8d546d7ae729b9ba732c56abf620e21bab924e013815df092bc8d7 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 6 Aug 2022 13:47:29 +0000 Subject: [PATCH] Accepting request 993446 from home:cgiboudeaux:Qt6:release:pyside - Use CMAKE_SKIP_RPATH when building python3-shiboken6 to avoid non-existent RUNPATH entries in the library. OBS-URL: https://build.opensuse.org/request/show/993446 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/python3-pyside6?expand=0&rev=18 --- python3-pyside6.changes | 6 ++++++ python3-pyside6.spec | 11 +++++++++++ 2 files changed, 17 insertions(+) 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" \\