From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 364131382C5 for ; Sat, 16 May 2020 22:38:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CC5CE08FC; Sat, 16 May 2020 22:38:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71792E08FC for ; Sat, 16 May 2020 22:38:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D952734F5B0 for ; Sat, 16 May 2020 22:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75064253 for ; Sat, 16 May 2020 22:38:32 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1589668688.e0e020e6cccd19a9c14277ef7fd0a159c227f3fd.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-nm/files/, kde-plasma/plasma-nm/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/plasma-nm/files/plasma-nm-5.18.5-missing-wireguard-icon.patch kde-plasma/plasma-nm/plasma-nm-5.18.5-r1.ebuild X-VCS-Directories: kde-plasma/plasma-nm/ kde-plasma/plasma-nm/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e0e020e6cccd19a9c14277ef7fd0a159c227f3fd X-VCS-Branch: master Date: Sat, 16 May 2020 22:38:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ec8c352-2429-4f2b-b204-bec527f69a39 X-Archives-Hash: 2287949260e03772a7ca7fcdf66cc4c6 commit: e0e020e6cccd19a9c14277ef7fd0a159c227f3fd Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat May 16 20:29:55 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat May 16 22:38:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0e020e6 kde-plasma/plasma-nm: WireGuard systray icon missing on startup KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=420983 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> .../plasma-nm-5.18.5-missing-wireguard-icon.patch | 50 +++++++++++++ kde-plasma/plasma-nm/plasma-nm-5.18.5-r1.ebuild | 83 ++++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/kde-plasma/plasma-nm/files/plasma-nm-5.18.5-missing-wireguard-icon.patch b/kde-plasma/plasma-nm/files/plasma-nm-5.18.5-missing-wireguard-icon.patch new file mode 100644 index 00000000000..85902e50409 --- /dev/null +++ b/kde-plasma/plasma-nm/files/plasma-nm-5.18.5-missing-wireguard-icon.patch @@ -0,0 +1,50 @@ +From da52d01788f5f07aa60ed7a6f21d7943a2e0c8d3 Mon Sep 17 00:00:00 2001 +From: Bruce Anderson +Date: Wed, 6 May 2020 08:03:11 +0200 +Subject: Icon in system tray missing when WireGuard connection active on + startup + +Summary: +If a WireGuard connection is made prior to start of the +plasma-nm applet, no icon is displayed in the system tray. + +BUG: 420983 + +Test Plan: +1. Setup a Wired connection to autostart +2. Setup a WireGuard connection which uses the Wired + connection and set to autostart +3. Logout and login to start a new Plasma session +4. Verify that the standard Wired connection icon with a + padlock symbol on it is shown in the system tray + +Reviewers: jgrulich + +Reviewed By: jgrulich + +Subscribers: plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D29469 +--- + libs/declarative/connectionicon.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/libs/declarative/connectionicon.cpp b/libs/declarative/connectionicon.cpp +index cefe6df..58c0cce 100644 +--- a/libs/declarative/connectionicon.cpp ++++ b/libs/declarative/connectionicon.cpp +@@ -317,7 +317,9 @@ void ConnectionIcon::setIcons() + + // Set icon based on the current primary connection if the activating connection is virtual + // since we're not setting icons for virtual connections +- if (!connection || (connection && UiUtils::isConnectionTypeVirtual(connection->type()))) { ++ if (!connection ++ || (connection && UiUtils::isConnectionTypeVirtual(connection->type())) ++ || connection->type() == NetworkManager::ConnectionSettings::WireGuard) { + connection = NetworkManager::primaryConnection(); + } + +-- +cgit v1.1 diff --git a/kde-plasma/plasma-nm/plasma-nm-5.18.5-r1.ebuild b/kde-plasma/plasma-nm/plasma-nm-5.18.5-r1.ebuild new file mode 100644 index 00000000000..1920bf9e1b7 --- /dev/null +++ b/kde-plasma/plasma-nm/plasma-nm-5.18.5-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_TEST="true" +KFMIN=5.66.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.12.3 +inherit ecm kde.org + +DESCRIPTION="KDE Plasma applet for NetworkManager" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="modemmanager openconnect teamd" + +DEPEND=" + >=app-crypt/qca-2.1.1:2[qt5(+)] + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5[widgets] + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kcompletion-${KFMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/kdeclarative-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kiconthemes-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/kitemviews-${KFMIN}:5 + >=kde-frameworks/knotifications-${KFMIN}:5 + >=kde-frameworks/kservice-${KFMIN}:5 + >=kde-frameworks/kwallet-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 + >=kde-frameworks/networkmanager-qt-${KFMIN}:5[teamd=] + >=kde-frameworks/plasma-${KFMIN}:5 + >=kde-frameworks/solid-${KFMIN}:5 + net-misc/networkmanager[teamd=] + modemmanager? ( + >=kde-frameworks/modemmanager-qt-${KFMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + net-misc/mobile-broadband-provider-info + ) + openconnect? ( + >=dev-qt/qtxml-${QTMIN}:5 + net-vpn/networkmanager-openconnect + net-vpn/openconnect:= + ) +" +RDEPEND="${DEPEND} + >=dev-qt/qtquickcontrols-${QTMIN}:5 + >=dev-qt/qtquickcontrols2-${QTMIN}:5 + >=kde-plasma/kde-cli-tools-${PVCUT}:5 +" + +PATCHES=( "${FILESDIR}/${P}-missing-wireguard-icon.patch" ) # in Plasma/5.18 + +src_configure() { + local mycmakeargs=( + -DDISABLE_MODEMMANAGER_SUPPORT=$(usex !modemmanager) + $(cmake_use_find_package modemmanager KF5ModemManagerQt) + $(cmake_use_find_package openconnect OpenConnect) + ) + + ecm_src_configure +} + +pkg_postinst() { + ecm_pkg_postinst + + if ! has_version "kde-plasma/plasma-workspace:5"; then + elog "${PN} is not terribly useful without kde-plasma/plasma-workspace:5." + elog "However, the networkmanagement KCM can be called from either systemsettings" + elog "or manually: $ kcmshell5 kcm_networkmanagement" + fi +}