Scott Graham | 6696211 | 2018-06-08 12:42:08 -0700 | [diff] [blame^] | 1 | Name: libevent |
| 2 | URL: http://libevent.org/ |
| 3 | Version: 1.4.15 |
| 4 | License: BSD |
| 5 | Security Critical: yes |
| 6 | |
| 7 | Local Modifications: |
| 8 | Rather than use libevent's own build system, we just build a Chrome |
| 9 | static library using GYP. |
| 10 | |
| 11 | 1) Run configure and "make event-config.h" on Linux, FreeBSD, Solaris, |
| 12 | and Mac and copy config.h and event-config.h to linux/, freebsd/, |
| 13 | solaris/, and mac/ respectively. |
| 14 | 2) Add libevent.gyp. |
| 15 | 3) chromium.patch is applied to make the following changes: |
| 16 | - Allow libevent to be used without being installed by changing <...> |
| 17 | #includes to "...". |
| 18 | - Fix a race condition in event_del. |
| 19 | - Optimistically assume CLOCK_MONOTONIC is available and fallback if it |
| 20 | fails, rather than explicitly testing for it. |
| 21 | - Remove an unneeded variable that causes a -Werror build failure. |
| 22 | - Add an #ifndef to fix a preprocessor redefined -Werror build failure. |
| 23 | - Revert the patch from http://sourceforge.net/p/levent/bugs/223/ that |
| 24 | introduces use-after-free memory corruption when an event callback frees |
| 25 | the struct event memory. |
| 26 | - Remove deprecated global variables, event_sigcb and event_gotsig |
| 27 | (essentially unused) that trigger tsan errors. (crbug/605894) |
| 28 | 4) The directories WIN32-Code and WIN32-Prj are not included. |
| 29 | 5) The configs for android were copied from Linux's which were very close to |
| 30 | android one with the exception of HAVE_FD_MASK and HAVE_STRLCPY. |
| 31 | 6) Add files to support building with the PNaCl toolchain. Added |
| 32 | libevent_nacl_nonsfi.gyp for build rule. nacl_nonsfi/config.h and |
| 33 | nacl_nonsfi/event-config.h are derived from linux/ counterparts. |
| 34 | nacl_nonsfi/random.c is also added to provide the random() function, |
| 35 | which is missing in the newlib-based PNaCl toolchain. |
| 36 | 7) Stub out signal.c for nacl_helper_nonsfi. socketpair() will be prohibited |
| 37 | by sandbox in nacl_helper_nonsfi. |
| 38 | 8) Remove an unnecessary workaround for OS X 10.4 from kqueue.c. It was causing |
| 39 | problems on macOS Sierra. |