Accepting request 1115661 from home:alarrosa:branches:KDE:Qt6

- Add patch from upstream to fix a build failure:
  * 0001-adapt-qC_Debug_Info_Warning_Critical_-for-new-definition.patch

OBS-URL: https://build.opensuse.org/request/show/1115661
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/python3-pyside6?expand=0&rev=48
This commit is contained in:
Christophe Marin 2023-10-05 13:28:15 +00:00 committed by Git OBS Bridge
parent 170f18d7d9
commit ecfacdbb45
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,53 @@
From 63ef7628091c8827e3d0d688220d3ae165587eb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?=
<cristian.maureira-fredes@qt.io>
Date: Thu, 13 Jul 2023 14:41:14 +0200
Subject: adapt qC{Debug,Info,Warning,Critical} for new definition
In response to:
I3eb1bd30e0124f89a052fffd16a7564f4450ec8a
Change-Id: I5393660521a8ee12a14bf2c287a6ea9a0393408f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
---
sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
index bf6e263d4..e8155d41d 100644
--- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
+++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
@@ -3340,25 +3340,25 @@
<include file-name="qloggingcategory.h" location="global" />
</extra-includes>
<inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qloggingcategory_to_cpp">
- qCDebug(*category, "%s", %2);
+ qCDebug((*category), "%s", %2);
</inject-code>
</add-function>
<add-function signature="qCCritical(PyObject *, const char *)">
<inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qloggingcategory_to_cpp">
- qCCritical(*category, "%s", %2);
+ qCCritical((*category), "%s", %2);
</inject-code>
</add-function>
<add-function signature="qCInfo(PyObject *, const char *)">
<inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qloggingcategory_to_cpp">
- qCInfo(*category, "%s", %2);
+ qCInfo((*category), "%s", %2);
</inject-code>
</add-function>
<add-function signature="qCWarning(PyObject *, const char *)">
<inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qloggingcategory_to_cpp">
- qCWarning(*category, "%s", %2);
+ qCWarning((*category), "%s", %2);
</inject-code>
</add-function>
--
cgit v1.2.3

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 4 09:00:16 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Add patch from upstream to fix a build failure:
* 0001-adapt-qC_Debug_Info_Warning_Critical_-for-new-definition.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 18 12:54:20 UTC 2023 - Christophe Marin <christophe@krop.fr> Mon Sep 18 12:54:20 UTC 2023 - Christophe Marin <christophe@krop.fr>

View File

@ -36,6 +36,8 @@ Source: https://www.nic.funet.fi/pub/mirrors/download.qt-project.org/off
Patch0: 0001-Always-link-to-python-libraries.patch Patch0: 0001-Always-link-to-python-libraries.patch
# PATCH-FIX-UPSTREAM # PATCH-FIX-UPSTREAM
Patch1: 0001-Fix-tests-sample_privatector-sample_privatedtor-fail.patch Patch1: 0001-Fix-tests-sample_privatector-sample_privatedtor-fail.patch
# PATCH-FIX-UPSTREAM
Patch2: 0001-adapt-qC_Debug_Info_Warning_Critical_-for-new-definition.patch
# SECTION common_dependencies # SECTION common_dependencies
BuildRequires: clang-devel BuildRequires: clang-devel
BuildRequires: fdupes BuildRequires: fdupes