Changes of Revision 24

chromium-ffmpeg-extra.changes Changed
x
 
1
@@ -1,4 +1,177 @@
2
 -------------------------------------------------------------------
3
+Sun Jul 16 07:54:55 UTC 2023 - Carsten Ziepke <kieltux@gmail.com>
4
+
5
+- Rebase chromium 114.0.5735.198 for use as chromium-ffmpeg-extra
6
+
7
+-------------------------------------------------------------------
8
+Tue Jun 27 07:39:29 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
9
+
10
+- Chromium 114.0.5735.198 (boo#1212755):
11
+  * CVE-2023-3420: Type Confusion in V8
12
+  * CVE-2023-3421: Use after free in Media
13
+  * CVE-2023-3422: Use after free in Guest View
14
+
15
+-------------------------------------------------------------------
16
+Sun Jun 25 09:54:37 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
17
+
18
+- Install Qt5 library & prepare for Qt6 in 115
19
+
20
+-------------------------------------------------------------------
21
+Wed Jun 14 05:23:16 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
22
+
23
+- Chromium 114.0.5735.133 (boo#1212302):
24
+  * CVE-2023-3214: Use after free in Autofill payments
25
+  * CVE-2023-3215: Use after free in WebRTC
26
+  * CVE-2023-3216: Type Confusion in V8
27
+  * CVE-2023-3217: Use after free in WebXR
28
+  * Various fixes from internal audits, fuzzing and other initiatives
29
+
30
+-------------------------------------------------------------------
31
+Wed Jun  7 18:13:06 UTC 2023 - Andreas Stieger <Andreas.Stieger@gmx.de>
32
+
33
+- Fix Leap 15.4 build - chromium-114-revert-av1enc-lp154.patch
34
+
35
+-------------------------------------------------------------------
36
+Tue Jun  6 05:34:13 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
37
+
38
+- Chromium 114.0.5735.106 (boo#1212044):
39
+  * CVE-2023-3079: Type Confusion in V8
40
+
41
+-------------------------------------------------------------------
42
+Sun Jun  4 18:52:01 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
43
+
44
+- Chromium 114.0.5735.90 (boo#1211843):
45
+  * CSS text-wrap: balance is available
46
+  * Cookies partitioned by top level site (CHIPS)
47
+  * New Popover API
48
+- Security fixes:
49
+  * CVE-2023-2929: Out of bounds write in Swiftshader
50
+  * CVE-2023-2930: Use after free in Extensions
51
+  * CVE-2023-2931: Use after free in PDF
52
+  * CVE-2023-2932: Use after free in PDF
53
+  * CVE-2023-2933: Use after free in PDF
54
+  * CVE-2023-2934: Out of bounds memory access in Mojo
55
+  * CVE-2023-2935: Type Confusion in V8
56
+  * CVE-2023-2936: Type Confusion in V8
57
+  * CVE-2023-2937: Inappropriate implementation in Picture In Picture
58
+  * CVE-2023-2938: Inappropriate implementation in Picture In Picture
59
+  * CVE-2023-2939: Insufficient data validation in Installer
60
+  * CVE-2023-2940: Inappropriate implementation in Downloads
61
+  * CVE-2023-2941: Inappropriate implementation in Extensions API
62
+- Drop patches:
63
+  * chromium-103-VirtualCursor-std-layout.patch
64
+  * chromium-113-system-zlib.patch
65
+  * chromium-113-workaround_clang_bug-structured_binding.patch
66
+- Add patches
67
+  * chromium-114-workaround_clang_bug-structured_binding.patch
68
+  * chromium-114-lld-argument.patch
69
+
70
+-------------------------------------------------------------------
71
+Tue May 30 21:53:45 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
72
+
73
+- Un-bundle zlib again
74
+- Remove un-needed patches:
75
+  * chromium-112-default-comparison-operators.patch
76
+  * chromium-109-clang-lp154.patch
77
+  * chromium-clang-nomerge.patch
78
+  * chromium-ffmpeg-lp152.patch
79
+  * chromium-lp151-old-drm.patch
80
+- Added patches:
81
+  * chromium-113-system-zlib.patch
82
+
83
+-------------------------------------------------------------------
84
+Sun May 28 21:32:03 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
85
+
86
+- build with llvm15 on Leap
87
+
88
+-------------------------------------------------------------------
89
+Tue May 16 21:16:23 UTC 2023 - Andreas Stieger <Andreas.Stieger@gmx.de>
90
+
91
+- Chromium 113.0.5672.126 (boo#1211442):
92
+  * CVE-2023-2721: Use after free in Navigation
93
+  * CVE-2023-2722: Use after free in Autofill UI
94
+  * CVE-2023-2723: Use after free in DevTools
95
+  * CVE-2023-2724: Type Confusion in V8
96
+  * CVE-2023-2725: Use after free in Guest View
97
+  * CVE-2023-2726: Inappropriate implementation in WebApp Installs
98
+  * Various fixes from internal audits, fuzzing and other initiatives
99
+
100
+-------------------------------------------------------------------
101
+Tue May  9 19:14:20 UTC 2023 - Andreas Stieger <Andreas.Stieger@gmx.de>
102
+
103
+- Chromium 113.0.5672.92 (boo#1211211)
104
+- Multiple security fixes (boo#1211036):
105
+  * CVE-2023-2459: Inappropriate implementation in Prompts
106
+  * CVE-2023-2460: Insufficient validation of untrusted input in Extensions
107
+  * CVE-2023-2461: Use after free in OS Inputs
108
+  * CVE-2023-2462: Inappropriate implementation in Prompts
109
+  * CVE-2023-2463: Inappropriate implementation in Full Screen Mode
110
+  * CVE-2023-2464: Inappropriate implementation in PictureInPicture
111
+  * CVE-2023-2465: Inappropriate implementation in CORS
112
+  * CVE-2023-2466: Inappropriate implementation in Prompts
113
+  * CVE-2023-2467: Inappropriate implementation in Prompts
114
+  * CVE-2023-2468: Inappropriate implementation in PictureInPicture
115
+- drop chromium-94-sql-no-assert.patch
116
+- drop no-location-leap151.patch
117
+- add chromium-113-webview-namespace.patch
118
+- add chromium-113-webauth-include-variant.patch
119
+- add chromium-113-typename.patch
120
+- add chromium-113-workaround_clang_bug-structured_binding.patch
121
+
122
+-------------------------------------------------------------------
123
+Wed Apr 19 19:55:51 UTC 2023 - Andreas Stieger <Andreas.Stieger@gmx.de>
124
+
125
+- Chromium 112.0.5615.165 (boo#1210618):
126
+  * CVE-2023-2133: Out of bounds memory access in Service Worker API
127
+  * CVE-2023-2134: Out of bounds memory access in Service Worker API
128
+  * CVE-2023-2135: Use after free in DevTools
129
+  * CVE-2023-2136: Integer overflow in Skia
130
+  * CVE-2023-2137: Heap buffer overflow in sqlite
131
+- drop chromium-112-feed_protos.patch
132
+
133
+-------------------------------------------------------------------
134
+Sun Apr 16 02:10:30 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
135
+
136
+- Fix Leap 15.4 build failures from default comparison operators
137
+  defined outside of the class definition, a C++20 feature
138
+  adding chromium-112-default-comparison-operators.patch
139
+
140
+-------------------------------------------------------------------
141
+Sat Apr 15 10:49:51 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
142
+
143
+- Chromium 112.0.5615.121:
144
+  * CVE-2023-2033: Type Confusion in V8 (boo#1210478)
145
+
146
+-------------------------------------------------------------------
147
+Fri Apr  7 07:57:40 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
148
+
149
+- Revert a breaking change with chromium-112-feed_protos.patch
150
+
151
+-------------------------------------------------------------------
152
+Tue Apr  4 22:38:23 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
153
+
154
+- Chromium 112.0.5615.49 
155
+  * CSS now supports nesting rules.
156
+  * The algorithm to set the initial focus on <dialog> elements was updated.
157
+  * No-op fetch() handlers on service workers are skipped from now on to make navigations faster
158
+  * The setter for document.domain is now deprecated.
159
+  * The recorder in devtools can now record with pierce selectors.
160
+  * Security fixes (boo#1210126):
161
+  * CVE-2023-1810: Heap buffer overflow in Visuals
162
+  * CVE-2023-1811: Use after free in Frames
163
+  * CVE-2023-1812: Out of bounds memory access in DOM Bindings
164
+  * CVE-2023-1813: Inappropriate implementation in Extensions
165
+  * CVE-2023-1814: Insufficient validation of untrusted input in Safe Browsing
166
+  * CVE-2023-1815: Use after free in Networking APIs
167
+  * CVE-2023-1816: Incorrect security UI in Picture In Picture
168
+  * CVE-2023-1817: Insufficient policy enforcement in Intents
169
+  * CVE-2023-1818: Use after free in Vulkan
170
+  * CVE-2023-1819: Out of bounds read in Accessibility
171
+  * CVE-2023-1820: Heap buffer overflow in Browser History
172
+  * CVE-2023-1821: Inappropriate implementation in WebShare
173
+  * CVE-2023-1822: Incorrect security UI in Navigation
174
+  * CVE-2023-1823: Inappropriate implementation in FedCM
175
+-------------------------------------------------------------------
176
 Sun Apr  2 10:10:49 UTC 2023 - Carsten Ziepke <kieltux@gmail.com>
177
 
178
 - Use gcc11/gcc11-c++ for openSUSE Leap, use gcc12/gcc12-c++
179
chromium-ffmpeg-extra.spec Changed
201
 
1
@@ -2,6 +2,8 @@
2
 # spec file for package chromium-ffmpeg-extra
3
 #
4
 # Copyright (c) 2023 SUSE LLC
5
+# Copyright (c) 2023 Callum Farmer <gmbr3@opensuse.org>
6
+# Copyright (c) 2023 Andreas Stieger <Andreas.Stieger@gmx.de>
7
 #
8
 # All modifications and additions to the file contributed by third parties
9
 # remain the property of their copyright owners, unless otherwise agreed
10
@@ -18,42 +20,56 @@
11
 
12
 %define rname chromium
13
 %define outputdir out
14
+%bcond_with is_beta # CHANNEL SWITCH
15
 # bsc#1108175
16
 %define __provides_exclude ^lib.*\\.so.*$
17
-%if 0%{?suse_version} >= 1550
18
-%bcond_without system_icu
19
-%else
20
-%bcond_with system_icu
21
-%endif
22
 %if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400
23
 %bcond_without gtk4
24
+%bcond_without qt
25
 %else
26
 %bcond_with gtk4
27
+%bcond_with qt
28
 %endif
29
-%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
30
-%bcond_without pipewire
31
-%else
32
-%bcond_with pipewire
33
-%endif
34
-%bcond_without system_zlib
35
-%bcond_with system_vpx
36
 %ifarch aarch64
37
 %bcond_with swiftshader
38
 %else
39
 %bcond_without swiftshader
40
 %endif
41
-%if 0%{?suse_version} >= 1550
42
+%if 0%{?suse_version} >= 1599
43
 %bcond_without system_harfbuzz
44
 %bcond_without system_freetype
45
+%bcond_without arm_bti
46
+%bcond_without system_icu
47
+%bcond_without ffmpeg_51
48
+%bcond_without qt6
49
 %else
50
 %bcond_with system_harfbuzz
51
 %bcond_with system_freetype
52
-%endif
53
-%bcond_with clang
54
+%bcond_with arm_bti
55
+%bcond_with system_icu
56
+%bcond_with ffmpeg_51
57
+%bcond_with qt6
58
+%endif
59
+%bcond_with system_avif
60
+# LLVM version
61
+%define llvm_version 15
62
+# GCC version
63
+%define gcc_version 12
64
+# Compiler
65
+%bcond_without clang
66
 # Chromium built with GCC 11 and LTO enabled crashes (boo#1194055)
67
-%bcond_with lto
68
+%bcond_without lto
69
+%bcond_without pipewire
70
+%bcond_without system_zlib
71
+%bcond_with system_vpx
72
+# FFmpeg version
73
+%if %{with ffmpeg_51}
74
+%define ffmpeg_version 59
75
+%else
76
+%define ffmpeg_version 58
77
+%endif
78
 Name:           chromium-ffmpeg-extra
79
-Version:        103.0.5060.114
80
+Version:        114.0.5735.198
81
 Release:        0
82
 Summary:        Google's open source browser project
83
 License:        BSD-3-Clause AND LGPL-2.1-or-later
84
@@ -81,33 +97,32 @@
85
 Patch6:         gcc-enable-lto.patch
86
 # Do not use unrar code, it is non-free
87
 Patch7:         chromium-norar.patch
88
-# revert location on old GCC on 15.1, 15.2 gets it right tho
89
-Patch8:         no-location-leap151.patch
90
 Patch9:         system-libdrm.patch
91
 Patch10:        chromium-disable-parallel-gold.patch
92
-Patch11:        chromium-lp151-old-drm.patch
93
 # gentoo/fedora/arch patchset
94
-Patch12:        chromium-78-protobuf-RepeatedPtrField-export.patch
95
-Patch15:        chromium-103-compiler.patch
96
-Patch17:        chromium-86-ImageMemoryBarrierData-init.patch
97
-Patch21:        chromium-gcc11.patch
98
+Patch15:        chromium-110-compiler.patch
99
 Patch40:        chromium-91-java-only-allowed-in-android-builds.patch
100
-Patch50:        chromium-clang-nomerge.patch
101
 Patch62:        chromium-93-ffmpeg-4.4.patch
102
-Patch63:        chromium-ffmpeg-lp152.patch
103
-Patch65:        chromium-94-sql-no-assert.patch
104
 Patch68:        chromium-94-ffmpeg-roll.patch
105
-Patch69:        chromium-93-InkDropHost-crash.patch
106
-Patch78:        chromium-98-EnumTable-crash.patch
107
 Patch87:        chromium-98-gtk4-build.patch
108
 Patch90:        chromium-100-InMilliseconds-constexpr.patch
109
 Patch98:        chromium-102-regex_pattern-array.patch
110
-Patch101:       chromium-103-FrameLoadRequest-type.patch
111
-Patch102:       chromium-103-SubstringSetMatcher-packed.patch
112
-Patch103:       chromium-103-VirtualCursor-std-layout.patch
113
 Patch201:       chromium-86-fix-vaapi-on-intel.patch
114
 # PATCH-FIX-SUSE: allow prop codecs to be set with chromium branding
115
 Patch202:       chromium-prop-codecs.patch
116
+Patch203:       chromium-106-ffmpeg-duration.patch
117
+Patch205:       chromium-disable-GlobalMediaControlsCastStartStop.patch
118
+Patch208:       chromium-icu72-2.patch
119
+Patch210:       chromium-110-system-libffi.patch
120
+Patch211:       gcc13-fix.patch
121
+Patch214:       chromium-113-webview-namespace.patch
122
+Patch215:       chromium-113-webauth-include-variant.patch
123
+Patch216:       chromium-113-typename.patch
124
+Patch217:       chromium-114-workaround_clang_bug-structured_binding.patch
125
+Patch218:       chromium-114-lld-argument.patch
126
+%if 0%{?sle_version} == 150400
127
+Patch300:       chromium-114-revert-av1enc-lp154.patch
128
+%endif
129
 BuildRequires:  SDL-devel
130
 BuildRequires:  bison
131
 BuildRequires:  cups-devel
132
@@ -119,10 +134,11 @@
133
 BuildRequires:  gn >= 0.1807
134
 BuildRequires:  gperf
135
 BuildRequires:  hicolor-icon-theme
136
+BuildRequires:  (python3 >= 3.7 or python3-dataclasses)
137
+BuildRequires:  (python3-importlib-metadata if python3-base < 3.8)
138
 BuildRequires:  golang(API)
139
 # Java used during build
140
 BuildRequires:  java-openjdk-headless
141
-BuildRequires:  libcap-devel
142
 BuildRequires:  libdc1394
143
 BuildRequires:  libgcrypt-devel
144
 BuildRequires:  libgsm-devel
145
@@ -130,7 +146,6 @@
146
 BuildRequires:  libpng-devel
147
 BuildRequires:  memory-constraints
148
 BuildRequires:  nasm
149
-BuildRequires:  ncurses-devel
150
 BuildRequires:  ninja >= 1.7.2
151
 BuildRequires:  nodejs >= 8.0
152
 BuildRequires:  pam-devel
153
@@ -151,6 +166,8 @@
154
 BuildRequires:  pkgconfig(dri)
155
 BuildRequires:  pkgconfig(expat)
156
 BuildRequires:  pkgconfig(flac++)
157
+BuildRequires:  pkgconfig(form)
158
+BuildRequires:  pkgconfig(formw)
159
 BuildRequires:  pkgconfig(gbm)
160
 BuildRequires:  pkgconfig(glib-2.0)
161
 BuildRequires:  pkgconfig(hunspell)
162
@@ -159,15 +176,13 @@
163
 BuildRequires:  pkgconfig(kadm-client)
164
 BuildRequires:  pkgconfig(kdb)
165
 BuildRequires:  pkgconfig(krb5)
166
-BuildRequires:  pkgconfig(libavcodec)
167
-BuildRequires:  pkgconfig(libavfilter)
168
-BuildRequires:  pkgconfig(libavformat) >= 58
169
-BuildRequires:  pkgconfig(libavutil)
170
+BuildRequires:  pkgconfig(libcap)
171
 BuildRequires:  pkgconfig(libcrypto)
172
 BuildRequires:  pkgconfig(libcurl)
173
 BuildRequires:  pkgconfig(libdc1394-2)
174
 BuildRequires:  pkgconfig(libdrm)
175
 BuildRequires:  pkgconfig(libelf)
176
+BuildRequires:  pkgconfig(libevdev)
177
 BuildRequires:  pkgconfig(libevent)
178
 BuildRequires:  pkgconfig(libexif)
179
 BuildRequires:  pkgconfig(libffi)
180
@@ -180,18 +195,28 @@
181
 BuildRequires:  pkgconfig(libwebp) >= 0.4.0
182
 BuildRequires:  pkgconfig(libxml-2.0) >= 2.9.5
183
 BuildRequires:  pkgconfig(libxslt)
184
+BuildRequires:  pkgconfig(menu)
185
+BuildRequires:  pkgconfig(menuw)
186
 BuildRequires:  pkgconfig(minizip)
187
+BuildRequires:  pkgconfig(ncurses)
188
+BuildRequires:  pkgconfig(ncurses++)
189
+BuildRequires:  pkgconfig(ncurses++w)
190
+BuildRequires:  pkgconfig(ncursesw)
191
 BuildRequires:  pkgconfig(nspr) >= 4.9.5
192
 BuildRequires:  pkgconfig(nss) >= 3.26
193
 BuildRequires:  pkgconfig(ogg)
194
 BuildRequires:  pkgconfig(openssl)
195
 BuildRequires:  pkgconfig(opus) >= 1.3.1
196
+BuildRequires:  pkgconfig(panel)
197
+BuildRequires:  pkgconfig(panelw)
198
 BuildRequires:  pkgconfig(python3)
199
 BuildRequires:  pkgconfig(re2)
200
 BuildRequires:  pkgconfig(schroedinger-1.0)
201
chromium-103-FrameLoadRequest-type.patch Deleted
28
 
1
@@ -1,26 +0,0 @@
2
-From 491bf840da4f76fa3591cc0aa2f4c19cdbe57ec4 Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Thu, 12 May 2022 11:58:29 +0000
5
-Subject: PATCH GCC: fix ambiguous references in blink::FrameLoadRequest
6
-
7
-Add namespace to avoid confusion.
8
----
9
- third_party/blink/renderer/core/loader/frame_load_request.h | 2 +-
10
- 1 file changed, 1 insertion(+), 1 deletion(-)
11
-
12
-diff --git a/third_party/blink/renderer/core/loader/frame_load_request.h b/third_party/blink/renderer/core/loader/frame_load_request.h
13
-index 444b25c..a86814d 100644
14
---- a/third_party/blink/renderer/core/loader/frame_load_request.h
15
-+++ b/third_party/blink/renderer/core/loader/frame_load_request.h
16
-@@ -179,7 +179,7 @@ struct CORE_EXPORT FrameLoadRequest {
17
-     impression_ = impression;
18
-   }
19
- 
20
--  const absl::optional<Impression>& Impression() const { return impression_; }
21
-+  const absl::optional<blink::Impression>& Impression() const { return impression_; }
22
- 
23
-   bool CanDisplay(const KURL&) const;
24
- 
25
--- 
26
-2.35.1
27
-
28
chromium-103-SubstringSetMatcher-packed.patch Deleted
72
 
1
@@ -1,70 +0,0 @@
2
-From 3d274856e792a361336eb4ae1670bc9c1905f0cb Mon Sep 17 00:00:00 2001
3
-From: Steinar H. Gunderson <sesse@chromium.org>
4
-Date: Thu, 12 May 2022 16:42:40 +0200
5
-Subject: PATCH Make AhoCorasickNode 4-aligned.
6
-
7
-This should fix an issue where std::vector could allocate unaligned
8
-memory for AhoCorasickNode, and we'd then return a pointer to
9
-inline_edges, where a caller would expect the pointer to be aligned
10
-but it wasn't.
11
-
12
-Change-Id: Id9dff044c61f8e46062c63b8480b18ebc68c4862
13
----
14
-
15
-diff --git a/base/substring_set_matcher/substring_set_matcher.cc b/base/substring_set_matcher/substring_set_matcher.cc
16
-index e110047..ef0b750 100644
17
---- a/base/substring_set_matcher/substring_set_matcher.cc
18
-+++ b/base/substring_set_matcher/substring_set_matcher.cc
19
-@@ -424,7 +424,12 @@
20
-     edges_.inline_edgesnum_edges() = AhoCorasickEdge{label, node};
21
-     if (label == kFailureNodeLabel) {
22
-       // Make sure that kFailureNodeLabel is first.
23
--      std::swap(edges_.inline_edges0, edges_.inline_edgesnum_edges());
24
-+      // NOTE: We don't use std::swap here, because GCC
25
-+      // doesn't understand that inline_edges is 4-aligned
26
-+      // and gives a warning.
27
-+      AhoCorasickEdge temp = edges_.inline_edges0;
28
-+      edges_.inline_edges0 = edges_.inline_edgesnum_edges();
29
-+      edges_.inline_edgesnum_edges() = temp;
30
-     }
31
-     --num_free_edges_;
32
-     return;
33
-diff --git a/base/substring_set_matcher/substring_set_matcher.cc b/base/substring_set_matcher/substring_set_matcher.cc
34
-index e110047..ef0b750 100644
35
---- a/base/substring_set_matcher/substring_set_matcher.h
36
-+++ b/base/substring_set_matcher/substring_set_matcher.h
37
-@@ -154,8 +154,9 @@
38
-   static constexpr uint32_t kEmptyLabel = 0x103;
39
- 
40
-   // A node in the trie, packed tightly together so that it occupies 12 bytes
41
--  // (both on 32- and 64-bit platforms).
42
--  class AhoCorasickNode {
43
-+  // (both on 32- and 64-bit platforms), but aligned to at least 4 (see the
44
-+  // comment on edges_).
45
-+  class alignas(AhoCorasickEdge) AhoCorasickNode {
46
-    public:
47
-     AhoCorasickNode();
48
-     ~AhoCorasickNode();
49
-@@ -178,6 +179,10 @@
50
-     NodeID GetEdgeNoInline(uint32_t label) const;
51
-     void SetEdge(uint32_t label, NodeID node);
52
-     const AhoCorasickEdge* edges() const {
53
-+      // NOTE: Returning edges_.inline_edges here is fine, because it's
54
-+      // the first thing in the struct (see the comment on edges_).
55
-+      DCHECK_EQ(0u, reinterpret_cast<uintptr_t>(edges_.inline_edges) %
56
-+                        alignof(AhoCorasickEdge));
57
-       return edges_capacity_ == 0 ? edges_.inline_edges : edges_.edges;
58
-     }
59
- 
60
-@@ -258,6 +263,11 @@
61
-     // in the first slot if it exists (ie., is not equal to kRootID), since we
62
-     // need to access that label during every single node we look at during
63
-     // traversal.
64
-+    //
65
-+    // NOTE: Keep this the first member in the struct, so that inline_edges gets
66
-+    // 4-aligned (since the class is marked as such, despite being packed.
67
-+    // Otherwise, edges() can return an unaligned pointer marked as aligned
68
-+    // (the unalignedness gets lost).
69
-     static constexpr int kNumInlineEdges = 2;
70
-     union {
71
-       // Out-of-line edge storage, having room for edges_capacity_ elements.
72
chromium-103-VirtualCursor-std-layout.patch Deleted
201
 
1
@@ -1,231 +0,0 @@
2
-From 144479ad7b4287bee4067f95e4218f614798a865 Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Sun, 16 Jan 2022 19:15:26 +0000
5
-Subject: PATCH sql: make VirtualCursor standard layout type
6
-
7
-sql::recover::VirtualCursor needs to be a standard layout type, but
8
-has members of type std::unique_ptr. However, std::unique_ptr is not
9
-guaranteed to be standard layout. Compiling with clang combined with
10
-gcc-11 libstdc++ fails because of this.
11
-
12
-Bug: 1189788
13
-Change-Id: Ia6dc388cc5ef1c0f2afc75f8ca45b9f12687ca9c
14
----
15
-
16
-diff --git a/sql/recover_module/btree.cc b/sql/recover_module/btree.cc
17
-index cc9420e5..f12d8fa 100644
18
---- a/sql/recover_module/btree.cc
19
-+++ b/sql/recover_module/btree.cc
20
-@@ -136,16 +136,22 @@
21
-               "Move the destructor to the .cc file if it's non-trival");
22
- #endif  // !DCHECK_IS_ON()
23
- 
24
--LeafPageDecoder::LeafPageDecoder(DatabasePageReader* db_reader) noexcept
25
--    : page_id_(db_reader->page_id()),
26
--      db_reader_(db_reader),
27
--      cell_count_(ComputeCellCount(db_reader)),
28
--      next_read_index_(0),
29
--      last_record_size_(0) {
30
-+LeafPageDecoder::LeafPageDecoder() noexcept = default;
31
-+
32
-+void LeafPageDecoder::Initialize(DatabasePageReader* db_reader) {
33
-+  page_id_ = db_reader->page_id();
34
-+  db_reader_ = db_reader;
35
-+  cell_count_ = ComputeCellCount(db_reader);
36
-+  next_read_index_ = 0;
37
-+  last_record_size_ = 0;
38
-   DCHECK(IsOnValidPage(db_reader));
39
-   DCHECK(DatabasePageReader::IsValidPageId(page_id_));
40
- }
41
- 
42
-+void LeafPageDecoder::Reset() {
43
-+  db_reader_ = nullptr;
44
-+}
45
-+
46
- bool LeafPageDecoder::TryAdvance() {
47
-   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
48
-   DCHECK(CanAdvance());
49
-diff --git a/sql/recover_module/btree.h b/sql/recover_module/btree.h
50
-index eaa087a5..df0e0c9 100644
51
---- a/sql/recover_module/btree.h
52
-+++ b/sql/recover_module/btree.h
53
-@@ -101,9 +101,7 @@
54
-  public:
55
-   // Creates a decoder for a DatabasePageReader's last read page.
56
-   //
57
--  // |db_reader| must have been used to read an inner page of a table B-tree.
58
--  // |db_reader| must outlive this instance.
59
--  explicit LeafPageDecoder(DatabasePageReader* db_reader) noexcept;
60
-+  LeafPageDecoder() noexcept;
61
-   ~LeafPageDecoder() noexcept = default;
62
- 
63
-   LeafPageDecoder(const LeafPageDecoder&) = delete;
64
-@@ -151,6 +149,17 @@
65
-   // read as long as CanAdvance() returns true.
66
-   bool TryAdvance();
67
- 
68
-+  // Initialize with DatabasePageReader
69
-+  // |db_reader| must have been used to read an inner page of a table B-tree.
70
-+  // |db_reader| must outlive this instance.
71
-+  void Initialize(DatabasePageReader* db_reader);
72
-+
73
-+  // Reset internal DatabasePageReader
74
-+  void Reset();
75
-+
76
-+  // True if DatabasePageReader is valid
77
-+  bool IsValid() { return (db_reader_ != nullptr); }
78
-+
79
-   // True if the given reader may point to an inner page in a table B-tree.
80
-   //
81
-   // The last ReadPage() call on |db_reader| must have succeeded.
82
-@@ -164,14 +173,14 @@
83
-   static int ComputeCellCount(DatabasePageReader* db_reader);
84
- 
85
-   // The number of the B-tree page this reader is reading.
86
--  const int64_t page_id_;
87
-+  int64_t page_id_;
88
-   // Used to read the tree page.
89
-   //
90
-   // Raw pointer usage is acceptable because this instance's owner is expected
91
-   // to ensure that the DatabasePageReader outlives this.
92
--  DatabasePageReader* const db_reader_;
93
-+  DatabasePageReader* db_reader_;
94
-   // Caches the ComputeCellCount() value for this reader's page.
95
--  const int cell_count_ = ComputeCellCount(db_reader_);
96
-+  int cell_count_;
97
- 
98
-   // The reader's cursor state.
99
-   //
100
-diff --git a/sql/recover_module/cursor.cc b/sql/recover_module/cursor.cc
101
-index 4f827ed..240de499 100644
102
---- a/sql/recover_module/cursor.cc
103
-+++ b/sql/recover_module/cursor.cc
104
-@@ -28,7 +28,7 @@
105
- int VirtualCursor::First() {
106
-   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
107
-   inner_decoders_.clear();
108
--  leaf_decoder_ = nullptr;
109
-+  leaf_decoder_.Reset();
110
- 
111
-   AppendPageDecoder(table_->root_page_id());
112
-   return Next();
113
-@@ -38,18 +38,18 @@
114
-   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
115
-   record_reader_.Reset();
116
- 
117
--  while (!inner_decoders_.empty() || leaf_decoder_.get()) {
118
--    if (leaf_decoder_.get()) {
119
--      if (!leaf_decoder_->CanAdvance()) {
120
-+  while (!inner_decoders_.empty() || leaf_decoder_.IsValid()) {
121
-+    if (leaf_decoder_.IsValid()) {
122
-+      if (!leaf_decoder_.CanAdvance()) {
123
-         // The leaf has been exhausted. Remove it from the DFS stack.
124
--        leaf_decoder_ = nullptr;
125
-+        leaf_decoder_.Reset();
126
-         continue;
127
-       }
128
--      if (!leaf_decoder_->TryAdvance())
129
-+      if (!leaf_decoder_.TryAdvance())
130
-         continue;
131
- 
132
--      if (!payload_reader_.Initialize(leaf_decoder_->last_record_size(),
133
--                                      leaf_decoder_->last_record_offset())) {
134
-+      if (!payload_reader_.Initialize(leaf_decoder_.last_record_size(),
135
-+                                      leaf_decoder_.last_record_offset())) {
136
-         continue;
137
-       }
138
-       if (!record_reader_.Initialize())
139
-@@ -101,13 +101,13 @@
140
- int64_t VirtualCursor::RowId() {
141
-   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
142
-   DCHECK(record_reader_.IsInitialized());
143
--  DCHECK(leaf_decoder_.get());
144
--  return leaf_decoder_->last_record_rowid();
145
-+  DCHECK(leaf_decoder_.IsValid());
146
-+  return leaf_decoder_.last_record_rowid();
147
- }
148
- 
149
- void VirtualCursor::AppendPageDecoder(int page_id) {
150
-   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
151
--  DCHECK(leaf_decoder_.get() == nullptr)
152
-+  DCHECK(!leaf_decoder_.IsValid())
153
-       << __func__
154
-       << " must only be called when the current path has no leaf decoder";
155
- 
156
-@@ -115,7 +115,7 @@
157
-     return;
158
- 
159
-   if (LeafPageDecoder::IsOnValidPage(&db_reader_)) {
160
--    leaf_decoder_ = std::make_unique<LeafPageDecoder>(&db_reader_);
161
-+    leaf_decoder_.Initialize(&db_reader_);
162
-     return;
163
-   }
164
- 
165
-diff --git a/sql/recover_module/cursor.h b/sql/recover_module/cursor.h
166
-index 845b785..cc4e85f8 100644
167
---- a/sql/recover_module/cursor.h
168
-+++ b/sql/recover_module/cursor.h
169
-@@ -130,7 +130,7 @@
170
-   std::vector<std::unique_ptr<InnerPageDecoder>> inner_decoders_;
171
- 
172
-   // Decodes the leaf page containing records.
173
--  std::unique_ptr<LeafPageDecoder> leaf_decoder_;
174
-+  LeafPageDecoder leaf_decoder_;
175
- 
176
-   SEQUENCE_CHECKER(sequence_checker_);
177
- };
178
-diff --git a/sql/recover_module/pager.cc b/sql/recover_module/pager.cc
179
-index 58e75de..69d98cef 100644
180
---- a/sql/recover_module/pager.cc
181
-+++ b/sql/recover_module/pager.cc
182
-@@ -23,8 +23,7 @@
183
-               "ints are not appropriate for representing page IDs");
184
- 
185
- DatabasePageReader::DatabasePageReader(VirtualTable* table)
186
--    : page_data_(std::make_unique<uint8_t>(table->page_size())),
187
--      table_(table) {
188
-+    : page_data_(table->page_size()), table_(table) {
189
-   DCHECK(table != nullptr);
190
-   DCHECK(IsValidPageSize(table->page_size()));
191
- }
192
-@@ -58,7 +57,7 @@
193
-                 "The |read_offset| computation above may overflow");
194
- 
195
-   int sqlite_status =
196
--      RawRead(sqlite_file, read_size, read_offset, page_data_.get());
197
-+      RawRead(sqlite_file, read_size, read_offset, page_data_.data());
198
- 
199
-   // |page_id_| needs to be set to kInvalidPageId if the read failed.
200
-   // Otherwise, future ReadPage() calls with the previous |page_id_| value
201
chromium-103-compiler.patch Deleted
201
 
1
@@ -1,235 +0,0 @@
2
-From 307a0f63dd9b118f4b8470ed3d7567e81fdb7a6d Mon Sep 17 00:00:00 2001
3
-From: Mike Gilbert <floppym@gentoo.org>
4
-Date: Tue, 3 May 2022 10:51:55 +0000
5
-Subject: PATCH Disable various compiler configs
6
-
7
----
8
- build/config/compiler/BUILD.gn | 114 +++++----------------------------
9
- 1 file changed, 17 insertions(+), 97 deletions(-)
10
-
11
-diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
12
-index f378b95..cb2aeb3 100644
13
---- a/build/config/compiler/BUILD.gn
14
-+++ b/build/config/compiler/BUILD.gn
15
-@@ -286,9 +286,7 @@ config("compiler") {
16
- 
17
-   configs += 
18
-     # See the definitions below.
19
--    ":clang_revision",
20
-     ":rustc_revision",
21
--    ":compiler_cpu_abi",
22
-     ":compiler_codegen",
23
-     ":compiler_deterministic",
24
-   
25
-@@ -522,31 +520,6 @@ config("compiler") {
26
-     ldflags +=  "-Wl,-z,keep-text-section-prefix" 
27
-   }
28
- 
29
--  if (is_clang && !is_nacl && current_os != "zos") {
30
--    cflags +=  "-fcrash-diagnostics-dir=" + clang_diagnostic_dir 
31
--
32
--    # TODO(hans): Remove this once Clang generates better optimized debug info
33
--    # by default. https://crbug.com/765793
34
--    cflags += 
35
--      "-mllvm",
36
--      "-instcombine-lower-dbg-declare=0",
37
--    
38
--    if (!is_debug && use_thin_lto && is_a_target_toolchain) {
39
--      if (is_win) {
40
--        ldflags +=  "-mllvm:-instcombine-lower-dbg-declare=0" 
41
--      } else {
42
--        ldflags +=  "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" 
43
--      }
44
--    }
45
--
46
--    # TODO(crbug.com/1235145): Investigate why/if this should be needed.
47
--    if (is_win) {
48
--      cflags +=  "/clang:-ffp-contract=off" 
49
--    } else {
50
--      cflags +=  "-ffp-contract=off" 
51
--    }
52
--  }
53
--
54
-   # Rust compiler setup (for either clang or rustc).
55
-   if (enable_rust) {
56
-     defines +=  "RUST_ENABLED" 
57
-@@ -1231,45 +1204,6 @@ config("compiler_deterministic") {
58
-     }
59
-   }
60
- 
61
--  # Makes builds independent of absolute file path.
62
--  if (is_clang && strip_absolute_paths_from_debug_symbols) {
63
--    # If debug option is given, clang includes $cwd in debug info by default.
64
--    # For such build, this flag generates reproducible obj files even we use
65
--    # different build directory like "out/feature_a" and "out/feature_b" if
66
--    # we build same files with same compile flag.
67
--    # Other paths are already given in relative, no need to normalize them.
68
--    if (is_nacl) {
69
--      # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
70
--      cflags += 
71
--        "-Xclang",
72
--        "-fdebug-compilation-dir",
73
--        "-Xclang",
74
--        ".",
75
--      
76
--    } else {
77
--      # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
78
--      # and -fcoverage-compilation-dir=.
79
--      cflags +=  "-ffile-compilation-dir=." 
80
--    }
81
--    if (!is_win) {
82
--      # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
83
--      asmflags =  "-Wa,-fdebug-compilation-dir,." 
84
--    }
85
--
86
--    if (is_win && use_lld) {
87
--      if (symbol_level == 2 || (is_clang && using_sanitizer)) {
88
--        # Absolutize source file paths for PDB. Pass the real build directory
89
--        # if the pdb contains source-level debug information and if linker
90
--        # reproducibility is not critical.
91
--        ldflags +=  "/PDBSourcePath:" + rebase_path(root_build_dir) 
92
--      } else {
93
--        # Use a fake fixed base directory for paths in the pdb to make the pdb
94
--        # output fully deterministic and independent of the build directory.
95
--        ldflags +=  "/PDBSourcePath:o:\fake\prefix" 
96
--      }
97
--    }
98
--  }
99
--
100
-   # Tells the compiler not to use absolute paths when passing the default
101
-   # paths to the tools it invokes. We don't want this because we don't
102
-   # really need it and it can mess up the goma cache entries.
103
-@@ -1534,15 +1468,6 @@ config("default_warnings") {
104
-         cflags +=  "-Wno-unqualified-std-cast-call" 
105
-       }
106
- 
107
--      if (!is_nacl && !(is_chromeos ||
108
--                        default_toolchain == "//build/toolchain/cros:target")) {
109
--        # TODO(https://crbug.com/1316298): Re-enable once test failure is figured out
110
--        cflags += 
111
--          "-Xclang",
112
--          "-no-opaque-pointers",
113
--        
114
--      }
115
--
116
-       if (is_fuchsia) {
117
-         # TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
118
-         cflags +=  "-Wno-deprecated-copy" 
119
-@@ -1611,7 +1536,7 @@ config("chromium_code") {
120
-       defines =  "_HAS_NODISCARD" 
121
-     }
122
-   } else {
123
--    cflags =  "-Wall" 
124
-+    cflags = 
125
-     if (treat_warnings_as_errors) {
126
-       cflags +=  "-Werror" 
127
- 
128
-@@ -1620,10 +1545,6 @@ config("chromium_code") {
129
-       # well.
130
-       ldflags =  "-Werror" 
131
-     }
132
--    if (is_clang) {
133
--      # Enable extra warnings for chromium_code when we control the compiler.
134
--      cflags +=  "-Wextra" 
135
--    }
136
- 
137
-     # In Chromium code, we define __STDC_foo_MACROS in order to get the
138
-     # C99 macros on Mac and Linux.
139
-@@ -1632,15 +1553,6 @@ config("chromium_code") {
140
-       "__STDC_FORMAT_MACROS",
141
-     
142
- 
143
--    if (!is_debug && !using_sanitizer && current_cpu != "s390x" &&
144
--        current_cpu != "s390" && current_cpu != "ppc64" &&
145
--        current_cpu != "mips" && current_cpu != "mips64") {
146
--      # Non-chromium code is not guaranteed to compile cleanly with
147
--      # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
148
--      # disabled, so only do that for Release build.
149
--      defines +=  "_FORTIFY_SOURCE=2" 
150
--    }
151
--
152
-     if (is_mac) {
153
-       cflags_objc =  "-Wobjc-missing-property-synthesis" 
154
-       cflags_objcc =  "-Wobjc-missing-property-synthesis" 
155
-@@ -2031,7 +1943,8 @@ config("default_stack_frames") {
156
- }
157
- 
158
- # Default "optimization on" config.
159
--config("optimize") {
160
-+config("optimize") { }
161
-+config("xoptimize") {
162
-   if (is_win) {
163
-     if (chrome_pgo_phase != 2) {
164
-       # Favor size over speed, /O1 must be before the common flags.
165
-@@ -2069,7 +1982,8 @@ config("optimize") {
166
- }
167
- 
168
- # Turn off optimizations.
169
--config("no_optimize") {
170
-+config("no_optimize") { }
171
-+config("xno_optimize") {
172
-   if (is_win) {
173
-     cflags = 
174
-       "/Od",  # Disable optimization.
175
-@@ -2109,7 +2023,8 @@ config("no_optimize") {
176
- # Turns up the optimization level. On Windows, this implies whole program
177
- # optimization and link-time code generation which is very expensive and should
178
- # be used sparingly.
179
--config("optimize_max") {
180
-+config("optimize_max") { }
181
-+config("xoptimize_max") {
182
-   if (is_nacl && is_nacl_irt) {
183
-     # The NaCl IRT is a special case and always wants its own config.
184
-     # Various components do:
185
-@@ -2142,7 +2057,8 @@ config("optimize_max") {
186
- #
187
- # TODO(crbug.com/621335) - rework how all of these configs are related
188
- # so that we don't need this disclaimer.
189
--config("optimize_speed") {
190
-+config("optimize_speed") { }
191
-+config("xoptimize_speed") {
192
-   if (is_nacl && is_nacl_irt) {
193
-     # The NaCl IRT is a special case and always wants its own config.
194
-     # Various components do:
195
-@@ -2168,7 +2084,8 @@ config("optimize_speed") {
196
-   }
197
- }
198
- 
199
--config("optimize_fuzzing") {
200
-+config("optimize_fuzzing") { }
201
chromium-106-ffmpeg-duration.patch Added
19
 
1
@@ -0,0 +1,17 @@
2
+Index: chromium-106.0.5249.91/media/filters/audio_file_reader.cc
3
+===================================================================
4
+--- chromium-106.0.5249.91.orig/media/filters/audio_file_reader.cc
5
++++ chromium-106.0.5249.91/media/filters/audio_file_reader.cc
6
+@@ -243,10 +243,10 @@ bool AudioFileReader::OnNewFrame(
7
+   // silence from being output. In the case where we are also discarding some
8
+   // portion of the packet (as indicated by a negative pts), we further want to
9
+   // adjust the duration downward by however much exists before zero.
10
+-  if (audio_codec_ == AudioCodec::kAAC && frame->duration) {
11
++  if (audio_codec_ == AudioCodec::kAAC && frame->pkt_duration) {
12
+     const base::TimeDelta pkt_duration = ConvertFromTimeBase(
13
+         glue_->format_context()->streamsstream_index_->time_base,
14
+-        frame->duration + std::min(static_cast<int64_t>(0), frame->pts));
15
++        frame->pkt_duration + std::min(static_cast<int64_t>(0), frame->pts));
16
+     const base::TimeDelta frame_duration =
17
+         base::Seconds(frames_read / static_cast<double>(sample_rate_));
18
+ 
19
chromium-110-compiler.patch Added
201
 
1
@@ -0,0 +1,253 @@
2
+From 307a0f63dd9b118f4b8470ed3d7567e81fdb7a6d Mon Sep 17 00:00:00 2001
3
+From: Mike Gilbert <floppym@gentoo.org>
4
+Date: Tue, 15 Nov 2022 10:27:58 +0000
5
+Subject: PATCH Disable various compiler configs
6
+
7
+---
8
+ build/config/compiler/BUILD.gn | 134 +++++----------------------------
9
+ 1 file changed, 17 insertions(+), 117 deletions(-)
10
+
11
+Index: chromium-114.0.5735.90/build/config/compiler/BUILD.gn
12
+===================================================================
13
+--- chromium-114.0.5735.90.orig/build/config/compiler/BUILD.gn
14
++++ chromium-114.0.5735.90/build/config/compiler/BUILD.gn
15
+@@ -289,9 +289,7 @@ config("compiler") {
16
+ 
17
+   configs += 
18
+     # See the definitions below.
19
+-    ":clang_revision",
20
+     ":rustc_revision",
21
+-    ":compiler_cpu_abi",
22
+     ":compiler_codegen",
23
+     ":compiler_deterministic",
24
+   
25
+@@ -540,37 +538,6 @@ config("compiler") {
26
+     ldflags +=  "-Wl,-z,keep-text-section-prefix" 
27
+   }
28
+ 
29
+-  if (is_clang && !is_nacl && current_os != "zos") {
30
+-    cflags +=  "-fcrash-diagnostics-dir=" + clang_diagnostic_dir 
31
+-    if (save_reproducers_on_lld_crash && use_lld) {
32
+-      ldflags += 
33
+-        "-fcrash-diagnostics=all",
34
+-        "-fcrash-diagnostics-dir=" + clang_diagnostic_dir,
35
+-      
36
+-    }
37
+-
38
+-    # TODO(hans): Remove this once Clang generates better optimized debug info
39
+-    # by default. https://crbug.com/765793
40
+-    cflags += 
41
+-      "-mllvm",
42
+-      "-instcombine-lower-dbg-declare=0",
43
+-    
44
+-    if (!is_debug && use_thin_lto && is_a_target_toolchain) {
45
+-      if (is_win) {
46
+-        ldflags +=  "-mllvm:-instcombine-lower-dbg-declare=0" 
47
+-      } else {
48
+-        ldflags +=  "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" 
49
+-      }
50
+-    }
51
+-
52
+-    # TODO(crbug.com/1235145): Investigate why/if this should be needed.
53
+-    if (is_win) {
54
+-      cflags +=  "/clang:-ffp-contract=off" 
55
+-    } else {
56
+-      cflags +=  "-ffp-contract=off" 
57
+-    }
58
+-  }
59
+-
60
+   # C11/C++11 compiler flags setup.
61
+   # ---------------------------
62
+   if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
63
+@@ -1346,46 +1313,6 @@ config("compiler_deterministic") {
64
+     }
65
+   }
66
+ 
67
+-  # Makes builds independent of absolute file path.
68
+-  if (is_clang && strip_absolute_paths_from_debug_symbols) {
69
+-    # If debug option is given, clang includes $cwd in debug info by default.
70
+-    # For such build, this flag generates reproducible obj files even we use
71
+-    # different build directory like "out/feature_a" and "out/feature_b" if
72
+-    # we build same files with same compile flag.
73
+-    # Other paths are already given in relative, no need to normalize them.
74
+-    if (is_nacl) {
75
+-      # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
76
+-      cflags += 
77
+-        "-Xclang",
78
+-        "-fdebug-compilation-dir",
79
+-        "-Xclang",
80
+-        ".",
81
+-      
82
+-    } else {
83
+-      # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
84
+-      # and -fcoverage-compilation-dir=.
85
+-      cflags +=  "-ffile-compilation-dir=." 
86
+-      swiftflags +=  "-file-compilation-dir=." 
87
+-    }
88
+-    if (!is_win) {
89
+-      # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
90
+-      asmflags =  "-Wa,-fdebug-compilation-dir,." 
91
+-    }
92
+-
93
+-    if (is_win && use_lld) {
94
+-      if (symbol_level == 2 || (is_clang && using_sanitizer)) {
95
+-        # Absolutize source file paths for PDB. Pass the real build directory
96
+-        # if the pdb contains source-level debug information and if linker
97
+-        # reproducibility is not critical.
98
+-        ldflags +=  "/PDBSourcePath:" + rebase_path(root_build_dir) 
99
+-      } else {
100
+-        # Use a fake fixed base directory for paths in the pdb to make the pdb
101
+-        # output fully deterministic and independent of the build directory.
102
+-        ldflags +=  "/PDBSourcePath:o:\fake\prefix" 
103
+-      }
104
+-    }
105
+-  }
106
+-
107
+   # Tells the compiler not to use absolute paths when passing the default
108
+   # paths to the tools it invokes. We don't want this because we don't
109
+   # really need it and it can mess up the goma cache entries.
110
+@@ -1404,27 +1331,6 @@ config("compiler_deterministic") {
111
+   }
112
+ }
113
+ 
114
+-config("clang_revision") {
115
+-  if (is_clang && clang_base_path == default_clang_base_path) {
116
+-    update_args = 
117
+-      "--print-revision",
118
+-      "--verify-version=$clang_version",
119
+-    
120
+-    if (llvm_force_head_revision) {
121
+-      update_args +=  "--llvm-force-head-revision" 
122
+-    }
123
+-    clang_revision = exec_script("//tools/clang/scripts/update.py",
124
+-                                 update_args,
125
+-                                 "trim string")
126
+-
127
+-    # This is here so that all files get recompiled after a clang roll and
128
+-    # when turning clang on or off. (defines are passed via the command line,
129
+-    # and build system rebuild things when their commandline changes). Nothing
130
+-    # should ever read this define.
131
+-    defines =  "CR_CLANG_REVISION=\"$clang_revision\"" 
132
+-  }
133
+-}
134
+-
135
+ config("rustc_revision") {
136
+   if (rustc_revision != "") {
137
+     # Similar to the above config, this is here so that all files get recompiled
138
+@@ -1714,7 +1620,7 @@ config("chromium_code") {
139
+       defines =  "_HAS_NODISCARD" 
140
+     }
141
+   } else {
142
+-    cflags =  "-Wall" 
143
++    cflags = 
144
+     if (treat_warnings_as_errors) {
145
+       cflags +=  "-Werror" 
146
+ 
147
+@@ -1723,10 +1629,6 @@ config("chromium_code") {
148
+       # well.
149
+       ldflags =  "-Werror" 
150
+     }
151
+-    if (is_clang) {
152
+-      # Enable extra warnings for chromium_code when we control the compiler.
153
+-      cflags +=  "-Wextra" 
154
+-    }
155
+ 
156
+     if (treat_warnings_as_errors) {
157
+       # Turn rustc warnings into the "deny" lint level, which produce compiler
158
+@@ -1744,16 +1646,6 @@ config("chromium_code") {
159
+       "__STDC_FORMAT_MACROS",
160
+     
161
+ 
162
+-    if (!is_debug && !using_sanitizer && current_cpu != "s390x" &&
163
+-        current_cpu != "s390" && current_cpu != "ppc64" &&
164
+-        current_cpu != "mips" && current_cpu != "mips64" &&
165
+-        current_cpu != "riscv64" && current_cpu != "loong64") {
166
+-      # Non-chromium code is not guaranteed to compile cleanly with
167
+-      # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
168
+-      # disabled, so only do that for Release build.
169
+-      defines +=  "_FORTIFY_SOURCE=2" 
170
+-    }
171
+-
172
+     if (is_apple) {
173
+       cflags_objc =  "-Wimplicit-retain-self" 
174
+       cflags_objcc =  "-Wimplicit-retain-self" 
175
+@@ -2122,7 +2014,8 @@ config("default_stack_frames") {
176
+ }
177
+ 
178
+ # Default "optimization on" config.
179
+-config("optimize") {
180
++config("optimize") { }
181
++config("xoptimize") {
182
+   if (is_win) {
183
+     if (chrome_pgo_phase != 2) {
184
+       # Favor size over speed, /O1 must be before the common flags.
185
+@@ -2181,7 +2074,8 @@ config("optimize") {
186
+ }
187
+ 
188
+ # Turn off optimizations.
189
+-config("no_optimize") {
190
++config("no_optimize") { }
191
++config("xno_optimize") {
192
+   if (is_win) {
193
+     cflags = 
194
+       "/Od",  # Disable optimization.
195
+@@ -2221,7 +2115,8 @@ config("no_optimize") {
196
+ # Turns up the optimization level. On Windows, this implies whole program
197
+ # optimization and link-time code generation which is very expensive and should
198
+ # be used sparingly.
199
+-config("optimize_max") {
200
++config("optimize_max") { }
201
chromium-110-system-libffi.patch Added
28
 
1
@@ -0,0 +1,26 @@
2
+Index: chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
3
+===================================================================
4
+--- chromium-110.0.5481.30.orig/build/config/linux/libffi/BUILD.gn
5
++++ chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
6
+@@ -4,21 +4,6 @@
7
+ 
8
+ import("//build/config/linux/pkg_config.gni")
9
+ 
10
+-declare_args() {
11
+-  # Controls whether the build should use the version of libffi library shipped
12
+-  # with the system. By default, we only use the system version on Chrome OS:
13
+-  # on Linux, libffi must be statically linked to prevent a situation where the
14
+-  # runtime version of libffi is different from the build-time version from the
15
+-  # sysroot.
16
+-  use_system_libffi = default_toolchain == "//build/toolchain/cros:target"
17
+-}
18
+-
19
+-if (use_system_libffi) {
20
+   pkg_config("libffi") {
21
+     packages =  "libffi" 
22
+   }
23
+-} else {
24
+-  config("libffi") {
25
+-    libs =  ":libffi_pic.a" 
26
+-  }
27
+-}
28
chromium-113-typename.patch Added
66
 
1
@@ -0,0 +1,64 @@
2
+diff -up chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.cc.me chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.cc
3
+--- chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.cc.me 2023-05-03 17:46:37.194000834 +0200
4
++++ chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.cc    2023-05-03 17:48:05.170317575 +0200
5
+@@ -87,7 +87,7 @@ ItemSortKey GetSortKey(const Item& item)
6
+ // Helper to get an iterator to the last element in the cache. The cache
7
+ // must not be empty.
8
+ template <typename Item>
9
+-SortedItems<Item>::iterator GetLastIter(SortedItems<Item>& cache) {
10
++typename SortedItems<Item>::iterator GetLastIter(SortedItems<Item>& cache) {
11
+   CHECK(!cache.empty());
12
+   auto it = cache.end();
13
+   return std::prev(it);
14
+@@ -789,9 +789,9 @@ bool DownloadBubbleUpdateService::Remove
15
+ }
16
+ 
17
+ template <typename Id, typename Item>
18
+-SortedItems<Item>::iterator
19
++typename SortedItems<Item>::iterator
20
+ DownloadBubbleUpdateService::RemoveItemFromCacheByIter(
21
+-    SortedItems<Item>::iterator iter,
22
++    typename SortedItems<Item>::iterator iter,
23
+     SortedItems<Item>& cache,
24
+     IterMap<Id, Item>& iter_map) {
25
+   CHECK(iter != cache.end());
26
+diff -up chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.h.me chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.h
27
+--- chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.h.me  2023-05-03 17:48:14.079551820 +0200
28
++++ chromium-113.0.5672.63/chrome/browser/download/bubble/download_bubble_update_service.h 2023-05-03 17:49:24.702387180 +0200
29
+@@ -208,8 +208,8 @@ class DownloadBubbleUpdateService
30
+ 
31
+   // Removes item if we already have the iterator to it. Returns next iterator.
32
+   template <typename Id, typename Item>
33
+-  SortedItems<Item>::iterator RemoveItemFromCacheByIter(
34
+-      SortedItems<Item>::iterator iter,
35
++  typename SortedItems<Item>::iterator RemoveItemFromCacheByIter(
36
++      typename SortedItems<Item>::iterator iter,
37
+       SortedItems<Item>& cache,
38
+       IterMap<Id, Item>& iter_map);
39
+ 
40
+diff --git a/print_backend_service_manager.h b/print_backend_service_manager.h.new
41
+index d812f3b..3352148 100644
42
+--- a/chrome/browser/printing/print_backend_service_manager.h
43
++++ b/chrome/browser/printing/print_backend_service_manager.h
44
+@@ -587,7 +587,7 @@ class PrintBackendServiceManager {
45
+   template <class... T>
46
+   void RunSavedCallbacks(RemoteSavedCallbacks<T...>& saved_callbacks,
47
+                          const RemoteId& remote_id,
48
+-                         std::remove_reference<T>::type... result);
49
++                         typename std::remove_reference<T>::type... result);
50
+ 
51
+   // Test support for client ID management.
52
+   static void SetClientsForTesting(
53
+diff --git a/print_backend_service_manager.cc b/print_backend_service_manager.cc.new
54
+index b5a4b52..224369c 100644
55
+--- a/chrome/browser/printing/print_backend_service_manager.cc
56
++++ b/chrome/browser/printing/print_backend_service_manager.cc
57
+@@ -1477,7 +1477,7 @@ template <class... T>
58
+ void PrintBackendServiceManager::RunSavedCallbacks(
59
+     RemoteSavedCallbacks<T...>& saved_callbacks,
60
+     const RemoteId& remote_id,
61
+-    std::remove_reference<T>::type... result) {
62
++    typename std::remove_reference<T>::type... result) {
63
+   auto found_callbacks_map = saved_callbacks.find(remote_id);
64
+   if (found_callbacks_map == saved_callbacks.end())
65
+     return;  // No callbacks to run.
66
chromium-113-webauth-include-variant.patch Added
14
 
1
@@ -0,0 +1,12 @@
2
+Index: chromium-114.0.5735.90/chrome/browser/webauthn/authenticator_request_dialog_model.h
3
+===================================================================
4
+--- chromium-114.0.5735.90.orig/chrome/browser/webauthn/authenticator_request_dialog_model.h
5
++++ chromium-114.0.5735.90/chrome/browser/webauthn/authenticator_request_dialog_model.h
6
+@@ -7,6 +7,7 @@
7
+ 
8
+ #include <memory>
9
+ #include <string>
10
++#include <variant>
11
+ #include <vector>
12
+ #include <variant>
13
+ 
14
chromium-113-webview-namespace.patch Added
15
 
1
@@ -0,0 +1,13 @@
2
+diff --git a/web_view_impl.cc b/web_view_impl.cc.new
3
+index f726627..c1d4d14 100644
4
+--- a/chrome/test/chromedriver/chrome/web_view_impl.cc
5
++++ b/chrome/test/chromedriver/chrome/web_view_impl.cc
6
+@@ -75,7 +75,7 @@ absl::optional<std::pair<std::string, int>> GetElementId(
7
+   if (element_id == nullptr) {
8
+     return absl::nullopt;
9
+   }
10
+-  static const size_t separator_length = std::strlen(kElementIdSeparator);
11
++  static const size_t separator_length = strlen(kElementIdSeparator);
12
+   const size_t separator_pos = element_id->rfind(
13
+       kElementIdSeparator, std::string::npos, separator_length);
14
+   if (separator_pos == std::string::npos) {
15
chromium-114-lld-argument.patch Added
20
 
1
@@ -0,0 +1,18 @@
2
+diff --git a/BUILD.gn b/BUILD.gn.new
3
+index 28c2255..7f89fe6 100644
4
+--- a/build/config/compiler/BUILD.gn
5
++++ b/build/config/compiler/BUILD.gn
6
+@@ -727,13 +727,6 @@ config("compiler") {
7
+ 
8
+       ldflags +=  "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" 
9
+ 
10
+-      if (!is_chromeos) {
11
+-        # TODO(https://crbug.com/972449): turn on for ChromeOS when that
12
+-        # toolchain has this flag.
13
+-        # We only use one version of LLVM within a build so there's no need to
14
+-        # upgrade debug info, which can be expensive since it runs the verifier.
15
+-        ldflags +=  "-Wl,-mllvm,-disable-auto-upgrade-debug-info" 
16
+-      }
17
+     }
18
+ 
19
+     # TODO(https://crbug.com/1211155): investigate why this isn't effective on
20
chromium-114-revert-av1enc-lp154.patch Added
89
 
1
@@ -0,0 +1,87 @@
2
+diff -up chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc
3
+--- chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me    2023-05-21 10:05:00.357860329 +0200
4
++++ chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc   2023-05-21 10:18:09.665432735 +0200
5
+@@ -41,7 +41,6 @@
6
+ #include "media/gpu/gpu_video_encode_accelerator_helpers.h"
7
+ #include "media/gpu/h264_dpb.h"
8
+ #include "media/gpu/macros.h"
9
+-#include "media/gpu/vaapi/av1_vaapi_video_encoder_delegate.h"
10
+ #include "media/gpu/vaapi/h264_vaapi_video_encoder_delegate.h"
11
+ #include "media/gpu/vaapi/va_surface.h"
12
+ #include "media/gpu/vaapi/vaapi_common.h"
13
+@@ -200,7 +199,7 @@ bool VaapiVideoEncodeAccelerator::Initia
14
+ 
15
+   const VideoCodec codec = VideoCodecProfileToVideoCodec(config.output_profile);
16
+   if (codec != VideoCodec::kH264 && codec != VideoCodec::kVP8 &&
17
+-      codec != VideoCodec::kVP9 && codec != VideoCodec::kAV1) {
18
++      codec != VideoCodec::kVP9) {
19
+     MEDIA_LOG(ERROR, media_log.get())
20
+         << "Unsupported profile: " << GetProfileName(config.output_profile);
21
+     return false;
22
+@@ -293,7 +292,6 @@ void VaapiVideoEncodeAccelerator::Initia
23
+         break;
24
+       case VideoCodec::kVP8:
25
+       case VideoCodec::kVP9:
26
+-      case VideoCodec::kAV1:
27
+         mode = VaapiWrapper::kEncodeConstantQuantizationParameter;
28
+         break;
29
+       default:
30
+@@ -356,12 +354,6 @@ void VaapiVideoEncodeAccelerator::Initia
31
+             vaapi_wrapper_, error_cb);
32
+       }
33
+       break;
34
+-    case VideoCodec::kAV1:
35
+-      if (!IsConfiguredForTesting()) {
36
+-        encoder_ = std::make_unique<AV1VaapiVideoEncoderDelegate>(
37
+-            vaapi_wrapper_, error_cb);
38
+-      }
39
+-      break;
40
+     default:
41
+       NOTREACHED() << "Unsupported codec type " << GetCodecName(output_codec_);
42
+       return;
43
+@@ -835,10 +827,6 @@ VaapiVideoEncodeAccelerator::CreateEncod
44
+     case VideoCodec::kVP9:
45
+       picture = new VaapiVP9Picture(std::move(reconstructed_surface));
46
+       break;
47
+-    case VideoCodec::kAV1:
48
+-      picture = new VaapiAV1Picture(/*display_va_surface=*/nullptr,
49
+-                                    std::move(reconstructed_surface));
50
+-      break;
51
+     default:
52
+       return nullptr;
53
+   }
54
+diff -up chromium-114.0.5735.35/media/gpu/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/BUILD.gn
55
+--- chromium-114.0.5735.35/media/gpu/BUILD.gn.revert-av1enc    2023-05-18 00:37:57.000000000 +0200
56
++++ chromium-114.0.5735.35/media/gpu/BUILD.gn  2023-05-20 13:14:10.755183630 +0200
57
+@@ -373,10 +373,7 @@ source_set("common") {
58
+       "vp9_svc_layers.h",
59
+     
60
+     configs +=  "//third_party/libvpx:libvpx_config" 
61
+-    deps += 
62
+-      "//third_party/libaom:libaomrc",
63
+-      "//third_party/libvpx:libvpxrc",
64
+-    
65
++    deps +=  "//third_party/libvpx:libvpxrc" 
66
+   }
67
+   if (use_libgav1_parser) {
68
+     sources += 
69
+diff -up chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn
70
+--- chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc  2023-05-18 00:37:57.000000000 +0200
71
++++ chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn    2023-05-20 13:14:10.756183626 +0200
72
+@@ -38,8 +38,6 @@ source_set("vaapi") {
73
+   sources = 
74
+     "av1_vaapi_video_decoder_delegate.cc",
75
+     "av1_vaapi_video_decoder_delegate.h",
76
+-    "av1_vaapi_video_encoder_delegate.cc",
77
+-    "av1_vaapi_video_encoder_delegate.h",
78
+     "h264_vaapi_video_decoder_delegate.cc",
79
+     "h264_vaapi_video_decoder_delegate.h",
80
+     "h264_vaapi_video_encoder_delegate.cc",
81
+@@ -107,7 +105,6 @@ source_set("vaapi") {
82
+     "//media/gpu/chromeos:common",
83
+     "//media/parsers",
84
+     "//mojo/public/cpp/bindings",
85
+-    "//third_party/libaom:libaomrc",
86
+     "//third_party/libvpx:libvpxrc",
87
+     "//third_party/libyuv",
88
+     "//ui/gfx",
89
chromium-114-workaround_clang_bug-structured_binding.patch Added
83
 
1
@@ -0,0 +1,81 @@
2
+diff -up chromium-114.0.5735.26/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding chromium-114.0.5735.26/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc
3
+--- chromium-114.0.5735.26/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc.workaround_clang_bug-structured_binding  2023-05-11 03:36:27.000000000 +0200
4
++++ chromium-114.0.5735.26/third_party/blink/renderer/core/layout/ng/grid/ng_grid_layout_algorithm.cc  2023-05-14 11:49:42.558129164 +0200
5
+@@ -238,7 +238,10 @@ const NGLayoutResult* NGGridLayoutAlgori
6
+                               : BuildGridSizingTree(&oof_children);
7
+ 
8
+   LayoutUnit intrinsic_block_size;
9
+-  auto& grid_items, layout_data, tree_size = grid_sizing_tree.TreeRootData();
10
++  auto& g_i, l_d, t_s = grid_sizing_tree.TreeRootData();
11
++  auto& grid_items = g_i;
12
++  auto& layout_data = l_d;
13
++  auto& tree_size = t_s;
14
+ 
15
+   if (IsBreakInside(BreakToken())) {
16
+     // TODO(layout-dev): When we support variable inline-size fragments we'll
17
+@@ -520,8 +523,10 @@ wtf_size_t NGGridLayoutAlgorithm::BuildG
18
+                                 row_auto_repetitions);
19
+ 
20
+   bool has_nested_subgrid = false;
21
+-  auto& grid_items, layout_data, subtree_size =
22
+-      sizing_tree->CreateSizingData(opt_subgrid_data);
23
++  auto& g_i, l_d, s_s = sizing_tree->CreateSizingData(opt_subgrid_data);
24
++  auto& grid_items = g_i;
25
++  auto& layout_data = l_d;
26
++  auto& subtree_size = s_s;
27
+ 
28
+   if (!must_ignore_children) {
29
+     // Construct grid items that are not subgridded.
30
+@@ -650,8 +655,10 @@ NGGridSizingTree NGGridLayoutAlgorithm::
31
+   NGGridSizingTree sizing_tree;
32
+ 
33
+   if (const auto* layout_subtree = ConstraintSpace().GridLayoutSubtree()) {
34
+-    auto& grid_items, layout_data, subtree_size =
35
+-        sizing_tree.CreateSizingData();
36
++    auto& g_i, l_d, s_s = sizing_tree.CreateSizingData();
37
++    auto& grid_items = g_i;
38
++    auto& layout_data = l_d;
39
++    auto& subtree_size = s_s;
40
+ 
41
+     const auto& node = Node();
42
+     grid_items =
43
+@@ -1640,8 +1647,10 @@ void NGGridLayoutAlgorithm::InitializeTr
44
+     const absl::optional<GridTrackSizingDirection>& opt_track_direction) const {
45
+   DCHECK(sizing_subtree);
46
+ 
47
+-  auto& grid_items, layout_data, subtree_size =
48
+-      sizing_subtree.SubtreeRootData();
49
++  auto& g_i, l_d, s_s = sizing_subtree.SubtreeRootData();
50
++  auto& grid_items = g_i;
51
++  auto& layout_data = l_d;
52
++  auto& subtree_size = s_s;
53
+ 
54
+   auto InitAndCacheTrackSizes = &(GridTrackSizingDirection track_direction) {
55
+     InitializeTrackCollection(opt_subgrid_data, track_direction, &layout_data);
56
+@@ -1825,8 +1834,10 @@ void NGGridLayoutAlgorithm::CompleteTrac
57
+     bool* opt_needs_additional_pass) const {
58
+   DCHECK(sizing_subtree);
59
+ 
60
+-  auto& grid_items, layout_data, subtree_size =
61
+-      sizing_subtree.SubtreeRootData();
62
++  auto& g_i, l_d, s_s = sizing_subtree.SubtreeRootData();
63
++  auto& grid_items = g_i;
64
++  auto& layout_data = l_d;
65
++  auto& subtree_size = s_s;
66
+ 
67
+   const bool is_for_columns = track_direction == kForColumns;
68
+   const bool has_non_definite_track =
69
+diff -up chromium-114.0.5735.26/media/base/cdm_promise_adapter.cc.me chromium-114.0.5735.26/media/base/cdm_promise_adapter.cc
70
+--- chromium-114.0.5735.26/media/base/cdm_promise_adapter.cc.me    2023-05-14 17:35:00.446844465 +0200
71
++++ chromium-114.0.5735.26/media/base/cdm_promise_adapter.cc   2023-05-14 17:39:22.991733926 +0200
72
+@@ -94,7 +94,9 @@ void CdmPromiseAdapter::RejectPromise(ui
73
+ void CdmPromiseAdapter::Clear(ClearReason reason) {
74
+   // Reject all outstanding promises.
75
+   DCHECK(thread_checker_.CalledOnValidThread());
76
+-  for (auto& promise_id, promise : promises_) {
77
++  for (auto& p_i, p_e : promises_) {
78
++    auto& promise_id = p_i;
79
++    auto& promise = p_e;
80
+     TRACE_EVENT_NESTABLE_ASYNC_END1(
81
+         "media", "CdmPromise", TRACE_ID_WITH_SCOPE("CdmPromise", promise_id),
82
+         "status", "cleared");
83
chromium-78-protobuf-RepeatedPtrField-export.patch Deleted
15
 
1
@@ -1,13 +0,0 @@
2
-diff --git a/third_party/protobuf/src/google/protobuf/repeated_field.h b/third_party/protobuf/src/google/protobuf/repeated_field.h
3
-index b5b193c..4434854 100644
4
---- a/third_party/protobuf/src/google/protobuf/repeated_field.h
5
-+++ b/third_party/protobuf/src/google/protobuf/repeated_field.h
6
-@@ -804,7 +804,7 @@ class StringTypeHandler {
7
- // RepeatedPtrField is like RepeatedField, but used for repeated strings or
8
- // Messages.
9
- template <typename Element>
10
--class RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
11
-+class PROTOBUF_EXPORT RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
12
-  public:
13
-   RepeatedPtrField();
14
-   explicit RepeatedPtrField(Arena* arena);
15
chromium-86-ImageMemoryBarrierData-init.patch Deleted
33
 
1
@@ -1,31 +0,0 @@
2
-From 2879a6ba43b65c33e3c02432b4ae7a7462d24096 Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Fri, 28 Aug 2020 07:23:29 +0000
5
-Subject: PATCH GCC: fix ImageMemoryBarrierData initialization
6
-
7
-GCC can't convert constant string to char40. Use const char * instead.
8
-Otherwise fails like this:
9
-
10
-src/libANGLE/renderer/vulkan/vk_helpers.cpp:121:1: error: could not convert
11
-'...' from '<brace-enclosed initializer list>' to
12
-'const angle::PackedEnumMap<rx::vk::ImageLayout, rx::vk::{anonymous}::ImageMemoryBarrierData>'
13
----
14
- third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp | 2 +-
15
- 1 file changed, 1 insertion(+), 1 deletion(-)
16
-
17
-diff --git a/third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp b/third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
18
-index af957d7..7fe82ae 100644
19
---- a/third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
20
-+++ b/third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
21
-@@ -73,7 +73,7 @@ enum BarrierType
22
- 
23
- struct ImageMemoryBarrierData
24
- {
25
--    char name44;
26
-+    const char *name;
27
- 
28
-     // The Vk layout corresponding to the ImageLayout key.
29
-     VkImageLayout layout;
30
--- 
31
-2.26.2
32
-
33
chromium-93-InkDropHost-crash.patch Deleted
26
 
1
@@ -1,24 +0,0 @@
2
-diff -up chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h.InkDropHost-crash chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h
3
---- chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h.InkDropHost-crash    2021-10-05 16:04:46.313586509 -0400
4
-+++ chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h  2021-10-05 16:05:12.213732558 -0400
5
-@@ -228,6 +228,11 @@ class VIEWS_EXPORT InkDropHost {
6
-   // Used to observe View and inform the InkDrop of host-transform changes.
7
-   ViewLayerTransformObserver host_view_transform_observer_;
8
- 
9
-+  // Declared before |ink_drop_|, because InkDropImpl may call
10
-+  // RemoveInkDropLayer on partly destructed InkDropHost. In
11
-+  // that case |ink_drop_mask_| must be still valid.
12
-+  std::unique_ptr<views::InkDropMask> ink_drop_mask_;
13
-+
14
-   // Should not be accessed directly. Use GetInkDrop() instead.
15
-   std::unique_ptr<InkDrop> ink_drop_;
16
- 
17
-@@ -249,8 +254,6 @@ class VIEWS_EXPORT InkDropHost {
18
-   int ink_drop_small_corner_radius_ = 2;
19
-   int ink_drop_large_corner_radius_ = 4;
20
- 
21
--  std::unique_ptr<views::InkDropMask> ink_drop_mask_;
22
--
23
-   base::RepeatingCallback<std::unique_ptr<InkDrop>()> create_ink_drop_callback_;
24
-   base::RepeatingCallback<std::unique_ptr<InkDropRipple>()>
25
-       create_ink_drop_ripple_callback_;
26
chromium-94-sql-no-assert.patch Deleted
17
 
1
@@ -1,15 +0,0 @@
2
---- a/sql/recover_module/cursor.h
3
-+++ b/sql/recover_module/cursor.h
4
-@@ -62,10 +62,12 @@
5
-   // |sqlite_cursor| must have been returned by VirtualTable::SqliteCursor().
6
-   static inline VirtualCursor* FromSqliteCursor(
7
-       sqlite3_vtab_cursor* sqlite_cursor) {
8
-+#ifndef NDEBUG
9
-     static_assert(std::is_standard_layout<VirtualCursor>::value,
10
-                   "needed for the reinterpret_cast below");
11
-     static_assert(offsetof(VirtualCursor, sqlite_cursor_) == 0,
12
-                   "sqlite_cursor_ must be the first member of the class");
13
-+#endif
14
-     VirtualCursor* result = reinterpret_cast<VirtualCursor*>(sqlite_cursor);
15
-     DCHECK_EQ(sqlite_cursor, &result->sqlite_cursor_);
16
-     return result;
17
chromium-98-EnumTable-crash.patch Deleted
78
 
1
@@ -1,76 +0,0 @@
2
-diff --git a/components/cast_channel/enum_table.h b/components/cast_channel/enum_table.h
3
-index 842553a..89de703 100644
4
---- a/components/cast_channel/enum_table.h
5
-+++ b/components/cast_channel/enum_table.h
6
-@@ -8,6 +8,7 @@
7
- #include <cstdint>
8
- #include <cstring>
9
- #include <ostream>
10
-+#include <vector>
11
- 
12
- #include "base/check_op.h"
13
- #include "base/notreached.h"
14
-@@ -187,7 +188,6 @@ class
15
-   inline constexpr GenericEnumTableEntry(int32_t value);
16
-   inline constexpr GenericEnumTableEntry(int32_t value, base::StringPiece str);
17
- 
18
--  GenericEnumTableEntry(const GenericEnumTableEntry&) = delete;
19
-   GenericEnumTableEntry& operator=(const GenericEnumTableEntry&) = delete;
20
- 
21
-  private:
22
-@@ -253,7 +253,6 @@ class EnumTable {
23
-     constexpr Entry(E value, base::StringPiece str)
24
-         : GenericEnumTableEntry(static_cast<int32_t>(value), str) {}
25
- 
26
--    Entry(const Entry&) = delete;
27
-     Entry& operator=(const Entry&) = delete;
28
-   };
29
- 
30
-@@ -312,15 +311,14 @@ class EnumTable {
31
-     if (is_sorted_) {
32
-       const std::size_t index = static_cast<std::size_t>(value);
33
-       if (ANALYZER_ASSUME_TRUE(index < data_.size())) {
34
--        const auto& entry = data_.begin()index;
35
-+        const auto& entry = data_index;
36
-         if (ANALYZER_ASSUME_TRUE(entry.has_str()))
37
-           return entry.str();
38
-       }
39
-       return absl::nullopt;
40
-     }
41
-     return GenericEnumTableEntry::FindByValue(
42
--        reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
43
--        data_.size(), static_cast<int32_t>(value));
44
-+        &data_0, data_.size(), static_cast<int32_t>(value));
45
-   }
46
- 
47
-   // This overload of GetString is designed for cases where the argument is a
48
-@@ -348,8 +346,7 @@ class EnumTable {
49
-   // enum value directly.
50
-   absl::optional<E> GetEnum(base::StringPiece str) const {
51
-     auto* entry = GenericEnumTableEntry::FindByString(
52
--        reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
53
--        data_.size(), str);
54
-+        &data_0, data_.size(), str);
55
-     return entry ? static_cast<E>(entry->value) : absl::optional<E>();
56
-   }
57
- 
58
-@@ -364,7 +361,7 @@ class EnumTable {
59
-   // Align the data on a cache line boundary.
60
-   alignas(64)
61
- #endif
62
--      std::initializer_list<Entry> data_;
63
-+      const std::vector<Entry> data_;
64
-   bool is_sorted_;
65
- 
66
-   constexpr EnumTable(std::initializer_list<Entry> data, bool is_sorted)
67
-@@ -376,8 +373,8 @@ class EnumTable {
68
- 
69
-     for (std::size_t i = 0; i < data.size(); i++) {
70
-       for (std::size_t j = i + 1; j < data.size(); j++) {
71
--        const Entry& ei = data.begin()i;
72
--        const Entry& ej = data.begin()j;
73
-+        const Entry& ei = datai;
74
-+        const Entry& ej = dataj;
75
-         DCHECK(ei.value != ej.value)
76
-             << "Found duplicate enum values at indices " << i << " and " << j;
77
-         DCHECK(!(ei.has_str() && ej.has_str() && ei.str() == ej.str()))
78
chromium-clang-nomerge.patch Deleted
45
 
1
@@ -1,43 +0,0 @@
2
-Upstream-status: Inapproriate
3
-
4
-Upstream suggests to use Chromium's hermetic clang
5
-instead.
6
-
7
-Signed-off-by: Maksim Sisov <msisov@igalia.com>
8
----
9
-From bde3186ccba169391fb428fcc296b2236ada0010 Mon Sep 17 00:00:00 2001
10
-From: Maksim Sisov <msisov@igalia.com>
11
-Date: Wed, 5 May 2021 15:20:43 +0300
12
-Subject: PATCH nomerge attribute on declaration is only available since
13
- clang 12
14
-
15
-This change fixes builds with older clangs that do not allow
16
-nomerge attributes on declaration. Otherwise, the following error
17
-is produced -
18
-
19
-build error: 'nomerge' attribute cannot be applied to a declaration
20
-
21
-See https://reviews.llvm.org/D92800
22
-
23
-Change-Id: I32e1f7dc9049737d54d8a16de5308aa5aae1ced1
24
----
25
- base/compiler_specific.h | 3 ++-
26
- 1 file changed, 2 insertions(+), 1 deletion(-)
27
-
28
-diff --git a/base/compiler_specific.h b/base/compiler_specific.h
29
-index 6693e9ea33e9..d3b425abe9ca 100644
30
---- a/base/compiler_specific.h
31
-+++ b/base/compiler_specific.h
32
-@@ -340,7 +340,8 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) {
33
- #endif  // defined(__clang_analyzer__)
34
- 
35
- // Use nomerge attribute to disable optimization of merging multiple same calls.
36
--#if defined(__clang__) && HAS_ATTRIBUTE(nomerge)
37
-+#if defined(__clang__) && (__clang_major__ >= 12) && \
38
-+    HAS_ATTRIBUTE(nomerge) && !defined(OS_CHROMEOS)
39
- #define NOMERGE clang::nomerge
40
- #else
41
- #define NOMERGE
42
--- 
43
-2.25.1
44
-
45
chromium-disable-GlobalMediaControlsCastStartStop.patch Added
15
 
1
@@ -0,0 +1,13 @@
2
+Index: chromium-113.0.5672.53/chrome/browser/media/router/media_router_feature.cc
3
+===================================================================
4
+--- chromium-113.0.5672.53.orig/chrome/browser/media/router/media_router_feature.cc
5
++++ chromium-113.0.5672.53/chrome/browser/media/router/media_router_feature.cc
6
+@@ -68,7 +68,7 @@ BASE_FEATURE(kGlobalMediaControlsCastSta
7
+ #else
8
+ BASE_FEATURE(kGlobalMediaControlsCastStartStop,
9
+              "GlobalMediaControlsCastStartStop",
10
+-             base::FEATURE_ENABLED_BY_DEFAULT);
11
++             base::FEATURE_DISABLED_BY_DEFAULT);
12
+ #endif  // BUILDFLAG(IS_CHROMEOS)
13
+ #endif  // BUILDFLAG(IS_ANDROID)
14
+ 
15
chromium-ffmpeg-lp152.patch Deleted
18
 
1
@@ -1,16 +0,0 @@
2
---- a/media/filters/ffmpeg_demuxer.cc
3
-+++ b/media/filters/ffmpeg_demuxer.cc
4
-@@ -50,7 +50,13 @@
5
- #include "media/formats/webm/webm_crypto_helpers.h"
6
- #include "media/media_buildflags.h"
7
- #include "third_party/ffmpeg/ffmpeg_features.h"
8
-+#include <libavcodec/version.h>
9
-+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 78, 100)
10
- #include "third_party/ffmpeg/libavcodec/packet.h"
11
-+#else
12
-+#include "third_party/ffmpeg/libavcodec/avcodec.h"
13
-+#endif
14
-+
15
-
16
- #if BUILDFLAG(ENABLE_PLATFORM_HEVC)
17
- #include "media/filters/ffmpeg_h265_to_annex_b_bitstream_converter.h"
18
chromium-gcc11.patch Deleted
129
 
1
@@ -1,127 +0,0 @@
2
-diff --git a/third_party/angle/src/libANGLE/HandleAllocator.cpp b/third_party/angle/src/libANGLE/HandleAllocator.cpp
3
-index 013f1dfb2..3ce63c192 100644
4
---- a/third_party/angle/src/libANGLE/HandleAllocator.cpp
5
-+++ b/third_party/angle/src/libANGLE/HandleAllocator.cpp
6
-@@ -9,6 +9,7 @@
7
- 
8
- #include "libANGLE/HandleAllocator.h"
9
- 
10
-+#include <limits>
11
- #include <algorithm>
12
- #include <functional>
13
- 
14
-diff --git a/third_party/perfetto/src/trace_processor/containers/string_pool.cc b/third_party/perfetto/src/trace_processor/containers/string_pool.cc
15
-index fd651958f..1e8d0606c 100644
16
---- a/third_party/perfetto/src/trace_processor/containers/string_pool.cc
17
-+++ b/third_party/perfetto/src/trace_processor/containers/string_pool.cc
18
-@@ -14,9 +14,9 @@
19
-  * limitations under the License.
20
-  */
21
- 
22
-+#include <limits>
23
- #include "src/trace_processor/containers/string_pool.h"
24
- 
25
--#include <limits>
26
- 
27
- #include "perfetto/base/logging.h"
28
- #include "perfetto/ext/base/utils.h"
29
-diff --git a/third_party/perfetto/src/trace_processor/db/column.cc b/third_party/perfetto/src/trace_processor/db/column.cc
30
-index 00496b335..0dccfeb8a 100644
31
---- a/third_party/perfetto/src/trace_processor/db/column.cc
32
-+++ b/third_party/perfetto/src/trace_processor/db/column.cc
33
-@@ -14,6 +14,7 @@
34
-  * limitations under the License.
35
-  */
36
- 
37
-+#include <limits>
38
- #include "src/trace_processor/db/column.h"
39
- 
40
- #include "src/trace_processor/db/compare.h"
41
-diff --git a/third_party/perfetto/src/trace_processor/types/variadic.cc b/third_party/perfetto/src/trace_processor/types/variadic.cc
42
-index 837bfeba9..cdd56817d 100644
43
---- a/third_party/perfetto/src/trace_processor/types/variadic.cc
44
-+++ b/third_party/perfetto/src/trace_processor/types/variadic.cc
45
-@@ -14,6 +14,7 @@
46
-  * limitations under the License.
47
-  */
48
- 
49
-+#include <limits>
50
- #include "src/trace_processor/types/variadic.h"
51
- 
52
- namespace perfetto {
53
-diff --git a/ui/accessibility/platform/ax_platform_atk_hyperlink.cc b/ui/accessibility/platform/ax_platform_atk_hyperlink.cc
54
-index be91def6b..73f202356 100644
55
---- a/ui/accessibility/platform/ax_platform_atk_hyperlink.cc
56
-+++ b/ui/accessibility/platform/ax_platform_atk_hyperlink.cc
57
-@@ -245,7 +245,7 @@ static void AXPlatformAtkHyperlinkInit(AXPlatformAtkHyperlink* self, gpointer) {
58
- }
59
- 
60
- GType ax_platform_atk_hyperlink_get_type() {
61
--  static volatile gsize type_volatile = 0;
62
-+  static gsize type_volatile = 0;
63
- 
64
-   AXPlatformNodeAuraLinux::EnsureGTypeInit();
65
- 
66
-diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.cc b/ui/accessibility/platform/ax_platform_node_auralinux.cc
67
-index 04125c6fd..6c64e5d8e 100644
68
---- a/ui/accessibility/platform/ax_platform_node_auralinux.cc
69
-+++ b/ui/accessibility/platform/ax_platform_node_auralinux.cc
70
-@@ -2274,7 +2274,7 @@ void ClassInit(gpointer class_pointer, gpointer /* class_data */) {
71
- GType GetType() {
72
-   AXPlatformNodeAuraLinux::EnsureGTypeInit();
73
- 
74
--  static volatile gsize type_volatile = 0;
75
-+  static gsize type_volatile = 0;
76
-   if (g_once_init_enter(&type_volatile)) {
77
-     static const GTypeInfo type_info = {
78
-         sizeof(AXPlatformNodeAuraLinuxClass),  // class_size
79
-diff --git a/ui/gtk/gtk_key_bindings_handler.cc b/ui/gtk/gtk_key_bindings_handler.cc
80
-index c663a2074..38a342484 100644
81
---- a/ui/gtk/gtk_key_bindings_handler.cc
82
-+++ b/ui/gtk/gtk_key_bindings_handler.cc
83
-@@ -141,7 +141,7 @@ void GtkKeyBindingsHandler::HandlerClassInit(HandlerClass* klass) {
84
- }
85
- 
86
- GType GtkKeyBindingsHandler::HandlerGetType() {
87
--  static volatile gsize type_id_volatile = 0;
88
-+  static gsize type_id_volatile = 0;
89
-   if (g_once_init_enter(&type_id_volatile)) {
90
-     GType type_id = g_type_register_static_simple(
91
-         GTK_TYPE_TEXT_VIEW, g_intern_static_string("GtkKeyBindingsHandler"),
92
-diff --git a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
93
-index c0b5a805b..e6f921926 100644
94
---- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
95
-+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
96
-@@ -2,6 +2,7 @@
97
- // Use of this source code is governed by a BSD-style license that can be
98
- // found in the LICENSE file.
99
- 
100
-+#include <cstddef>
101
- #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
102
- 
103
- #include "base/observer_list.h"
104
-diff --git a/components/bookmarks/browser/bookmark_expanded_state_tracker.cc b/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
105
-index 4ad2afa1f..5c4596e12 100644
106
---- a/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
107
-+++ b/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
108
-@@ -2,6 +2,7 @@
109
- // Use of this source code is governed by a BSD-style license that can be
110
- // found in the LICENSE file.
111
- 
112
-+#include <cstddef>
113
- #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h"
114
- 
115
- #include <stdint.h>
116
-diff --git a/components/bookmarks/browser/base_bookmark_model_observer.cc b/components/bookmarks/browser/base_bookmark_model_observer.cc
117
-index 657a3c96b..ad641a082 100644
118
---- a/components/bookmarks/browser/base_bookmark_model_observer.cc
119
-+++ b/components/bookmarks/browser/base_bookmark_model_observer.cc
120
-@@ -2,6 +2,8 @@
121
- // Use of this source code is governed by a BSD-style license that can be
122
- // found in the LICENSE file.
123
- 
124
-+#include <cstddef>
125
-+
126
- #include "components/bookmarks/browser/base_bookmark_model_observer.h"
127
- 
128
- namespace bookmarks {
129
chromium-icu72-2.patch Added
57
 
1
@@ -0,0 +1,55 @@
2
+From 103e1ff08c00590be56c98aa5647e92c7fa78631 Mon Sep 17 00:00:00 2001
3
+From: Mustafa Emre Acer <meacer@chromium.org>
4
+Date: Fri, 18 Nov 2022 22:52:00 +0000
5
+Subject: PATCH IDN Spoof Checks: Disallow ZWJ and ZWNJ in ICU versions below
6
+ 72
7
+
8
+ICU 72 updates to Unicode 15 which changes the zero width joiner (ZWJ)
9
+and zero width non-joiner (ZWNJ) characters from
10
+Identifier_Status=Allowed to Identifier_Status=Restricted. These
11
+characters are therefore no longer allowed by default in ICU 72.
12
+
13
+crbug/694157 recently implemented Non-Transitional IDNA 2008 behind a
14
+flag. ZWJ and ZWNJ are disallowed in Transitional Mode but allowed in
15
+Non-Transitional Mode, so the test cases with the Non-Transitional Mode
16
+enabled fail in ICU 72.
17
+
18
+This CL removes ZWJ and ZWNJ from the allowed identifiers set for
19
+ICU versions below 72. This effectively disables these characters even
20
+in Non-Transitional Mode.
21
+
22
+This is a temporary fix. Once ICU 72 is rolled out, we should check if
23
+we can use UIDNA_CHECK_CONTEXTJ and explicitly add ZWJ and ZWNJ to
24
+the allowed sets again.
25
+
26
+Bug: 1386204, 694157
27
+Change-Id: I606c43b9d94fea0f2331e5aed530f633bb94517c
28
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4038542
29
+Reviewed-by: Frank Tang <ftang@chromium.org>
30
+Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
31
+Cr-Commit-Position: refs/heads/main@{#1073605}
32
+---
33
+ .../spoof_checks/idn_spoof_checker.cc         |  9 ++++++
34
+ .../idn_spoof_checker_unittest.cc             | 28 +++++++++++--------
35
+ 2 files changed, 25 insertions(+), 12 deletions(-)
36
+
37
+Index: chromium-110.0.5481.38/components/url_formatter/spoof_checks/idn_spoof_checker.cc
38
+===================================================================
39
+--- chromium-110.0.5481.38.orig/components/url_formatter/spoof_checks/idn_spoof_checker.cc
40
++++ chromium-110.0.5481.38/components/url_formatter/spoof_checks/idn_spoof_checker.cc
41
+@@ -722,6 +722,15 @@ void IDNSpoofChecker::SetAllowedUnicodeS
42
+   allowed_set.remove(0x200Du);  // Zero Width Joiner
43
+ #endif
44
+ 
45
++#if U_ICU_VERSION_MAJOR_NUM < 72
46
++  // Unicode 15 changes ZWJ and ZWNJ from allowed to restricted. Restrict them
47
++  // in lower versions too. This only relevant in Non-Transitional Mode as
48
++  // Transitional Mode maps these characters out.
49
++  // TODO(crbug.com/1386204): Remove these after ICU 72 is rolled out.
50
++  allowed_set.remove(0x200Cu);  // Zero Width Non-Joiner
51
++  allowed_set.remove(0x200Du);  // Zero Width Joiner
52
++#endif
53
++
54
+   uspoof_setAllowedUnicodeSet(checker_, &allowed_set, status);
55
+ }
56
+ 
57
chromium-lp151-old-drm.patch Deleted
34
 
1
@@ -1,32 +0,0 @@
2
-Index: chromium-85.0.4183.69/ui/gfx/linux/drm_util_linux.cc
3
-===================================================================
4
---- chromium-85.0.4183.69.orig/ui/gfx/linux/drm_util_linux.cc
5
-+++ chromium-85.0.4183.69/ui/gfx/linux/drm_util_linux.cc
6
-@@ -6,6 +6,27 @@
7
- 
8
- #include <drm_fourcc.h>
9
- 
10
-+#ifndef DRM_FORMAT_P010
11
-+/*
12
-+ * 2 plane YCbCr MSB aligned
13
-+ * index 0 = Y plane, 15:0 Y:x 10:6 little endian
14
-+ * index 1 = Cr:Cb plane, 31:0 Cr:x:Cb:x 10:6:10:6 little endian
15
-+ */
16
-+#define DRM_FORMAT_P010       fourcc_code('P', '0', '1', '0') /* 2x2 subsampled Cr:Cb plane 10 bits per channel */
17
-+/*
18
-+ * 2 plane YCbCr MSB aligned
19
-+ * index 0 = Y plane, 15:0 Y:x 12:4 little endian
20
-+ * index 1 = Cr:Cb plane, 31:0 Cr:x:Cb:x 12:4:12:4 little endian
21
-+ */
22
-+#define DRM_FORMAT_P012       fourcc_code('P', '0', '1', '2') /* 2x2 subsampled Cr:Cb plane 12 bits per channel */
23
-+/*
24
-+ * 2 plane YCbCr MSB aligned
25
-+ * index 0 = Y plane, 15:0 Y little endian
26
-+ * index 1 = Cr:Cb plane, 31:0 Cr:Cb 16:16 little endian
27
-+ */
28
-+#define DRM_FORMAT_P016       fourcc_code('P', '0', '1', '6') /* 2x2 subsampled Cr:Cb plane 16 bits per channel */
29
-+#endif
30
-+
31
- #include "base/notreached.h"
32
- 
33
- namespace ui {
34
chromium-norar.patch Changed
185
 
1
@@ -1,90 +1,105 @@
2
-diff -up chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn
3
---- chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn.nounrar 2021-09-02 08:22:31.280927364 -0400
4
-+++ chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn 2021-09-02 08:23:32.143189935 -0400
5
-@@ -43,39 +43,6 @@ if (safe_browsing_mode == 1) {
6
-     public_deps =  "//components/safe_browsing/core/common/proto:csd_proto" 
7
-   }
8
+diff -up chromium-114.0.5735.35/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar chromium-114.0.5735.35/chrome/browser/safe_browsing/download_protection/file_analyzer.cc
9
+--- chromium-114.0.5735.35/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar   2023-05-18 00:37:47.000000000 +0200
10
++++ chromium-114.0.5735.35/chrome/browser/safe_browsing/download_protection/file_analyzer.cc   2023-05-21 18:12:30.368425080 +0200
11
+@@ -77,8 +77,6 @@ void FileAnalyzer::Start(const base::Fil
12
  
13
--  source_set("rar_analyzer") {
14
--    sources = 
15
+   if (inspection_type == DownloadFileType::ZIP) {
16
+     StartExtractZipFeatures();
17
+-  } else if (inspection_type == DownloadFileType::RAR) {
18
+-    StartExtractRarFeatures();
19
+ #if BUILDFLAG(IS_MAC)
20
+   } else if (inspection_type == DownloadFileType::DMG) {
21
+     StartExtractDmgFeatures();
22
+diff -up chromium-114.0.5735.35/chrome/common/safe_browsing/archive_analyzer.cc.nounrar chromium-114.0.5735.35/chrome/common/safe_browsing/archive_analyzer.cc
23
+--- chromium-114.0.5735.35/chrome/common/safe_browsing/archive_analyzer.cc.nounrar 2023-05-18 00:37:48.000000000 +0200
24
++++ chromium-114.0.5735.35/chrome/common/safe_browsing/archive_analyzer.cc 2023-05-21 18:11:14.870058635 +0200
25
+@@ -8,7 +8,6 @@
26
+ #include "build/build_config.h"
27
+ #include "build/buildflag.h"
28
+ #include "chrome/common/safe_browsing/archive_analyzer_results.h"
29
+-#include "chrome/common/safe_browsing/rar_analyzer.h"
30
+ #include "chrome/common/safe_browsing/seven_zip_analyzer.h"
31
+ #include "chrome/common/safe_browsing/zip_analyzer.h"
32
+ #include "components/safe_browsing/content/common/proto/download_file_types.pb.h"
33
+@@ -23,9 +22,7 @@ namespace safe_browsing {
34
+ // static
35
+ std::unique_ptr<ArchiveAnalyzer> ArchiveAnalyzer::CreateForArchiveType(
36
+     DownloadFileType_InspectionType file_type) {
37
+-  if (file_type == DownloadFileType::RAR) {
38
+-    return std::make_unique<RarAnalyzer>();
39
+-  } else if (file_type == DownloadFileType::ZIP) {
40
++  if (file_type == DownloadFileType::ZIP) {
41
+     return std::make_unique<ZipAnalyzer>();
42
+   } else if (file_type == DownloadFileType::SEVEN_ZIP) {
43
+     return std::make_unique<SevenZipAnalyzer>();
44
+diff -up chromium-114.0.5735.35/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-114.0.5735.35/chrome/common/safe_browsing/BUILD.gn
45
+--- chromium-114.0.5735.35/chrome/common/safe_browsing/BUILD.gn.nounrar    2023-05-18 00:37:48.000000000 +0200
46
++++ chromium-114.0.5735.35/chrome/common/safe_browsing/BUILD.gn    2023-05-21 18:11:14.869058617 +0200
47
+@@ -145,8 +145,6 @@ source_set("safe_browsing") {
48
+       "protobuf_message_log_macros.h",
49
+       "protobuf_message_read_macros.h",
50
+       "protobuf_message_write_macros.h",
51
 -      "rar_analyzer.cc",
52
 -      "rar_analyzer.h",
53
--    
54
--
55
--    deps = 
56
--      ":archive_analyzer_results",
57
--      ":download_type_util",
58
--      "//base",
59
--      "//base:i18n",
60
--      "//components/safe_browsing/content/common:file_type_policies",
61
--      "//components/safe_browsing/core/common",
62
--      "//third_party/unrar:unrar",
63
--    
64
--
65
--    defines = 
66
--      "_FILE_OFFSET_BITS=64",
67
--      "LARGEFILE_SOURCE",
68
--      "RAR_SMP",
69
--      "SILENT",
70
--
71
--      # The following is set to disable certain macro definitions in the unrar
72
--      # source code.
73
--      "CHROMIUM_UNRAR",
74
--
75
--      # Disables exceptions in unrar, replaces them with process termination.
76
--      "UNRAR_NO_EXCEPTIONS",
77
--    
78
--
79
--    public_deps =  "//components/safe_browsing/core/common/proto:csd_proto" 
80
--  }
81
--
82
-   if (is_linux || is_win) {
83
-     source_set("document_analyzer") {
84
-       sources = 
85
-@@ -149,7 +116,6 @@ source_set("safe_browsing") {
86
-       ":archive_analyzer_results",
87
-       ":binary_feature_extractor",
88
-       ":download_type_util",
89
--      ":rar_analyzer",
90
+       "seven_zip_analyzer.cc",
91
+       "seven_zip_analyzer.h",
92
+       "zip_analyzer.cc",
93
+@@ -162,7 +160,6 @@ source_set("safe_browsing") {
94
+       "//components/safe_browsing/content/common:file_type_policies",
95
        "//components/safe_browsing/core/common",
96
+       "//third_party/lzma_sdk/google:seven_zip_reader",
97
+-      "//third_party/unrar:unrar",
98
      
99
  
100
-diff -up chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS.nounrar chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS
101
---- chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS.nounrar 2021-09-02 08:22:31.280927364 -0400
102
-+++ chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS 2021-09-02 08:23:56.092293262 -0400
103
-@@ -2,6 +2,5 @@ include_rules = 
104
-   "+components/safe_browsing/core/common",
105
-   "+third_party/maldoca",
106
-   "+third_party/protobuf",
107
--  "+third_party/unrar",
108
-   "+third_party/zlib",
109
- 
110
-diff -up chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn.nounrar chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn
111
---- chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn.nounrar   2021-08-31 21:39:29.000000000 -0400
112
-+++ chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn   2021-09-02 08:22:31.280927364 -0400
113
-@@ -50,7 +50,6 @@ source_set("file_util") {
114
-     deps += 
115
-       "//chrome/common/safe_browsing",
116
-       "//chrome/common/safe_browsing:archive_analyzer_results",
117
--      "//chrome/common/safe_browsing:rar_analyzer",
118
-     
119
- 
120
-     if (is_linux || is_win) {
121
-diff -up chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc
122
---- chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc.nounrar   2021-08-31 21:39:29.000000000 -0400
123
-+++ chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc   2021-09-02 08:22:31.281927369 -0400
124
-@@ -45,10 +45,14 @@ void SafeArchiveAnalyzer::AnalyzeDmgFile
125
- void SafeArchiveAnalyzer::AnalyzeRarFile(base::File rar_file,
126
-                                          base::File temporary_file,
127
-                                          AnalyzeRarFileCallback callback) {
128
+     if (is_linux) {
129
+diff -up chromium-114.0.5735.35/chrome/common/safe_browsing/zip_analyzer.cc.nounrar chromium-114.0.5735.35/chrome/common/safe_browsing/zip_analyzer.cc
130
+--- chromium-114.0.5735.35/chrome/common/safe_browsing/zip_analyzer.cc.nounrar 2023-05-18 00:37:48.000000000 +0200
131
++++ chromium-114.0.5735.35/chrome/common/safe_browsing/zip_analyzer.cc 2023-05-21 18:11:14.869058617 +0200
132
+@@ -18,7 +18,6 @@
133
+ #include "base/time/time.h"
134
+ #include "build/build_config.h"
135
+ #include "chrome/common/safe_browsing/archive_analyzer_results.h"
136
+-#include "chrome/common/safe_browsing/rar_analyzer.h"
137
+ #include "components/safe_browsing/content/common/file_type_policies.h"
138
+ #include "components/safe_browsing/core/common/features.h"
139
+ #include "components/safe_browsing/core/common/proto/csd.pb.h"
140
+diff -up chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.cc
141
+--- chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.cc.nounrar  2023-05-18 00:37:48.000000000 +0200
142
++++ chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.cc  2023-05-21 18:11:14.870058635 +0200
143
+@@ -71,6 +71,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile
144
+     base::File rar_file,
145
+     mojo::PendingRemote<chrome::mojom::TemporaryFileGetter> temp_file_getter,
146
+     AnalyzeRarFileCallback callback) {
147
 +#if 0
148
    DCHECK(rar_file.IsValid());
149
- 
150
-   safe_browsing::ArchiveAnalyzerResults results;
151
-   safe_browsing::rar_analyzer::AnalyzeRarFile(
152
-       std::move(rar_file), std::move(temporary_file), &results);
153
-   std::move(callback).Run(results);
154
+   temp_file_getter_.Bind(std::move(temp_file_getter));
155
+   callback_ = std::move(callback);
156
+@@ -86,6 +87,9 @@ void SafeArchiveAnalyzer::AnalyzeRarFile
157
+   rar_analyzer_.Analyze(std::move(rar_file), base::FilePath(),
158
+                         std::move(analysis_finished_callback),
159
+                         std::move(temp_file_getter_callback), &results_);
160
 +#else
161
 +  NOTREACHED();
162
 +#endif
163
  }
164
+ 
165
+ void SafeArchiveAnalyzer::AnalyzeSevenZipFile(
166
+diff -up chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.h.nounrar chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.h
167
+--- chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.h.nounrar   2023-05-18 00:37:48.000000000 +0200
168
++++ chromium-114.0.5735.35/chrome/services/file_util/safe_archive_analyzer.h   2023-05-21 18:11:14.870058635 +0200
169
+@@ -6,7 +6,6 @@
170
+ #define CHROME_SERVICES_FILE_UTIL_SAFE_ARCHIVE_ANALYZER_H_
171
+ 
172
+ #include "chrome/common/safe_browsing/archive_analyzer_results.h"
173
+-#include "chrome/common/safe_browsing/rar_analyzer.h"
174
+ #include "chrome/common/safe_browsing/seven_zip_analyzer.h"
175
+ #include "chrome/common/safe_browsing/zip_analyzer.h"
176
+ #include "chrome/services/file_util/public/mojom/safe_archive_analyzer.mojom.h"
177
+@@ -63,7 +62,6 @@ class SafeArchiveAnalyzer : public chrom
178
+   void Timeout();
179
+ 
180
+   safe_browsing::ZipAnalyzer zip_analyzer_;
181
+-  safe_browsing::RarAnalyzer rar_analyzer_;
182
+   safe_browsing::SevenZipAnalyzer seven_zip_analyzer_;
183
+ #if BUILDFLAG(IS_MAC)
184
+   safe_browsing::dmg::DMGAnalyzer dmg_analyzer_;
185
chromium-prop-codecs.patch Changed
16
 
1
@@ -1,9 +1,9 @@
2
-Index: chromium-85.0.4183.69/media/BUILD.gn
3
+Index: chromium-106.0.5249.91/media/BUILD.gn
4
 ===================================================================
5
---- chromium-85.0.4183.69.orig/media/BUILD.gn
6
-+++ chromium-85.0.4183.69/media/BUILD.gn
7
-@@ -44,12 +44,6 @@ buildflag_header("media_buildflags") {
8
-   
9
+--- chromium-106.0.5249.91.orig/media/BUILD.gn
10
++++ chromium-106.0.5249.91/media/BUILD.gn
11
+@@ -64,12 +64,6 @@ buildflag_header("media_buildflags") {
12
+   }
13
  }
14
  
15
 -if (proprietary_codecs && media_use_ffmpeg) {
16
chromium-system-libusb.patch Changed
29
 
1
@@ -1,7 +1,7 @@
2
-Index: chromium-70.0.3538.54/build/linux/unbundle/libusb.gn
3
+Index: chromium-110.0.5481.30/build/linux/unbundle/libusb.gn
4
 ===================================================================
5
 --- /dev/null
6
-+++ chromium-70.0.3538.54/build/linux/unbundle/libusb.gn
7
++++ chromium-110.0.5481.30/build/linux/unbundle/libusb.gn
8
 @@ -0,0 +1,24 @@
9
 +# Copyright 2016 The Chromium Authors. All rights reserved.
10
 +# Use of this source code is governed by a BSD-style license that can be
11
@@ -27,12 +27,12 @@
12
 +  
13
 +  public_configs =  ":system_libusb" 
14
 +}
15
-Index: chromium-70.0.3538.54/build/linux/unbundle/replace_gn_files.py
16
+Index: chromium-110.0.5481.30/build/linux/unbundle/replace_gn_files.py
17
 ===================================================================
18
---- chromium-70.0.3538.54.orig/build/linux/unbundle/replace_gn_files.py
19
-+++ chromium-70.0.3538.54/build/linux/unbundle/replace_gn_files.py
20
-@@ -27,6 +27,7 @@ REPLACEMENTS = {
21
-   'libevent': 'base/third_party/libevent/BUILD.gn',
22
+--- chromium-110.0.5481.30.orig/build/linux/unbundle/replace_gn_files.py
23
++++ chromium-110.0.5481.30/build/linux/unbundle/replace_gn_files.py
24
+@@ -54,6 +54,7 @@ REPLACEMENTS = {
25
+   'libevent': 'third_party/libevent/BUILD.gn',
26
    'libjpeg': 'third_party/libjpeg.gni',
27
    'libpng': 'third_party/libpng/BUILD.gn',
28
 +  'libusb': 'third_party/libusb/BUILD.gn',
29
gcc-enable-lto.patch Changed
79
 
1
@@ -1,8 +1,8 @@
2
-Index: chromium-85.0.4183.69/build/config/BUILDCONFIG.gn
3
+Index: chromium-111.0.5563.64/build/config/BUILDCONFIG.gn
4
 ===================================================================
5
---- chromium-85.0.4183.69.orig/build/config/BUILDCONFIG.gn
6
-+++ chromium-85.0.4183.69/build/config/BUILDCONFIG.gn
7
-@@ -130,6 +130,8 @@ declare_args() {
8
+--- chromium-111.0.5563.64.orig/build/config/BUILDCONFIG.gn
9
++++ chromium-111.0.5563.64/build/config/BUILDCONFIG.gn
10
+@@ -135,6 +135,8 @@ declare_args() {
11
    # set "is_official_build" to true for any build intended to ship to end-users.
12
    is_official_build = false
13
  
14
@@ -11,7 +11,7 @@
15
    # Set to true when compiling with the Clang compiler.
16
    is_clang = current_os != "linux" ||
17
               (current_cpu != "s390x" && current_cpu != "s390" &&
18
-@@ -441,6 +443,12 @@ default_compiler_configs = 
19
+@@ -354,6 +356,12 @@ default_compiler_configs = 
20
    "//build/config/sanitizers:default_sanitizer_flags",
21
  
22
  
23
@@ -24,11 +24,11 @@
24
  if (is_win) {
25
    default_compiler_configs += 
26
      "//build/config/win:default_cfg_compiler",
27
-Index: chromium-85.0.4183.69/build/config/compiler/BUILD.gn
28
+Index: chromium-111.0.5563.64/build/config/compiler/BUILD.gn
29
 ===================================================================
30
---- chromium-85.0.4183.69.orig/build/config/compiler/BUILD.gn
31
-+++ chromium-85.0.4183.69/build/config/compiler/BUILD.gn
32
-@@ -1947,6 +1947,10 @@ if (is_win) {
33
+--- chromium-111.0.5563.64.orig/build/config/compiler/BUILD.gn
34
++++ chromium-111.0.5563.64/build/config/compiler/BUILD.gn
35
+@@ -2079,6 +2079,10 @@ if (is_win) {
36
    }
37
  }
38
  
39
@@ -37,13 +37,13 @@
40
 +}
41
 +
42
  config("default_stack_frames") {
43
-   if (is_posix || is_fuchsia) {
44
+   if (!is_win) {
45
      if (enable_frame_pointers) {
46
-Index: chromium-85.0.4183.69/sandbox/linux/BUILD.gn
47
+Index: chromium-111.0.5563.64/sandbox/linux/BUILD.gn
48
 ===================================================================
49
---- chromium-85.0.4183.69.orig/sandbox/linux/BUILD.gn
50
-+++ chromium-85.0.4183.69/sandbox/linux/BUILD.gn
51
-@@ -250,6 +250,9 @@ component("seccomp_bpf") {
52
+--- chromium-111.0.5563.64.orig/sandbox/linux/BUILD.gn
53
++++ chromium-111.0.5563.64/sandbox/linux/BUILD.gn
54
+@@ -253,6 +253,9 @@ component("seccomp_bpf") {
55
      "//build:chromeos_buildflags",
56
      "//sandbox:sandbox_buildflags",
57
    
58
@@ -53,14 +53,14 @@
59
  
60
    if (is_android) {
61
      sources += 
62
-Index: chromium-96.0.4664.93/base/BUILD.gn
63
-===================================================================     
64
---- a/base/BUILD.gn
65
-+++ b/base/BUILD.gn
66
-@@ -1986,6 +1986,10 @@
67
+Index: chromium-111.0.5563.64/base/BUILD.gn
68
+===================================================================
69
+--- chromium-111.0.5563.64.orig/base/BUILD.gn
70
++++ chromium-111.0.5563.64/base/BUILD.gn
71
+@@ -3748,6 +3748,10 @@ test("base_unittests") {
72
      }
73
    }
74
-
75
+ 
76
 +  if (gcc_lto) {
77
 +    configs -=  "//build/config/compiler:gcc_lto" 
78
 +  }
79
gcc13-fix.patch Added
201
 
1
@@ -0,0 +1,424 @@
2
+Index: chromium-114.0.5735.90/base/check_op.h
3
+===================================================================
4
+--- chromium-114.0.5735.90.orig/base/check_op.h
5
++++ chromium-114.0.5735.90/base/check_op.h
6
+@@ -5,6 +5,7 @@
7
+ #ifndef BASE_CHECK_OP_H_
8
+ #define BASE_CHECK_OP_H_
9
+ 
10
++#include <cstdint>
11
+ #include <cstddef>
12
+ #include <string>
13
+ #include <type_traits>
14
+Index: chromium-114.0.5735.90/base/debug/profiler.h
15
+===================================================================
16
+--- chromium-114.0.5735.90.orig/base/debug/profiler.h
17
++++ chromium-114.0.5735.90/base/debug/profiler.h
18
+@@ -8,6 +8,7 @@
19
+ #include <stddef.h>
20
+ #include <stdint.h>
21
+ 
22
++#include <cstdint>
23
+ #include <string>
24
+ 
25
+ #include "base/base_export.h"
26
+Index: chromium-114.0.5735.90/components/viz/common/view_transition_element_resource_id.h
27
+===================================================================
28
+--- chromium-114.0.5735.90.orig/components/viz/common/view_transition_element_resource_id.h
29
++++ chromium-114.0.5735.90/components/viz/common/view_transition_element_resource_id.h
30
+@@ -7,6 +7,7 @@
31
+ 
32
+ #include <stdint.h>
33
+ 
34
++#include <cstdint>
35
+ #include <string>
36
+ #include <vector>
37
+ 
38
+Index: chromium-114.0.5735.90/gpu/config/gpu_feature_info.h
39
+===================================================================
40
+--- chromium-114.0.5735.90.orig/gpu/config/gpu_feature_info.h
41
++++ chromium-114.0.5735.90/gpu/config/gpu_feature_info.h
42
+@@ -7,6 +7,7 @@
43
+ 
44
+ #include <stdint.h>
45
+ 
46
++#include <cstdint>
47
+ #include <string>
48
+ #include <vector>
49
+ 
50
+Index: chromium-114.0.5735.90/net/base/net_export.h
51
+===================================================================
52
+--- chromium-114.0.5735.90.orig/net/base/net_export.h
53
++++ chromium-114.0.5735.90/net/base/net_export.h
54
+@@ -5,6 +5,8 @@
55
+ #ifndef NET_BASE_NET_EXPORT_H_
56
+ #define NET_BASE_NET_EXPORT_H_
57
+ 
58
++#include <cstdint>
59
++
60
+ // Defines NET_EXPORT so that functionality implemented by the net module can
61
+ // be exported to consumers, and NET_EXPORT_PRIVATE that allows unit tests to
62
+ // access features not intended to be used directly by real consumers.
63
+Index: chromium-114.0.5735.90/sandbox/linux/syscall_broker/broker_file_permission.h
64
+===================================================================
65
+--- chromium-114.0.5735.90.orig/sandbox/linux/syscall_broker/broker_file_permission.h
66
++++ chromium-114.0.5735.90/sandbox/linux/syscall_broker/broker_file_permission.h
67
+@@ -5,6 +5,7 @@
68
+ #ifndef SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
69
+ #define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
70
+ 
71
++#include <cstdint>
72
+ #include <bitset>
73
+ #include <cstdint>
74
+ #include <string>
75
+Index: chromium-114.0.5735.90/third_party/abseil-cpp/absl/strings/string_view.h
76
+===================================================================
77
+--- chromium-114.0.5735.90.orig/third_party/abseil-cpp/absl/strings/string_view.h
78
++++ chromium-114.0.5735.90/third_party/abseil-cpp/absl/strings/string_view.h
79
+@@ -27,6 +27,7 @@
80
+ #ifndef ABSL_STRINGS_STRING_VIEW_H_
81
+ #define ABSL_STRINGS_STRING_VIEW_H_
82
+ 
83
++#include <cstdint>
84
+ #include <algorithm>
85
+ #include <cassert>
86
+ #include <cstddef>
87
+Index: chromium-114.0.5735.90/third_party/angle/include/GLSLANG/ShaderVars.h
88
+===================================================================
89
+--- chromium-114.0.5735.90.orig/third_party/angle/include/GLSLANG/ShaderVars.h
90
++++ chromium-114.0.5735.90/third_party/angle/include/GLSLANG/ShaderVars.h
91
+@@ -10,6 +10,7 @@
92
+ #ifndef GLSLANG_SHADERVARS_H_
93
+ #define GLSLANG_SHADERVARS_H_
94
+ 
95
++#include <cstdint>
96
+ #include <algorithm>
97
+ #include <array>
98
+ #include <cstdint>
99
+Index: chromium-114.0.5735.90/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
100
+===================================================================
101
+--- chromium-114.0.5735.90.orig/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
102
++++ chromium-114.0.5735.90/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
103
+@@ -7,6 +7,7 @@
104
+ 
105
+ #include <stdint.h>
106
+ 
107
++#include <cstdint>
108
+ #include <array>
109
+ #include <cstdint>
110
+ #include <functional>
111
+Index: chromium-114.0.5735.90/third_party/dawn/src/tint/reader/spirv/namer.h
112
+===================================================================
113
+--- chromium-114.0.5735.90.orig/third_party/dawn/src/tint/reader/spirv/namer.h
114
++++ chromium-114.0.5735.90/third_party/dawn/src/tint/reader/spirv/namer.h
115
+@@ -15,6 +15,7 @@
116
+ #ifndef SRC_TINT_READER_SPIRV_NAMER_H_
117
+ #define SRC_TINT_READER_SPIRV_NAMER_H_
118
+ 
119
++#include <cstdint>
120
+ #include <string>
121
+ #include <unordered_map>
122
+ #include <vector>
123
+Index: chromium-114.0.5735.90/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h
124
+===================================================================
125
+--- chromium-114.0.5735.90.orig/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h
126
++++ chromium-114.0.5735.90/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h
127
+@@ -7,6 +7,7 @@
128
+ 
129
+ #include <stdint.h>
130
+ 
131
++#include <cstdint>
132
+ #include <functional>
133
+ #include <map>
134
+ #include <set>
135
+Index: chromium-114.0.5735.90/third_party/swiftshader/src/System/LRUCache.hpp
136
+===================================================================
137
+--- chromium-114.0.5735.90.orig/third_party/swiftshader/src/System/LRUCache.hpp
138
++++ chromium-114.0.5735.90/third_party/swiftshader/src/System/LRUCache.hpp
139
+@@ -17,6 +17,7 @@
140
+ 
141
+ #include "System/Debug.hpp"
142
+ 
143
++#include <cstdint>
144
+ #include <cstddef>
145
+ #include <cstdint>
146
+ #include <functional>
147
+Index: chromium-114.0.5735.90/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
148
+===================================================================
149
+--- chromium-114.0.5735.90.orig/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
150
++++ chromium-114.0.5735.90/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
151
+@@ -2388,6 +2388,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeV
152
+ #ifdef VMA_IMPLEMENTATION
153
+ #undef VMA_IMPLEMENTATION
154
+ 
155
++#include <cstdio>
156
+ #include <cstdint>
157
+ #include <cstdlib>
158
+ #include <cstring>
159
+Index: chromium-114.0.5735.90/ui/gfx/geometry/linear_gradient.h
160
+===================================================================
161
+--- chromium-114.0.5735.90.orig/ui/gfx/geometry/linear_gradient.h
162
++++ chromium-114.0.5735.90/ui/gfx/geometry/linear_gradient.h
163
+@@ -7,6 +7,7 @@
164
+ 
165
+ #include <stdint.h>
166
+ 
167
++#include <cstdint>
168
+ #include <array>
169
+ #include <cstddef>
170
+ #include <cstdint>
171
+Index: chromium-114.0.5735.90/third_party/ruy/src/ruy/profiler/instrumentation.h
172
+===================================================================
173
+--- chromium-114.0.5735.90.orig/third_party/ruy/src/ruy/profiler/instrumentation.h
174
++++ chromium-114.0.5735.90/third_party/ruy/src/ruy/profiler/instrumentation.h
175
+@@ -17,6 +17,7 @@ limitations under the License.
176
+ #define RUY_RUY_PROFILER_INSTRUMENTATION_H_
177
+ 
178
+ #ifdef RUY_PROFILER
179
++#include <string>
180
+ #include <cstdio>
181
+ #include <mutex>
182
+ #include <vector>
183
+Index: chromium-114.0.5735.90/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h
184
+===================================================================
185
+--- chromium-114.0.5735.90.orig/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h
186
++++ chromium-114.0.5735.90/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.h
187
+@@ -31,6 +31,7 @@ limitations under the License.
188
+ #ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_
189
+ #define TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_
190
+ 
191
++#include <cstdint>
192
+ #include <complex>
193
+ #include <deque>
194
+ #include <vector>
195
+Index: chromium-114.0.5735.90/base/containers/flat_map.h
196
+===================================================================
197
+--- chromium-114.0.5735.90.orig/base/containers/flat_map.h
198
++++ chromium-114.0.5735.90/base/containers/flat_map.h
199
+@@ -5,6 +5,7 @@
200
+ #ifndef BASE_CONTAINERS_FLAT_MAP_H_
201
no-location-leap151.patch Deleted
28
 
1
@@ -1,26 +0,0 @@
2
-Index: chromium-86.0.4240.75/base/location.h
3
-===================================================================
4
---- chromium-86.0.4240.75.orig/base/location.h
5
-+++ chromium-86.0.4240.75/base/location.h
6
-@@ -23,7 +23,7 @@ namespace base {
7
- #define SUPPORTS_LOCATION_BUILTINS                                       \
8
-   (__has_builtin(__builtin_FUNCTION) && __has_builtin(__builtin_FILE) && \
9
-    __has_builtin(__builtin_LINE))
10
--#elif defined(COMPILER_GCC) && __GNUC__ >= 7
11
-+#elif defined(COMPILER_GCC) && __GNUC__ >= 10
12
- // GCC has supported these for a long time, but they point at the function
13
- // declaration in the case of default arguments, rather than at the call site.
14
- #define SUPPORTS_LOCATION_BUILTINS 1
15
-Index: chromium-86.0.4240.75/base/location.cc
16
-===================================================================
17
---- chromium-86.0.4240.75.orig/base/location.cc
18
-+++ chromium-86.0.4240.75/base/location.cc
19
-@@ -92,7 +92,7 @@ NOINLINE Location Location::Current(cons
20
- #else
21
- // static
22
- NOINLINE Location Location::Current() {
23
--  return Location(nullptr, RETURN_ADDRESS());
24
-+  return Location("unknown file", RETURN_ADDRESS());
25
- }
26
- #endif
27
- 
28
system-libdrm.patch Changed
64
 
1
@@ -1,7 +1,7 @@
2
-Index: chromium-98.0.4758.80/build/linux/unbundle/libdrm.gn
3
+Index: chromium-114.0.5735.90/build/linux/unbundle/libdrm.gn
4
 ===================================================================
5
---- chromium-98.0.4758.80.orig/build/linux/unbundle/libdrm.gn
6
-+++ chromium-98.0.4758.80/build/linux/unbundle/libdrm.gn
7
+--- chromium-114.0.5735.90.orig/build/linux/unbundle/libdrm.gn
8
++++ chromium-114.0.5735.90/build/linux/unbundle/libdrm.gn
9
 @@ -11,7 +11,10 @@ pkg_config("system_libdrm") {
10
  
11
  shim_headers("libdrm_shim") {
12
@@ -14,38 +14,25 @@
13
  }
14
  
15
  source_set("libdrm") {
16
-Index: chromium-98.0.4758.80/ui/ozone/platform/drm/gpu/crtc_controller.h
17
+Index: chromium-114.0.5735.90/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
18
 ===================================================================
19
---- chromium-98.0.4758.80.orig/ui/ozone/platform/drm/gpu/crtc_controller.h
20
-+++ chromium-98.0.4758.80/ui/ozone/platform/drm/gpu/crtc_controller.h
21
-@@ -11,7 +11,7 @@
22
- 
23
- #include "base/memory/weak_ptr.h"
24
- #include "base/trace_event/traced_value.h"
25
--#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
26
-+#include <drm_fourcc.h>
27
- #include "ui/gfx/swap_result.h"
28
- #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
29
- #include "ui/ozone/platform/drm/gpu/drm_overlay_plane.h"
30
-Index: chromium-98.0.4758.80/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
31
-===================================================================
32
---- chromium-98.0.4758.80.orig/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
33
-+++ chromium-98.0.4758.80/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
34
-@@ -20,7 +20,7 @@
35
- #include "base/trace_event/trace_conversion_helper.h"
36
- #include "base/trace_event/trace_event.h"
37
- #include "base/trace_event/traced_value.h"
38
+--- chromium-114.0.5735.90.orig/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
39
++++ chromium-114.0.5735.90/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
40
+@@ -18,7 +18,7 @@
41
+ #include "base/metrics/histogram_macros.h"
42
+ #include "base/ranges/algorithm.h"
43
+ #include "base/trace_event/typed_macros.h"
44
 -#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
45
 +#include <drm_fourcc.h>
46
+ #include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
47
  #include "third_party/skia/include/core/SkCanvas.h"
48
  #include "third_party/skia/include/core/SkImage.h"
49
- #include "ui/gfx/geometry/point.h"
50
-Index: chromium-98.0.4758.80/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
51
+Index: chromium-114.0.5735.90/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
52
 ===================================================================
53
---- chromium-98.0.4758.80.orig/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
54
-+++ chromium-98.0.4758.80/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
55
-@@ -23,7 +23,7 @@
56
- #include "media/gpu/chromeos/mailbox_video_frame_converter.h"
57
+--- chromium-114.0.5735.90.orig/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
58
++++ chromium-114.0.5735.90/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
59
+@@ -25,7 +25,7 @@
60
+ #include "media/gpu/chromeos/dmabuf_video_frame_pool.h"
61
  #include "testing/gmock/include/gmock/gmock.h"
62
  #include "testing/gtest/include/gtest/gtest.h"
63
 -#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
64
INSTALL.sh Changed
20
 
1
@@ -90,6 +90,18 @@
2
 # Install the ICD json file to point ANGLE to libvk_swiftshader.so
3
 install -m 644 "${OUTPUTDIR}/vk_swiftshader_icd.json" "${STAGEDIR}/${INSTALLDIR}/"
4
 
5
+# QT shim
6
+if  -f "${OUTPUTDIR}/libqt5_shim.so" ; then
7
+  file="libqt5_shim.so"
8
+  buildfile="${OUTPUTDIR}/${file}"
9
+  install -m ${SHLIB_PERMS} "${buildfile}" "${STAGEDIR}/${INSTALLDIR}/${file}"
10
+fi
11
+if  -f "${OUTPUTDIR}/libqt6_shim.so" ; then
12
+  file="libqt6_shim.so"
13
+  buildfile="${OUTPUTDIR}/${file}"
14
+  install -m ${SHLIB_PERMS} "${buildfile}" "${STAGEDIR}/${INSTALLDIR}/${file}"
15
+fi
16
+
17
 # default apps
18
 if  -d "${OUTPUTDIR}/default_apps" ; then
19
     cp -a "${OUTPUTDIR}/default_apps" "${STAGEDIR}/${INSTALLDIR}/"
20
chrome-wrapper Changed
33
 
1
@@ -9,15 +9,20 @@
2
 
3
 HERE="`dirname "$CHROME_WRAPPER"`"
4
 
5
-export CHROME_VERSION_EXTRA="@@CHANNEL@@"
6
+# Always use our versions of ffmpeg libs.
7
+# This also makes RPMs find the compatibly-named library symlinks.
8
+export LD_LIBRARY_PATH="$HERE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
9
+
10
+export CHROME_VERSION_EXTRA="stable"
11
 
12
 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
13
 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
14
 
15
-# This provides a much better experience on Wayland.
16
-#if  "$XDG_SESSION_TYPE" == "wayland" ; then
17
-#  ARGS="--ozone-platform=wayland"
18
-#fi
19
+# Allow root usage
20
+no_sandbox=
21
+if  "`id -u`" == "0" ; then
22
+  no_sandbox=--no-sandbox
23
+fi
24
 
25
 # Sanitize std{in,out,err} because they'll be shared with untrusted child
26
 # processes (http://crbug.com/376567).
27
@@ -26,4 +31,4 @@
28
 exec 2> >(exec cat >&2)
29
 
30
 # Note: exec -a below is a bashism.
31
-exec -a "$0" "$HERE/@@PROGNAME@@" "$ARGS" "$@"
32
+exec -a "$0" "$HERE/chrome" $no_sandbox "$@"
33
chromium-103.0.5060.114.tar.xz -> chromium-114.0.5735.198.tar.xz Changed
chromium-symbolic.svg Changed
52
 
1
@@ -1,545 +1,30 @@
2
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
3
-<svg
4
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
5
-   xmlns:cc="http://creativecommons.org/ns#"
6
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
-   xmlns:svg="http://www.w3.org/2000/svg"
8
-   xmlns="http://www.w3.org/2000/svg"
9
-   xmlns:xlink="http://www.w3.org/1999/xlink"
10
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
-   version="1.1"
13
-   id="svg2"
14
-   xml:space="preserve"
15
-   width="1056"
16
-   height="816"
17
-   viewBox="0 0 1056 816"
18
-   sodipodi:docname="chromium.ai"><metadata
19
-     id="metadata8"><rdf:RDF><cc:Work
20
-         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
21
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
22
-     id="defs6"><clipPath
23
-       clipPathUnits="userSpaceOnUse"
24
-       id="clipPath18"><path
25
-         d="m 332.315,306.427 c 0,-35.346 28.656,-64.001 64,-64.001 v 0 c 35.348,0 64.001,28.655 64.001,64.001 v 0 c 0,35.348 -28.653,64.003 -64.001,64.003 v 0 c -35.344,0 -64,-28.655 -64,-64.003"
26
-         id="path16" /></clipPath><clipPath
27
-       clipPathUnits="userSpaceOnUse"
28
-       id="clipPath26"><path
29
-         d="m 356.24,344.208 h 80.16 v -80.16 h -80.16 z"
30
-         id="path24" /></clipPath><clipPath
31
-       clipPathUnits="userSpaceOnUse"
32
-       id="clipPath30"><path
33
-         d="m 356.24,344.208 h 80.16 v -80.16 h -80.16 z"
34
-         id="path28" /></clipPath><mask
35
-       maskUnits="userSpaceOnUse"
36
-       x="0"
37
-       y="0"
38
-       width="1"
39
-       height="1"
40
-       id="mask32"><g
41
-         id="g42"><g
42
-           clip-path="url(#clipPath30)"
43
-           id="g40"><g
44
-             id="g38"><g
45
-               transform="matrix(80.160004,0,0,80.160004,356.24023,264.048)"
46
-               id="g36"><image
47
-                 width="1"
48
-                 height="1"
49
-                 style="image-rendering:optimizeSpeed"
50
-                 preserveAspectRatio="none"
51
-                 transform="matrix(1,0,0,-1,0,1)"
52