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 00000000..ccecfcb0 --- /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 + + #if !defined(__NR_io_setup) diff --git a/chromium.spec b/chromium.spec index 855ecf0d..59df03ed 100644 --- a/chromium.spec +++ b/chromium.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