commit e484d9beaee732d76905f8da1955b357b48449e1
Author: Rex Dieter <rdieter(a)gmail.com>
Date: Sun Dec 9 07:59:09 2018 -0600
Fix/workaround FTBFS on aarch64 with newer glibc
patch borrowed from fedora's chromium packaging
qt5-qtwebengine-freeworld.spec | 3 +++
qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch | 12 ++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/qt5-qtwebengine-freeworld.spec b/qt5-qtwebengine-freeworld.spec
index db450b7..ce1ee66 100644
--- a/qt5-qtwebengine-freeworld.spec
+++ b/qt5-qtwebengine-freeworld.spec
@@ -105,6 +105,8 @@ Patch22: qtwebengine-everywhere-src-5.10.0-icu59.patch
# alignment. This means int64_t is now 4 on i686 (instead of 8). Use __alignof__
# to get the value we expect (and chromium checks for). Patch by spot.
Patch23: qtwebengine-everywhere-src-5.10.1-gcc8-alignof.patch
+# Fix/workaround FTBFS on aarch64 with newer glibc
+Patch24: qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch
## Upstream patches:
%if 0%{?bootstrap}
@@ -344,6 +346,7 @@ This version is compiled with support for patent-encumbered codecs
enabled.
%patch21 -p1 -b .gn-bootstrap-verbose
#patch22 -p1 -b .icu59
%patch23 -p1 -b .gcc8
+%patch24 -p1 -b .aarch64-new-stat
# fix // in #include in content/renderer/gpu to avoid debugedit failure
sed -i -e 's!gpu//!gpu/!g' \
src/3rdparty/chromium/content/renderer/gpu/compositor_forwarding_message_filter.cc
diff --git a/qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch
b/qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch
new file mode 100644
index 0000000..2b17be4
--- /dev/null
+++ b/qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch
@@ -0,0 +1,12 @@
+diff -up
qtwebengine-everywhere-src-5.11.3/src/3rdparty/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h.aarch64-new-stat
qtwebengine-everywhere-src-5.11.3/src/3rdparty/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h
+---
qtwebengine-everywhere-src-5.11.3/src/3rdparty/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h.aarch64-new-stat 2018-11-19
12:55:45.000000000 -0600
++++
qtwebengine-everywhere-src-5.11.3/src/3rdparty/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h 2018-12-08
21:16:39.931896244 -0600
+@@ -5,6 +5,8 @@
+ #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM64_LINUX_SYSCALLS_H_
+ #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM64_LINUX_SYSCALLS_H_
+
++#define __ARCH_WANT_NEW_STAT
++
+ #include <asm-generic/unistd.h>
+
+ #if !defined(__NR_io_setup)