Update to polkit-122.

This commit is contained in:
ajacoutot 2022-10-27 08:41:07 +00:00
parent 235cb158f0
commit 117196cea8
6 changed files with 9 additions and 42 deletions

View File

@ -1,9 +1,7 @@
COMMENT= framework for granting privileged operations to users
V= 121
V= 122
DISTNAME= polkit-${V}
WRKDIST= ${WRKDIR}/polkit-v.${V}
REVISION= 0
SHARED_LIBS += polkit-gobject-1 2.0 # 0.0.0
SHARED_LIBS += polkit-agent-1 2.0 # 0.0.0
@ -19,7 +17,7 @@ PERMIT_PACKAGE= Yes
WANTLIB += c duktape expat gio-2.0 glib-2.0 gobject-2.0 intl pthread
MASTER_SITES= https://www.freedesktop.org/software/polkit/releases/
MASTER_SITES= https://gitlab.freedesktop.org/polkit/polkit/-/archive/${V}/
MODULES= devel/meson \
lang/python

View File

@ -1,2 +1,2 @@
SHA256 (polkit-121.tar.gz) = nceuNBp5fJlKWjbaIZY/DFyOPloXgMzCpfUue+Aa/6o=
SIZE (polkit-121.tar.gz) = 743287
SHA256 (polkit-122.tar.gz) = DWllbWCACDXD19HwqDYrMuGuOs4odaNbtiQpb8UtXcQ=
SIZE (polkit-122.tar.gz) = 744767

View File

@ -3,7 +3,7 @@ Fix check for whether setnetgrent has a return value
Index: meson.build
--- meson.build.orig
+++ meson.build
@@ -178,8 +178,11 @@ setnetgrent_return_src = '''
@@ -184,8 +184,11 @@ setnetgrent_return_src = '''
};
'''

View File

@ -1,17 +0,0 @@
From b6538f6e9cc956959494aff0eeade3a0b5733103 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <bluca@debian.org>
Date: Fri, 10 Jun 2022 14:20:51 +0100
Subject: [PATCH] Install 50-default.rules in /usr/share
Index: src/polkitbackend/meson.build
--- src/polkitbackend/meson.build.orig
+++ src/polkitbackend/meson.build
@@ -61,7 +61,7 @@ libpolkit_backend = static_library(
install_data(
'50-default.rules',
- install_dir: pk_pkgsysconfdir / 'rules.d',
+ install_dir: pk_pkgdatadir / 'rules.d',
)
program = 'polkitd'

View File

@ -1,17 +0,0 @@
From 138e4f4f0c3337981cb734f36a35ae578536c336 Mon Sep 17 00:00:00 2001
From: Jordan Petridis <jordan@centricular.com>
Date: Tue, 19 Jul 2022 16:58:09 +0300
Subject: [PATCH] polkitbackendduktapeauthority.c: Print the error string we get back from duktape
Index: src/polkitbackend/polkitbackendduktapeauthority.c
--- src/polkitbackend/polkitbackendduktapeauthority.c.orig
+++ src/polkitbackend/polkitbackendduktapeauthority.c
@@ -590,7 +590,7 @@ runaway_killer_thread_call_js (gpointer user_data)
if (duk_pcall_prop (cx, 0, 2) != DUK_EXEC_SUCCESS)
{
polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (ctx->authority),
- "Error evaluating admin rules: ",
+ "Error evaluating admin rules: %s",
duk_safe_to_string (cx, -1));
goto err;
}

View File

@ -83,6 +83,7 @@ share/locale/hr/LC_MESSAGES/polkit-1.mo
share/locale/hu/LC_MESSAGES/polkit-1.mo
share/locale/id/LC_MESSAGES/polkit-1.mo
share/locale/it/LC_MESSAGES/polkit-1.mo
share/locale/ka/LC_MESSAGES/polkit-1.mo
share/locale/nl/LC_MESSAGES/polkit-1.mo
share/locale/nn/LC_MESSAGES/polkit-1.mo
share/locale/pl/LC_MESSAGES/polkit-1.mo
@ -99,7 +100,9 @@ share/polkit-1/
share/polkit-1/actions/
share/polkit-1/actions/org.freedesktop.policykit.policy
share/polkit-1/policyconfig-1.dtd
share/polkit-1/rules.d/50-default.rules
@mode 0700
@owner _polkitd
share/polkit-1/rules.d/
@mode
@owner
share/polkit-1/rules.d/50-default.rules