1 |
commit: 414d403b7bc6d37de42b43045c76a06f9f75025b |
2 |
Author: stefson <herrtimson <AT> yahoo <DOT> de> |
3 |
AuthorDate: Thu Sep 17 14:46:45 2020 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 15:19:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=414d403b |
7 |
|
8 |
sys-auth/polkit: remove obsolete patch |
9 |
|
10 |
Closes: https://github.com/gentoo/musl/pull/347 |
11 |
|
12 |
Signed-off-by: Steffen Kuhn <nielson2 <AT> yandex.com> |
13 |
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org> |
14 |
|
15 |
sys-auth/polkit/files/polkit-0.117-mozjs-78.patch | 104 ---------------------- |
16 |
1 file changed, 104 deletions(-) |
17 |
|
18 |
diff --git a/sys-auth/polkit/files/polkit-0.117-mozjs-78.patch b/sys-auth/polkit/files/polkit-0.117-mozjs-78.patch |
19 |
deleted file mode 100644 |
20 |
index f64a7bf..0000000 |
21 |
--- a/sys-auth/polkit/files/polkit-0.117-mozjs-78.patch |
22 |
+++ /dev/null |
23 |
@@ -1,104 +0,0 @@ |
24 |
-From 3e1d61868fa8bfc586099302e931433270e5d17d Mon Sep 17 00:00:00 2001 |
25 |
-From: Jan Rybar <jrybar@××××××.com> |
26 |
-Date: Tue, 25 Aug 2020 16:38:34 +0000 |
27 |
-Subject: [PATCH] Port polkit to mozjs78 |
28 |
- |
29 |
---- |
30 |
- configure.ac | 4 ++-- |
31 |
- src/polkitbackend/polkitbackendjsauthority.cpp | 15 ++++++--------- |
32 |
- 2 files changed, 8 insertions(+), 11 deletions(-) |
33 |
- |
34 |
-diff --git a/configure.ac b/configure.ac |
35 |
-index eea70fc7..c4569f10 100644 |
36 |
---- a/configure.ac |
37 |
-+++ b/configure.ac |
38 |
-@@ -34,7 +34,7 @@ AC_PROG_LN_S |
39 |
- AC_SYS_LARGEFILE |
40 |
- AM_PROG_CC_C_O |
41 |
- AC_PROG_CXX |
42 |
--AX_CXX_COMPILE_STDCXX([14], [], [mandatory]) |
43 |
-+AX_CXX_COMPILE_STDCXX([17], [], [mandatory]) |
44 |
- |
45 |
- # Taken from dbus |
46 |
- AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no) |
47 |
-@@ -80,7 +80,7 @@ PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-unix-2.0 >= 2.30.0]) |
48 |
- AC_SUBST(GLIB_CFLAGS) |
49 |
- AC_SUBST(GLIB_LIBS) |
50 |
- |
51 |
--PKG_CHECK_MODULES(LIBJS, [mozjs-68]) |
52 |
-+PKG_CHECK_MODULES(LIBJS, [mozjs-78]) |
53 |
- |
54 |
- AC_SUBST(LIBJS_CFLAGS) |
55 |
- AC_SUBST(LIBJS_CXXFLAGS) |
56 |
-diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp |
57 |
-index 25bd1f93..ca171083 100644 |
58 |
---- a/src/polkitbackend/polkitbackendjsauthority.cpp |
59 |
-+++ b/src/polkitbackend/polkitbackendjsauthority.cpp |
60 |
-@@ -49,6 +49,7 @@ |
61 |
- #include <js/Realm.h> |
62 |
- #include <js/SourceText.h> |
63 |
- #include <js/Warnings.h> |
64 |
-+#include <js/Array.h> |
65 |
- #include <jsapi.h> |
66 |
- |
67 |
- #include "initjs.h" /* init.js */ |
68 |
-@@ -367,7 +368,7 @@ load_scripts (PolkitBackendJsAuthority *authority) |
69 |
- static void |
70 |
- reload_scripts (PolkitBackendJsAuthority *authority) |
71 |
- { |
72 |
-- JS::AutoValueArray<1> args(authority->priv->cx); |
73 |
-+ JS::RootedValueArray<1> args(authority->priv->cx); |
74 |
- JS::RootedValue rval(authority->priv->cx); |
75 |
- |
76 |
- JS::RootedObject js_polkit(authority->priv->cx, authority->priv->js_polkit->get ()); |
77 |
-@@ -482,10 +483,6 @@ polkit_backend_js_authority_constructed (GObject *object) |
78 |
- if (!JS::InitSelfHostedCode (authority->priv->cx)) |
79 |
- goto fail; |
80 |
- |
81 |
-- JS::ContextOptionsRef (authority->priv->cx) |
82 |
-- .setIon (TRUE) |
83 |
-- .setBaseline (TRUE) |
84 |
-- .setAsmJS (TRUE); |
85 |
- JS::SetWarningReporter(authority->priv->cx, report_error); |
86 |
- JS_SetContextPrivate (authority->priv->cx, authority); |
87 |
- |
88 |
-@@ -720,7 +717,7 @@ set_property_strv (PolkitBackendJsAuthority *authority, |
89 |
- elems[n].setNull (); |
90 |
- } |
91 |
- |
92 |
-- JS::RootedObject array_object(authority->priv->cx, JS_NewArrayObject (authority->priv->cx, elems)); |
93 |
-+ JS::RootedObject array_object(authority->priv->cx, JS::NewArrayObject (authority->priv->cx, elems)); |
94 |
- |
95 |
- value_jsval = JS::ObjectValue (*array_object); |
96 |
- JS_SetProperty (authority->priv->cx, obj, name, value_jsval); |
97 |
-@@ -1114,7 +1111,7 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA |
98 |
- { |
99 |
- PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority); |
100 |
- GList *ret = NULL; |
101 |
-- JS::AutoValueArray<2> args(authority->priv->cx); |
102 |
-+ JS::RootedValueArray<2> args(authority->priv->cx); |
103 |
- JS::RootedValue rval(authority->priv->cx); |
104 |
- guint n; |
105 |
- GError *error = NULL; |
106 |
-@@ -1218,7 +1215,7 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu |
107 |
- { |
108 |
- PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority); |
109 |
- PolkitImplicitAuthorization ret = implicit; |
110 |
-- JS::AutoValueArray<2> args(authority->priv->cx); |
111 |
-+ JS::RootedValueArray<2> args(authority->priv->cx); |
112 |
- JS::RootedValue rval(authority->priv->cx); |
113 |
- GError *error = NULL; |
114 |
- JS::RootedString ret_jsstr (authority->priv->cx); |
115 |
-@@ -1409,7 +1406,7 @@ js_polkit_spawn (JSContext *cx, |
116 |
- JS::CallArgs args = JS::CallArgsFromVp (js_argc, vp); |
117 |
- array_object = &args[0].toObject(); |
118 |
- |
119 |
-- if (!JS_GetArrayLength (cx, array_object, &array_len)) |
120 |
-+ if (!JS::GetArrayLength (cx, array_object, &array_len)) |
121 |
- { |
122 |
- JS_ReportErrorUTF8 (cx, "Failed to get array length"); |
123 |
- goto out; |
124 |
--- |
125 |
-GitLab |
126 |
- |
127 |
- |