From eac03f1a2294dfc118cbd885b5704fddfb220785 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 9 May 2021 01:29:40 +0200 Subject: app-backup/kfoldersync: Fix build w/ >=kde-frameworks/kwindowsystem-5.82 Gentoo ebuild sets KWINDOWSYSTEM_NO_WIDGETS=ON which drops deprecated KF5WindowSystem API from <=5.62. Upstream repository unknown and no release for years. Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner --- .../files/kfoldersync-3.4.1-kwindowsystem-5.82.patch | 11 +++++++++++ app-backup/kfoldersync/kfoldersync-3.4.1.ebuild | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch (limited to 'app-backup') diff --git a/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch b/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch new file mode 100644 index 000000000000..f83c0e5b23c0 --- /dev/null +++ b/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch @@ -0,0 +1,11 @@ +--- a/src/kfoldersync.cxx 2017-01-24 10:27:17.000000000 +0100 ++++ b/src/kfoldersync.cxx 2021-05-08 23:52:28.891166974 +0200 +@@ -173,7 +173,7 @@ + { + // Connect to dbus (keep it without parent to avoid potential SIGABRT) + static const KDBusService dbus_service(KDBusService::Unique); +- connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this, KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection); ++ connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this->window()->windowHandle(), KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection); + + // Setup toolbar + QMenu * const app_menu = new QMenu(this); diff --git a/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild index 252fea2b53ce..5de0a6109900 100644 --- a/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild +++ b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -34,3 +34,5 @@ DEPEND=" >=kde-frameworks/kxmlgui-${KFMIN}:5 " RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-kwindowsystem-5.82.patch" ) # downstream patch -- cgit v1.2.3-65-gdbad