[126161] trunk/dports/security/p11-kit

devans at macports.org devans at macports.org
Sat Oct 4 13:15:59 PDT 2014


Revision: 126161
          https://trac.macports.org/changeset/126161
Author:   devans at macports.org
Date:     2014-10-04 13:15:59 -0700 (Sat, 04 Oct 2014)
Log Message:
-----------
p11-kit: disable Apple incompatible code that breaks build on 10.7 and earlier.

Modified Paths:
--------------
    trunk/dports/security/p11-kit/Portfile

Added Paths:
-----------
    trunk/dports/security/p11-kit/files/
    trunk/dports/security/p11-kit/files/patch-common-compat.c.diff

Modified: trunk/dports/security/p11-kit/Portfile
===================================================================
--- trunk/dports/security/p11-kit/Portfile	2014-10-04 19:48:19 UTC (rev 126160)
+++ trunk/dports/security/p11-kit/Portfile	2014-10-04 20:15:59 UTC (rev 126161)
@@ -30,6 +30,8 @@
 
 depends_run     path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
 
+patchfiles      patch-common-compat.c.diff
+
 configure.args  --with-trust-paths=${prefix}/share/curl/curl-ca-bundle.crt:${prefix}/etc/openssl \
                 --disable-silent-rules
 

Added: trunk/dports/security/p11-kit/files/patch-common-compat.c.diff
===================================================================
--- trunk/dports/security/p11-kit/files/patch-common-compat.c.diff	                        (rev 0)
+++ trunk/dports/security/p11-kit/files/patch-common-compat.c.diff	2014-10-04 20:15:59 UTC (rev 126161)
@@ -0,0 +1,18 @@
+--- common/compat.c.orig	2014-10-04 10:54:43.000000000 -0700
++++ common/compat.c	2014-10-04 10:57:56.000000000 -0700
+@@ -910,6 +910,7 @@
+ 	struct rlimit rl;
+ #endif
+ 
++#ifndef __APPLE__
+ 	dir = opendir ("/proc/self/fd");
+ 	if (dir != NULL) {
+ 		while ((de = readdir (dir)) != NULL) {
+@@ -932,6 +933,7 @@
+ 		closedir (dir);
+ 		return res;
+ 	}
++#endif
+ 
+ 	/* No /proc, brute force */
+ #ifdef HAVE_SYS_RESOURCE_H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141004/f40b5956/attachment.html>


More information about the macports-changes mailing list