1 |
commit: c1afa82590f689552afd2a242557a250f7a83cba |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 19 19:06:56 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 19:06:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1afa825 |
7 |
|
8 |
sys-auth/polkit: fix build with meson-0.61 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831459 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-auth/polkit/files/polkit-0.120-meson.patch | 42 ++++++++++++++++++++++++++ |
14 |
sys-auth/polkit/polkit-0.120-r1.ebuild | 5 ++- |
15 |
2 files changed, 46 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sys-auth/polkit/files/polkit-0.120-meson.patch b/sys-auth/polkit/files/polkit-0.120-meson.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..5e144688d374 |
20 |
--- /dev/null |
21 |
+++ b/sys-auth/polkit/files/polkit-0.120-meson.patch |
22 |
@@ -0,0 +1,42 @@ |
23 |
+From e7f3d9e8341df64e2abc3910dafb1113a84bff07 Mon Sep 17 00:00:00 2001 |
24 |
+From: Simon McVittie <smcv@××××××.org> |
25 |
+Date: Mon, 25 Oct 2021 20:21:27 +0100 |
26 |
+Subject: [PATCH] Don't pass positional parameters to i18n.merge_file |
27 |
+ |
28 |
+These were always ignored, and Meson 0.60.0 disallowed them. |
29 |
+ |
30 |
+Resolves: https://gitlab.freedesktop.org/polkit/polkit/-/issues/160 |
31 |
+Reference: https://github.com/mesonbuild/meson/pull/9445 |
32 |
+Signed-off-by: Simon McVittie <smcv@××××××.org> |
33 |
+--- |
34 |
+ actions/meson.build | 1 - |
35 |
+ src/examples/meson.build | 1 - |
36 |
+ 2 files changed, 2 deletions(-) |
37 |
+ |
38 |
+diff --git a/actions/meson.build b/actions/meson.build |
39 |
+index 2abaaf3..1e3f370 100644 |
40 |
+--- a/actions/meson.build |
41 |
++++ b/actions/meson.build |
42 |
+@@ -1,7 +1,6 @@ |
43 |
+ policy = 'org.freedesktop.policykit.policy' |
44 |
+ |
45 |
+ i18n.merge_file( |
46 |
+- policy, |
47 |
+ input: policy + '.in', |
48 |
+ output: '@BASENAME@', |
49 |
+ po_dir: po_dir, |
50 |
+diff --git a/src/examples/meson.build b/src/examples/meson.build |
51 |
+index c6305ab..8c18de5 100644 |
52 |
+--- a/src/examples/meson.build |
53 |
++++ b/src/examples/meson.build |
54 |
+@@ -1,7 +1,6 @@ |
55 |
+ policy = 'org.freedesktop.policykit.examples.pkexec.policy' |
56 |
+ |
57 |
+ i18n.merge_file( |
58 |
+- policy, |
59 |
+ input: policy + '.in', |
60 |
+ output: '@BASENAME@', |
61 |
+ po_dir: po_dir, |
62 |
+-- |
63 |
+GitLab |
64 |
+ |
65 |
|
66 |
diff --git a/sys-auth/polkit/polkit-0.120-r1.ebuild b/sys-auth/polkit/polkit-0.120-r1.ebuild |
67 |
index 0f0f2900683f..3ec998fa6f02 100644 |
68 |
--- a/sys-auth/polkit/polkit-0.120-r1.ebuild |
69 |
+++ b/sys-auth/polkit/polkit-0.120-r1.ebuild |
70 |
@@ -1,4 +1,4 @@ |
71 |
-# Copyright 1999-2021 Gentoo Authors |
72 |
+# Copyright 1999-2022 Gentoo Authors |
73 |
# Distributed under the terms of the GNU General Public License v2 |
74 |
|
75 |
EAPI=7 |
76 |
@@ -61,6 +61,9 @@ QA_MULTILIB_PATHS=" |
77 |
usr/lib/polkit-1/polkitd" |
78 |
|
79 |
src_prepare() { |
80 |
+ local PATCHES=( |
81 |
+ "${FILESDIR}/polkit-0.120-meson.patch" |
82 |
+ ) |
83 |
default |
84 |
|
85 |
sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513 |