pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/polkit polkit: Fix build on Darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8585c84028ca
branches:  trunk
changeset: 320998:8585c84028ca
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Mar 14 10:15:19 2019 +0000

description:
polkit: Fix build on Darwin.

diffstat:

 security/polkit/distinfo                                                     |   4 +-
 security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp |  16 ++++++++-
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r cb8d3d12b536 -r 8585c84028ca security/polkit/distinfo
--- a/security/polkit/distinfo  Thu Mar 14 09:57:54 2019 +0000
+++ b/security/polkit/distinfo  Thu Mar 14 10:15:19 2019 +0000
@@ -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 @@
 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
diff -r cb8d3d12b536 -r 8585c84028ca security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp
--- a/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp      Thu Mar 14 09:57:54 2019 +0000
+++ b/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp      Thu Mar 14 10:15:19 2019 +0000
@@ -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 @@
  /**
   * 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);



Home | Main Index | Thread Index | Old Index