!9 添加sw架构

From: @wuzx065891 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2022-11-17 13:22:32 +00:00 committed by Gitee
commit 7756939526
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 20 additions and 1 deletions

12
abseil-cpp-20210324.2-sw.patch Executable file
View File

@ -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<ucontext_t*>(vuc);
#if defined(__aarch64__)
return reinterpret_cast<void*>(context->uc_mcontext.pc);
-#elif defined(__alpha__)
+#elif defined(__alpha__) || defined(__sw_64__)
return reinterpret_cast<void*>(context->uc_mcontext.sc_pc);
#elif defined(__arm__)
return reinterpret_cast<void*>(context->uc_mcontext.arm_pc);

View File

@ -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<wuzx1226@qq.com> - 20220623.1-2
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Wed Nov 02 2022 xinghe <xinghe2@h-partners.com> - 20220623.1-1
- Type:enhancement
- ID:NA