From dec3e47d16b48adb399566b19a8fb1ede3a54585 Mon Sep 17 00:00:00 2001 From: dongyuzhen Date: Thu, 27 Oct 2022 16:53:40 +0800 Subject: [PATCH] fix the installation conflict between x86 and i686 in event-config.h (cherry picked from commit 04d578f67afbbd9524af4ffd621a2f34753e0029) --- libevent.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libevent.spec b/libevent.spec index 1ba0451..774c38e 100644 --- a/libevent.spec +++ b/libevent.spec @@ -1,6 +1,6 @@ Name: libevent Version: 2.1.12 -Release: 4 +Release: 5 Summary: An event notification library License: BSD @@ -36,6 +36,21 @@ with %{name}. %make_install rm -f %{buildroot}%{_libdir}/*.la +# Fix multilib install of devel (bug #477685) +mv %{buildroot}%{_includedir}/event2/event-config.h \ + %{buildroot}%{_includedir}/event2/event-config-%{__isa_bits}.h +cat > %{buildroot}%{_includedir}/event2/event-config.h << EOF +#include + +#if __WORDSIZE == 32 +#include +#elif __WORDSIZE == 64 +#include +#else +#error "Unknown word size" +#endif +EOF + %check %make_build check @@ -68,6 +83,12 @@ rm -f %{buildroot}%{_libdir}/*.la %changelog +* Thu Oct 27 2022 dongyuzhen - 2.1.12-5 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix the installation conflict between x86 and i686 in event-config.h + * Wed Apr 21 2021 yangzhuangzhuang - 2.1.12-4 - Type:enhancement - ID:NA -- Gitee