[133593] trunk/dports/net/whois
ryandesign at macports.org
ryandesign at macports.org
Thu Mar 5 20:27:46 PST 2015
Revision: 133593
https://trac.macports.org/changeset/133593
Author: ryandesign at macports.org
Date: 2015-03-05 20:27:45 -0800 (Thu, 05 Mar 2015)
Log Message:
-----------
whois: don't use arc4random_buf on OS X v10.6 or earlier where it is not available
Modified Paths:
--------------
trunk/dports/net/whois/Portfile
Added Paths:
-----------
trunk/dports/net/whois/files/patch-arc4random_buf.diff
Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile 2015-03-06 04:11:16 UTC (rev 133592)
+++ trunk/dports/net/whois/Portfile 2015-03-06 04:27:45 UTC (rev 133593)
@@ -43,6 +43,9 @@
port:libidn \
port:libiconv
+# arc4random_buf is not available until OS X v10.7.
+patchfiles-append patch-arc4random_buf.diff
+
# Bugs should be reported to MacPorts, not upstream.
patchfiles-append patch-bugreport.diff
Added: trunk/dports/net/whois/files/patch-arc4random_buf.diff
===================================================================
--- trunk/dports/net/whois/files/patch-arc4random_buf.diff (rev 0)
+++ trunk/dports/net/whois/files/patch-arc4random_buf.diff 2015-03-06 04:27:45 UTC (rev 133593)
@@ -0,0 +1,11 @@
+--- config.h.orig 2015-01-08 20:49:00.000000000 -0600
++++ config.h 2015-03-05 22:23:02.000000000 -0600
+@@ -85,7 +85,7 @@
+ #if (defined __FreeBSD__ && __FreeBSD__ >= 9) || \
+ (defined __NetBSD__ && __NetBSD_Version__ >= 600000000) || \
+ (defined OpenBSD && OpenBSD >= 200805) || \
+- (defined __APPLE__ && defined __MACH__)
++ (defined __APPLE__ && defined __MACH__ && MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
+ # define HAVE_ARC4RANDOM_BUF
+ # undef RANDOM_DEVICE
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150305/37f2ae41/attachment.html>
More information about the macports-changes
mailing list