commit: 4c9e5128453698781e7acb380cf4f8431ed3d07e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Apr 23 00:59:58 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Apr 23 01:00:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c9e5128
sys-auth/polkit: adapt musl patch for duktape build Closes: https://bugs.gentoo.org/834604 Signed-off-by: Sam James <sam <AT> gentoo.org> ...polkit-0.118-make-netgroup-support-optional.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 index b11250fd3992..8810e70b7378 100644 --- 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 @@ -226,3 +226,23 @@ Signed-off-by: A. Wilcox <[email protected]> }; 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; + }
