diff --git a/chromium-85.0.4183.83-el7-old-libdrm.patch b/chromium-85.0.4183.83-el7-old-libdrm.patch new file mode 100644 index 0000000..d7d7f6e --- /dev/null +++ b/chromium-85.0.4183.83-el7-old-libdrm.patch @@ -0,0 +1,15 @@ +diff -up chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc +--- chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm 2020-08-31 09:38:46.043993882 -0400 ++++ chromium-85.0.4183.83/ui/gfx/linux/drm_util_linux.cc 2020-08-31 09:39:21.599906318 -0400 +@@ -6,6 +6,11 @@ + + #include + ++// the libdrm in EL-7 is too old to have this define ++#ifndef DRM_FORMAT_P010 ++#define DRM_FORMAT_P010 DRM_FORMAT_INVALID ++#endif ++ + #include "base/notreached.h" + + namespace ui { diff --git a/chromium.spec b/chromium.spec index 1c6c843..28085a9 100644 --- a/chromium.spec +++ b/chromium.spec @@ -341,6 +341,10 @@ Patch103: chromium-99.0.4844.51-epel7-old-headers-workarounds.patch # Revert: https://github.com/chromium/chromium/commit/c3213f8779ddc427e89d982514185ed5e4c94e91 Patch104: chromium-99.0.4844.51-epel7-old-cups.patch +# libdrm on EL7 is rather old and chromium assumes newer +# This gets us by for now +Patch105: chromium-85.0.4183.83-el7-old-libdrm.patch + # error: no matching function for call to 'std::basic_string::erase(std::basic_string::const_iterator, __gnu_cxx::__normal_iterator >&)' # 33 | property_name.erase(property_name.cbegin(), cur); # Not sure how this EVER worked anywhere, but it only seems to fail on EPEL-7. @@ -1011,6 +1015,7 @@ udev. %patch101 -p1 -b .wayland-strndup-error %patch103 -p1 -b .epel7-header-workarounds %patch104 -p1 -b .el7cups +%patch105 -p1 -b .el7-old-libdrm %patch106 -p1 -b .el7-erase-fix %patch107 -p1 -b .el7-extra-operator-equalequal %endif