From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A6971584AD for ; Thu, 24 Apr 2025 08:16:27 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7C15734309C for ; Thu, 24 Apr 2025 08:16:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 154F01104B7; Thu, 24 Apr 2025 08:16:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 0D89D1104B7 for ; Thu, 24 Apr 2025 08:16:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1B09340DE6 for ; Thu, 24 Apr 2025 08:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C38C723FF for ; Thu, 24 Apr 2025 08:16:18 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1745482318.cb787d63a8dd2ac60f04099751d60d3880d0cedf.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/polkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/polkit/polkit-123-r1.ebuild sys-auth/polkit/polkit-126-r1.ebuild sys-auth/polkit/polkit-9999.ebuild X-VCS-Directories: sys-auth/polkit/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cb787d63a8dd2ac60f04099751d60d3880d0cedf X-VCS-Branch: master Date: Thu, 24 Apr 2025 08:16:18 +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: 9a9020ac-a177-445f-9cba-fdb640b0da96 X-Archives-Hash: 92a56381af2a32c537d4c9e8595aa455 commit: cb787d63a8dd2ac60f04099751d60d3880d0cedf Author: Sam James gentoo org> AuthorDate: Thu Apr 24 08:11:58 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Apr 24 08:11:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb787d63 sys-auth/polkit: drop USE=daemon I really think I just had a braino here and meant to add it for dbus (for dbus-broker) and somehow ended it up to polkit when bumping it as I'd had it on my mind, or something. See be4011d5f8b5d5a01a1bf0677c8863313349963c as well. I can't see any real use for this other than perhaps avoiding spidermonkey back before duktape wasn't an option (when packages needed libpolkit but you really didn't want to run the daemon or could live without it). The *upstream* intended-use for USE=daemon is for Flatpak where there's no point in having the daemon as you use the system daemon there but you need the utilities within a Flatpak. Closes: https://bugs.gentoo.org/954290 Signed-off-by: Sam James gentoo.org> sys-auth/polkit/polkit-123-r1.ebuild | 18 ++++++++---------- sys-auth/polkit/polkit-126-r1.ebuild | 26 ++++++++++---------------- sys-auth/polkit/polkit-9999.ebuild | 26 ++++++++++---------------- 3 files changed, 28 insertions(+), 42 deletions(-) diff --git a/sys-auth/polkit/polkit-123-r1.ebuild b/sys-auth/polkit/polkit-123-r1.ebuild index c80be20754d2..15a547c85254 100644 --- a/sys-auth/polkit/polkit-123-r1.ebuild +++ b/sys-auth/polkit/polkit-123-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,7 +23,7 @@ fi LICENSE="LGPL-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="+daemon examples gtk +introspection kde pam selinux systemd test" +IUSE="examples gtk +introspection kde pam selinux systemd test" # https://gitlab.freedesktop.org/polkit/polkit/-/issues/181 for test restriction RESTRICT="!test? ( test ) test" @@ -57,7 +57,7 @@ BDEPEND=" DEPEND=" >=dev-libs/glib-2.32:2 dev-libs/expat - daemon? ( dev-lang/duktape:= ) + dev-lang/duktape:= pam? ( sys-auth/pambase sys-libs/pam @@ -120,7 +120,7 @@ src_configure() { -Dsession_tracking="$(usex systemd libsystemd-login libelogind)" -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" -Djs_engine=duktape - $(meson_use !daemon libs-only) + -Dlibs-only=false $(meson_use introspection) $(meson_use test tests) $(usex pam "-Dpam_module_dir=$(getpam_mod_dir)" '') @@ -143,16 +143,14 @@ src_install() { dodoc src/examples/{*.c,*.policy*} fi - if use daemon; then - if [[ ${EUID} == 0 ]]; then - diropts -m 0700 -o polkitd - fi - keepdir /etc/polkit-1/rules.d + if [[ ${EUID} == 0 ]]; then + diropts -m 0700 -o polkitd fi + keepdir /etc/polkit-1/rules.d } pkg_postinst() { - if use daemon && [[ ${EUID} == 0 ]]; then + if [[ ${EUID} == 0 ]]; then chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d fi diff --git a/sys-auth/polkit/polkit-126-r1.ebuild b/sys-auth/polkit/polkit-126-r1.ebuild index d3d5ee6aac97..ba5493bd0c01 100644 --- a/sys-auth/polkit/polkit-126-r1.ebuild +++ b/sys-auth/polkit/polkit-126-r1.ebuild @@ -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="+daemon examples gtk +introspection kde pam nls selinux systemd test" +IUSE="examples gtk +introspection kde pam nls selinux systemd test" RESTRICT="!test? ( test )" BDEPEND=" @@ -52,9 +52,7 @@ BDEPEND=" DEPEND=" >=dev-libs/glib-2.32:2 dev-libs/expat - daemon? ( - dev-lang/duktape:= - ) + dev-lang/duktape:= pam? ( sys-auth/pambase sys-libs/pam @@ -119,7 +117,7 @@ src_configure() { -Dprivileged_group=0 -Dsession_tracking="$(usex systemd logind elogind)" -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" - $(meson_use !daemon libs-only) + -Dlibs-only=false $(meson_use introspection) $(meson_use nls gettext) $(meson_use test tests) @@ -145,21 +143,17 @@ src_install() { dodoc src/examples/{*.c,*.policy*} fi - if use daemon; then - if [[ ${EUID} == 0 ]]; then - diropts -m 0700 -o polkitd - fi - keepdir /etc/polkit-1/rules.d + if [[ ${EUID} == 0 ]]; then + diropts -m 0700 -o polkitd fi + keepdir /etc/polkit-1/rules.d } pkg_postinst() { - if use daemon ; then - tmpfiles_process polkit-tmpfiles.conf + tmpfiles_process polkit-tmpfiles.conf - if [[ ${EUID} == 0 ]]; then - chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d - chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d - fi + if [[ ${EUID} == 0 ]]; then + chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d + chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d fi } diff --git a/sys-auth/polkit/polkit-9999.ebuild b/sys-auth/polkit/polkit-9999.ebuild index d3d5ee6aac97..ba5493bd0c01 100644 --- a/sys-auth/polkit/polkit-9999.ebuild +++ b/sys-auth/polkit/polkit-9999.ebuild @@ -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="+daemon examples gtk +introspection kde pam nls selinux systemd test" +IUSE="examples gtk +introspection kde pam nls selinux systemd test" RESTRICT="!test? ( test )" BDEPEND=" @@ -52,9 +52,7 @@ BDEPEND=" DEPEND=" >=dev-libs/glib-2.32:2 dev-libs/expat - daemon? ( - dev-lang/duktape:= - ) + dev-lang/duktape:= pam? ( sys-auth/pambase sys-libs/pam @@ -119,7 +117,7 @@ src_configure() { -Dprivileged_group=0 -Dsession_tracking="$(usex systemd logind elogind)" -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" - $(meson_use !daemon libs-only) + -Dlibs-only=false $(meson_use introspection) $(meson_use nls gettext) $(meson_use test tests) @@ -145,21 +143,17 @@ src_install() { dodoc src/examples/{*.c,*.policy*} fi - if use daemon; then - if [[ ${EUID} == 0 ]]; then - diropts -m 0700 -o polkitd - fi - keepdir /etc/polkit-1/rules.d + if [[ ${EUID} == 0 ]]; then + diropts -m 0700 -o polkitd fi + keepdir /etc/polkit-1/rules.d } pkg_postinst() { - if use daemon ; then - tmpfiles_process polkit-tmpfiles.conf + tmpfiles_process polkit-tmpfiles.conf - if [[ ${EUID} == 0 ]]; then - chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d - chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d - fi + if [[ ${EUID} == 0 ]]; then + chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d + chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d fi }