1
0

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
This commit is contained in:
Luca Beltrame 2022-08-06 13:47:29 +00:00 committed by Git OBS Bridge
parent 967e95eca7
commit 427a39fcfc
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 6 09:27:06 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- 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 <christophe@krop.fr>

View File

@ -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" \\