diff --git a/0001-libev-add-sw.patch b/0001-libev-add-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..f2c2981ad31627513d9d1450d3c51be7a2883a26 --- /dev/null +++ b/0001-libev-add-sw.patch @@ -0,0 +1,34 @@ +From 53c8e2ea75cbf6d79f286f599053753e91140eff Mon Sep 17 00:00:00 2001 +From: khy +Date: Fri, 12 May 2023 17:05:33 +0800 +Subject: [PATCH] add sw + +Signed-off-by: khy +--- + ev.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ev.c b/ev.c +index c85792c..ea0e6c2 100644 +--- a/ev.c ++++ b/ev.c +@@ -693,6 +693,8 @@ struct signalfd_siginfo + #define ECB_MEMORY_FENCE __asm__ __volatile__ (".set mips2; sync; .set mips0" : : : "memory") + #elif defined __alpha__ + #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mb" : : : "memory") ++ #elif defined __sw_64__ ++ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("memb" : : : "memory") + #elif defined __hppa__ + #define ECB_MEMORY_FENCE __asm__ __volatile__ ("" : : : "memory") + #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("") +@@ -1302,6 +1304,7 @@ ecb_binary32_to_binary16 (uint32_t x) + || defined __s390__ || defined __s390x__ \ + || defined __mips__ \ + || defined __alpha__ \ ++ || defined __sw_64__ \ + || defined __hppa__ \ + || defined __ia64__ \ + || defined __m68k__ \ +-- +2.31.1 + diff --git a/libev.spec b/libev.spec index 3e8b0a1faf931e2061f44243cbddce77ba19f867..1d34accd662d7189086a1827a6042eab04b7ba48 100644 --- a/libev.spec +++ b/libev.spec @@ -1,14 +1,17 @@ +%define anolis_release .0.1 %global source_dir %{_datadir}/%{name}-source %global inst_srcdir %{buildroot}/%{source_dir} Name: libev Summary: High-performance event loop/event model with lots of features Version: 4.24 -Release: 6%{?dist} +Release: 6%{anolis_release}%{?dist} License: BSD or GPLv2+ URL: http://software.schmorp.de/pkg/libev.html Source0: http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz +Patch1: 0001-libev-add-sw.patch + BuildRequires: autoconf BuildRequires: automake BuildRequires: coreutils @@ -54,7 +57,7 @@ Provides: bundled(libecb) = 1.05 This package contains the source code for libev. %prep -%autosetup -p0 +%autosetup -p1 autoreconf -vfi %build @@ -93,6 +96,9 @@ install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir} %{source_dir} %changelog +* Fri May 12 2023 wxiat 4.24-6.0.1 +- add sw patch + * Wed Feb 07 2018 Fedora Release Engineering - 4.24-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild