From 0a9f0eea519aeedcc8e1fd27820228576c5777f2 Mon Sep 17 00:00:00 2001 From: wxiat Date: Tue, 16 May 2023 09:01:20 +0800 Subject: [PATCH] Add sw64 Signed-off-by: wxiat --- 0001-libev-add-sw.patch | 34 ++++++++++++++++++++++++++++++++++ libev.spec | 10 ++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 0001-libev-add-sw.patch diff --git a/0001-libev-add-sw.patch b/0001-libev-add-sw.patch new file mode 100644 index 0000000..f2c2981 --- /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 3e8b0a1..1d34acc 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 -- Gitee