Hello community, here is the log from the commit of package kded for openSUSE:Factory checked in at 2017-09-19 16:22:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kded (Old) and /work/SRC/openSUSE:Factory/.kded.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kded" Tue Sep 19 16:22:54 2017 rev:45 rq:526637 version:5.38.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kded/kded.changes 2017-08-24 17:55:54.510765358 +0200 +++ /work/SRC/openSUSE:Factory/.kded.new/kded.changes 2017-09-19 16:22:56.115229263 +0200 @@ -1,0 +2,10 @@ +Tue Sep 12 07:11:17 CEST 2017 - [email protected] + +- Update to 5.38.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.38.0.php +- Changes since 5.37.0: + * support X-KDE-OnlyShowOnQtPlatforms + +------------------------------------------------------------------- Old: ---- kded-5.37.0.tar.xz New: ---- kded-5.38.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kded.spec ++++++ --- /var/tmp/diff_new_pack.ZnLL13/_old 2017-09-19 16:22:56.803132304 +0200 +++ /var/tmp/diff_new_pack.ZnLL13/_new 2017-09-19 16:22:56.807131740 +0200 @@ -17,23 +17,27 @@ %bcond_without lang -%define _tar_path 5.37 +%define _tar_path 5.38 +# Full KF5 version (e.g. 5.33.0) +%{!?_kf5_version: %global _kf5_version %{version}} +# Last major and minor KF5 version (e.g. 5.33) +%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} Name: kded -Version: 5.37.0 +Version: 5.38.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 3.0 -BuildRequires: extra-cmake-modules >= %{_tar_path} +BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes -BuildRequires: kcoreaddons-devel >= %{_tar_path} -BuildRequires: kcrash-devel >= %{_tar_path} -BuildRequires: kdbusaddons-devel >= %{_tar_path} -BuildRequires: kdoctools-devel >= %{_tar_path} +BuildRequires: kcoreaddons-devel >= %{_kf5_bugfix_version} +BuildRequires: kcrash-devel >= %{_kf5_bugfix_version} +BuildRequires: kdbusaddons-devel >= %{_kf5_bugfix_version} +BuildRequires: kdoctools-devel >= %{_kf5_bugfix_version} BuildRequires: kf5-filesystem -BuildRequires: ki18n-devel >= %{_tar_path} -BuildRequires: kinit-devel >= %{_tar_path} -BuildRequires: kservice-devel >= %{_tar_path} -BuildRequires: kwindowsystem-devel >= %{_tar_path} +BuildRequires: ki18n-devel >= %{_kf5_bugfix_version} +BuildRequires: kinit-devel >= %{_kf5_bugfix_version} +BuildRequires: kservice-devel >= %{_kf5_bugfix_version} +BuildRequires: kwindowsystem-devel >= %{_kf5_bugfix_version} BuildRequires: cmake(Qt5Core) >= 5.6.0 BuildRequires: cmake(Qt5DBus) >= 5.6.0 BuildRequires: cmake(Qt5Network) >= 5.6.0 ++++++ kded-5.37.0.tar.xz -> kded-5.38.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kded-5.37.0/CMakeLists.txt new/kded-5.38.0/CMakeLists.txt --- old/kded-5.37.0/CMakeLists.txt 2017-08-06 20:00:01.000000000 +0200 +++ new/kded-5.38.0/CMakeLists.txt 2017-09-03 10:03:34.000000000 +0200 @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.0) -set(KF5_VERSION "5.37.0") # handled by release scripts -set(KF5_DEP_VERSION "5.37.0") # handled by release scripts +set(KF5_VERSION "5.38.0") # handled by release scripts +set(KF5_DEP_VERSION "5.38.0") # handled by release scripts project(KDED VERSION ${KF5_VERSION}) include(FeatureSummary) -find_package(ECM 5.37.0 NO_MODULE) +find_package(ECM 5.38.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kded-5.37.0/src/kded.cpp new/kded-5.38.0/src/kded.cpp --- old/kded-5.37.0/src/kded.cpp 2017-08-06 20:00:01.000000000 +0200 +++ new/kded-5.38.0/src/kded.cpp 2017-09-03 10:03:34.000000000 +0200 @@ -231,6 +231,9 @@ foreach (const KPluginMetaData &module, kdedModules) { // Should the service load on startup? const bool autoload = isModuleAutoloaded(module); + if (!platformSupportsModule(module)) { + continue; + } // see ksmserver's README for description of the phases bool prevent_autoload = false; @@ -320,6 +323,13 @@ return autoload; } +bool Kded::platformSupportsModule(const KPluginMetaData &module) const +{ + const QStringList supportedPlatforms = KPluginMetaData::readStringList(module.rawData(), QStringLiteral("X-KDE-OnlyShowOnQtPlatforms")); + + return supportedPlatforms.isEmpty() || supportedPlatforms.contains(qApp->platformName()); +} + bool Kded::isModuleLoadedOnDemand(const QString &obj) const { return isModuleLoadedOnDemand(findModule(obj)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kded-5.37.0/src/kded.h new/kded-5.38.0/src/kded.h --- old/kded-5.37.0/src/kded.h 2017-08-06 20:00:01.000000000 +0200 +++ new/kded-5.38.0/src/kded.h 2017-09-03 10:03:34.000000000 +0200 @@ -85,6 +85,13 @@ //@{ /** + * Check if a module is supported on the current QPA + */ + bool platformSupportsModule(const KPluginMetaData &module) const; + //@} + + //@{ + /** * Check if a module should be loaded on demand * * @param module the name of the desktop file for the module, without the .desktop extension
