commit a15091b516efa5dfb937e63dcff7c541e8874e9e
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Tue Nov 6 13:29:47 2018 -0500
fix aarch64 build against latest linux kernel headers
Signed-off-by: Akarshan Biswas <akarshan.biswas(a)protonmail.com>
chromium-70.0.3538.77-aarch64-arch-want-new-stat.patch | 12 ++++++++++++
chromium-freeworld.spec | 3 +++
2 files changed, 15 insertions(+)
---
diff --git a/chromium-70.0.3538.77-aarch64-arch-want-new-stat.patch
b/chromium-70.0.3538.77-aarch64-arch-want-new-stat.patch
new file mode 100644
index 0000000..ccecfcb
--- /dev/null
+++ b/chromium-70.0.3538.77-aarch64-arch-want-new-stat.patch
@@ -0,0 +1,12 @@
+diff -up
chromium-70.0.3538.77/sandbox/linux/system_headers/arm64_linux_syscalls.h.aarch64-new-stat
chromium-70.0.3538.77/sandbox/linux/system_headers/arm64_linux_syscalls.h
+---
chromium-70.0.3538.77/sandbox/linux/system_headers/arm64_linux_syscalls.h.aarch64-new-stat 2018-11-06
13:27:05.118766581 -0500
++++ chromium-70.0.3538.77/sandbox/linux/system_headers/arm64_linux_syscalls.h 2018-11-06
13:27:34.575204504 -0500
+@@ -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)
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index f432195..d0d2b69 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -285,6 +285,8 @@ Patch116: chromium-gcc8-r591015.patch
Patch117: chromium-70.0.3538.67-disable-fontconfig-cache-magic.patch
# Fix build against harfbuzz2
Patch118: chromium-70.0.3538.77-harfbuzz2-fix.patch
+# Fix aarch64 build against latest linux kernel headers
+Patch119: chromium-70.0.3538.77-aarch64-arch-want-new-stat.patch
# Use chromium-latest.py to generate clean tarball from released build tarballs, found
here:
@@ -830,6 +832,7 @@ udev.
%if 0%{?fedora} >= 30
%patch118 -p1 -b .harfbuzz2
%endif
+%patch119 -p1 -b .aarch64-new-stat
# Change shebang in all relevant files in this directory and all subdirectories