]> git.pld-linux.org Git - packages/kf5-purpose.git/commitdiff
- fix building with qt 5.15 auto/th/kf5-purpose-5.67.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 12 Jul 2020 18:49:32 +0000 (20:49 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 12 Jul 2020 18:49:32 +0000 (20:49 +0200)
- rel 5

kf5-purpose.spec
qt-5.15.patch [new file with mode: 0644]

index 161aa7af03a3a6343a5439e1f6c81265f623f167..5abe7dec71238cff69933e95e3f6027422c56d1a 100644 (file)
@@ -5,12 +5,13 @@
 Summary:       Offers available actions for a specific purpose
 Name:          kf5-%{kfname}
 Version:       5.67.0
-Release:       4
+Release:       5
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
 # Source0-md5: 4039367834bc9039a84261b5a8d9912c
 Patch0:                %{name}-main_js.patch
+Patch1:                qt-5.15.patch
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Test-devel >= %{qtver}
@@ -67,6 +68,7 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 %prep
 %setup -q -n %{kfname}-%{version}
 %patch0 -p0
+%patch1 -p1
 
 %build
 install -d build
diff --git a/qt-5.15.patch b/qt-5.15.patch
new file mode 100644 (file)
index 0000000..7c65141
--- /dev/null
@@ -0,0 +1,14 @@
+--- purpose-5.67.0/src/externalprocess/purposeprocess_main.cpp~        2020-02-02 13:57:25.000000000 +0100
++++ purpose-5.67.0/src/externalprocess/purposeprocess_main.cpp 2020-07-12 20:47:03.042743144 +0200
+@@ -90,11 +90,7 @@
+ private Q_SLOTS:
+     void error() {
+-#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
+         const auto socketError = m_socket.error();
+-#else
+-        const auto socketError = m_socket.socketError();
+-#endif
+         qCWarning(PURPOSE_EXTERNAL_PROCESS_LOG) << "socket error:" << socketError;
+     }
This page took 0.167274 seconds and 4 git commands to generate.