commit:     a44b0d4acf34b4a5bbd33c642b674dafe5a42aec
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 23:51:03 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 23:51:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44b0d4a

sys-auth/polkit: drop versions

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-auth/polkit/Manifest                           |   2 -
 ...lkit-0.118-make-netgroup-support-optional.patch | 248 ---------------------
 sys-auth/polkit/files/polkit-0.120-meson.patch     |  42 ----
 .../files/polkit-0.120_p20220221-pkexec-suid.patch |  67 ------
 sys-auth/polkit/polkit-0.120_p20220221-r1.ebuild   | 129 -----------
 sys-auth/polkit/polkit-0.120_p20220221.ebuild      | 126 -----------
 sys-auth/polkit/polkit-0.120_p20220509.ebuild      | 146 ------------
 7 files changed, 760 deletions(-)

diff --git a/sys-auth/polkit/Manifest b/sys-auth/polkit/Manifest
index e635b78c0256..9f7fb1747d8e 100644
--- a/sys-auth/polkit/Manifest
+++ b/sys-auth/polkit/Manifest
@@ -1,3 +1 @@
-DIST polkit-0.120_p20220221.tar.bz2 734510 BLAKE2B 
412f943d6d7b8ec493280073ed75c73f6acc89958d1507b416067ce742cc91e648956015a8d40a38c41ef061c79fc62004aa99b9902cdee0b8302852fa2df42c
 SHA512 
15b09ba274f9b09ff5bf11d6238da43b0ee1fd76d53aa489b062f168a79f5de74cbd3953b45fa3bfad458e09e4c04032d08fe369bec6ffa35114da610741eb9f
-DIST polkit-0.120_p20220509.tar.bz2 702995 BLAKE2B 
5eee6c5c895f95a1caa037cb7cc7ace86584013455142a8f7cd1e97c99de5d99575a70be525fb596342949f7c6ed56bd54cce6552132153bb1383377722f9e5c
 SHA512 
24136d215d760d3eaff910495b2b1ac2d6bbc4577bd65566ff425485e76625aea2478ab323048c24ba6560ffee8eae6d22fa6b7bba0a3a5a35f53dc50d8dcb4f
 DIST polkit-121.tar.gz 743287 BLAKE2B 
6ebda8fc866ef960281ef912a3d3c45572da3ba90a84026e386b78ced8eaadc6cfc0e88d6e5a75133bf99e28041f8b29b236bb0e9666dd1ffc43af2227a5cb2d
 SHA512 
f565027b80f32833c558900b612e089ab25027da5bf9a90c421a292467d4db9a291f6dc9850c4bca8f9ee890d476fd064a643a5f7e28497661ba1e31d4227624

diff --git 
a/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch 
b/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch
deleted file mode 100644
index 8810e70b7378..000000000000
--- a/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch
+++ /dev/null
@@ -1,248 +0,0 @@
-Pulled in from 
https://github.com/gentoo/musl/blob/master/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch.
-
-https://bugs.gentoo.org/833753
-https://bugs.gentoo.org/561672
-https://bugs.freedesktop.org/show_bug.cgi?id=50145
-https://gitlab.freedesktop.org/polkit/polkit/-/issues/14
-
-Patch has been rebased a bit since but keeping original headers.
-
-From c7ad7cb3ca8fca32b9b64b0fc33867b98935b76b Mon Sep 17 00:00:00 2001
-From: "A. Wilcox" <awil...@wilcox-tech.com>
-Date: Wed, 11 Jul 2018 04:54:26 -0500
-Subject: [PATCH] make netgroup support optional
-
-On at least Linux/musl and Linux/uclibc, netgroup support is not
-available.  PolKit fails to compile on these systems for that reason.
-
-This change makes netgroup support conditional on the presence of the
-setnetgrent(3) function which is required for the support to work.  If
-that function is not available on the system, an error will be returned
-to the administrator if unix-netgroup: is specified in configuration.
-
-Fixes bug 50145.
-
-Signed-off-by: A. Wilcox <awil...@wilcox-tech.com>
---- a/configure.ac
-+++ b/configure.ac
-@@ -100,7 +100,7 @@ AC_CHECK_LIB(expat,XML_ParserCreate,[EXPAT_LIBS="-lexpat"],
-            [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
- AC_SUBST(EXPAT_LIBS)
- 
--AC_CHECK_FUNCS(clearenv fdatasync)
-+AC_CHECK_FUNCS(clearenv fdatasync setnetgrent)
- 
- if test "x$GCC" = "xyes"; then
-   LDFLAGS="-Wl,--as-needed $LDFLAGS"
---- a/src/polkit/polkitidentity.c
-+++ b/src/polkit/polkitidentity.c
-@@ -182,7 +182,15 @@ polkit_identity_from_string  (const gchar   *str,
-     }
-   else if (g_str_has_prefix (str, "unix-netgroup:"))
-     {
-+#ifndef HAVE_SETNETGRENT
-+      g_set_error (error,
-+                   POLKIT_ERROR,
-+                   POLKIT_ERROR_FAILED,
-+                   "Netgroups are not available on this machine ('%s')",
-+                   str);
-+#else
-       identity = polkit_unix_netgroup_new (str + sizeof "unix-netgroup:" - 1);
-+#endif
-     }
- 
-   if (identity == NULL && (error != NULL && *error == NULL))
-@@ -344,6 +352,14 @@ polkit_identity_new_for_gvariant (GVariant  *variant,
-       GVariant *v;
-       const char *name;
- 
-+#ifndef HAVE_SETNETGRENT
-+      g_set_error (error,
-+                   POLKIT_ERROR,
-+                   POLKIT_ERROR_FAILED,
-+                   "Netgroups are not available on this machine");
-+      goto out;
-+#else
-+
-       v = lookup_asv (details_gvariant, "name", G_VARIANT_TYPE_STRING, error);
-       if (v == NULL)
-         {
-@@ -353,6 +369,7 @@ polkit_identity_new_for_gvariant (GVariant  *variant,
-       name = g_variant_get_string (v, NULL);
-       ret = polkit_unix_netgroup_new (name);
-       g_variant_unref (v);
-+#endif
-     }
-   else
-     {
---- a/src/polkit/polkitunixnetgroup.c
-+++ b/src/polkit/polkitunixnetgroup.c
-@@ -194,6 +194,9 @@ polkit_unix_netgroup_set_name (PolkitUnixNetgroup *group,
- PolkitIdentity *
- polkit_unix_netgroup_new (const gchar *name)
- {
-+#ifndef HAVE_SETNETGRENT
-+  g_assert_not_reached();
-+#endif
-   g_return_val_if_fail (name != NULL, NULL);
-   return POLKIT_IDENTITY (g_object_new (POLKIT_TYPE_UNIX_NETGROUP,
-                                        "name", name,
---- a/src/polkitbackend/polkitbackendinteractiveauthority.c
-+++ b/src/polkitbackend/polkitbackendinteractiveauthority.c
-@@ -2233,25 +2233,26 @@ get_users_in_net_group (PolkitIdentity                 
   *group,
-   GList *ret;
- 
-   ret = NULL;
-+#ifdef HAVE_SETNETGRENT
-   name = polkit_unix_netgroup_get_name (POLKIT_UNIX_NETGROUP (group));
- 
--#ifdef HAVE_SETNETGRENT_RETURN
-+# ifdef HAVE_SETNETGRENT_RETURN
-   if (setnetgrent (name) == 0)
-     {
-       g_warning ("Error looking up net group with name %s: %s", name, 
g_strerror (errno));
-       goto out;
-     }
--#else
-+# else
-   setnetgrent (name);
--#endif
-+# endif /* HAVE_SETNETGRENT_RETURN */
- 
-   for (;;)
-     {
--#if defined(HAVE_NETBSD) || defined(HAVE_OPENBSD)
-+# if defined(HAVE_NETBSD) || defined(HAVE_OPENBSD)
-       const char *hostname, *username, *domainname;
--#else
-+# else
-       char *hostname, *username, *domainname;
--#endif
-+# endif /* defined(HAVE_NETBSD) || defined(HAVE_OPENBSD) */
-       PolkitIdentity *user;
-       GError *error = NULL;
- 
-@@ -2282,6 +2283,7 @@ get_users_in_net_group (PolkitIdentity                   
 *group,
- 
-  out:
-   endnetgrent ();
-+#endif /* HAVE_SETNETGRENT */
-   return ret;
- }
- 
---- a/src/polkitbackend/polkitbackendjsauthority.cpp
-+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
-@@ -1519,6 +1519,7 @@ js_polkit_user_is_in_netgroup (JSContext  *cx,
- 
-   JS::CallArgs args = JS::CallArgsFromVp (argc, vp);
- 
-+#ifdef HAVE_SETNETGRENT
-   JS::RootedString usrstr (authority->priv->cx);
-   usrstr = args[0].toString();
-   user = JS_EncodeStringToUTF8 (cx, usrstr);
-@@ -1533,6 +1534,7 @@ js_polkit_user_is_in_netgroup (JSContext  *cx,
-     {
-       is_in_netgroup =  true;
-     }
-+#endif
- 
-   ret = true;
- 
---- a/test/polkit/polkitidentitytest.c
-+++ b/test/polkit/polkitidentitytest.c
-@@ -19,6 +19,7 @@
-  * Author: Nikki VonHollen <vonhol...@google.com>
-  */
- 
-+#include "config.h"
- #include "glib.h"
- #include <polkit/polkit.h>
- #include <polkit/polkitprivate.h>
-@@ -145,11 +146,15 @@ struct ComparisonTestData comparison_test_data [] = {
-   {"unix-group:root", "unix-group:jane", FALSE},
-   {"unix-group:jane", "unix-group:jane", TRUE},
- 
-+#ifdef HAVE_SETNETGRENT
-   {"unix-netgroup:foo", "unix-netgroup:foo", TRUE},
-   {"unix-netgroup:foo", "unix-netgroup:bar", FALSE},
-+#endif
- 
-   {"unix-user:root", "unix-group:root", FALSE},
-+#ifdef HAVE_SETNETGRENT
-   {"unix-user:jane", "unix-netgroup:foo", FALSE},
-+#endif
- 
-   {NULL},
- };
-@@ -181,11 +186,13 @@ main (int argc, char *argv[])
-   g_test_add_data_func ("/PolkitIdentity/group_string_2", "unix-group:jane", 
test_string);
-   g_test_add_data_func ("/PolkitIdentity/group_string_3", "unix-group:users", 
test_string);
- 
-+#ifdef HAVE_SETNETGRENT
-   g_test_add_data_func ("/PolkitIdentity/netgroup_string", 
"unix-netgroup:foo", test_string);
-+  g_test_add_data_func ("/PolkitIdentity/netgroup_gvariant", 
"unix-netgroup:foo", test_gvariant);
-+#endif
- 
-   g_test_add_data_func ("/PolkitIdentity/user_gvariant", "unix-user:root", 
test_gvariant);
-   g_test_add_data_func ("/PolkitIdentity/group_gvariant", "unix-group:root", 
test_gvariant);
--  g_test_add_data_func ("/PolkitIdentity/netgroup_gvariant", 
"unix-netgroup:foo", test_gvariant);
- 
-   add_comparison_tests ();
- 
---- a/test/polkit/polkitunixnetgrouptest.c
-+++ b/test/polkit/polkitunixnetgrouptest.c
-@@ -19,6 +19,7 @@
-  * Author: Nikki VonHollen <vonhol...@google.com>
-  */
- 
-+#include "config.h"
- #include "glib.h"
- #include <polkit/polkit.h>
- #include <string.h>
-@@ -69,7 +70,9 @@ int
- main (int argc, char *argv[])
- {
-   g_test_init (&argc, &argv, NULL);
-+#ifdef HAVE_SETNETGRENT
-   g_test_add_func ("/PolkitUnixNetgroup/new", test_new);
-   g_test_add_func ("/PolkitUnixNetgroup/set_name", test_set_name);
-+#endif
-   return g_test_run ();
- }
---- a/test/polkitbackend/test-polkitbackendjsauthority.c
-+++ b/test/polkitbackend/test-polkitbackendjsauthority.c
-@@ -137,12 +137,14 @@ test_get_admin_identities (void)
-         "unix-group:users"
-       }
-     },
-+#ifdef HAVE_SETNETGRENT
-     {
-       "net.company.action3",
-       {
-         "unix-netgroup:foo"
-       }
-     },
-+#endif
-   };
-   guint n;
- 
---- a/src/polkitbackend/polkitbackendduktapeauthority.c
-+++ b/src/polkitbackend/polkitbackendduktapeauthority.c
-@@ -1035,7 +1035,7 @@ js_polkit_user_is_in_netgroup (duk_context *cx)
-
-   user = duk_require_string (cx, 0);
-   netgroup = duk_require_string (cx, 1);
--
-+#ifdef HAVE_SETNETGRENT
-   if (innetgr (netgroup,
-                NULL,  /* host */
-                user,
-@@ -1043,7 +1043,7 @@ js_polkit_user_is_in_netgroup (duk_context *cx)
-     {
-       is_in_netgroup = TRUE;
-     }
--
-+#endif
-   duk_push_boolean (cx, is_in_netgroup);
-   return 1;
- }

diff --git a/sys-auth/polkit/files/polkit-0.120-meson.patch 
b/sys-auth/polkit/files/polkit-0.120-meson.patch
deleted file mode 100644
index 5e144688d374..000000000000
--- a/sys-auth/polkit/files/polkit-0.120-meson.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From e7f3d9e8341df64e2abc3910dafb1113a84bff07 Mon Sep 17 00:00:00 2001
-From: Simon McVittie <s...@debian.org>
-Date: Mon, 25 Oct 2021 20:21:27 +0100
-Subject: [PATCH] Don't pass positional parameters to i18n.merge_file
-
-These were always ignored, and Meson 0.60.0 disallowed them.
-
-Resolves: https://gitlab.freedesktop.org/polkit/polkit/-/issues/160
-Reference: https://github.com/mesonbuild/meson/pull/9445
-Signed-off-by: Simon McVittie <s...@debian.org>
----
- actions/meson.build      | 1 -
- src/examples/meson.build | 1 -
- 2 files changed, 2 deletions(-)
-
-diff --git a/actions/meson.build b/actions/meson.build
-index 2abaaf3..1e3f370 100644
---- a/actions/meson.build
-+++ b/actions/meson.build
-@@ -1,7 +1,6 @@
- policy = 'org.freedesktop.policykit.policy'
- 
- i18n.merge_file(
--  policy,
-   input: policy + '.in',
-   output: '@BASENAME@',
-   po_dir: po_dir,
-diff --git a/src/examples/meson.build b/src/examples/meson.build
-index c6305ab..8c18de5 100644
---- a/src/examples/meson.build
-+++ b/src/examples/meson.build
-@@ -1,7 +1,6 @@
- policy = 'org.freedesktop.policykit.examples.pkexec.policy'
- 
- i18n.merge_file(
--  policy,
-   input: policy + '.in',
-   output: '@BASENAME@',
-   po_dir: po_dir,
--- 
-GitLab
-

diff --git a/sys-auth/polkit/files/polkit-0.120_p20220221-pkexec-suid.patch 
b/sys-auth/polkit/files/polkit-0.120_p20220221-pkexec-suid.patch
deleted file mode 100644
index 959656b158a1..000000000000
--- a/sys-auth/polkit/files/polkit-0.120_p20220221-pkexec-suid.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-https://gitlab.freedesktop.org/polkit/polkit/-/commit/7d4b52c4d71c46049d87a0775de695ea914f3f1b
-https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/113
-https://bugs.gentoo.org/827884
-
-From: Matt Turner <matts...@gmail.com>
-Date: Tue, 3 May 2022 12:54:37 +0000
-Subject: [PATCH] pkexec: Allow --version and --help even if not setuid root
-
---- a/src/programs/pkexec.c
-+++ b/src/programs/pkexec.c
-@@ -514,27 +514,6 @@ main (int argc, char *argv[])
-   /* Disable remote file access from GIO. */
-   setenv ("GIO_USE_VFS", "local", 1);
- 
--  /* check for correct invocation */
--  if (geteuid () != 0)
--    {
--      g_printerr ("pkexec must be setuid root\n");
--      goto out;
--    }
--
--  original_user_name = g_strdup (g_get_user_name ());
--  if (original_user_name == NULL)
--    {
--      g_printerr ("Error getting user name.\n");
--      goto out;
--    }
--
--  if ((original_cwd = g_get_current_dir ()) == NULL)
--    {
--      g_printerr ("Error getting cwd: %s\n",
--                  g_strerror (errno));
--      goto out;
--    }
--
-   /* First process options and find the command-line to invoke. Avoid using 
fancy library routines
-    * that depend on environtment variables since we haven't cleared the 
environment just yet.
-    */
-@@ -595,6 +574,27 @@ main (int argc, char *argv[])
-       goto out;
-     }
- 
-+  /* check for correct invocation */
-+  if (geteuid () != 0)
-+    {
-+      g_printerr ("pkexec must be setuid root\n");
-+      goto out;
-+    }
-+
-+  original_user_name = g_strdup (g_get_user_name ());
-+  if (original_user_name == NULL)
-+    {
-+      g_printerr ("Error getting user name.\n");
-+      goto out;
-+    }
-+
-+  if ((original_cwd = g_get_current_dir ()) == NULL)
-+    {
-+      g_printerr ("Error getting cwd: %s\n",
-+                  g_strerror (errno));
-+      goto out;
-+    }
-+
-   if (opt_user == NULL)
-     opt_user = g_strdup ("root");
- 
-GitLab

diff --git a/sys-auth/polkit/polkit-0.120_p20220221-r1.ebuild 
b/sys-auth/polkit/polkit-0.120_p20220221-r1.ebuild
deleted file mode 100644
index a1b8221ce450..000000000000
--- a/sys-auth/polkit/polkit-0.120_p20220221-r1.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit meson pam pax-utils systemd xdg-utils
-
-DESCRIPTION="Policy framework for controlling privileges for system-wide 
services"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit 
https://gitlab.freedesktop.org/polkit/polkit";
-if [[ ${PV} == *_p* ]] ; then
-       MY_COMMIT="b10a1bdb697045db40774f2a9a8c58ae5c7189c3"
-       
SRC_URI="https://gitlab.freedesktop.org/polkit/polkit/-/archive/${MY_COMMIT}/polkit-${MY_COMMIT}.tar.bz2
 -> ${P}.tar.bz2"
-       S="${WORKDIR}"/${PN}-${MY_COMMIT}
-else
-       
SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz";
-fi
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
-IUSE="+duktape examples gtk +introspection kde pam selinux systemd test"
-#RESTRICT="!test? ( test )"
-# Tests currently don't work with meson. See
-#   https://gitlab.freedesktop.org/polkit/polkit/-/issues/144
-RESTRICT="test"
-
-BDEPEND="
-       acct-user/polkitd
-       app-text/docbook-xml-dtd:4.1.2
-       app-text/docbook-xsl-stylesheets
-       dev-libs/glib
-       dev-libs/gobject-introspection-common
-       dev-libs/libxslt
-       dev-util/glib-utils
-       sys-devel/gettext
-       virtual/pkgconfig
-       introspection? ( dev-libs/gobject-introspection )
-"
-DEPEND="
-       dev-libs/glib:2
-       dev-libs/expat
-       duktape? ( dev-lang/duktape:= )
-       !duktape? ( dev-lang/spidermonkey:91[-debug] )
-       pam? (
-               sys-auth/pambase
-               sys-libs/pam
-       )
-       !pam? ( virtual/libcrypt:= )
-       systemd? ( sys-apps/systemd:0=[policykit] )
-       !systemd? ( sys-auth/elogind )
-"
-RDEPEND="${DEPEND}
-       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=( docs/TODO HACKING NEWS README )
-
-QA_MULTILIB_PATHS="
-       usr/lib/polkit-1/polkit-agent-helper-1
-       usr/lib/polkit-1/polkitd"
-
-src_prepare() {
-       local PATCHES=(
-               # musl
-               "${FILESDIR}"/${PN}-0.118-make-netgroup-support-optional.patch
-               # In next release
-               "${FILESDIR}"/${P}-pkexec-suid.patch
-
-               # Pending upstream
-               "${FILESDIR}"/${PN}-0.120-meson.patch
-       )
-
-       default
-
-       # bug #401513
-       sed -i -e 's|unix-group:wheel|unix-user:0|' 
src/polkitbackend/*-default.rules || die
-}
-
-src_configure() {
-       xdg_environment_reset
-
-       local emesonargs=(
-               --localstatedir="${EPREFIX}"/var
-               -Dauthfw="$(usex pam pam shadow)"
-               -Dexamples=false
-               -Dgtk_doc=false
-               -Dman=true
-               -Dos_type=gentoo
-               -Dsession_tracking="$(usex systemd libsystemd-login libelogind)"
-               -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
-               -Djs_engine=$(usex duktape duktape mozjs)
-               $(meson_use introspection)
-               $(meson_use test tests)
-               $(usex pam "-Dpam_module_dir=$(getpam_mod_dir)" '')
-       )
-       meson_src_configure
-}
-
-src_compile() {
-       meson_src_compile
-
-       # Required for polkitd on hardened/PaX due to spidermonkey's JIT
-       pax-mark mr src/polkitbackend/.libs/polkitd 
test/polkitbackend/.libs/polkitbackendjsauthoritytest
-}
-
-src_install() {
-       meson_src_install
-
-       if use examples ; then
-               docinto examples
-               dodoc src/examples/{*.c,*.policy*}
-       fi
-
-       diropts -m 0700 -o polkitd
-       keepdir /usr/share/polkit-1/rules.d
-}
-
-pkg_postinst() {
-       chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-       chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-}

diff --git a/sys-auth/polkit/polkit-0.120_p20220221.ebuild 
b/sys-auth/polkit/polkit-0.120_p20220221.ebuild
deleted file mode 100644
index 5ad724dcf86d..000000000000
--- a/sys-auth/polkit/polkit-0.120_p20220221.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit meson pam pax-utils systemd xdg-utils
-
-DESCRIPTION="Policy framework for controlling privileges for system-wide 
services"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit 
https://gitlab.freedesktop.org/polkit/polkit";
-if [[ ${PV} == *_p* ]] ; then
-       MY_COMMIT="b10a1bdb697045db40774f2a9a8c58ae5c7189c3"
-       
SRC_URI="https://gitlab.freedesktop.org/polkit/polkit/-/archive/${MY_COMMIT}/polkit-${MY_COMMIT}.tar.bz2
 -> ${P}.tar.bz2"
-       S="${WORKDIR}"/${PN}-${MY_COMMIT}
-else
-       
SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz";
-fi
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
-IUSE="+duktape examples gtk +introspection kde pam selinux systemd test"
-#RESTRICT="!test? ( test )"
-# Tests currently don't work with meson. See
-#   https://gitlab.freedesktop.org/polkit/polkit/-/issues/144
-RESTRICT="test"
-
-BDEPEND="
-       acct-user/polkitd
-       app-text/docbook-xml-dtd:4.1.2
-       app-text/docbook-xsl-stylesheets
-       dev-libs/glib
-       dev-libs/gobject-introspection-common
-       dev-libs/libxslt
-       dev-util/glib-utils
-       sys-devel/gettext
-       virtual/pkgconfig
-       introspection? ( dev-libs/gobject-introspection )
-"
-DEPEND="
-       dev-libs/glib:2
-       dev-libs/expat
-       duktape? ( dev-lang/duktape:= )
-       !duktape? ( dev-lang/spidermonkey:91[-debug] )
-       pam? (
-               sys-auth/pambase
-               sys-libs/pam
-       )
-       !pam? ( virtual/libcrypt:= )
-       systemd? ( sys-apps/systemd:0=[policykit] )
-       !systemd? ( sys-auth/elogind )
-"
-RDEPEND="${DEPEND}
-       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=( docs/TODO HACKING NEWS README )
-
-QA_MULTILIB_PATHS="
-       usr/lib/polkit-1/polkit-agent-helper-1
-       usr/lib/polkit-1/polkitd"
-
-src_prepare() {
-       local PATCHES=(
-               # musl
-               "${FILESDIR}"/${PN}-0.118-make-netgroup-support-optional.patch
-               # Pending upstream
-               "${FILESDIR}"/${PN}-0.120-meson.patch
-       )
-
-       default
-
-       # bug #401513
-       sed -i -e 's|unix-group:wheel|unix-user:0|' 
src/polkitbackend/*-default.rules || die
-}
-
-src_configure() {
-       xdg_environment_reset
-
-       local emesonargs=(
-               --localstatedir="${EPREFIX}"/var
-               -Dauthfw="$(usex pam pam shadow)"
-               -Dexamples=false
-               -Dgtk_doc=false
-               -Dman=true
-               -Dos_type=gentoo
-               -Dsession_tracking="$(usex systemd libsystemd-login libelogind)"
-               -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
-               -Djs_engine=$(usex duktape duktape mozjs)
-               $(meson_use introspection)
-               $(meson_use test tests)
-               $(usex pam "-Dpam_module_dir=$(getpam_mod_dir)" '')
-       )
-       meson_src_configure
-}
-
-src_compile() {
-       meson_src_compile
-
-       # Required for polkitd on hardened/PaX due to spidermonkey's JIT
-       pax-mark mr src/polkitbackend/.libs/polkitd 
test/polkitbackend/.libs/polkitbackendjsauthoritytest
-}
-
-src_install() {
-       meson_src_install
-
-       if use examples ; then
-               docinto examples
-               dodoc src/examples/{*.c,*.policy*}
-       fi
-
-       diropts -m 0700 -o polkitd
-       keepdir /usr/share/polkit-1/rules.d
-}
-
-pkg_postinst() {
-       chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-       chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-}

diff --git a/sys-auth/polkit/polkit-0.120_p20220509.ebuild 
b/sys-auth/polkit/polkit-0.120_p20220509.ebuild
deleted file mode 100644
index 0fedd4058792..000000000000
--- a/sys-auth/polkit/polkit-0.120_p20220509.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit meson pam pax-utils python-any-r1 systemd xdg-utils
-
-DESCRIPTION="Policy framework for controlling privileges for system-wide 
services"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit 
https://gitlab.freedesktop.org/polkit/polkit";
-if [[ ${PV} == *_p* ]] ; then
-       # Upstream don't make releases very often. Test snapshots throughly
-       # and review commits, but don't shy away if there's useful stuff there
-       # we want.
-       MY_COMMIT="c5c6b784221b9dc054548c15e94719c4e961a7f2"
-       
SRC_URI="https://gitlab.freedesktop.org/polkit/polkit/-/archive/${MY_COMMIT}/polkit-${MY_COMMIT}.tar.bz2
 -> ${P}.tar.bz2"
-
-       S="${WORKDIR}"/${PN}-${MY_COMMIT}
-else
-       
SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz";
-fi
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
-IUSE="+duktape examples gtk +introspection kde pam selinux systemd test"
-if [[ ${PV} == *_p* ]] ; then
-       RESTRICT="!test? ( test )"
-else
-       # Tests currently don't work with meson in the dist tarballs. See
-       #  https://gitlab.freedesktop.org/polkit/polkit/-/issues/144
-       RESTRICT="test"
-fi
-
-BDEPEND="
-       acct-user/polkitd
-       app-text/docbook-xml-dtd:4.1.2
-       app-text/docbook-xsl-stylesheets
-       dev-libs/glib
-       dev-libs/gobject-introspection-common
-       dev-libs/libxslt
-       dev-util/glib-utils
-       sys-devel/gettext
-       virtual/pkgconfig
-       introspection? ( dev-libs/gobject-introspection )
-       test? (
-               $(python_gen_any_dep '
-                       dev-python/dbus-python[${PYTHON_USEDEP}]
-                       dev-python/python-dbusmock[${PYTHON_USEDEP}]
-               ')
-       )
-"
-DEPEND="
-       dev-libs/glib:2
-       dev-libs/expat
-       duktape? ( dev-lang/duktape:= )
-       !duktape? ( dev-lang/spidermonkey:91[-debug] )
-       pam? (
-               sys-auth/pambase
-               sys-libs/pam
-       )
-       !pam? ( virtual/libcrypt:= )
-       systemd? ( sys-apps/systemd:0=[policykit] )
-       !systemd? ( sys-auth/elogind )
-"
-RDEPEND="${DEPEND}
-       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=( docs/TODO HACKING.md NEWS.md README.md )
-
-QA_MULTILIB_PATHS="usr/lib/polkit-1/polkit-agent-helper-1
-       usr/lib/polkit-1/polkitd"
-
-python_check_deps() {
-       python_has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
-       python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
-       use test && python-any-r1_pkg_setup
-}
-
-src_prepare() {
-       local PATCHES=(
-               # musl
-               
"${FILESDIR}"/${PN}-0.120_p20220509-make-netgroup-support-optional.patch
-       )
-
-       default
-
-       # bug #401513
-       sed -i -e 's|unix-group:wheel|unix-user:0|' 
src/polkitbackend/*-default.rules || die
-}
-
-src_configure() {
-       xdg_environment_reset
-
-       local emesonargs=(
-               --localstatedir="${EPREFIX}"/var
-               -Dauthfw="$(usex pam pam shadow)"
-               -Dexamples=false
-               -Dgtk_doc=false
-               -Dman=true
-               -Dos_type=gentoo
-               -Dsession_tracking="$(usex systemd libsystemd-login libelogind)"
-               -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
-               -Djs_engine=$(usex duktape duktape mozjs)
-               $(meson_use introspection)
-               $(meson_use test tests)
-               $(usex pam "-Dpam_module_dir=$(getpam_mod_dir)" '')
-       )
-       meson_src_configure
-}
-
-src_compile() {
-       meson_src_compile
-
-       # Required for polkitd on hardened/PaX due to spidermonkey's JIT
-       pax-mark mr src/polkitbackend/.libs/polkitd 
test/polkitbackend/.libs/polkitbackendjsauthoritytest
-}
-
-src_install() {
-       meson_src_install
-
-       if use examples ; then
-               docinto examples
-               dodoc src/examples/{*.c,*.policy*}
-       fi
-
-       diropts -m 0700 -o polkitd
-       keepdir /usr/share/polkit-1/rules.d
-}
-
-pkg_postinst() {
-       chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-       chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
-}

Reply via email to