Received: by mail.netbsd.org (Postfix, from userid 605) id 3F27184DB6; Thu, 14 Mar 2019 10:15:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BA6EA84DAF for ; Thu, 14 Mar 2019 10:15:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ULf4qR_SOSA9 for ; Thu, 14 Mar 2019 10:15:20 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 2C9FE84D3A for ; Thu, 14 Mar 2019 10:15:20 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1A5B9FB16; Thu, 14 Mar 2019 10:15:20 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1552558520190000" MIME-Version: 1.0 Date: Thu, 14 Mar 2019 10:15:20 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/security/polkit To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20190314101520.1A5B9FB16@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1552558520190000 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Thu Mar 14 10:15:20 UTC 2019 Modified Files: pkgsrc/security/polkit: distinfo pkgsrc/security/polkit/patches: patch-src_polkitbackend_polkitbackendjsauthority.cpp Log Message: polkit: Fix build on Darwin. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/polkit/distinfo cvs rdiff -u -r1.1 -r1.2 \ pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1552558520190000 Content-Disposition: inline Content-Length: 3036 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/security/polkit/distinfo diff -u pkgsrc/security/polkit/distinfo:1.8 pkgsrc/security/polkit/distinfo:1.9 --- pkgsrc/security/polkit/distinfo:1.8 Thu Aug 16 12:30:43 2018 +++ pkgsrc/security/polkit/distinfo Thu Mar 14 10:15:19 2019 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2018/08/16 12:30:43 wiz Exp $ +$NetBSD: distinfo,v 1.9 2019/03/14 10:15:19 jperkin Exp $ SHA1 (polkit-0.115.tar.gz) = 208b7e44fcf0f515d067d37307af9ea1419eb305 RMD160 (polkit-0.115.tar.gz) = fd98c3a4faf76c6adc021dff63f9a6cfd1804959 @@ -6,7 +6,7 @@ SHA512 (polkit-0.115.tar.gz) = 1153011fa Size (polkit-0.115.tar.gz) = 1550932 bytes SHA1 (patch-src_polkit_polkitunixprocess.c) = 88818b7b64502f64eade34ad379c07f2b0fd1aea SHA1 (patch-src_polkitbackend_polkitbackendinteractiveauthority.c) = dd91b4e74e6c39f24e0f5a9b3150fdac12899cb5 -SHA1 (patch-src_polkitbackend_polkitbackendjsauthority.cpp) = 43e8ec118601e978435d66ba805c35bc3db24b17 +SHA1 (patch-src_polkitbackend_polkitbackendjsauthority.cpp) = 432a3d7d082ba6e596ba164d91408fc521b84422 SHA1 (patch-src_polkitbackend_polkitd.c) = b8e11b40e2b171d4f030eb4c4cbc6fdc7a96b2c2 SHA1 (patch-src_programs_pkexec.c) = bfc0414c7a943c8e8b8412566a2519198eab8abd SHA1 (patch-src_programs_pkttyagent.c) = 4dbffd02c7e66910d4104a75d6f5f437bd51acc9 Index: pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp diff -u pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp:1.1 pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp:1.2 --- pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp:1.1 Mon May 14 09:30:35 2018 +++ pkgsrc/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp Thu Mar 14 10:15:19 2019 @@ -1,9 +1,9 @@ -$NetBSD: patch-src_polkitbackend_polkitbackendjsauthority.cpp,v 1.1 2018/05/14 09:30:35 jperkin Exp $ +$NetBSD: patch-src_polkitbackend_polkitbackendjsauthority.cpp,v 1.2 2019/03/14 10:15:19 jperkin Exp $ Provide getgrouplist for SunOS. This is available in newer Solaris, so if that becomes a problem we'll need to add a configure test. ---- src/polkitbackend/polkitbackendjsauthority.cpp.orig 2018-04-03 18:16:49.000000000 +0000 +--- src/polkitbackend/polkitbackendjsauthority.cpp.orig 2018-04-03 20:57:57.000000000 +0000 +++ src/polkitbackend/polkitbackendjsauthority.cpp @@ -55,6 +55,46 @@ #error "This code is not safe in SpiderMonkey exact stack rooting configurations" @@ -52,3 +52,15 @@ so if that becomes a problem we'll need /** * SECTION:polkitbackendjsauthority * @title: PolkitBackendJsAuthority +@@ -813,7 +853,11 @@ subject_to_jsval (PolkitBackendJsAuthori + + if (getgrouplist (passwd->pw_name, + passwd->pw_gid, ++#ifdef __APPLE__ ++ (int *)gids, ++#else + gids, ++#endif + &num_gids) < 0) + { + g_warning ("Error looking up groups for uid %d: %m", (gint) uid); --_----------=_1552558520190000--