[packages/libafdt] Rel 10
arekm
arekm at pld-linux.org
Tue Mar 10 01:47:00 CET 2026
commit f0ff22156714096c07e4aaf217d8155e9508bb60
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 23:54:06 2026 +0100
Rel 10
libafdt.spec | 5 ++++-
tests-libevent2-bufferevent.patch | 21 +++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/libafdt.spec b/libafdt.spec
index 9e43b8c..c0f197f 100644
--- a/libafdt.spec
+++ b/libafdt.spec
@@ -7,7 +7,7 @@
Summary: LIBrary for Asynchronous File Descriptor Transfer
Name: libafdt
Version: 0.1.0
-Release: 9
+Release: 10
License: BSD
Group: Libraries
Source0: https://downloads.sourceforge.net/libafdt/%{name}-%{version}.tar.gz
@@ -16,6 +16,8 @@ URL: https://facebook.github.io/libafdt/
Patch0: %{name}-link.patch
# Python 3 test harness compatibility
Patch1: tests-python3-compat.patch
+# libevent2-compatible bufferevent setup in test helper binaries
+Patch2: tests-libevent2-bufferevent.patch
BuildRequires: autoconf
BuildRequires: automake
%{?with_apidocs:BuildRequires: doxygen}
@@ -72,6 +74,7 @@ Dokumentacja API biblioteki libafdt.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
%{__libtoolize}
diff --git a/tests-libevent2-bufferevent.patch b/tests-libevent2-bufferevent.patch
new file mode 100644
index 0000000..fbd57ed
--- /dev/null
+++ b/tests-libevent2-bufferevent.patch
@@ -0,0 +1,21 @@
+--- libafdt-0.1.0/test/catter.c.orig 2012-10-11 21:35:08.000000000 +0200
++++ libafdt-0.1.0/test/catter.c 2026-03-09 13:20:00.000000000 +0100
+@@ -108,15 +108,15 @@
+ abort();
+ }
+
+- ctx->wbufev = bufferevent_new(received_fd, NULL, bufferevent_wcb, bufferevent_error, userdata);
++ ctx->wbufev = bufferevent_socket_new(ctx->eb, received_fd, 0);
+ assert(ctx->wbufev != NULL);
+- bufferevent_base_set(ctx->eb, ctx->wbufev);
++ bufferevent_setcb(ctx->wbufev, NULL, bufferevent_wcb, bufferevent_error, userdata);
+ bufferevent_enable(ctx->wbufev, EV_WRITE);
+
+- ctx->rbufev = bufferevent_new(STDIN_FILENO, bufferevent_rcb, NULL, bufferevent_error, userdata);
++ ctx->rbufev = bufferevent_socket_new(ctx->eb, STDIN_FILENO, 0);
+ assert(ctx->rbufev != NULL);
+- bufferevent_base_set(ctx->eb, ctx->rbufev);
++ bufferevent_setcb(ctx->rbufev, bufferevent_rcb, NULL, bufferevent_error, userdata);
+ bufferevent_enable(ctx->rbufev, EV_READ);
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libafdt.git/commitdiff/f0ff22156714096c07e4aaf217d8155e9508bb60
More information about the pld-cvs-commit
mailing list