- kde-plasma/plasma-meta ensures kde-plasma/polkit-kde-agent is present,
but OnlyShowIn=KDE; ensures it does nothing in other environments
- gnome-base/gnome-shell has its own pk-agent built-in
- lxde-base/lxsession, through restricting to OnlyShowIn=LXDE; upstream,
was already made useless for the purpose claimed by the ebuild
- Xfce was gifted an IUSE configurable xfce-base/xfce4-polkit to emulate
what sys-auth/polkit[gtk,kde] had been serving it up to now, except
with more options and functional by default
- In ::gentoo, LXQt, Enlightenment, Mate, Cinnamon, even GNOME Flashback,
already provide their own agents
- Outside of ::gentoo, Budgie, COSMIC, Noctalia, Deepin, Trinity DE,
Pantheon, Hyprland, Lomiri, Phosh, also provide their own agents
gnome-extra/polkit-gnome was the only package left with a gratuitous
NotShowIn=MATE;KDE; potentially racing w/ other pk-agents, which a
previous ~arch revbump changed to be hidden from autostart by default.
Add optfeature to aid transition for minimalist users who read elog output.
Signed-off-by: Andreas Sturmlechner <astu…@gentoo.org>
---
* [effectively]: Relevant changes are shown here as diff, but will be introduced
as clean ~arch revbump, with coordinated stabilisation.
--- a/sys-auth/polkit/polkit-128.ebuild
+++ b/sys-auth/polkit/polkit-128-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
-inherit meson pam python-any-r1 systemd tmpfiles xdg-utils
+inherit meson optfeature pam python-any-r1 systemd tmpfiles xdg-utils
DESCRIPTION="Policy framework for controlling privileges for system-wide services"
HOMEPAGE="https://github.com/polkit-org/polkit"
@@ -28,7 +28,7 @@ SLOT="0"
if [[ ${PV} != 9999 ]] ; then
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
-IUSE="elogind examples gtk +introspection kde pam nls selinux systemd test"
+IUSE="elogind examples +introspection pam nls selinux systemd test"
RESTRICT="!test? ( test )"
REQUIRED_USE="?? ( elogind systemd )"
@@ -68,13 +68,6 @@ RDEPEND="
acct-user/polkitd
selinux? ( sec-policy/selinux-policykit )
"
-PDEPEND="
- gtk? ( || (
- >=gnome-extra/polkit-gnome-0.105
- >=lxde-base/lxsession-0.5.2
- ) )
- kde? ( kde-plasma/polkit-kde-agent )
-"
DOCS=(
AUTHORS
@@ -108,6 +101,25 @@ python_check_deps() {
pkg_setup() {
use test && python-any-r1_pkg_setup
+
+ if has_version "sys-auth/polkit[gtk]" || has_version "sys-auth/polkit[kde]"; then
+ optfeature_header "${CATEGORY}/${PN} no longer pulls in some polkit-agent. Candidate(s):"
+ if has_version "gui-apps/liquidshell"; then
+ optfeature "KDE Plasma polkit-agent" "kde-plasma/polkit-kde-agent"
+ fi
+ if has_version "lxqt-base/lxqt-session"; then
+ optfeature "LXQt polkit-agent" "lxqt-base/lxqt-policykit"
+ fi
+ if has_version "mate-base/mate-desktop"; then
+ optfeature "MATE polkit-agent" "mate-extra/mate-polkit"
+ fi
+ if has_version "xfce-base/xfwm4"; then
+ optfeature "polkit-agent selection for Xfce4" "xfce-base/xfce4-polkit"
+ fi
+ if has_version "x11-wm/openbox" || has_version "x11-wm/icewm" || has_version "x11-wm/fluxbox"; then
+ optfeature "a polkit-agent via XDG autostart (manual setup required)" "gnome-extra/polkit-gnome"
+ fi
+ fi
}
src_prepare() {
--
2.56.1