diff --git a/backport-Makefile-missing-test-dir.patch b/backport-Makefile-missing-test-dir.patch new file mode 100644 index 0000000000000000000000000000000000000000..15df9c097444569d25e7e6d45d554ade1d209168 --- /dev/null +++ b/backport-Makefile-missing-test-dir.patch @@ -0,0 +1,35 @@ +Fix missing test directory creation. + +GCC used in OE-core has "dependency tracking" disabled and +libevent has problem with this. +Due to removed makefile.am/in files in test/sample/include +directories, output directories are not created in +configuration step. Compilation step will fails, when +trying to write to non-existing directory. + +Reference:http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch?h=master +Conflict:NA + +Upstream-Status: Inappropriate [Other] +Workaround specific to our build system. + +Signed-off-by: Andrej Valek +Signed-off-by: Pascal Bach +--- + test/include.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/test/include.am b/test/include.am +index 0437524..48c7307 100644 +--- a/test/include.am ++++ b/test/include.am +@@ -162,6 +162,7 @@ test_bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) libevent_core.la + test/regress.gen.c test/regress.gen.h: test/rpcgen-attempted + + test/rpcgen-attempted: test/regress.rpc event_rpcgen.py test/rpcgen_wrapper.sh ++ @$(MKDIR_P) test + $(AM_V_GEN)date -u > $@ + $(AM_V_at)if $(srcdir)/test/rpcgen_wrapper.sh $(srcdir)/test; then \ + true; \ +-- +2.33.0 diff --git a/libevent.spec b/libevent.spec index ce4775d51216e2732da42b38009cce7f7108afc3..baab528275f182df30c2507eed67ed8c9d974234 100644 --- a/libevent.spec +++ b/libevent.spec @@ -1,6 +1,6 @@ Name: libevent Version: 2.1.12 -Release: 11 +Release: 12 Summary: An event notification library License: BSD @@ -24,6 +24,7 @@ Patch6002: backport-http-fix-fd-leak-on-fd-reset-by-using-bufferevent_re.patch Patch6003: backport-bufferevent-introduce-bufferevent_replacefd-like-set.patch Patch6004: backport-evutil-don-t-call-memset-before-memcpy.patch Patch6005: backport-0002-Avoid-calling-read-2-on-eventfd-on-each-event-loop-w.patch +Patch6006: backport-Makefile-missing-test-dir.patch %description Libevent additionally provides a sophisticated framework for buffered network IO, with support for sockets, @@ -42,6 +43,7 @@ with %{name}. %autosetup -n libevent-%{version}-stable -p1 %build +autoreconf %configure --disable-dependency-tracking --disable-static %make_build @@ -84,6 +86,9 @@ rm -f %{buildroot}%{_libdir}/*.la %changelog +* Tue Aug 13 2024 wangjiang - 2.1.12-12 +- Fix missing test directory creation + * Fri Jun 28 2024 baiguo - 2.1.12-11 - Avoid calling read(2) on eventfd on each event-loop wakeup