From 9b9d594329a4210d384d5a557d4d95d386089452 Mon Sep 17 00:00:00 2001 From: wzx Date: Sat, 12 Nov 2022 15:56:46 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx --- abseil-cpp-20210324.2-sw.patch | 12 ++++++++++++ abseil-cpp.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 abseil-cpp-20210324.2-sw.patch diff --git a/abseil-cpp-20210324.2-sw.patch b/abseil-cpp-20210324.2-sw.patch new file mode 100755 index 0000000..a58aefd --- /dev/null +++ b/abseil-cpp-20210324.2-sw.patch @@ -0,0 +1,12 @@ +diff -Naur abseil-cpp-20210324.2.org/absl/debugging/internal/examine_stack.cc abseil-cpp-20210324.2.sw/absl/debugging/internal/examine_stack.cc +--- abseil-cpp-20210324.2.org/absl/debugging/internal/examine_stack.cc 2022-03-10 01:13:54.492357080 +0000 ++++ abseil-cpp-20210324.2.sw/absl/debugging/internal/examine_stack.cc 2022-03-10 01:15:26.202357080 +0000 +@@ -46,7 +46,7 @@ + ucontext_t* context = reinterpret_cast(vuc); + #if defined(__aarch64__) + return reinterpret_cast(context->uc_mcontext.pc); +-#elif defined(__alpha__) ++#elif defined(__alpha__) || defined(__sw_64__) + return reinterpret_cast(context->uc_mcontext.sc_pc); + #elif defined(__arm__) + return reinterpret_cast(context->uc_mcontext.arm_pc); diff --git a/abseil-cpp.spec b/abseil-cpp.spec index d7f4184..a62953e 100644 --- a/abseil-cpp.spec +++ b/abseil-cpp.spec @@ -6,7 +6,7 @@ Name: abseil-cpp Version: 20220623.1 -Release: 1 +Release: 2 Summary: C++ Common Libraries License: ASL 2.0 @@ -14,6 +14,7 @@ URL: https://abseil.io Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz Patch0: backport-Do-not-leak-maes-msse4.1-into-pkgconfig.patch +Patch1: abseil-cpp-20210324.2-sw.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -63,6 +64,12 @@ Development headers for %{name} %{_libdir}/pkgconfig/*.pc %changelog +* Fri Nov 11 2022 wuzx - 20220623.1-2 +- Type:feature +- CVE:NA +- SUG:NA +- DESC:Add sw64 architecture + * Wed Nov 02 2022 xinghe - 20220623.1-1 - Type:enhancement - ID:NA -- Gitee