diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-05-09 01:29:40 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-05-09 14:09:52 +0200 |
commit | eac03f1a2294dfc118cbd885b5704fddfb220785 (patch) | |
tree | e19dfa2bbad3fabc74926cd11a61e03eca28dca0 /app-backup/kfoldersync | |
parent | kde-frameworks/kross: 5.82.0 version bump (diff) | |
download | gentoo-eac03f1a2294dfc118cbd885b5704fddfb220785.tar.gz gentoo-eac03f1a2294dfc118cbd885b5704fddfb220785.tar.bz2 gentoo-eac03f1a2294dfc118cbd885b5704fddfb220785.zip |
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 <asturm@gentoo.org>
Diffstat (limited to 'app-backup/kfoldersync')
-rw-r--r-- | app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch | 11 | ||||
-rw-r--r-- | app-backup/kfoldersync/kfoldersync-3.4.1.ebuild | 4 |
2 files changed, 14 insertions, 1 deletions
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 |