commit 2484dd808e3148ff0d3cddad8cb8eb87619c07e9
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Tue Sep 12 09:38:46 2017 -0400
fix aarch64 compile in rawhide
chromium-61.0.3163.79-aarch64-glibc-2.26.90.patch | 12 ++++++++++++
chromium.spec | 5 +++++
2 files changed, 17 insertions(+)
---
diff --git a/chromium-61.0.3163.79-aarch64-glibc-2.26.90.patch
b/chromium-61.0.3163.79-aarch64-glibc-2.26.90.patch
new file mode 100644
index 0000000..a419f52
--- /dev/null
+++ b/chromium-61.0.3163.79-aarch64-glibc-2.26.90.patch
@@ -0,0 +1,12 @@
+diff -up
chromium-61.0.3163.79/breakpad/src/client/linux/handler/exception_handler.cc.aarchglibc
chromium-61.0.3163.79/breakpad/src/client/linux/handler/exception_handler.cc
+---
chromium-61.0.3163.79/breakpad/src/client/linux/handler/exception_handler.cc.aarchglibc 2017-09-12
09:34:39.417504561 -0400
++++
chromium-61.0.3163.79/breakpad/src/client/linux/handler/exception_handler.cc 2017-09-12
09:35:01.512009768 -0400
+@@ -461,7 +461,7 @@ bool ExceptionHandler::HandleSignal(int
+ #if defined(__aarch64__)
+ struct ucontext* uc_ptr = (struct ucontext*)uc;
+ struct fpsimd_context* fp_ptr =
+- (struct fpsimd_context*)&uc_ptr->uc_mcontext.__reserved;
++ (struct fpsimd_context*)&uc_ptr->uc_mcontext.__glibc_reserved1;
+ if (fp_ptr->head.magic == FPSIMD_MAGIC) {
+ memcpy(&g_crash_context_.float_state, fp_ptr,
+ sizeof(g_crash_context_.float_state));
diff --git a/chromium.spec b/chromium.spec
index 08a5bd2..2ee2e3d 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -214,6 +214,8 @@ Patch55: chromium-61.0.3163.79-gtk2fix.patch
# Fix atk compile
#
https://chromium-review.googlesource.com/c/chromium/src/+/580927
Patch56: chromium-61.0.3163.79-fix-atk-compile.patch
+# Only needed when glibc 2.26.90 or later is used
+Patch57: chromium-61.0.3163.79-aarch64-glibc-2.26.90.patch
### Chromium Tests Patches ###
Patch100: chromium-46.0.2490.86-use_system_opus.patch
@@ -663,6 +665,9 @@ udev.
%patch54 -p1 -b .gcc5fix
%patch55 -p1 -b .gtk2fix
%patch56 -p1 -b .atkfix
+%if 0%{?fedora} >= 28
+%patch57 -p1 -b .aarch64glibc
+%endif
### Chromium Tests Patches ###
%patch100 -p1 -b .use_system_opus