Fri Sep 20 11:36:28 2019 UTC ()
libevent: updated to 2.1.11

Changes in version 2.1.11-stable

 This release contains one ABI breakage fix (that had been introduced in
 2.1.10, and strictly speaking this release breaks ABI again to make it
 compatible with 2.1.9 and less, please take a look at 18104973 for more
 details). Apart from that it contains some bug fixes, that grouped below.

 And even though the return value for evbuffer_setcb() had been changed it
 should ABI compatible (anyway that function is in -compat.h header).

 There is also one patch that introduce new functionality, this is 546a366c,
 to tune SO_RCVBUF/SO_SNDBUF in evdns, but one can count it as a bug-fix on
 the application level, since before you cannot tune this settings and hence
 you could stumble on problems.

 ABI breakage:
  o Protect min_heap_push_ against integer overflow.
  o Revert "Protect min_heap_push_ against integer overflow."

 functionality:
  o evdns: add new options -- so-rcvbuf/so-sndbuf

 build:
  o Change autoconf version to 2.62 and automake version to 1.11.2
  o cmake: install shared library only if it was requested
  o Missing <winerror.h> on win7/MinGW(MINGW32_NT-6.1)/MSYS
  o cmake: set library names to be the same as with autotools
  o Enable _GNU_SOURCE for Android
  o Enable kqueue for APPLE targets
  o autotools: do not install bufferevent_ssl.h under --disable-openssl
  o cmake: link against shell32.lib/advapi32.lib
  o Add README.md into dist archive
  o cmake: add missing autotools targets (doxygen, uninstall, event_rpcgen.py)
  o m4/libevent_openssl.m4: fix detection of openssl
  o Fix detection of the __has_attribute() for apple clang [ci skip]

 lib:
  o buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM
  o Warn if forked from the event loop during event_reinit()
  o evutil: set the have_checked_interfaces in evutil_check_interfaces()

 samples:
  o https-client: correction error checking

Changes in version 2.1.10-stable

 This release contains mostly fixes (some evbuffer oddity, AF_UNIX handling in
 http server, some UB fixes and others) but also some new functionality
 (without ABI breakage as usual) and now dist archive can be used for building
 on windows (getopt had been added into it).

 Above you will find changelog for this particular release (but with some
 trivial fixes pruned out from it - to make it a little bit more informative).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable

 dist:
  o Add getopt into dist archive

 functionality:
  o evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT

  o Add support for EV_TIMEOUT to event_base_active_by_fd

 fixes:
  o Merge branch 'evbuffer-fixes-806-v2'
  o Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX'
    Azat Khuzhin)
  o kqueue: Avoid undefined behaviour. (e70e18e9 Tobias Stoeckmann)
  o Prevent integer overflow in kq_build_changes_list.
  o evdns: fix lock/unlock mismatch in evdns_close_server_port()
  o Merge remote-tracking branch 'official/pr/804' -- Enforce limit of NSIG
    signals
  o Protect min_heap_push_ against integer overflow.
  o le-proxy: initiate use of the Winsock DLL
  o Fix leaks in error path of the bufferevent_init_common_() (bb0f8fe7 Azat Khuzhin)
  o buffer: make evbuffer_prepend() of zero-length array no-op
  o Merge branch 'evbuffer-empty-chain-handling'
  o Don't loose top error in SSL
  o Remove needless check for arc4_seeded_ok
  o Merge pull request 769 from sungjungk/fix-return-handling

 build:
  o Define `_GNU_SOURCE` properly/consistently per autoconf
  o signal: guard __cdecl definition with #ifdef
  o Link test/regress with event_core/event_extra over event

 tests:
  o Use kill() over raise() for raising the signal (fixes osx 10.14 with
    kqueue)
  o tinytest: implement per-test timeout (via alarm() under !win32 only)

Changes in version 2.1.9-beta

 This changelog will differs from other releases in the next few clauses:
 - contains only highlighted changes (so now it will not contains a lot of
   patches that fixes some stuff in regression tests, typos, leaks fixes in
   samples and so forth)
 - no authors (since merge commits breaks them anyway, but AUTHORS sections in
   README will be kept up to date)
 - group name trimmed from commit subjects trimmed
 - it's been 2 years since the previoius release, so it is pretty huge

 And I think that this is more useful, so from now on it will always has the
 same look (until there will too many objections of course).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta

 dist archive:
  o Add cmake rules into dist archive
  o Add missing print-winsock-errors.c into dist archive
  o Include openssl-compat.h into dist archive

 core:
  o Merge branch 'check-O_NONBLOCK-in-debug'
  o Merge branch 'event-ET-636-v2'
  o Fix visibility issues under (mostly on win32)

  o Define __EXT_POSIX2 for QNX
  o Cleanup __func__ detection
  o Add convenience macros for user-triggered events
  o Notify event base if there are no more events, so it can exit without delay
  o Fix base unlocking in event_del() if event_base_set() runned in another thread
  o If precise_time is false, we should not set EVENT_BASE_FLAG_PRECISE_TIMER
  o Fix race in access to ev_res from event loop with event_active()
  o Return from event_del() after the last event callback termination

 http:
  o Merge branch 'http-EVHTTP_CON_READ_ON_WRITE_ERROR-fixes-v2'
  o Preserve socket error from listen across closesocket cleanup
  o fix connection retries when there more then one request for connection
  o improve error path for bufferevent_{setfd,enable,disable}()
  o Fix conceivable UAF of the bufferevent in evhttp_connection_free()
  o Merge branch 'http-request-line-parsing'
  o Fix evhttp_connection_get_addr() fox incomming http connections
  o fix leaks in evhttp_uriencode()
  o CONNECT method only takes an authority
  o Allow bodies for GET/DELETE/OPTIONS/CONNECT
  o Do not crash when evhttp_send_reply_start() is called after a timeout.
  o Fix crashing http server when callback do not reply in place
  o fix handling of close_notify (ssl) in http with openssl bufferevents

 evrpc:
  o use *_new_with_arg() to match function prototype
  o avoid NULL dereference on request is not EVHTTP_REQ_POST

 regression tests:
  o Merge branch 'TT_RETRIABLE'

 bufferevent:
  o Merge branch 'iocp-fixes'
  o Merge branch 'be-wm-overrun-v2'
  o bufferevent_socket_connect{,_hostname}() missing event callback and use ret code
  o don't fail be_null_filter if bytes are copied
  o Call underlying bev ctrl GET_FD on filtered bufferevents

 bufferevent_openssl/openssl:
  o Merge branch 'ssl_bufferevent_wm_filter-fix'
  o be_openssl: avoid leaking of SSL structure
  o Fix build with LibreSSL 2.7
  o Add missing includes into openssl-compat.h
  o Explicitly call SSL_clear when reseting the fd.
  o Unbreak build with LibreSSL after openssl 1.1 support added

 samples:
  o Merge branch 'sample-http-server'
  o sample/https-client: use host SSL certificate store by default

 listener:
  o ipv6only socket bind support
  o Merge branch 'listener-immediate-close'
  o Merge branch 'evconnlistener-do-not-close-client-fd'

 evdns:
  o evdns: handle NULL filename explicitly
  o Merge branch 'evdns_getaddrinfo-race-fix'
  o Generating evdns_base_config_windows_nameservers docs on all platforms

 utils:
  o Merge branch 'evutil_found_ifaddr-dev'
  o Avoid possible SEGVs in select() (in unit tests)
  o Port `event_rpcgen.py` and `test/check-dumpevents.py` to Python 3.

 buffer:
  o Fix assert() condition in evbuffer_drain() for IOCP
  o fix incorrect unlock of the buffer mutex (for deferred callbacks)
  o Fix wrong assert in evbuffer_drain()

 cmake:
  o fix checking of devpoll backend (like in autotools, by devpoll.h existence)
  o support static runtime (MSVC)
  o do not build both (SHARED and STATIC) for MSVC/win32
  o introduce EVENT__LIBRARY_TYPE option
  o ensure windows dll's are installed as well as lib files
  o Fix generation of LibeventConfig.cmake for the installation tree
  o fix pkgconfig generation (copy-paste typo)
  o Merge branch 'cmake-missing-bits'
  o Fix detection of timerfd_create() in CMake.
  o Merge branch 'cmake-configure-fixes-v2'
  o Do not add epoll_sub (syscall wrappers) for epoll in cmake
  o Fix RPATH for APPLE

 autotools:
  o include win32 specific headers for socklen_t detection on win32/mingw
  o Ignore evconfig-private.h for autotools
  o config.h can't be prefixed unconditionally
  o Merge branch 'pull-628'
  o Provide Makefile variables LIBEVENT_{CFLAGS,CPPFLAGS,LDFLAGS}
  o confirm openssl is working before using
  o pass $(OPENSSL_INCS) for samples (FTBFS macOS)
  o Add configure check for midipix
  o Fix tests with detached builds

 build:
  o Fix arc4random_addrandom() detecting and fallback (regression)
  o Merge branch 'win32-fixes'
  o Merge branch 'fix-openssl-linking'
  o Merge branch 'fix-struct-linger'

 CI:
  o travis-ci/appveyor now uses fast_finish+allow_failures

  o Merge branch 'travis-ci-osx-fixes'
  o Merge branch 'win64-fixes'


(adam)
diff -r1.53 -r1.54 pkgsrc/devel/libevent/Makefile
diff -r1.3 -r1.4 pkgsrc/devel/libevent/Makefile.common
diff -r1.37 -r1.38 pkgsrc/devel/libevent/distinfo
diff -r1.4 -r0 pkgsrc/devel/libevent/patches/patch-evutil__rand.c
diff -r1.1 -r0 pkgsrc/devel/libevent/patches/patch-http.c
diff -r1.1 -r0 pkgsrc/devel/libevent/patches/patch-test_bench__cascade.c
diff -r1.1 -r1.2 pkgsrc/devel/libevent/patches/patch-signal.c
diff -r1.5 -r1.6 pkgsrc/devel/py-libevent-rpcgen/Makefile

cvs diff -r1.53 -r1.54 pkgsrc/devel/libevent/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libevent/Makefile 2017/09/26 17:57:36 1.53
+++ pkgsrc/devel/libevent/Makefile 2019/09/20 11:36:27 1.54
@@ -1,43 +1,35 @@ @@ -1,43 +1,35 @@
1# $NetBSD: Makefile,v 1.53 2017/09/26 17:57:36 gson Exp $ 1# $NetBSD: Makefile,v 1.54 2019/09/20 11:36:27 adam Exp $
2 2
3.include "../../devel/libevent/Makefile.common" 3.include "../../devel/libevent/Makefile.common"
4 4
5PKGREVISION= 1 
6 
7PKGNAME= ${DISTNAME:S/-stable//} 5PKGNAME= ${DISTNAME:S/-stable//}
8COMMENT= Asynchronous event notification library 6COMMENT= Asynchronous event notification library
9 7
10CONFLICTS+= libev<3.9nb1 8CONFLICTS+= libev<3.9nb1
11 9
12USE_LIBTOOL= yes 10USE_LIBTOOL= yes
13GNU_CONFIGURE= yes 11GNU_CONFIGURE= yes
14PKGCONFIG_OVERRIDE+= libevent_core.pc.in 12PKGCONFIG_OVERRIDE+= libevent_core.pc.in
15PKGCONFIG_OVERRIDE+= libevent_extra.pc.in 13PKGCONFIG_OVERRIDE+= libevent_extra.pc.in
16PKGCONFIG_OVERRIDE+= libevent_openssl.pc.in 14PKGCONFIG_OVERRIDE+= libevent_openssl.pc.in
17PKGCONFIG_OVERRIDE+= libevent_pthreads.pc.in 15PKGCONFIG_OVERRIDE+= libevent_pthreads.pc.in
18PKGCONFIG_OVERRIDE+= libevent.pc.in 16PKGCONFIG_OVERRIDE+= libevent.pc.in
19TEST_TARGET= verify 17TEST_TARGET= verify
20 18
21LIBS.SunOS+= -lnsl -lresolv 19LIBS.SunOS+= -lnsl -lresolv
22CPPFLAGS.SunOS+= -D__EXTENSIONS__ 20CPPFLAGS.SunOS+= -D__EXTENSIONS__
23CPPFLAGS.QNX+= -D__EXT_POSIX2 21CPPFLAGS.QNX+= -D__EXT_POSIX2
24 22
25CFLAGS+=-g -O0 
26INSTALL_UNSTRIPPED=yes 
27 
28# XXX helps build, but needs more testing 
29#CFLAGS.Interix+= -Dsockaddr_storage=sockaddr_in -DNI_MAXSERV=32 
30 
31.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
32 24
33# Explicitly disable epoll on illumos, provided for Linux compat only. 25# Explicitly disable epoll on illumos, provided for Linux compat only.
34CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_ctl=no 26CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_ctl=no
35 27
36.if !empty(MACHINE_PLATFORM:MHPUX-11.11-*) 28.if !empty(MACHINE_PLATFORM:MHPUX-11.11-*)
37CONFIGURE_ENV+= ac_cv_func_strtoll=yes 29CONFIGURE_ENV+= ac_cv_func_strtoll=yes
38CPPFLAGS+= -Dstrtoll=__strtoll 30CPPFLAGS+= -Dstrtoll=__strtoll
39.endif 31.endif
40 32
41.include "../../security/openssl/buildlink3.mk" 33.include "../../security/openssl/buildlink3.mk"
42.include "../../mk/pthread.buildlink3.mk" 34.include "../../mk/pthread.buildlink3.mk"
43.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/devel/libevent/Makefile.common (expand / switch to unified diff)

--- pkgsrc/devel/libevent/Makefile.common 2017/02/15 17:34:37 1.3
+++ pkgsrc/devel/libevent/Makefile.common 2019/09/20 11:36:27 1.4
@@ -1,18 +1,17 @@ @@ -1,18 +1,17 @@
1# $NetBSD: Makefile.common,v 1.3 2017/02/15 17:34:37 adam Exp $ 1# $NetBSD: Makefile.common,v 1.4 2019/09/20 11:36:27 adam Exp $
2# 2#
3# used by devel/libevent/Makefile 3# used by devel/libevent/Makefile
4# used by devel/py-libevent-rpcgen/Makefile 4# used by devel/py-libevent-rpcgen/Makefile
5 5
6DISTNAME= libevent-2.1.8-stable 6DISTNAME= libevent-2.1.11-stable
7CATEGORIES= devel 7CATEGORIES= devel
8MASTER_SITES= ${MASTER_SITE_GITHUB:=libevent/} 8MASTER_SITES= ${MASTER_SITE_GITHUB:=libevent/}
 9GITHUB_PROJECT= libevent
 10GITHUB_RELEASE= release-${PKGVERSION_NOREV}-stable
9 11
10MAINTAINER?= pkgsrc-users@NetBSD.org 12MAINTAINER?= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://libevent.org/ 13HOMEPAGE= http://libevent.org/
12LICENSE= modified-bsd 14LICENSE= modified-bsd
13 15
14GITHUB_PROJECT= libevent 
15GITHUB_RELEASE= release-${PKGVERSION_NOREV}-stable 
16 
17DISTINFO_FILE= ${.CURDIR}/../../devel/libevent/distinfo 16DISTINFO_FILE= ${.CURDIR}/../../devel/libevent/distinfo
18PATCHDIR= ${.CURDIR}/../../devel/libevent/patches 17PATCHDIR= ${.CURDIR}/../../devel/libevent/patches

cvs diff -r1.37 -r1.38 pkgsrc/devel/libevent/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libevent/distinfo 2017/09/26 17:57:36 1.37
+++ pkgsrc/devel/libevent/distinfo 2019/09/20 11:36:27 1.38
@@ -1,11 +1,8 @@ @@ -1,11 +1,8 @@
1$NetBSD: distinfo,v 1.37 2017/09/26 17:57:36 gson Exp $ 1$NetBSD: distinfo,v 1.38 2019/09/20 11:36:27 adam Exp $
2 2
3SHA1 (libevent-2.1.8-stable.tar.gz) = 2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec 3SHA1 (libevent-2.1.11-stable.tar.gz) = a76bba0a281da9384d4be5b40f3907c07e21428c
4RMD160 (libevent-2.1.8-stable.tar.gz) = 6c7ce8cb51279f9b6b8d8897192db6a2da3d6797 4RMD160 (libevent-2.1.11-stable.tar.gz) = 632ef3bb568a510812110575cbf32876899fcc73
5SHA512 (libevent-2.1.8-stable.tar.gz) = a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 5SHA512 (libevent-2.1.11-stable.tar.gz) = 9d0517b117f128f4f196b19a810524814bab75fa967d533063aaa619d3cf2dca97b443edd5805b764da2993d8e37caa536dce39f68ffcc2a88d32a89204c2de3
6Size (libevent-2.1.8-stable.tar.gz) = 1026485 bytes 6Size (libevent-2.1.11-stable.tar.gz) = 1082234 bytes
7SHA1 (patch-Makefile.in) = 09c7524eb8657e1f76232db97273806a8c900219 7SHA1 (patch-Makefile.in) = 09c7524eb8657e1f76232db97273806a8c900219
8SHA1 (patch-evutil__rand.c) = 2b51e719d25181e03b5afb7df0bf443f1d62a8f1 8SHA1 (patch-signal.c) = 868f5f217afd030407a6c8be2d3fbecd58dc7999
9SHA1 (patch-http.c) = f878714bf4d894d0026580bbed2a93927543eae8 
10SHA1 (patch-signal.c) = 1058566e7a6e0ffb709fbd2a3440cac86e188657 
11SHA1 (patch-test_bench__cascade.c) = 58bd32fe0cddc468fda57386283b5298b28ef93e 

File Deleted: pkgsrc/devel/libevent/patches/Attic/patch-evutil__rand.c

File Deleted: pkgsrc/devel/libevent/patches/Attic/patch-http.c

File Deleted: pkgsrc/devel/libevent/patches/Attic/patch-test_bench__cascade.c

cvs diff -r1.1 -r1.2 pkgsrc/devel/libevent/patches/patch-signal.c (expand / switch to unified diff)

--- pkgsrc/devel/libevent/patches/patch-signal.c 2017/09/23 03:24:55 1.1
+++ pkgsrc/devel/libevent/patches/patch-signal.c 2019/09/20 11:36:28 1.2
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1$NetBSD: patch-signal.c,v 1.1 2017/09/23 03:24:55 maya Exp $ 1$NetBSD: patch-signal.c,v 1.2 2019/09/20 11:36:28 adam Exp $
2 2
3Provide a fallback definition of SA_RESTART for QNX 6.5 3Provide a fallback definition of SA_RESTART for QNX 6.5
4 4
5--- signal.c.orig 2016-10-04 19:55:31.000000000 +0000 5--- signal.c.orig 2019-07-31 18:28:32.000000000 +0000
6+++ signal.c 6+++ signal.c
7@@ -88,6 +88,10 @@ 7@@ -90,6 +90,10 @@
8 #define __cdecl 8 #endif
9 #endif 9 #endif
10  10
11+#ifndef SA_RESTART /* Absent in QNX 6.5 */ 11+#ifndef SA_RESTART /* Absent in QNX 6.5 */
12+#define SA_RESTART 0 12+#define SA_RESTART 0
13+#endif 13+#endif
14+ 14+
15 static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *); 15 static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *);
16 static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *); 16 static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *);
17  17

cvs diff -r1.5 -r1.6 pkgsrc/devel/py-libevent-rpcgen/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-libevent-rpcgen/Makefile 2017/02/15 17:34:37 1.5
+++ pkgsrc/devel/py-libevent-rpcgen/Makefile 2019/09/20 11:36:28 1.6
@@ -1,21 +1,20 @@ @@ -1,21 +1,20 @@
1# $NetBSD: Makefile,v 1.5 2017/02/15 17:34:37 adam Exp $ 1# $NetBSD: Makefile,v 1.6 2019/09/20 11:36:28 adam Exp $
2 2
3.include "../../devel/libevent/Makefile.common" 3.include "../../devel/libevent/Makefile.common"
4 4
5PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/libevent/libevent-rpcgen/:S/-stable//} 5PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/libevent/libevent-rpcgen/:S/-stable//}
6COMMENT= Python libevent rpcgen script 6COMMENT= Python libevent rpcgen script
7 7
8NO_BUILD= yes 8NO_BUILD= yes
9INSTALLATION_DIRS+= bin 9INSTALLATION_DIRS+= bin
10 10
 11PYTHON_SELF_CONFLICT= yes
11REPLACE_PYTHON= event_rpcgen.py 12REPLACE_PYTHON= event_rpcgen.py
12 13
13PYTHON_VERSIONS_ACCEPTED= 27 
14 
15do-configure: 14do-configure:
16 15
17do-install: 16do-install:
18 ${INSTALL_SCRIPT} ${WRKSRC}/event_rpcgen.py ${DESTDIR}${PREFIX}/bin 17 ${INSTALL_SCRIPT} ${WRKSRC}/event_rpcgen.py ${DESTDIR}${PREFIX}/bin
19 18
20.include "../../lang/python/application.mk" 19.include "../../lang/python/application.mk"
21.include "../../mk/bsd.pkg.mk" 20.include "../../mk/bsd.pkg.mk"