forked from ports/compat-32
libevent-32: initial import
This commit is contained in:
parent
12844e8980
commit
f51ebc1c48
0
libevent-32/.32bit
Normal file
0
libevent-32/.32bit
Normal file
33
libevent-32/.footprint
Normal file
33
libevent-32/.footprint
Normal file
@ -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
|
6
libevent-32/.signature
Normal file
6
libevent-32/.signature
Normal file
@ -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
|
23
libevent-32/Pkgfile
Normal file
23
libevent-32/Pkgfile
Normal file
@ -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}
|
||||
}
|
32
libevent-32/warn-if-forked-from-the-event-loop.patch
Normal file
32
libevent-32/warn-if-forked-from-the-event-loop.patch
Normal file
@ -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 */
|
Loading…
x
Reference in New Issue
Block a user