python3-pyside2/0001-Always-link-to-python-libraries.patch
Christophe Giboudeaux b32551982f Accepting request 983591 from home:bnavigator:branches:KDE:Qt5
- Clean up some deprecated python-rpm-macro usage and declare
  BuildRequirement on it explicitly.
- Provide python dist-info metadata and PyPI names in rpm metadata
- Fix missing install of typing stub and PySide2.support
- Fix ctest suite run by providing some extra paths
- Update to 5.15.4
 * [PYSIDE-955]  QOpenGLContext.versionFunctions() have been
   implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6)
   has also been added.
 * [PYSIDE-1409] signature: The decision heuristics of result
   tuples have been refined.
 * [PYSIDE-1438] Crashes in Qt Datavisualization's
   QBar/SurfaceDataProxy add/set/insertRow() members have been
   fixed.
 * [PYSIDE-1502] Import errors will now be properly reported.
 * [PYSIDE-1513] Documentation on properties has been added.
 * [PYSIDE-1538] signature: Unrecognized items will no longer raise
   exceptions.
 * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon)
   has been improved.
 * [PYSIDE-1529] Crashes when registering static fields have been
   fixed.
- Update to 5.15.3. Bugs fixed:
  * [PYSIDE-454]  namespace std is no longer rejected in the Qt
    typesystem files.
  * [PYSIDE-807]  setup.py's 'clean' command has been fixed.
  * [PYSIDE-1305] The error handling of constructor keyword
    arguments has been fixed.
  * [PYSIDE-1422] A crash related to  Signal and __eq__ has
    been fixed.
  * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget()
    has been fixed.
  * [PYSIDE-1442] QFlags operations have been fixed.
  * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been
    fixed.
  * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been
    added.
  * [PYSIDE-1460] An infinite loop changing up directories in the
    signature bootstrap code has been fixed.
  * [PYSIDE-1466] The newly introduced overload QSetting.value()
    taking a type has been documentated.
  * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty()
    with the snake case feature has been fixed.
  * [PYSIDE-1347] Inheritance for enum types has been fixed.
  * [PYSIDE-1448] Code injected at target/end being invoked
    for multiple overload ids has been fixed.
  * [PYSIDE-1470] shiboken.delete() can now be used to delete
    Q*Application.
  * [PYSIDE-1501] The clang parser has been fixed to be able
    to handle some Boost headers.
- Switch to CMake for building pyside2.
- Add patch:
  * 0001-Always-link-to-python-libraries.patch
- Rebase patch:
  * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch
- Drop now unneeded patches:
  * lib64.patch
  * 0002-Fix-the-openSUSE-executable-names.patch
- Build pyside without QtWebEngine on powerpc and zSystems

OBS-URL: https://build.opensuse.org/request/show/983591
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 17:35:33 +00:00

42 lines
1.5 KiB
Diff

From d46be00db12b97bff6b62222ccb4e97fdb0a7ed4 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Mon, 21 Mar 2022 14:48:20 +0100
Subject: [PATCH] Always link to python libraries.
---
sources/shiboken2/data/shiboken_helpers.cmake | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/sources/shiboken2/data/shiboken_helpers.cmake b/sources/shiboken2/data/shiboken_helpers.cmake
index 5e0c6ea..5c0bcdc 100644
--- a/sources/shiboken2/data/shiboken_helpers.cmake
+++ b/sources/shiboken2/data/shiboken_helpers.cmake
@@ -413,21 +413,9 @@ macro(shiboken_compute_python_libraries)
"SHIBOKEN_COMPUTE_LIBS" "shiboken_compute_python_libraries"
"IS_CALLED_FROM_EXPORT" "" "" ${ARGN})
- if (NOT SHIBOKEN_PYTHON_LIBRARIES)
- set(SHIBOKEN_PYTHON_LIBRARIES "")
- endif()
-
- if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES)
- set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES})
- endif()
- endif()
-
- if(CMAKE_BUILD_TYPE STREQUAL "Release")
- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES)
- set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
- endif()
- endif()
+ # Always link to python libraries.
+ message(STATUS "Linking shiboken to ${PYTHON_LIBRARIES}")
+ set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
# If the resulting variable
# contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api,
--
2.35.1