pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/polkit



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.

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);



Home | Main Index | Thread Index | Old Index