From ce30313f5e4af121140c037bf026453355534f24 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Thu, 17 Dec 2020 10:58:52 -0500 Subject: [PATCH] add two patches for missing headers to build with gcc 11 --- ...4280.88-dns_server_iterator-missing-cstddef.patch | 11 +++++++++++ ...-87.0.4280.88-floc_constants-missing-limits.patch | 11 +++++++++++ chromium.spec | 12 +++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 chromium-87.0.4280.88-dns_server_iterator-missing-cstddef.patch create mode 100644 chromium-87.0.4280.88-floc_constants-missing-limits.patch diff --git a/chromium-87.0.4280.88-dns_server_iterator-missing-cstddef.patch b/chromium-87.0.4280.88-dns_server_iterator-missing-cstddef.patch new file mode 100644 index 00000000..78cf21b1 --- /dev/null +++ b/chromium-87.0.4280.88-dns_server_iterator-missing-cstddef.patch @@ -0,0 +1,11 @@ +diff -up chromium-87.0.4280.88/net/dns/dns_server_iterator.h.missing-cstddef chromium-87.0.4280.88/net/dns/dns_server_iterator.h +--- chromium-87.0.4280.88/net/dns/dns_server_iterator.h.missing-cstddef 2020-12-15 15:35:38.935281593 -0500 ++++ chromium-87.0.4280.88/net/dns/dns_server_iterator.h 2020-12-15 15:35:59.408368520 -0500 +@@ -5,6 +5,7 @@ + #ifndef NET_DNS_DNS_SERVER_ITERATOR_H_ + #define NET_DNS_DNS_SERVER_ITERATOR_H_ + ++#include + #include + + #include "net/base/net_export.h" diff --git a/chromium-87.0.4280.88-floc_constants-missing-limits.patch b/chromium-87.0.4280.88-floc_constants-missing-limits.patch new file mode 100644 index 00000000..e3a56bdd --- /dev/null +++ b/chromium-87.0.4280.88-floc_constants-missing-limits.patch @@ -0,0 +1,11 @@ +diff -up chromium-87.0.4280.88/components/federated_learning/floc_constants.cc.missing-limits chromium-87.0.4280.88/components/federated_learning/floc_constants.cc +--- chromium-87.0.4280.88/components/federated_learning/floc_constants.cc.missing-limits 2020-12-16 13:51:38.675421401 -0500 ++++ chromium-87.0.4280.88/components/federated_learning/floc_constants.cc 2020-12-16 13:51:50.625467423 -0500 +@@ -3,6 +3,7 @@ + // found in the LICENSE file. + + #include "components/federated_learning/floc_constants.h" ++#include + + namespace federated_learning { + diff --git a/chromium.spec b/chromium.spec index f35fb77a..244a5703 100644 --- a/chromium.spec +++ b/chromium.spec @@ -185,7 +185,7 @@ Name: chromium%{chromium_channel}%{nsuffix} Name: chromium%{chromium_channel} %endif Version: %{majorversion}.0.4280.88 -Release: 1%{?dist} +Release: 1%{?dist}.1 %if %{?freeworld} %if %{?shared} # chromium-libs-media-freeworld @@ -268,6 +268,11 @@ Patch69: chromium-84.0.4147.125-remoting-cstring.patch Patch70: chromium-84.0.4147.125-i686-fix_textrels.patch # Work around binutils bug in aarch64 (F33+) Patch71: chromium-84.0.4147.125-aarch64-clearkeycdm-binutils-workaround.patch +# error: 'size_t' does not name a type +# note: 'size_t' is defined in header ''; did you forget to '#include '? +Patch72: chromium-87.0.4280.88-dns_server_iterator-missing-cstddef.patch +# ../../components/federated_learning/floc_constants.cc:13:28: error: 'numeric_limits' is not a member of 'std' +Patch73: chromium-87.0.4280.88-floc_constants-missing-limits.patch # Use lstdc++ on EPEL7 only Patch101: chromium-75.0.3770.100-epel7-stdc++.patch @@ -886,6 +891,8 @@ udev. %patch69 -p1 -b .remoting-cstring %patch70 -p1 -b .i686-textrels %patch71 -p1 -b .aarch64-clearkeycdm-binutils-workaround +%patch72 -p1 -b .missing-cstddef +%patch73 -p1 -b .missing-limits # Fedora branded user agent %if 0%{?fedora} @@ -1923,6 +1930,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %changelog +* Thu Dec 17 2020 Tom Callaway - 87.0.4280.88-1.1 +- add two patches for missing headers to build with gcc 11 + * Thu Dec 3 2020 Tom Callaway - 87.0.4280.88-1 - update to 87.0.4280.88