Ticket #52223: libevent.patch

File libevent.patch, 1.2 KB (added by lbschenkel (Leonardo Brondani Schenkel), 8 years ago)

new Portfile revision and patch for OS X Sierra

  • devel/libevent/Portfile

    diff --git a/devel/libevent/Portfile b/devel/libevent/Portfile
    a b  
    55
    66name                libevent
    77version             2.0.22
    8 revision            2
     8revision            3
    99categories          devel
    1010platforms           darwin
    1111license             BSD
     
    2929                    sha256  71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3
    3030
    3131# Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
    32 patchfiles          yosemite-libtool.patch
     32patchfiles          yosemite-libtool.patch \
     33                    patch-sierra-kqueue.diff
    3334
    3435test.run            yes
    3536test.target         verify
  • new file devel/libevent/files/patch-sierra-kqueue.diff

    diff --git a/devel/libevent/files/patch-sierra-kqueue.diff b/devel/libevent/files/patch-sierra-kqueue.diff
    new file mode 100644
    - +  
     1--- kqueue.c
     2+++ kqueue.c
     3@@ -154,7 +154,7 @@
     4        if (kevent(kq,
     5                kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
     6            (int)kqueueop->events[0].ident != -1 ||
     7-           kqueueop->events[0].flags != EV_ERROR) {
     8+           !(kqueueop->events[0].flags & EV_ERROR)) {
     9                event_warn("%s: detected broken kqueue; not using.", __func__);
     10                goto err;
     11        }