From e36a0c82bf29c68608f883c1b24cc660c3515882 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Wed, 7 Mar 2018 11:13:05 -0500 Subject: [PATCH] 65.0.3325.146 --- .gitignore | 1 + chromium-65.0.3325.146-gcc-round-fix.patch | 12 ++++ chromium-65.0.3325.146-gcc5-r3.patch | 74 ++++++++++++++++++++++ chromium-65.0.3325.146-gcc7.patch | 11 ++++ chromium-65.0.3325.146-memcpy-fix.patch | 12 ++++ chromium-math.h-r0.patch | 29 +++++++++ chromium-stdint.patch | 21 ++++++ chromium.spec | 54 ++++++---------- clean_ffmpeg.sh | 2 - sources | 2 +- 10 files changed, 181 insertions(+), 37 deletions(-) create mode 100644 chromium-65.0.3325.146-gcc-round-fix.patch create mode 100644 chromium-65.0.3325.146-gcc5-r3.patch create mode 100644 chromium-65.0.3325.146-gcc7.patch create mode 100644 chromium-65.0.3325.146-memcpy-fix.patch create mode 100644 chromium-math.h-r0.patch create mode 100644 chromium-stdint.patch diff --git a/.gitignore b/.gitignore index c56a2af8..11c035f9 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ /chromium-64.0.3282.140-clean.tar.xz /chromium-64.0.3282.167-clean.tar.xz /chromium-64.0.3282.186-clean.tar.xz +/chromium-65.0.3325.146-clean.tar.xz diff --git a/chromium-65.0.3325.146-gcc-round-fix.patch b/chromium-65.0.3325.146-gcc-round-fix.patch new file mode 100644 index 00000000..a29779d5 --- /dev/null +++ b/chromium-65.0.3325.146-gcc-round-fix.patch @@ -0,0 +1,12 @@ +diff -up chromium-65.0.3325.146/third_party/webrtc/p2p/base/port.cc.gcc-round-fix chromium-65.0.3325.146/third_party/webrtc/p2p/base/port.cc +--- chromium-65.0.3325.146/third_party/webrtc/p2p/base/port.cc.gcc-round-fix 2018-03-07 10:57:11.284376048 -0500 ++++ chromium-65.0.3325.146/third_party/webrtc/p2p/base/port.cc 2018-03-07 10:58:16.590742636 -0500 +@@ -10,7 +10,7 @@ + + #include "p2p/base/port.h" + +-#include ++#include + + #include + #include diff --git a/chromium-65.0.3325.146-gcc5-r3.patch b/chromium-65.0.3325.146-gcc5-r3.patch new file mode 100644 index 00000000..ab74a353 --- /dev/null +++ b/chromium-65.0.3325.146-gcc5-r3.patch @@ -0,0 +1,74 @@ +diff -up chromium-65.0.3325.146/gpu/ipc/common/mailbox_struct_traits.h.gcc5-r3 chromium-65.0.3325.146/gpu/ipc/common/mailbox_struct_traits.h +--- chromium-65.0.3325.146/gpu/ipc/common/mailbox_struct_traits.h.gcc5-r3 2018-03-06 18:04:32.000000000 -0500 ++++ chromium-65.0.3325.146/gpu/ipc/common/mailbox_struct_traits.h 2018-03-07 10:42:07.198179638 -0500 +@@ -15,7 +15,7 @@ namespace mojo { + template <> + struct StructTraits { + static base::span name(const gpu::Mailbox& mailbox) { +- return mailbox.name; ++ return base::make_span(mailbox.name); + } + static bool Read(gpu::mojom::MailboxDataView data, gpu::Mailbox* out); + }; +diff -up chromium-65.0.3325.146/services/viz/public/cpp/compositing/filter_operation_struct_traits.h.gcc5-r3 chromium-65.0.3325.146/services/viz/public/cpp/compositing/filter_operation_struct_traits.h +--- chromium-65.0.3325.146/services/viz/public/cpp/compositing/filter_operation_struct_traits.h.gcc5-r3 2018-03-06 18:04:37.000000000 -0500 ++++ chromium-65.0.3325.146/services/viz/public/cpp/compositing/filter_operation_struct_traits.h 2018-03-07 10:42:07.198179638 -0500 +@@ -138,7 +138,7 @@ struct StructTraits matrix(const cc::FilterOperation& operation) { + if (operation.type() != cc::FilterOperation::COLOR_MATRIX) + return base::span(); +- return operation.matrix(); ++ return base::make_span(operation.matrix()); + } + + static base::span shape( +diff -up chromium-65.0.3325.146/services/viz/public/cpp/compositing/quads_struct_traits.h.gcc5-r3 chromium-65.0.3325.146/services/viz/public/cpp/compositing/quads_struct_traits.h +--- chromium-65.0.3325.146/services/viz/public/cpp/compositing/quads_struct_traits.h.gcc5-r3 2018-03-06 18:04:37.000000000 -0500 ++++ chromium-65.0.3325.146/services/viz/public/cpp/compositing/quads_struct_traits.h 2018-03-07 10:42:07.198179638 -0500 +@@ -308,7 +308,7 @@ struct StructTraits vertex_opacity(const viz::DrawQuad& input) { + const viz::TextureDrawQuad* quad = + viz::TextureDrawQuad::MaterialCast(&input); +- return quad->vertex_opacity; ++ return base::make_span(quad->vertex_opacity); + } + + static bool y_flipped(const viz::DrawQuad& input) { +diff -up chromium-65.0.3325.146/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h.gcc5-r3 chromium-65.0.3325.146/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h +--- chromium-65.0.3325.146/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h.gcc5-r3 2018-03-06 18:05:06.000000000 -0500 ++++ chromium-65.0.3325.146/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h 2018-03-07 10:48:53.996093882 -0500 +@@ -62,7 +62,7 @@ class WTF_EXPORT ArrayBufferContents { + allocation_length_(length), + data_(data), + data_length_(length), +- kind_(AllocationKind::kNormal), ++ kind_(WTF::ArrayBufferContents::AllocationKind::kNormal), + deleter_(deleter) {} + DataHandle(void* allocation_base, + size_t allocation_length, +@@ -93,11 +93,11 @@ class WTF_EXPORT ArrayBufferContents { + reinterpret_cast(allocation_base_) + + allocation_length_); + switch (kind_) { +- case AllocationKind::kNormal: ++ case WTF::ArrayBufferContents::AllocationKind::kNormal: + DCHECK(deleter_); + deleter_(data_); + return; +- case AllocationKind::kReservation: ++ case WTF::ArrayBufferContents::AllocationKind::kReservation: + ReleaseReservedMemory(allocation_base_, allocation_length_); + return; + } +diff -up chromium-65.0.3325.146/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc.gcc5-r3 chromium-65.0.3325.146/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc +--- chromium-65.0.3325.146/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc.gcc5-r3 2018-03-06 18:06:09.000000000 -0500 ++++ chromium-65.0.3325.146/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc 2018-03-07 10:42:07.199179616 -0500 +@@ -10,7 +10,7 @@ + + #include "modules/audio_processing/aec3/aec_state.h" + +-#include ++#include + + #include + #include diff --git a/chromium-65.0.3325.146-gcc7.patch b/chromium-65.0.3325.146-gcc7.patch new file mode 100644 index 00000000..4f2b46cf --- /dev/null +++ b/chromium-65.0.3325.146-gcc7.patch @@ -0,0 +1,11 @@ +diff -up chromium-65.0.3325.146/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h.gcc7 chromium-65.0.3325.146/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h +--- chromium-65.0.3325.146/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h.gcc7 2018-03-07 10:34:48.783900894 -0500 ++++ chromium-65.0.3325.146/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h 2018-03-07 10:35:44.885638503 -0500 +@@ -5,6 +5,7 @@ + #ifndef SharedGpuContext_h + #define SharedGpuContext_h + ++#include + #include + #include "base/callback.h" + #include "base/memory/weak_ptr.h" diff --git a/chromium-65.0.3325.146-memcpy-fix.patch b/chromium-65.0.3325.146-memcpy-fix.patch new file mode 100644 index 00000000..b2b2cd4e --- /dev/null +++ b/chromium-65.0.3325.146-memcpy-fix.patch @@ -0,0 +1,12 @@ +diff -up chromium-65.0.3325.146/cc/paint/raw_memory_transfer_cache_entry.cc.memcpyfix chromium-65.0.3325.146/cc/paint/raw_memory_transfer_cache_entry.cc +--- chromium-65.0.3325.146/cc/paint/raw_memory_transfer_cache_entry.cc.memcpyfix 2018-03-07 11:04:14.690379817 -0500 ++++ chromium-65.0.3325.146/cc/paint/raw_memory_transfer_cache_entry.cc 2018-03-07 11:06:04.339878069 -0500 +@@ -3,7 +3,7 @@ + // found in the LICENSE file. + + #include "cc/paint/raw_memory_transfer_cache_entry.h" +- ++#include + #include + + namespace cc { diff --git a/chromium-math.h-r0.patch b/chromium-math.h-r0.patch new file mode 100644 index 00000000..6c7c7470 --- /dev/null +++ b/chromium-math.h-r0.patch @@ -0,0 +1,29 @@ +From 9f63f94a11abc34d40ede8b8712fa15b5844a8c0 Mon Sep 17 00:00:00 2001 +From: Tom Anderson +Date: Sat, 27 Jan 2018 20:03:37 +0000 +Subject: [PATCH] Fix build with glibc 2.27 + +BUG=806340 +TBR=hamelphi@chromium.org + +Change-Id: Ib4e5091212d874d9ad88f3e9a1fdfee3ed7e0d5e +Reviewed-on: https://chromium-review.googlesource.com/890059 +Reviewed-by: Thomas Anderson +Reviewed-by: Philippe Hamel +Commit-Queue: Thomas Anderson +Cr-Commit-Position: refs/heads/master@{#532249} +--- + +diff --git a/components/assist_ranker/ranker_example_util.cc b/components/assist_ranker/ranker_example_util.cc +index 54d4dbd..ceedd8f 100644 +--- a/components/assist_ranker/ranker_example_util.cc ++++ b/components/assist_ranker/ranker_example_util.cc +@@ -2,6 +2,8 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include ++ + #include "components/assist_ranker/ranker_example_util.h" + #include "base/bit_cast.h" + #include "base/format_macros.h" diff --git a/chromium-stdint.patch b/chromium-stdint.patch new file mode 100644 index 00000000..87744395 --- /dev/null +++ b/chromium-stdint.patch @@ -0,0 +1,21 @@ +From 0235c2b657d936f3cdb09053776e5929fc84704b Mon Sep 17 00:00:00 2001 +From: Tomas Popela +Date: Wed, 31 Jan 2018 18:57:07 +0000 +Subject: [PATCH] Add missing stdint include + +diff --git a/chrome/browser/vr/sample_queue.cc b/chrome/browser/vr/sample_queue.cc +index c2ca777ce90c..53cb3aab1576 100644 +--- a/chrome/browser/vr/sample_queue.cc ++++ b/chrome/browser/vr/sample_queue.cc +@@ -2,6 +2,8 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include ++ + #include "chrome/browser/vr/sample_queue.h" + + namespace vr { +-- +2.16.2 + diff --git a/chromium.spec b/chromium.spec index 01bf873c..40a05ac4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -92,8 +92,8 @@ BuildRequires: libicu-devel >= 5.4 %global bundlelibpng 0 %endif -# Needs at least harfbuzz 1.5.0 now. -# 2017-06-12 +# Needs at least harfbuzz 1.7.3 now. +# 2018-03-07 %if 0%{?fedora} < 28 %global bundleharfbuzz 1 %else @@ -109,14 +109,14 @@ BuildRequires: libicu-devel >= 5.4 %global default_client_secret miEreAep8nuvTdvLums6qyLK %global chromoting_client_id 449907151817-8vnlfih032ni8c4jjps9int9t86k546t.apps.googleusercontent.com -%global majorversion 64 +%global majorversion 65 %if %{freeworld} Name: chromium%{chromium_channel}%{?freeworld:-freeworld} %else Name: chromium%{chromium_channel} %endif -Version: %{majorversion}.0.3282.186 +Version: %{majorversion}.0.3325.146 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser Url: http://www.chromium.org/Home @@ -168,9 +168,7 @@ Patch27: chromium-63.0.3289.84-setopaque.patch Patch31: chromium-56.0.2924.87-fpermissive.patch # Fix issue with compilation on gcc7 # Thanks to Ben Noordhuis -Patch33: chromium-64.0.3282.119-gcc7.patch -# Enable mp3 support -Patch34: chromium-64.0.3282.119-enable-mp3.patch +Patch33: chromium-65.0.3325.146-gcc7.patch # Revert https://chromium.googlesource.com/chromium/src/+/b794998819088f76b4cf44c8db6940240c563cf4%5E%21/#F0 # https://bugs.chromium.org/p/chromium/issues/detail?id=712737 # https://bugzilla.redhat.com/show_bug.cgi?id=1446851 @@ -195,28 +193,19 @@ Patch50: chromium-60.0.3112.113-libavutil-timer-include-path-fix.patch Patch53: chromium-61.0.3163.79-gcc-no-opt-safe-math.patch # Only needed when glibc 2.26.90 or later is used Patch57: chromium-63.0.3289.84-aarch64-glibc-2.26.90.patch -# More gcc fixes for epel -Patch58: chromium-62.0.3202.62-dde535-gcc-fix.patch -Patch59: chromium-62.0.3202.62-gcc-nc.patch -# Epel compiler really does not like assigning nullptr to a StructPtr -Patch60: chromium-62.0.3202.62-epel7-no-nullptr-assignment-on-StructPtr.patch -# Another gcc 4.8 goods.. -Patch61: chromium-62.0.3202.62-rvalue-fix.patch # From gentoo -Patch62: chromium-64.0.3282.119-gcc5-r3.patch +Patch62: chromium-65.0.3325.146-gcc5-r3.patch # Do not try to use libc++ in the remoting stack Patch63: chromium-63.0.3289.84-nolibc++.patch -# Fix freetype and harfbuzz-ng unbundle -Patch64: chromium-63.0.3289.84-fix-ft-hb-unbundle.patch # To use round with gcc, you need to #include -Patch65: chromium-64.0.3282.119-gcc-round-fix.patch -# Fix constexpr gcc issues -# https://chromium.googlesource.com/angle/angle/+/030017a4855c7b6e7f2ff8d9566c146f31eb301b -Patch66: chromium-64.0.3282.119-gcc-constexpr-fix.patch +Patch65: chromium-65.0.3325.146-gcc-round-fix.patch # Include proper headers to invoke memcpy() -Patch67: chromium-64.0.3282.119-memcpy-fix.patch +Patch67: chromium-65.0.3325.146-memcpy-fix.patch # Work around gcc8 bug in gn Patch68: chromium-64.0.3282.167-gcc8-fabi11.patch +# From Gentoo +Patch69: chromium-math.h-r0.patch +Patch70: chromium-stdint.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -631,11 +620,6 @@ udev. %patch27 -p1 -b .setopaque %patch31 -p1 -b .permissive %patch33 -p1 -b .gcc7 -%if %{freeworld} -# Do not apply mp3 change -%else -%patch34 -p1 -b .mp3 -%endif %patch36 -p1 -b .revert %patch37 -p1 -b .ffmpeg-stdatomic %patch39 -p1 -b .system-clang @@ -645,10 +629,6 @@ udev. %if 0%{?rhel} == 7 %patch46 -p1 -b .kmaxskip %patch47 -p1 -b .c99 -%patch58 -p1 -b .dde5e35 -%patch59 -p1 -b .gcc-nc -%patch60 -p1 -b .nonullptr -%patch61 -p1 -b .another-rvalue-fix %endif %patch50 -p1 -b .pathfix %patch53 -p1 -b .nogccoptmath @@ -657,11 +637,11 @@ udev. # %%endif %patch62 -p1 -b .gcc5-r3 %patch63 -p1 -b .nolibc++ -%patch64 -p1 -b .fixunbundle %patch65 -p1 -b .gcc-round-fix -%patch66 -p1 -b .gcc-const-expr %patch67 -p1 -b .memcpyfix %patch68 -p1 -b .fabi11 +%patch69 -p1 -b .gentoo-math +%patch70 -p1 -b .gentoo-stdint %if 0%{?asan} export CC="clang" @@ -778,7 +758,7 @@ CHROMIUM_CORE_GN_DEFINES+=' is_debug=false' CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"' %endif CHROMIUM_CORE_GN_DEFINES+=' google_api_key="%{api_key}" google_default_client_id="%{default_client_id}" google_default_client_secret="%{default_client_secret}"' -CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false use_gold=false fieldtrial_testing_like_official_build=true' +CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false use_gold=false fieldtrial_testing_like_official_build=true use_lld=false' %if %{freeworld} CHROMIUM_CORE_GN_DEFINES+=' ffmpeg_branding="ChromeOS" proprietary_codecs=true' %else @@ -896,6 +876,7 @@ build/linux/unbundle/remove_bundled_libraries.py \ 'third_party/leveldatabase' \ 'third_party/libXNVCtrl' \ 'third_party/libaddressinput' \ + 'third_party/libaom' \ 'third_party/libdrm' \ 'third_party/libjingle' \ 'third_party/libjpeg_turbo' \ @@ -952,6 +933,7 @@ build/linux/unbundle/remove_bundled_libraries.py \ %if 0%{?bundlere2} 'third_party/re2' \ %endif + 'third_party/s2cellid' \ 'third_party/sfntly' \ 'third_party/sinonjs' \ 'third_party/skia' \ @@ -982,6 +964,7 @@ build/linux/unbundle/remove_bundled_libraries.py \ 'third_party/zlib' \ 'third_party/zlib/google' \ 'url/third_party/mozilla' \ + 'v8/src/third_party/utf8-decoder' \ 'v8/src/third_party/valgrind' \ 'v8/third_party/inspector_protocol' \ --do-remove @@ -1521,6 +1504,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %changelog +* Wed Mar 7 2018 Tom Callaway 65.0.3325.146-1 +- update to 65.0.3325.146 + * Mon Mar 5 2018 Tom Callaway 64.0.3282.186-1 - update to 64.0.3282.186 diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 48495a54..f5c85a53 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -158,8 +158,6 @@ header_files=" libavcodec/x86/inline_asm.h \ libavutil/x86/intreadwrite.h \ libavutil/x86/intmath.h libavutil/x86/timer.h \ - libavutil/atomic.h \ - libavutil/atomic_gcc.h \ libavutil/attributes.h \ libavutil/audio_fifo.h \ libavutil/avassert.h \ diff --git a/sources b/sources index 0f81720e..8b00246c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (depot_tools.git-master.tar.gz) = d3d6a1873b2b0296a8cd99e0d8d2e629a17b1808934b4972556168f8b4ccea60577ebaeab4445baf15afb1b04080808db59a832a5b61d247bd48da14fa6acf03 -SHA512 (chromium-64.0.3282.186-clean.tar.xz) = 58cfc9c5727e43cc0063c1504e2d4b90ba23ee9cc6a134ed4198da543f333865625fe835f75a1deb2b44867f1a8c0a0a545570dc1de06f486f96e0884e9b353c +SHA512 (chromium-65.0.3325.146-clean.tar.xz) = 18a45e41eb706fa87a707c89ee419b6a408132d763318c06cffca9e453f09a0e52a76089002ec1c25224d77a54eecc17013a6087dd4acdbd15df073fd7eff937