[packages/abseil-cpp] - rel 3, disable inline asm tests on x32
baggins
baggins at pld-linux.org
Tue Sep 2 02:11:13 CEST 2025
commit 9b5d192fcce83cd557004f5c1e7381d7b158c77c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Sep 2 04:10:54 2025 +0200
- rel 3, disable inline asm tests on x32
abseil-cpp.spec | 4 +++-
x32.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/abseil-cpp.spec b/abseil-cpp.spec
index 1ed14a8..4e8ec58 100644
--- a/abseil-cpp.spec
+++ b/abseil-cpp.spec
@@ -8,12 +8,13 @@ Summary: Abseil - C++ common libraries
Summary(pl.UTF-8): Abseil - wspólne biblioteki C++
Name: abseil-cpp
Version: 20250814.0
-Release: 2
+Release: 3
License: Apache v2.0
Group: Libraries
#Source0Download: https://github.com/abseil/abseil-cpp/releases
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 016feacd6a6b3b9a47ab844e61f4f7bd
+Patch0: x32.patch
URL: https://abseil.io/
BuildRequires: cmake >= 3.10
BuildRequires: gmock-devel
@@ -71,6 +72,7 @@ Statyczne biblioteki Abseil.
%prep
%setup -q
+%patch -P0 -p1
%build
%if %{with static_libs}
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..cc62b2a
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,29 @@
+--- abseil-cpp-20250814.0/absl/debugging/symbolize_test.cc.orig 2025-08-14 21:54:55.000000000 +0200
++++ abseil-cpp-20250814.0/absl/debugging/symbolize_test.cc 2025-09-02 04:09:57.539996765 +0200
+@@ -463,6 +463,7 @@
+ // !ABSL_INTERNAL_HAVE_EMSCRIPTEN_SYMBOLIZE
+
+ // x86 specific tests. Uses some inline assembler.
++#if defined(__i386__) || (defined(__x86_64__) && !defined(__ILP32__))
+ extern "C" {
+ inline void *ABSL_ATTRIBUTE_ALWAYS_INLINE inline_func() {
+ void *pc = nullptr;
+@@ -505,6 +506,7 @@
+ #endif
+ }
+ }
++#endif
+
+ #if defined(__arm__) && ABSL_HAVE_ATTRIBUTE(target) && \
+ ((__ARM_ARCH >= 7) || !defined(__ARM_PCS_VFP))
+@@ -621,8 +623,10 @@
+ #if defined(ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE) || \
+ defined(ABSL_INTERNAL_HAVE_EMSCRIPTEN_SYMBOLIZE) || \
+ defined(ABSL_INTERNAL_HAVE_DARWIN_SYMBOLIZE)
++#if defined(__i386__) || (defined(__x86_64__) && !defined(__ILP32__))
+ TestWithPCInsideInlineFunction();
+ TestWithPCInsideNonInlineFunction();
++#endif
+ TestWithReturnAddress();
+ #if defined(__arm__) && ABSL_HAVE_ATTRIBUTE(target) && \
+ ((__ARM_ARCH >= 7) || !defined(__ARM_PCS_VFP))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/abseil-cpp.git/commitdiff/9b5d192fcce83cd557004f5c1e7381d7b158c77c
More information about the pld-cvs-commit
mailing list