Hello community,

here is the log from the commit of package libksysguard5 for openSUSE:Leap:15.2 
checked in at 2020-03-09 17:59:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/libksysguard5 (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.libksysguard5.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libksysguard5"

Mon Mar  9 17:59:27 2020 rev:94 rq:781954 version:5.18.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/libksysguard5/libksysguard5.changes    
2020-02-27 06:40:23.601470891 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.libksysguard5.new.26092/libksysguard5.changes 
2020-03-09 17:59:29.980642796 +0100
@@ -1,0 +2,15 @@
+Mon Mar  2 09:28:33 UTC 2020 - Fabian Vogt <[email protected]>
+
+- Add patch to fix build on archs where WebEngine is not available:
+  * 0001-Only-link-to-Qt5WebChannel-if-Qt5WebEngineWidgets-av.patch
+
+-------------------------------------------------------------------
+Tue Feb 25 14:07:18 UTC 2020 - Fabian Vogt <[email protected]>
+
+- Update to 5.18.2
+  * New bugfix release
+  * For more details please see:
+  * https://www.kde.org/announcements/plasma-5.18.2.php
+- No code changes since 5.18.1
+
+-------------------------------------------------------------------

Old:
----
  libksysguard-5.18.1.tar.xz
  libksysguard-5.18.1.tar.xz.sig

New:
----
  0001-Only-link-to-Qt5WebChannel-if-Qt5WebEngineWidgets-av.patch
  libksysguard-5.18.2.tar.xz
  libksysguard-5.18.2.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libksysguard5.spec ++++++
--- /var/tmp/diff_new_pack.mxdQrt/_old  2020-03-09 17:59:30.392643001 +0100
+++ /var/tmp/diff_new_pack.mxdQrt/_new  2020-03-09 17:59:30.396643003 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libksysguard5
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,18 +18,20 @@
 
 %bcond_without lang
 Name:           libksysguard5
-Version:        5.18.1
+Version:        5.18.2
 Release:        0
 Summary:        Task management and system monitoring library
 License:        GPL-2.0-or-later
 Group:          Development/Libraries/C and C++
-Url:            http://www.kde.org
+URL:            http://www.kde.org
 Source:         
https://download.kde.org/stable/plasma/%{version}/libksysguard-%{version}.tar.xz
 %if %{with lang}
 Source1:        
https://download.kde.org/stable/plasma/%{version}/libksysguard-%{version}.tar.xz.sig
 Source2:        plasma.keyring
 %endif
 Source3:        baselibs.conf
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-Only-link-to-Qt5WebChannel-if-Qt5WebEngineWidgets-av.patch
 BuildRequires:  extra-cmake-modules >= 1.2.0
 BuildRequires:  kf5-filesystem
 BuildRequires:  xz
@@ -49,6 +51,7 @@
 BuildRequires:  cmake(Qt5DBus) >= 5.4.0
 BuildRequires:  cmake(Qt5Network) >= 5.4.0
 %ifnarch ppc ppc64 ppc64le s390 s390x riscv64
+BuildRequires:  cmake(Qt5WebChannel) >= 5.4.0
 BuildRequires:  cmake(Qt5WebEngineWidgets) >= 5.4.0
 %endif
 BuildRequires:  cmake(Qt5Widgets) >= 5.4.0

++++++ 0001-Only-link-to-Qt5WebChannel-if-Qt5WebEngineWidgets-av.patch ++++++
>From ba7f78716af618db5556fc17e421397fe67e96af Mon Sep 17 00:00:00 2001
From: Fabian Vogt <[email protected]>
Date: Wed, 12 Feb 2020 15:17:43 +0100
Subject: [PATCH] Only link to Qt5WebChannel if Qt5WebEngineWidgets available

Summary:
QWebChannel is only used if WebEngine is also available.

This converts scripting support into an optional feature which is only enabled 
if both dependencies are available.

Test Plan: Still builds.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: lbeltrame, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27347
---
 CMakeLists.txt           | 16 ++++++++++++++--
 config-ksysguard.h.cmake |  4 ++--
 processui/CMakeLists.txt |  5 ++---
 processui/scripting.cpp  | 12 ++++++------
 processui/scripting.h    |  2 +-
 5 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 075d706..d5df87c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ include(CheckIncludeFiles)
 include(CheckLibraryExists)
 include(FeatureSummary)
 
-find_package(Qt5 ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS DBus Network 
Widgets WebChannel)
+find_package(Qt5 ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS DBus Network 
Widgets)
 find_package(Qt5WebEngineWidgets ${QT_MIN_VERSION} CONFIG)
 set_package_properties(Qt5WebEngineWidgets PROPERTIES
                        URL "git://code.qt.org/qt/qtwebenginewidgets.git"
@@ -34,6 +34,13 @@ set_package_properties(Qt5WebEngineWidgets PROPERTIES
                        TYPE OPTIONAL
                        PURPOSE "Used by the HTML-based GUI ksysguard library"
                       )
+find_package(Qt5WebChannel ${QT_MIN_VERSION} CONFIG)
+set_package_properties(Qt5WebChannel PROPERTIES
+                       URL "git://code.qt.org/qt/qtwebchannel.git"
+                       DESCRIPTION "Qt WebChannel module"
+                       TYPE OPTIONAL
+                       PURPOSE "Used by the HTML-based GUI ksysguard library"
+                      )
 
 find_package(KF5 REQUIRED COMPONENTS CoreAddons Config I18n WindowSystem 
Completion Auth WidgetsAddons IconThemes ConfigWidgets Service GlobalAccel KIO)
 find_package(KF5 OPTIONAL_COMPONENTS Plasma)
@@ -75,9 +82,14 @@ if(X11_FOUND)
     endif()
 endif()
 
+set(WEBENGINE_SCRIPTING_ENABLED FALSE)
+if(Qt5WebEngineWidgets_FOUND AND Qt5WebChannel_FOUND)
+    set(WEBENGINE_SCRIPTING_ENABLED TRUE)
+endif()
+add_feature_info("Scripting plugin support" WEBENGINE_SCRIPTING_ENABLED 
"Support scripting plugins using WebEngine and WebChannel")
+
 set(HAVE_X11 ${X11_FOUND})
 set(HAVE_XRES ${X11_XRes_FOUND})
-set(HAVE_QTWEBENGINEWIDGETS ${Qt5WebEngineWidgets_FOUND})
 configure_file(config-ksysguard.h.cmake 
${CMAKE_CURRENT_BINARY_DIR}/config-ksysguard.h )
 
 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
diff --git a/config-ksysguard.h.cmake b/config-ksysguard.h.cmake
index ad648f1..e040efc 100644
--- a/config-ksysguard.h.cmake
+++ b/config-ksysguard.h.cmake
@@ -10,8 +10,8 @@
 /* Define to 1 if you have the X11 xres file */
 #cmakedefine HAVE_XRES 1
 
-/* Define if you have QtWebEngineWidgets */
-#cmakedefine01 HAVE_QTWEBENGINEWIDGETS
+/* Define if you have QtWebEngineWidgets and QtWebChannel */
+#cmakedefine01 WEBENGINE_SCRIPTING_ENABLED
 
 /* Define if you have X11 at all */
 #cmakedefine01 HAVE_X11
diff --git a/processui/CMakeLists.txt b/processui/CMakeLists.txt
index 868ad1a..32c1591 100644
--- a/processui/CMakeLists.txt
+++ b/processui/CMakeLists.txt
@@ -37,7 +37,6 @@ target_link_libraries(processui
         KF5::ConfigCore
     PRIVATE
         Qt5::DBus
-        Qt5::WebChannel
         KF5::I18n
         KF5::WindowSystem
         KF5::AuthCore
@@ -59,8 +58,8 @@ if(X11_FOUND)
     target_link_libraries(processui PRIVATE Qt5::X11Extras KF5::WindowSystem)
 endif()
 
-if(Qt5WebEngineWidgets_FOUND)
-    target_link_libraries(processui PRIVATE Qt5::WebEngineWidgets)
+if(WEBENGINE_SCRIPTING_ENABLED)
+    target_link_libraries(processui PRIVATE Qt5::WebEngineWidgets 
Qt5::WebChannel)
 endif()
 
 if(NOT HAVE_CLOCK_GETTIME_C)
diff --git a/processui/scripting.cpp b/processui/scripting.cpp
index feda425..c481a18 100644
--- a/processui/scripting.cpp
+++ b/processui/scripting.cpp
@@ -43,7 +43,7 @@
 #include <QMessageBox>
 #include <QDialogButtonBox>
 
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
 #include <QWebChannel>
 #include <QWebEngineSettings>
 #include <QWebEngineView>
@@ -53,7 +53,7 @@
 #include <qtwebenginewidgetsversion.h>
 #endif
 
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
 class RemoteUrlInterceptor : public QWebEngineUrlRequestInterceptor {
 public:
     RemoteUrlInterceptor(QObject *parent) : 
QWebEngineUrlRequestInterceptor(parent) {}
@@ -81,7 +81,7 @@ class ScriptingHtmlDialog : public QDialog {
             connect(buttonBox, &QDialogButtonBox::accepted, this, 
&QDialog::accept);
             connect(buttonBox, &QDialogButtonBox::rejected, this, 
&QDialog::reject);
 
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
             QVBoxLayout *layout = new QVBoxLayout;
             layout->addWidget(&m_webView);
             layout->addWidget(buttonBox);
@@ -95,7 +95,7 @@ class ScriptingHtmlDialog : public QDialog {
 #endif
 #endif
         }
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
         QWebEngineView *webView() {
             return &m_webView;
         }
@@ -134,7 +134,7 @@ void Scripting::runScript(const QString &path, const 
QString &name) {
     mScriptPath = path;
     mScriptName = name;
 
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
     QUrl fileName = QUrl::fromLocalFile(path + QStringLiteral("index.html"));
     if(!mScriptingHtmlDialog) {
         mScriptingHtmlDialog = new ScriptingHtmlDialog(this);
@@ -250,7 +250,7 @@ new QWebChannel(window.qt.webChannelTransport, 
function(channel) {
             i18n("KSysGuard library was compiled without QtWebEngineWidgets, 
please contact your distribution."));
 #endif
 }
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
 void Scripting::zoomIn() {
     QWebEngineView *webView = mScriptingHtmlDialog->webView();
     webView->setZoomFactor( webView->zoomFactor() * 1.1 );
diff --git a/processui/scripting.h b/processui/scripting.h
index e9794da..b6ca5e3 100644
--- a/processui/scripting.h
+++ b/processui/scripting.h
@@ -56,7 +56,7 @@ class Scripting : public QWidget {
   private Q_SLOTS:
     /** Run the script associated with the QAction that called this slot */
     void runScriptSlot();
-#if HAVE_QTWEBENGINEWIDGETS
+#if WEBENGINE_SCRIPTING_ENABLED
     void setupJavascriptObjects();
     void refreshScript();
     void zoomIn();
-- 
2.25.1

++++++ libksysguard-5.18.1.tar.xz -> libksysguard-5.18.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libksysguard-5.18.1/CMakeLists.txt 
new/libksysguard-5.18.2/CMakeLists.txt
--- old/libksysguard-5.18.1/CMakeLists.txt      2020-02-18 14:11:36.000000000 
+0100
+++ new/libksysguard-5.18.2/CMakeLists.txt      2020-02-25 14:16:51.000000000 
+0100
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.0)
 
 project(libksysguard)
-set(PROJECT_VERSION "5.18.1")
+set(PROJECT_VERSION "5.18.2")
 set(PROJECT_VERSION_MAJOR 5)
 
 # check with non-Plasma consumers (e.g. KDevelop) before bumping these versions



Reply via email to