summaryrefslogtreecommitdiff
path: root/libevent-32
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2020-03-04 21:50:24 +1100
committerDanny Rawlins <monster.romster@gmail.com>2020-03-04 21:50:24 +1100
commitf51ebc1c4847f2b8354ead55c6af11f487d4d32b (patch)
tree72b154604c249ebb1941e8ba5f048cbc22a88f84 /libevent-32
parent12844e89805e407af7ba990d5aae9beeafbce279 (diff)
downloadcompat-32-f51ebc1c4847f2b8354ead55c6af11f487d4d32b.tar.gz
compat-32-f51ebc1c4847f2b8354ead55c6af11f487d4d32b.tar.xz
libevent-32: initial import
Diffstat (limited to 'libevent-32')
-rw-r--r--libevent-32/.32bit0
-rw-r--r--libevent-32/.footprint33
-rw-r--r--libevent-32/.signature6
-rw-r--r--libevent-32/Pkgfile23
-rw-r--r--libevent-32/warn-if-forked-from-the-event-loop.patch32
5 files changed, 94 insertions, 0 deletions
diff --git a/libevent-32/.32bit b/libevent-32/.32bit
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/libevent-32/.32bit
diff --git a/libevent-32/.footprint b/libevent-32/.footprint
new file mode 100644
index 00000000..aff4a304
--- /dev/null
+++ b/libevent-32/.footprint
@@ -0,0 +1,33 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib32/
+lrwxrwxrwx root/root usr/lib32/libevent-2.1.so.7 -> libevent-2.1.so.7.0.0
+-rwxr-xr-x root/root usr/lib32/libevent-2.1.so.7.0.0
+-rw-r--r-- root/root usr/lib32/libevent.a
+-rwxr-xr-x root/root usr/lib32/libevent.la
+lrwxrwxrwx root/root usr/lib32/libevent.so -> libevent-2.1.so.7.0.0
+lrwxrwxrwx root/root usr/lib32/libevent_core-2.1.so.7 -> libevent_core-2.1.so.7.0.0
+-rwxr-xr-x root/root usr/lib32/libevent_core-2.1.so.7.0.0
+-rw-r--r-- root/root usr/lib32/libevent_core.a
+-rwxr-xr-x root/root usr/lib32/libevent_core.la
+lrwxrwxrwx root/root usr/lib32/libevent_core.so -> libevent_core-2.1.so.7.0.0
+lrwxrwxrwx root/root usr/lib32/libevent_extra-2.1.so.7 -> libevent_extra-2.1.so.7.0.0
+-rwxr-xr-x root/root usr/lib32/libevent_extra-2.1.so.7.0.0
+-rw-r--r-- root/root usr/lib32/libevent_extra.a
+-rwxr-xr-x root/root usr/lib32/libevent_extra.la
+lrwxrwxrwx root/root usr/lib32/libevent_extra.so -> libevent_extra-2.1.so.7.0.0
+lrwxrwxrwx root/root usr/lib32/libevent_openssl-2.1.so.7 -> libevent_openssl-2.1.so.7.0.0
+-rwxr-xr-x root/root usr/lib32/libevent_openssl-2.1.so.7.0.0
+-rw-r--r-- root/root usr/lib32/libevent_openssl.a
+-rwxr-xr-x root/root usr/lib32/libevent_openssl.la
+lrwxrwxrwx root/root usr/lib32/libevent_openssl.so -> libevent_openssl-2.1.so.7.0.0
+lrwxrwxrwx root/root usr/lib32/libevent_pthreads-2.1.so.7 -> libevent_pthreads-2.1.so.7.0.0
+-rwxr-xr-x root/root usr/lib32/libevent_pthreads-2.1.so.7.0.0
+-rw-r--r-- root/root usr/lib32/libevent_pthreads.a
+-rwxr-xr-x root/root usr/lib32/libevent_pthreads.la
+lrwxrwxrwx root/root usr/lib32/libevent_pthreads.so -> libevent_pthreads-2.1.so.7.0.0
+drwxr-xr-x root/root usr/lib32/pkgconfig/
+-rw-r--r-- root/root usr/lib32/pkgconfig/libevent.pc
+-rw-r--r-- root/root usr/lib32/pkgconfig/libevent_core.pc
+-rw-r--r-- root/root usr/lib32/pkgconfig/libevent_extra.pc
+-rw-r--r-- root/root usr/lib32/pkgconfig/libevent_openssl.pc
+-rw-r--r-- root/root usr/lib32/pkgconfig/libevent_pthreads.pc
diff --git a/libevent-32/.signature b/libevent-32/.signature
new file mode 100644
index 00000000..0fe70944
--- /dev/null
+++ b/libevent-32/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/compat-32.pub
+RWSwxGo/zH7eXQud8QbSrGvQn/jDNV206w6233Ac9/zI6toH8eUJ3Sfe9L4uYDhcGcSoQDir0rN3CZ701PgI7wRc0hLhIU3Hiwo=
+SHA256 (Pkgfile) = 26b03ba2e143824c8574a0f80f781aef30558552cf46e0703acf0a58baf0c6be
+SHA256 (.footprint) = b4243fdf523e0af8c77b0591ec4f4f485eda339735b37f2edd125fa3489d695b
+SHA256 (libevent-2.1.11-stable.tar.gz) = a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d
+SHA256 (warn-if-forked-from-the-event-loop.patch) = 91572f51556e641b1eff864075cf40b4bb5b0c2fc16f45ab1872e16a391792ad
diff --git a/libevent-32/Pkgfile b/libevent-32/Pkgfile
new file mode 100644
index 00000000..96eddc11
--- /dev/null
+++ b/libevent-32/Pkgfile
@@ -0,0 +1,23 @@
+# Description: Event notification library
+# URL: http://www.monkey.org/~provos/libevent/
+# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
+# Depends on: openssl-32 libevent
+
+name=libevent-32
+version=2.1.11
+release=1
+source=(https://github.com/libevent/libevent/releases/download/release-$version-stable/libevent-$version-stable.tar.gz
+ warn-if-forked-from-the-event-loop.patch)
+
+build() {
+ cd libevent-$version-stable
+
+ # https://archives.seul.org/libevent/users/Aug-2019/msg00009.html
+ patch -p1 -R -i $SRC/warn-if-forked-from-the-event-loop.patch
+
+ ./configure --prefix=/usr --libdir=/usr/lib32
+ make
+ make DESTDIR=$PKG install
+
+ rm -r $PKG/usr/{bin,include}
+}
diff --git a/libevent-32/warn-if-forked-from-the-event-loop.patch b/libevent-32/warn-if-forked-from-the-event-loop.patch
new file mode 100644
index 00000000..b6fd3ece
--- /dev/null
+++ b/libevent-32/warn-if-forked-from-the-event-loop.patch
@@ -0,0 +1,32 @@
+From b75922ae5b6d7bea6ef2f53618dca6c5760c71b4 Mon Sep 17 00:00:00 2001
+From: Azat Khuzhin <azat@libevent.org>
+Date: Mon, 1 Jul 2019 23:54:02 +0300
+Subject: [PATCH] Warn if forked from the event loop during event_reinit()
+
+Calling fork() from the event loop is not a great idea, since at least
+it shares some internal pipes (for handling signals) before
+event_reinit() call
+
+Closes: #833
+(cherry picked from commit 497ef904d544ac51de43934549dbeccce8e6e8f8)
+---
+ event.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/event.c b/event.c
+index bfd94ebd0..b2ad34102 100644
+--- a/event.c
++++ b/event.c
+@@ -987,6 +987,12 @@ event_reinit(struct event_base *base)
+
+ EVBASE_ACQUIRE_LOCK(base, th_base_lock);
+
++ if (base->running_loop) {
++ event_warnx("%s: forked from the event_loop.", __func__);
++ res = -1;
++ goto done;
++ }
++
+ evsel = base->evsel;
+
+ /* check if this event mechanism requires reinit on the backend */

Generated by cgit