Article View: linux.gentoo.dev
Article #228[gentoo-dev] [RFC] [PATCH 3/3] [effectively] sys-auth/polkit: Drop PDEPEND and IUSE gtk,kde
From: Andreas Sturmlechner
Date: Sun, 29 Nov 2026 19:30
Date: Sun, 29 Nov 2026 19:30
123 lines
6014 bytes
6014 bytes
--nextPartSdq24dPHRd-4Un9GTOd30w
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Andreas Sturmlechner <asturm@gentoo.org>
To: gentoo-dev@lists.gentoo.org, freedesktop-bugs@gentoo.org
Date: Sun, 29 Nov 2026 20:28:49 +0100
Message-ID: <qvano4IbRjG4eUqHUmAECw@gentoo.org>
In-Reply-To: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>
References: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>
MIME-Version: 1.0
- 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 <asturm@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
--nextPartSdq24dPHRd-4Un9GTOd30w
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
iQIvBAABCgCZFiEE34gXUSooizdYNDu3S5FW4z0PgBkFAmsMfPEbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRERjg4MTc1MTJBMjg4QjM3NTgzNDNC
Qjc0QjkxNTZFMzNEMEY4MDE5AAoJEEuRVuM9D4AZgasMAIXMfn4msx9b1Dql1RIV
dYvX6i18EqFuGG+04TmzvSQdva+767z8cHKYcSxgMRtZS7yKmUmyFsRjpZGKZ6z/
iId5NhAPNwmJs8R/Y6u86HBxbCgbfl/SHORrXlM2Ayh3aiGnB38V/ETPE97ojgX6
giAScQEqL2tdkNv1OM5l0L/SbOhyu0aXY+fb6r2NkKNXsVytzFZ1iC55eFzSGS7m
R424qauog4FlMZ4QTX3t9uP6/9CCnIf/59Tl2EEX+8ZAc91Ob55Xqi/Sb4XV/0q4
n44AzSeQWhAMioMmDHPY0JdNkyOIuNczd5CVO2bsXOKI+bVihjbIbpd907KW9d6m
cos1zO/TiZGO2QveE+O8tx5cPxXzG1OFXS6poh5zajIF7PDKjZ1z8gmNiy9EJSuE
ebyCFxsvD+srSG7Y5c6W5Eynxog6EMEO0lFNSZwKndITba6ZJU/0asSnAs5fjLJ/
/Xqwd5SQ0AezwNdfqgDisecrPoz8W+nTQrotqdqVCvKWZw==
=iuMg
-----END PGP SIGNATURE-----
--nextPartSdq24dPHRd-4Un9GTOd30w--
Technical Details
Message-ID:
<O4SKZ-eYzN-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O4SKZ-eYzN-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andreas Sturmlechner <asturm@gentoo.org> Newsgroups: linux.gentoo.dev Subject: [gentoo-dev] [RFC] [PATCH 3/3] [effectively] sys-auth/polkit: Drop PDEPEND and IUSE gtk,kde Date: Sun, 29 Nov 2026 20:30:01 +0100 Message-ID: <O4SKZ-eYzN-9@gated-at.bofh.it> References: <O4SKZ-eYzN-5@gated-at.bofh.it> List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org> Reply-To: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPartSdq24dPHRd-4Un9GTOd30w"; micalg="pgp-sha512"; protocol="application/pgp-signature" Approved: robomod@news.nic.it Lines: 123 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Nov 2026 20:28:49 +0100 X-Original-Message-ID: <qvano4IbRjG4eUqHUmAECw@gentoo.org> X-Original-References: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>