Need to explicitly include a kernel header on EL7 to support MFD_CLOEXEC

This commit is contained in:
Tom spot Callaway 2022-06-15 11:30:29 -04:00
parent 3ee798bef1
commit 6b11f13d37
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -up chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc.el7-memfd-include chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc
--- chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc.el7-memfd-include 2022-06-15 10:52:49.553817031 -0400
+++ chromium-102.0.5005.115/v8/src/base/platform/platform-posix.cc 2022-06-15 10:56:15.775173013 -0400
@@ -56,6 +56,7 @@
#if V8_OS_LINUX
#include <sys/prctl.h> // for prctl
+#include <linux/memfd.h> // for MFD_CLOEXEC
#endif
#if defined(V8_OS_FUCHSIA)

View File

@ -350,6 +350,9 @@ Patch103: chromium-99.0.4844.51-epel7-old-headers-workarounds.patch
# Use old cups (chromium's code workaround breaks on gcc)
# Revert: https://github.com/chromium/chromium/commit/c3213f8779ddc427e89d982514185ed5e4c94e91
Patch104: chromium-99.0.4844.51-epel7-old-cups.patch
# Need to explicitly include a kernel header on EL7 to support MFD_CLOEXEC
Patch105: chromium-102.0.5005.115-el7-memfd-include.patch
# Still not wrong, but it seems like only EL needs it
Patch106: chromium-77-clang.patch
# ARM failures on el8 related to int clashes
@ -1045,6 +1048,7 @@ udev.
# %%patch102 -p1 -b .el7-noexcept
%patch103 -p1 -b .epel7-header-workarounds
%patch104 -p1 -b .el7cups
%patch105 -p1 -b .el7-memfd-include
%patch108 -p1 -b .el7-old-libdrm
%patch109 -p1 -b .el7-erase-fix
%patch111 -p1 -b .el7-extra-operator-equalequal