[152574] trunk/dports/devel/libevent
ryandesign at macports.org
ryandesign at macports.org
Mon Sep 12 11:51:06 PDT 2016
Revision: 152574
https://trac.macports.org/changeset/152574
Author: ryandesign at macports.org
Date: 2016-09-12 11:51:06 -0700 (Mon, 12 Sep 2016)
Log Message:
-----------
libevent: detect Tiger's broken kqueue properly
Avoids erroneously detecting Sierra's kqueue as broken.
#52223
Modified Paths:
--------------
trunk/dports/devel/libevent/Portfile
Added Paths:
-----------
trunk/dports/devel/libevent/files/patch-sierra-kqueue.diff
Modified: trunk/dports/devel/libevent/Portfile
===================================================================
--- trunk/dports/devel/libevent/Portfile 2016-09-12 18:43:40 UTC (rev 152573)
+++ trunk/dports/devel/libevent/Portfile 2016-09-12 18:51:06 UTC (rev 152574)
@@ -5,7 +5,7 @@
name libevent
version 2.0.22
-revision 2
+revision 3
categories devel
platforms darwin
license BSD
@@ -31,6 +31,8 @@
# Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
patchfiles yosemite-libtool.patch
+patchfiles-append patch-sierra-kqueue.diff
+
test.run yes
test.target verify
Added: trunk/dports/devel/libevent/files/patch-sierra-kqueue.diff
===================================================================
--- trunk/dports/devel/libevent/files/patch-sierra-kqueue.diff (rev 0)
+++ trunk/dports/devel/libevent/files/patch-sierra-kqueue.diff 2016-09-12 18:51:06 UTC (rev 152574)
@@ -0,0 +1,14 @@
+Detect Tiger kqueue bug properly on Sierra and later
+https://github.com/libevent/libevent/issues/376
+https://github.com/libevent/libevent/commit/df6f99e5b51a3c0786f54cb9822604ec63385400
+--- kqueue.c.orig 2012-03-22 12:00:28.000000000 -0500
++++ kqueue.c 2016-09-12 13:38:54.000000000 -0500
+@@ -150,7 +150,7 @@
+ if (kevent(kq,
+ kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
+ (int)kqueueop->events[0].ident != -1 ||
+- kqueueop->events[0].flags != EV_ERROR) {
++ !(kqueueop->events[0].flags & EV_ERROR)) {
+ event_warn("%s: detected broken kqueue; not using.", __func__);
+ goto err;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160912/19a106d3/attachment-0001.html>
More information about the macports-changes
mailing list