From 6b11f13d37c55513beb8970a7582815292bde526 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Wed, 15 Jun 2022 11:30:29 -0400 Subject: [PATCH] Need to explicitly include a kernel header on EL7 to support MFD_CLOEXEC --- chromium-102.0.5005.115-el7-memfd-include.patch | 11 +++++++++++ chromium.spec | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 chromium-102.0.5005.115-el7-memfd-include.patch diff --git a/chromium-102.0.5005.115-el7-memfd-include.patch b/chromium-102.0.5005.115-el7-memfd-include.patch new file mode 100644 index 00000000..87249094 --- /dev/null +++ b/chromium-102.0.5005.115-el7-memfd-include.patch @@ -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 // for prctl ++#include // for MFD_CLOEXEC + #endif + + #if defined(V8_OS_FUCHSIA) diff --git a/chromium.spec b/chromium.spec index 90881e8d..c51d299a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -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