add two patches for missing headers to build with gcc 11

epel8
Tom spot Callaway 4 years ago
parent e78656ce58
commit ce30313f5e

@ -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 <cstddef>
#include <vector>
#include "net/base/net_export.h"

@ -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 <limits>
namespace federated_learning {

@ -185,7 +185,7 @@ Name: chromium%{chromium_channel}%{nsuffix}
Name: chromium%{chromium_channel} Name: chromium%{chromium_channel}
%endif %endif
Version: %{majorversion}.0.4280.88 Version: %{majorversion}.0.4280.88
Release: 1%{?dist} Release: 1%{?dist}.1
%if %{?freeworld} %if %{?freeworld}
%if %{?shared} %if %{?shared}
# chromium-libs-media-freeworld # 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 Patch70: chromium-84.0.4147.125-i686-fix_textrels.patch
# Work around binutils bug in aarch64 (F33+) # Work around binutils bug in aarch64 (F33+)
Patch71: chromium-84.0.4147.125-aarch64-clearkeycdm-binutils-workaround.patch 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 '<cstddef>'; did you forget to '#include <cstddef>'?
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 # Use lstdc++ on EPEL7 only
Patch101: chromium-75.0.3770.100-epel7-stdc++.patch Patch101: chromium-75.0.3770.100-epel7-stdc++.patch
@ -886,6 +891,8 @@ udev.
%patch69 -p1 -b .remoting-cstring %patch69 -p1 -b .remoting-cstring
%patch70 -p1 -b .i686-textrels %patch70 -p1 -b .i686-textrels
%patch71 -p1 -b .aarch64-clearkeycdm-binutils-workaround %patch71 -p1 -b .aarch64-clearkeycdm-binutils-workaround
%patch72 -p1 -b .missing-cstddef
%patch73 -p1 -b .missing-limits
# Fedora branded user agent # Fedora branded user agent
%if 0%{?fedora} %if 0%{?fedora}
@ -1923,6 +1930,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
%changelog %changelog
* Thu Dec 17 2020 Tom Callaway <spot@fedoraproject.org> - 87.0.4280.88-1.1
- add two patches for missing headers to build with gcc 11
* Thu Dec 3 2020 Tom Callaway <spot@fedoraproject.org> - 87.0.4280.88-1 * Thu Dec 3 2020 Tom Callaway <spot@fedoraproject.org> - 87.0.4280.88-1
- update to 87.0.4280.88 - update to 87.0.4280.88

Loading…
Cancel
Save