fix aarch64 build against latest linux kernel headers

This commit is contained in:
Tom Callaway 2018-11-06 13:29:47 -05:00
parent 3558506da1
commit 35ec6a6d16
2 changed files with 15 additions and 0 deletions

View File

@ -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)

View File

@ -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