pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/p11-kit p11-kit: Build fix for older Darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/77db62f10b23
branches:  trunk
changeset: 311122:77db62f10b23
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Aug 01 19:18:19 2018 +0000

description:
p11-kit: Build fix for older Darwin.

diffstat:

 security/p11-kit/distinfo                      |   3 ++-
 security/p11-kit/patches/patch-common_compat.c |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 8b52b8e02a39 -r 77db62f10b23 security/p11-kit/distinfo
--- a/security/p11-kit/distinfo Wed Aug 01 18:01:32 2018 +0000
+++ b/security/p11-kit/distinfo Wed Aug 01 19:18:19 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2018/07/06 15:33:39 prlw1 Exp $
+$NetBSD: distinfo,v 1.6 2018/08/01 19:18:19 jperkin Exp $
 
 SHA1 (p11-kit-0.23.12.tar.gz) = 9334d3b1890c7fe0f765460a69da70c796254373
 RMD160 (p11-kit-0.23.12.tar.gz) = 37220162e0a041bf388fcaaf621189ad0a8d0121
 SHA512 (p11-kit-0.23.12.tar.gz) = ae43b1f6ba5400cf5ae7b64b8c93aa47e5c7ee927196828600fd88beb6fdf6bcb6a63bc822d356757255638f9fbf10896e0604e32a1332a9a833836fa0468726
 Size (p11-kit-0.23.12.tar.gz) = 1257028 bytes
 SHA1 (patch-Makefile.in) = c7f26205c09537593a49dea33c05e1fd29e9dbc3
+SHA1 (patch-common_compat.c) = a0a41c6f95e1d6e70c058f42f7c55ce0eeaf4f43
diff -r 8b52b8e02a39 -r 77db62f10b23 security/p11-kit/patches/patch-common_compat.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/p11-kit/patches/patch-common_compat.c    Wed Aug 01 19:18:19 2018 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-common_compat.c,v 1.1 2018/08/01 19:18:19 jperkin Exp $
+
+Avoid /proc section on Darwin.
+
+--- common/compat.c.orig       2018-05-30 13:40:36.000000000 +0000
++++ common/compat.c
+@@ -910,6 +910,7 @@ fdwalk (int (* cb) (void *data, int fd),
+       struct rlimit rl;
+ #endif
+ 
++#if !defined(__APPLE__)
+       dir = opendir ("/proc/self/fd");
+       if (dir != NULL) {
+               while ((de = readdir (dir)) != NULL) {
+@@ -932,6 +933,7 @@ fdwalk (int (* cb) (void *data, int fd),
+               closedir (dir);
+               return res;
+       }
++#endif
+ 
+       /* No /proc, brute force */
+ #ifdef HAVE_SYS_RESOURCE_H



Home | Main Index | Thread Index | Old Index