26 changed files with 717 additions and 278 deletions
@ -1,26 +0,0 @@ |
|||
diff -up chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn.gcc-swiftshader-visibility chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn
|
|||
--- chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn.gcc-swiftshader-visibility 2021-02-25 16:31:51.929335783 +0000
|
|||
+++ chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn 2021-02-25 16:31:51.929335783 +0000
|
|||
@@ -42,7 +42,8 @@ config("swiftshader_libEGL_private_confi
|
|||
} else if (is_clang) { |
|||
defines += [ "EGLAPI=__attribute__((visibility(\"protected\"))) __attribute__((no_sanitize(\"function\")))" ] |
|||
} else { |
|||
- defines += [ "EGLAPI= " ]
|
|||
+ cflags += [ "-fvisibility=protected" ]
|
|||
+ defines += [ "EGLAPI=__attribute__((visibility(\"protected\")))" ]
|
|||
} |
|||
} |
|||
} |
|||
diff -up chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn.gcc-swiftshader-visibility chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
|
|||
--- chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn.gcc-swiftshader-visibility 2021-02-25 18:16:28.576901417 +0000
|
|||
+++ chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn 2021-02-25 18:17:50.356567690 +0000
|
|||
@@ -57,7 +57,8 @@ config("swiftshader_libGLESv2_private_co
|
|||
} else if (is_clang) { |
|||
defines += [ "GL_APICALL=__attribute__((visibility(\"protected\"))) __attribute__((no_sanitize(\"function\")))" ] |
|||
} else { |
|||
- defines += [ "GL_APICALL= " ]
|
|||
+ cflags += [ "-fvisibility=protected" ]
|
|||
+ defines += [ "GL_APICALL=__attribute__((visibility(\"protected\")))" ]
|
|||
} |
|||
} |
|||
} |
@ -1,34 +0,0 @@ |
|||
diff -up chromium-89.0.4389.72/third_party/webrtc/audio/utility/channel_mixer.cc.missing-cstring chromium-89.0.4389.72/third_party/webrtc/audio/utility/channel_mixer.cc
|
|||
--- chromium-89.0.4389.72/third_party/webrtc/audio/utility/channel_mixer.cc.missing-cstring 2021-03-02 12:48:16.000000000 -0500
|
|||
+++ chromium-89.0.4389.72/third_party/webrtc/audio/utility/channel_mixer.cc 2021-03-04 13:31:42.894817353 -0500
|
|||
@@ -8,6 +8,8 @@
|
|||
* be found in the AUTHORS file in the root of the source tree. |
|||
*/ |
|||
|
|||
+#include <cstring>
|
|||
+
|
|||
#include "audio/utility/channel_mixer.h" |
|||
|
|||
#include "audio/utility/channel_mixing_matrix.h" |
|||
diff -up chromium-89.0.4389.72/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.missing-cstring chromium-89.0.4389.72/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc
|
|||
--- chromium-89.0.4389.72/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.missing-cstring 2021-03-04 13:31:42.895817359 -0500
|
|||
+++ chromium-89.0.4389.72/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc 2021-03-04 13:45:27.795162431 -0500
|
|||
@@ -23,6 +23,7 @@
|
|||
#include <sys/mman.h> |
|||
#include <sys/syscall.h> |
|||
|
|||
+#include <cstring>
|
|||
#include <memory> |
|||
#include <utility> |
|||
|
|||
diff -up chromium-89.0.4389.72/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-cstring chromium-89.0.4389.72/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc
|
|||
--- chromium-89.0.4389.72/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-cstring 2021-03-02 12:48:17.000000000 -0500
|
|||
+++ chromium-89.0.4389.72/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc 2021-03-04 13:31:42.895817359 -0500
|
|||
@@ -10,6 +10,7 @@
|
|||
|
|||
#include "modules/video_coding/utility/ivf_file_reader.h" |
|||
|
|||
+#include <cstring>
|
|||
#include <string> |
|||
#include <vector> |
|||
|
@ -1,14 +0,0 @@ |
|||
diff -up chromium-90.0.4430.72/chrome/browser/component_updater/registration.cc.widevine-no-download chromium-90.0.4430.72/chrome/browser/component_updater/registration.cc
|
|||
--- chromium-90.0.4430.72/chrome/browser/component_updater/registration.cc.widevine-no-download 2021-04-16 15:49:21.010870111 -0400
|
|||
+++ chromium-90.0.4430.72/chrome/browser/component_updater/registration.cc 2021-04-16 15:57:12.153555913 -0400
|
|||
@@ -96,10 +96,6 @@ void RegisterComponentsForUpdate(bool is
|
|||
// TODO(crbug.com/1069814): Remove after 2021-10-01. |
|||
CleanUpPepperFlashComponent(profile_path); |
|||
|
|||
-#if BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
|
|||
- RegisterWidevineCdmComponent(cus);
|
|||
-#endif // BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
|
|||
-
|
|||
#if BUILDFLAG(ENABLE_NACL) && !defined(OS_ANDROID) |
|||
#if BUILDFLAG(IS_CHROMEOS_ASH) |
|||
// PNaCl on Chrome OS is on rootfs and there is no need to download it. But |
@ -1,17 +0,0 @@ |
|||
GCC: make VRegister::from_code() constexpr on aarch64 |
|||
|
|||
LiftoffRegister::gp() and LiftoffRegister::fp() are constexpr. |
|||
Therefore, VRegister::from_code() needs to be constexpr as well. |
|||
diff --git a/v8/src/codegen/arm64/register-arm64.h b/v8/src/codegen/arm64/register-arm64.h
|
|||
index 1150daf..21007a5 100644
|
|||
--- a/v8/src/codegen/arm64/register-arm64.h
|
|||
+++ b/v8/src/codegen/arm64/register-arm64.h
|
|||
@@ -413,7 +413,7 @@ class VRegister : public CPURegister {
|
|||
static constexpr int kMaxNumRegisters = kNumberOfVRegisters; |
|||
STATIC_ASSERT(kMaxNumRegisters == kDoubleAfterLast); |
|||
|
|||
- static VRegister from_code(int code) {
|
|||
+ static constexpr VRegister from_code(int code) {
|
|||
// Always return a D register. |
|||
return VRegister::Create(code, kDRegSizeInBits); |
|||
} |
@ -1,90 +0,0 @@ |
|||
diff -up chromium-92.0.4515.107/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-92.0.4515.107/chrome/common/safe_browsing/BUILD.gn
|
|||
--- chromium-92.0.4515.107/chrome/common/safe_browsing/BUILD.gn.nounrar 2021-07-19 14:45:10.000000000 -0400
|
|||
+++ chromium-92.0.4515.107/chrome/common/safe_browsing/BUILD.gn 2021-07-26 16:44:53.670761825 -0400
|
|||
@@ -43,39 +43,6 @@ if (safe_browsing_mode == 1) {
|
|||
public_deps = [ "//components/safe_browsing/core:csd_proto" ] |
|||
} |
|||
|
|||
- source_set("rar_analyzer") {
|
|||
- sources = [
|
|||
- "rar_analyzer.cc",
|
|||
- "rar_analyzer.h",
|
|||
- ]
|
|||
-
|
|||
- deps = [
|
|||
- ":archive_analyzer_results",
|
|||
- ":download_type_util",
|
|||
- "//base",
|
|||
- "//base:i18n",
|
|||
- "//components/safe_browsing/core:features",
|
|||
- "//components/safe_browsing/core:file_type_policies",
|
|||
- "//third_party/unrar:unrar",
|
|||
- ]
|
|||
-
|
|||
- defines = [
|
|||
- "_FILE_OFFSET_BITS=64",
|
|||
- "LARGEFILE_SOURCE",
|
|||
- "RAR_SMP",
|
|||
- "SILENT",
|
|||
-
|
|||
- # The following is set to disable certain macro definitions in the unrar
|
|||
- # source code.
|
|||
- "CHROMIUM_UNRAR",
|
|||
-
|
|||
- # Disables exceptions in unrar, replaces them with process termination.
|
|||
- "UNRAR_NO_EXCEPTIONS",
|
|||
- ]
|
|||
-
|
|||
- public_deps = [ "//components/safe_browsing/core:csd_proto" ]
|
|||
- }
|
|||
-
|
|||
if (is_mac) { |
|||
source_set("disk_image_type_sniffer_mac") { |
|||
sources = [ |
|||
@@ -145,7 +112,6 @@ source_set("safe_browsing") {
|
|||
":archive_analyzer_results", |
|||
":binary_feature_extractor", |
|||
":download_type_util", |
|||
- ":rar_analyzer",
|
|||
"//components/safe_browsing/core:features", |
|||
] |
|||
|
|||
diff -up chromium-92.0.4515.107/chrome/common/safe_browsing/DEPS.nounrar chromium-92.0.4515.107/chrome/common/safe_browsing/DEPS
|
|||
--- chromium-92.0.4515.107/chrome/common/safe_browsing/DEPS.nounrar 2021-07-19 14:45:10.000000000 -0400
|
|||
+++ chromium-92.0.4515.107/chrome/common/safe_browsing/DEPS 2021-07-26 16:44:53.670761825 -0400
|
|||
@@ -1,6 +1,5 @@
|
|||
include_rules = [ |
|||
"+components/safe_browsing", |
|||
"+third_party/protobuf", |
|||
- "+third_party/unrar",
|
|||
"+third_party/zlib", |
|||
] |
|||
diff -up chromium-92.0.4515.107/chrome/services/file_util/BUILD.gn.nounrar chromium-92.0.4515.107/chrome/services/file_util/BUILD.gn
|
|||
--- chromium-92.0.4515.107/chrome/services/file_util/BUILD.gn.nounrar 2021-07-26 16:44:53.670761825 -0400
|
|||
+++ chromium-92.0.4515.107/chrome/services/file_util/BUILD.gn 2021-07-26 16:48:21.283924750 -0400
|
|||
@@ -50,7 +50,6 @@ source_set("file_util") {
|
|||
deps += [ |
|||
"//chrome/common/safe_browsing", |
|||
"//chrome/common/safe_browsing:archive_analyzer_results", |
|||
- "//chrome/common/safe_browsing:rar_analyzer",
|
|||
] |
|||
} |
|||
|
|||
diff -up chromium-92.0.4515.107/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-92.0.4515.107/chrome/services/file_util/safe_archive_analyzer.cc
|
|||
--- chromium-92.0.4515.107/chrome/services/file_util/safe_archive_analyzer.cc.nounrar 2021-07-19 14:45:11.000000000 -0400
|
|||
+++ chromium-92.0.4515.107/chrome/services/file_util/safe_archive_analyzer.cc 2021-07-26 16:44:53.670761825 -0400
|
|||
@@ -45,10 +45,14 @@ void SafeArchiveAnalyzer::AnalyzeDmgFile
|
|||
void SafeArchiveAnalyzer::AnalyzeRarFile(base::File rar_file, |
|||
base::File temporary_file, |
|||
AnalyzeRarFileCallback callback) { |
|||
+#if 0
|
|||
DCHECK(rar_file.IsValid()); |
|||
|
|||
safe_browsing::ArchiveAnalyzerResults results; |
|||
safe_browsing::rar_analyzer::AnalyzeRarFile( |
|||
std::move(rar_file), std::move(temporary_file), &results); |
|||
std::move(callback).Run(results); |
|||
+#else
|
|||
+ NOTREACHED();
|
|||
+#endif
|
|||
} |
@ -1,24 +0,0 @@ |
|||
diff -up chromium-92.0.4515.107/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py.py2 chromium-92.0.4515.107/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py
|
|||
--- chromium-92.0.4515.107/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py.py2 2021-07-19 14:47:19.000000000 -0400
|
|||
+++ chromium-92.0.4515.107/third_party/catapult/common/py_vulcanize/py_vulcanize/generate.py 2021-07-26 17:02:23.160750472 -0400
|
|||
@@ -83,7 +83,7 @@ def _MinifyJS(input_js):
|
|||
|
|||
with tempfile.NamedTemporaryFile() as _: |
|||
args = [ |
|||
- 'python',
|
|||
+ 'python3',
|
|||
rjsmin_path |
|||
] |
|||
p = subprocess.Popen(args, |
|||
diff -up chromium-92.0.4515.107/tools/gn/bootstrap/bootstrap.py.py2 chromium-92.0.4515.107/tools/gn/bootstrap/bootstrap.py
|
|||
--- chromium-92.0.4515.107/tools/gn/bootstrap/bootstrap.py.py2 2021-07-19 14:45:43.000000000 -0400
|
|||
+++ chromium-92.0.4515.107/tools/gn/bootstrap/bootstrap.py 2021-07-26 17:02:23.160750472 -0400
|
|||
@@ -130,7 +130,7 @@ def main(argv):
|
|||
if not options.debug: |
|||
gn_gen_args += ' is_debug=false' |
|||
subprocess.check_call([ |
|||
- gn_path, 'gen', out_dir,
|
|||
+ gn_path, 'gen', out_dir, ' --script-executable=/usr/bin/python3',
|
|||
'--args=%s' % gn_gen_args, "--root=" + SRC_ROOT |
|||
]) |
|||
|
@ -0,0 +1,12 @@ |
|||
diff -up chromium-92.0.4515.159/base/allocator/partition_allocator/partition_alloc_config.h.epel8-uffd-off chromium-92.0.4515.159/base/allocator/partition_allocator/partition_alloc_config.h
|
|||
--- chromium-92.0.4515.159/base/allocator/partition_allocator/partition_alloc_config.h.epel8-uffd-off 2021-08-30 09:25:56.878243728 -0400
|
|||
+++ chromium-92.0.4515.159/base/allocator/partition_allocator/partition_alloc_config.h 2021-08-30 09:26:12.489322762 -0400
|
|||
@@ -37,7 +37,7 @@ static_assert(sizeof(void*) != 8, "");
|
|||
#if defined(PA_HAS_64_BITS_POINTERS) && \ |
|||
(defined(OS_LINUX) || defined(OS_ANDROID)) |
|||
// TODO(bikineev): Enable for ChromeOS. |
|||
-#define PA_STARSCAN_UFFD_WRITE_PROTECTOR_SUPPORTED
|
|||
+// #define PA_STARSCAN_UFFD_WRITE_PROTECTOR_SUPPORTED
|
|||
#endif |
|||
|
|||
// POSIX is not only UNIX, e.g. macOS and other OSes. We do use Linux-specific |
@ -0,0 +1,30 @@ |
|||
From 2f5514051210388bfcff605570d33f08cfa7bcaa Mon Sep 17 00:00:00 2001 |
|||
From: Jose Dapena Paz <[email protected]> |
|||
Date: Wed, 21 Jul 2021 08:34:58 +0000 |
|||
Subject: [PATCH] IWYU: usage of unique_ptr requires including <memory> in bluetooth low energy scan filter. |
|||
|
|||
Fix build because of missing include: |
|||
../../device/bluetooth/bluetooth_low_energy_scan_filter.h:57:15: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type |
|||
57 | static std::unique_ptr<BluetoothLowEnergyScanFilter> Create( |
|||
| ^~~~~~~~~~ |
|||
|
|||
Bug: 819294 |
|||
Change-Id: I347953a083f1bcdf744fd86e1a73954c6f86b32e |
|||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041155 |
|||
Reviewed-by: Reilly Grant <[email protected]> |
|||
Commit-Queue: José Dapena Paz <[email protected]> |
|||
Cr-Commit-Position: refs/heads/[email protected]{#903819} |
|||
---
|
|||
|
|||
diff --git a/device/bluetooth/bluetooth_low_energy_scan_filter.h b/device/bluetooth/bluetooth_low_energy_scan_filter.h
|
|||
index a0436c1..7ae606c 100644
|
|||
--- a/device/bluetooth/bluetooth_low_energy_scan_filter.h
|
|||
+++ b/device/bluetooth/bluetooth_low_energy_scan_filter.h
|
|||
@@ -7,6 +7,7 @@
|
|||
|
|||
#include <stddef.h> |
|||
#include <stdint.h> |
|||
+#include <memory>
|
|||
#include <vector> |
|||
|
|||
#include "base/time/time.h" |
@ -0,0 +1,30 @@ |
|||
From 8ae99ee447cf5f0160ea4ae978cdf37f5dcecd1e Mon Sep 17 00:00:00 2001 |
|||
From: Jose Dapena Paz <[email protected]> |
|||
Date: Wed, 21 Jul 2021 08:36:20 +0000 |
|||
Subject: [PATCH] IWYU: missing memory include for unique_ptr usage in class_property.h |
|||
|
|||
Fix GCC build breakage because of missing inclide: |
|||
./../ui/base/class_property.h:120:58: error: ‘std::unique_ptr’ has not been declared |
|||
120 | T* SetProperty(const ClassProperty<T*>* property, std::unique_ptr<T> value); |
|||
| ^~~~~~~~~~ |
|||
|
|||
Bug: 819294 |
|||
Change-Id: I46b921876702b8d44674689bbb5acdc107db21e5 |
|||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041030 |
|||
Reviewed-by: Peter Boström <[email protected]> |
|||
Commit-Queue: José Dapena Paz <[email protected]> |
|||
Cr-Commit-Position: refs/heads/[email protected]{#903820} |
|||
---
|
|||
|
|||
diff --git a/ui/base/class_property.h b/ui/base/class_property.h
|
|||
index f7b2f55..88b4938 100644
|
|||
--- a/ui/base/class_property.h
|
|||
+++ b/ui/base/class_property.h
|
|||
@@ -8,6 +8,7 @@
|
|||
#include <stdint.h> |
|||
|
|||
#include <map> |
|||
+#include <memory>
|
|||
#include <set> |
|||
#include <type_traits> |
|||
|
@ -0,0 +1,47 @@ |
|||
From 7108f83c8ad1bad4072e4f32da3db6d59cf51400 Mon Sep 17 00:00:00 2001 |
|||
From: Ivan Murashov <[email protected]> |
|||
Date: Tue, 20 Jul 2021 13:16:44 +0300 |
|||
Subject: [PATCH] GCC: Remove double declaration of ContextSet |
|||
|
|||
After the CL |
|||
https://chromium-review.googlesource.com/c/angle/angle/+/2965780 |
|||
the build with GCC failed with error: |
|||
/third_party/angle/src/libANGLE/Display.h:325:37: error: declaration of |
|||
'typedef class std::__1::set<gl::Context*> egl::Display::ContextSet' |
|||
changes meaning of 'ContextSet' [-fpermissive] |
|||
/third_party/angle/src/libANGLE/Display.h:75:7: note: 'ContextSet' |
|||
declared here as 'using ContextSet = class std::__1::set<gl::Context*>' |
|||
|
|||
To fix the error the double declaration of ContextSet is removed. |
|||
|
|||
Bug: angleproject:5878, chromium:819294 |
|||
Change-Id: Id9e52061af53ea18dd5d13b960daaa67a14f61ca |
|||
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3038804 |
|||
Reviewed-by: Jamie Madill <[email protected]> |
|||
Commit-Queue: Jamie Madill <[email protected]> |
|||
---
|
|||
|
|||
diff --git a/third_party/angle/CONTRIBUTORS b/third_party/angle/CONTRIBUTORS
|
|||
index 887ddc2..94b1b4d 100644
|
|||
--- a/third_party/angle/CONTRIBUTORS
|
|||
+++ b/third_party/angle/CONTRIBUTORS
|
|||
@@ -154,6 +154,7 @@
|
|||
|
|||
LG Electronics, Inc. |
|||
Jani Hautakangas |
|||
+ Ivan Murashov
|
|||
|
|||
IBM Inc. |
|||
Junliang Yan |
|||
diff --git a/third_party/angle/src/libANGLE/Display.h b/third_party/angle/src/libANGLE/Display.h
|
|||
index f33123b..f0c0910 100644
|
|||
--- a/third_party/angle/src/libANGLE/Display.h
|
|||
+++ b/third_party/angle/src/libANGLE/Display.h
|
|||
@@ -322,7 +322,6 @@
|
|||
|
|||
ConfigSet mConfigSet; |
|||
|
|||
- typedef std::set<gl::Context *> ContextSet;
|
|||
ContextSet mContextSet; |
|||
|
|||
typedef std::set<Image *> ImageSet; |
@ -0,0 +1,24 @@ |
|||
From 409859ad9ba763a4267fb3457df7cd8eb0b7387b Mon Sep 17 00:00:00 2001 |
|||
From: Stephan Hartmann <[email protected]> |
|||
Date: Sun, 25 Jul 2021 19:43:45 +0000 |
|||
Subject: [PATCH] IWYU: add vector for std::vector |
|||
|
|||
---
|
|||
chrome/browser/devtools/devtools_embedder_message_dispatcher.h | 1 + |
|||
1 file changed, 1 insertion(+) |
|||
|
|||
diff --git a/chrome/browser/devtools/devtools_embedder_message_dispatcher.h b/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
|
|||
index 12f8500..4007112 100644
|
|||
--- a/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
|
|||
+++ b/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
|
|||
@@ -8,6 +8,7 @@
|
|||
#include <map> |
|||
#include <memory> |
|||
#include <string> |
|||
+#include <vector>
|
|||
|
|||
#include "base/callback.h" |
|||
#include "ui/gfx/geometry/insets.h" |
|||
--
|
|||
2.31.1 |
|||
|
@ -0,0 +1,49 @@ |
|||
From 802150d7be94e5317b257df545d55ce5b007ae65 Mon Sep 17 00:00:00 2001 |
|||
From: Jose Dapena Paz <[email protected]> |
|||
Date: Tue, 20 Jul 2021 18:50:11 +0000 |
|||
Subject: [PATCH] libstdc++: do not use unique_ptr bool() operator in a constexpr in form_forest.h |
|||
|
|||
Fix build breakage in GCC, because of calling non constexpr functions from a |
|||
constexpr function. In this case, libstdc++ unique_ptr bool() operator is not |
|||
constexpr, so it cannot be used inside CompareByFrameToken. |
|||
|
|||
An example of build breakage caused by this: |
|||
../../components/autofill/content/browser/form_forest.h:157:21: error: call to non-‘constexpr’ function ‘std::unique_ptr<_Tp, _Dp>::operator bool() const [with _Tp = autofill::internal::FormForest::FrameData; _Dp = std::default_delete<autofill::internal::FormForest::FrameData>]’ |
|||
157 | return f && g ? f->frame_token < g->frame_token : f.get() < g.get(); |
|||
| ^ |
|||
|
|||
Bug: 957519 |
|||
Change-Id: I3c49559084fe58886a03520729873b7c4ac89bbf |
|||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041050 |
|||
Commit-Queue: Dominic Battré <[email protected]> |
|||
Reviewed-by: Dominic Battré <[email protected]> |
|||
Cr-Commit-Position: refs/heads/[email protected]{#903595} |
|||
---
|
|||
|
|||
diff --git a/components/autofill/content/browser/form_forest.h b/components/autofill/content/browser/form_forest.h
|
|||
index c89a8eb..f414ab8 100644
|
|||
--- a/components/autofill/content/browser/form_forest.h
|
|||
+++ b/components/autofill/content/browser/form_forest.h
|
|||
@@ -152,16 +152,16 @@
|
|||
// used by FrameData sets. |
|||
struct CompareByFrameToken { |
|||
using is_transparent = void; |
|||
- constexpr bool operator()(const std::unique_ptr<FrameData>& f,
|
|||
- const std::unique_ptr<FrameData>& g) const {
|
|||
+ bool operator()(const std::unique_ptr<FrameData>& f,
|
|||
+ const std::unique_ptr<FrameData>& g) const {
|
|||
return f && g ? f->frame_token < g->frame_token : f.get() < g.get(); |
|||
} |
|||
- constexpr bool operator()(const std::unique_ptr<FrameData>& f,
|
|||
- const LocalFrameToken& g) const {
|
|||
+ bool operator()(const std::unique_ptr<FrameData>& f,
|
|||
+ const LocalFrameToken& g) const {
|
|||
return f ? f->frame_token < g : true; |
|||
} |
|||
- constexpr bool operator()(const LocalFrameToken& f,
|
|||
- const std::unique_ptr<FrameData>& g) const {
|
|||
+ bool operator()(const LocalFrameToken& f,
|
|||
+ const std::unique_ptr<FrameData>& g) const {
|
|||
return g ? f < g->frame_token : false; |
|||
} |
|||
}; |
@ -0,0 +1,30 @@ |
|||
From 17d0e3dfcd0690df0e7b212fedcb95402f16935d Mon Sep 17 00:00:00 2001 |
|||
From: Jose Dapena Paz <[email protected]> |
|||
Date: Fri, 23 Jul 2021 10:17:49 +0000 |
|||
Subject: [PATCH] IWYU: missing include for using std::vector in hash password manager. |
|||
|
|||
Fix build breakage: |
|||
../../components/password_manager/core/browser/hash_password_manager.h:44:8: error: ‘vector’ in namespace ‘std’ does not name a template type |
|||
44 | std::vector<PasswordHashData> RetrieveAllPasswordHashes(); |
|||
| ^~~~~~ |
|||
|
|||
Bug: 819294 |
|||
Change-Id: I8c8a4ec3972eedb87a312c5ec56adf4a21b1b2a2 |
|||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041046 |
|||
Commit-Queue: Vasilii Sukhanov <[email protected]> |
|||
Reviewed-by: Vasilii Sukhanov <[email protected]> |
|||
Cr-Commit-Position: refs/heads/[email protected]{#904696} |
|||
---
|
|||
|
|||
diff --git a/components/password_manager/core/browser/hash_password_manager.h b/components/password_manager/core/browser/hash_password_manager.h
|
|||
index c762c5a..85e656ed 100644
|
|||
--- a/components/password_manager/core/browser/hash_password_manager.h
|
|||
+++ b/components/password_manager/core/browser/hash_password_manager.h
|
|||
@@ -6,6 +6,7 @@
|
|||
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HASH_PASSWORD_MANAGER_H_ |
|||
|
|||
#include <string> |
|||
+#include <vector>
|
|||
|
|||
#include "base/callback.h" |
|||
#include "base/callback_list.h" |
@ -0,0 +1,24 @@ |
|||
From 92fc089d50fc81b9903cd0573c95749e41081474 Mon Sep 17 00:00:00 2001 |
|||
From: Stephan Hartmann <[email protected]> |
|||
Date: Sun, 25 Jul 2021 21:38:26 +0000 |
|||
Subject: [PATCH] IWYU: add cstring for std::strcpy |
|||
|
|||
---
|
|||
extensions/browser/extension_dialog_auto_confirm.cc | 1 + |
|||
1 file changed, 1 insertion(+) |
|||
|
|||
diff --git a/extensions/browser/extension_dialog_auto_confirm.cc b/extensions/browser/extension_dialog_auto_confirm.cc
|
|||
index adb4ac3..be8b161 100644
|
|||
--- a/extensions/browser/extension_dialog_auto_confirm.cc
|
|||
+++ b/extensions/browser/extension_dialog_auto_confirm.cc
|
|||
@@ -4,6 +4,7 @@
|
|||
|
|||
#include "extensions/browser/extension_dialog_auto_confirm.h" |
|||
|
|||
+#include <cstring>
|
|||
#include <utility> |
|||
|
|||
#include "base/check.h" |
|||
--
|
|||
2.31.1 |
|||
|
@ -0,0 +1,117 @@ |
|||
From 7a6289c5ace52cf88f0e19caa5f78b7c15d0e7a6 Mon Sep 17 00:00:00 2001 |
|||
From: Miklos Vajna <[email protected]> |
|||
Date: Wed, 21 Jul 2021 17:42:30 +0000 |
|||
Subject: [PATCH] fxcodec, fxge: fix missing includes with libstdc++ |
|||
|
|||
These missing includes break the build with gcc/libstdc++, they were not |
|||
a problem in practice with clang/libc++. |
|||
|
|||
Change-Id: I40013f97ba7ab06f32aa59f87b04aec06a19478c |
|||
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/83210 |
|||
Commit-Queue: Lei Zhang <[email protected]> |
|||
Reviewed-by: Lei Zhang <[email protected]> |
|||
---
|
|||
|
|||
diff --git a/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp b/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
|
|||
index cea0679..036f250 100644
|
|||
--- a/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
|
|||
+++ b/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
|
|||
@@ -7,6 +7,7 @@
|
|||
#include "core/fxcodec/jpeg/jpegmodule.h" |
|||
|
|||
#include <setjmp.h> |
|||
+#include <string.h>
|
|||
|
|||
#include <memory> |
|||
#include <utility> |
|||
diff --git a/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp b/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
|
|||
index c66985a..9c1122b 100644
|
|||
--- a/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
|
|||
+++ b/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxcodec/jpx/cjpx_decoder.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <algorithm> |
|||
#include <limits> |
|||
#include <utility> |
|||
diff --git a/third_party/pdfium/core/fxge/cfx_cliprgn.cpp b/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
|
|||
index 5369d52..d198852 100644
|
|||
--- a/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/cfx_cliprgn.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <utility> |
|||
|
|||
#include "core/fxge/dib/cfx_dibitmap.h" |
|||
diff --git a/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp b/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
|
|||
index 6f9b420..0f1ffae 100644
|
|||
--- a/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/dib/cfx_bitmapcomposer.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include "core/fxge/cfx_cliprgn.h" |
|||
#include "core/fxge/dib/cfx_dibitmap.h" |
|||
|
|||
diff --git a/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp b/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
|
|||
index f57c00e..45a0a18 100644
|
|||
--- a/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/dib/cfx_bitmapstorer.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <utility> |
|||
|
|||
#include "core/fxge/dib/cfx_dibitmap.h" |
|||
diff --git a/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp b/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
|
|||
index 4ec0ddb..a1de2fb 100644
|
|||
--- a/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/dib/cfx_dibbase.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <algorithm> |
|||
#include <memory> |
|||
#include <utility> |
|||
diff --git a/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp b/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
|
|||
index d7ccf6c..94e8acc 100644
|
|||
--- a/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/dib/cfx_dibitmap.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <limits> |
|||
#include <memory> |
|||
#include <utility> |
|||
diff --git a/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp b/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
|
|||
index e8362d7..c04c6dc 100644
|
|||
--- a/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
|
|||
+++ b/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
|
|||
@@ -6,6 +6,8 @@
|
|||
|
|||
#include "core/fxge/dib/cfx_scanlinecompositor.h" |
|||
|
|||
+#include <string.h>
|
|||
+
|
|||
#include <algorithm> |
|||
|
|||
#include "core/fxge/dib/fx_dib.h" |
@ -0,0 +1,34 @@ |
|||
diff -up chromium-93.0.4577.63/buildtools/linux64/clang-format.clang-format-py3 chromium-93.0.4577.63/buildtools/linux64/clang-format
|
|||
--- chromium-93.0.4577.63/buildtools/linux64/clang-format.clang-format-py3 2021-09-03 04:42:46.736294345 +0000
|
|||
+++ chromium-93.0.4577.63/buildtools/linux64/clang-format 2021-09-03 04:59:55.296512600 +0000
|
|||
@@ -10,9 +10,9 @@ import sys
|
|||
args = sys.argv[1:] |
|||
inputfiles = [a for a in args if not a.startswith('-')] |
|||
|
|||
-contents = ''
|
|||
+contents = b''
|
|||
if '-' in args or not inputfiles: |
|||
- contents = sys.stdin.read()
|
|||
+ contents = sys.stdin.buffer.read()
|
|||
|
|||
# Tarball builds may or may not have depot_tools in $PATH. In the former case, |
|||
# running 'clang-format' will call back into this script infinitely. Strip off |
|||
@@ -34,14 +34,14 @@ try:
|
|||
stdout, stderr = proc.communicate(input=contents) |
|||
# Ignore if clang-format fails. Eg: it may be too old to support C++14. |
|||
if proc.returncode == 0: |
|||
- sys.stdout.write(stdout)
|
|||
- sys.stderr.write(stderr)
|
|||
+ sys.stdout.buffer.write(stdout)
|
|||
+ sys.stderr.buffer.write(stderr)
|
|||
sys.exit(0) |
|||
except OSError: |
|||
# Ignore if clang-format is not installed. |
|||
pass |
|||
|
|||
# If any failure happens, continue with unformatted files. |
|||
-sys.stdout.write(contents)
|
|||
+sys.stdout.buffer.write(contents)
|
|||
for inputfile in inputfiles: |
|||
- sys.stdout.write(open(inputfile).read())
|
|||
+ sys.stdout.buffer.write(open(inputfile).read())
|
@ -1,50 +1,52 @@ |
|||
--- a/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp
|
|||
+++ b/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp
|
|||
diff -up chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp.freetype-2.11 chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp
|
|||
--- chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp.freetype-2.11 2021-09-02 08:49:18.996863417 -0400
|
|||
+++ chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp 2021-09-02 08:56:07.716626801 -0400
|
|||
@@ -712,7 +712,11 @@ void colrv1_draw_paint(SkCanvas* canvas,
|
|||
canvas->drawPaint(colrPaint); |
|||
break; |
|||
} |
|||
+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
|
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORM:
|
|||
case FT_COLR_PAINTFORMAT_TRANSFORM: |
|||
+#else
|
|||
case FT_COLR_PAINTFORMAT_TRANSFORMED: |
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORMED:
|
|||
+#endif
|
|||
case FT_COLR_PAINTFORMAT_TRANSLATE: |
|||
case FT_COLR_PAINTFORMAT_SCALE: |
|||
case FT_COLR_PAINTFORMAT_ROTATE: |
|||
case FT_COLR_PAINTFORMAT_SKEW: |
|||
@@ -759,10 +763,17 @@ void colrv1_transform(SkCanvas* canvas, FT_Face face, FT_COLR_Paint colrv1_paint
|
|||
@@ -760,10 +764,17 @@ void colrv1_transform(SkCanvas* canvas,
|
|||
SkMatrix transform; |
|||
|
|||
switch (colrv1_paint.format) { |
|||
+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
|
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORM: {
|
|||
+ transform = ToSkMatrix(colrv1_paint.u.transform.affine);
|
|||
+ break;
|
|||
+ }
|
|||
+#else
|
|||
case FT_COLR_PAINTFORMAT_TRANSFORMED: { |
|||
transform = ToSkMatrix(colrv1_paint.u.transformed.affine); |
|||
case FT_COLR_PAINTFORMAT_TRANSFORM: { |
|||
transform = ToSkMatrix(colrv1_paint.u.transform.affine); |
|||
break; |
|||
} |
|||
+#else
|
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORMED: {
|
|||
+ transform = ToSkMatrix(colrv1_paint.u.transformed.affine);
|
|||
+ break;
|
|||
+ }
|
|||
+#endif
|
|||
case FT_COLR_PAINTFORMAT_TRANSLATE: { |
|||
transform = SkMatrix::Translate( |
|||
SkFixedToScalar(colrv1_paint.u.translate.dx), |
|||
@@ -880,10 +891,17 @@ bool colrv1_traverse_paint(SkCanvas* canvas,
|
|||
@@ -889,11 +900,18 @@ bool colrv1_traverse_paint(SkCanvas* can
|
|||
traverse_result = colrv1_start_glyph(canvas, palette, face, paint.u.colr_glyph.glyphID, |
|||
FT_COLOR_NO_ROOT_TRANSFORM); |
|||
break; |
|||
+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
|
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORM:
|
|||
+ colrv1_transform(canvas, face, paint);
|
|||
+ traverse_result = colrv1_traverse_paint(canvas, palette, face,
|
|||
+ paint.u.transform.paint, visited_set);
|
|||
+#else
|
|||
case FT_COLR_PAINTFORMAT_TRANSFORMED: |
|||
case FT_COLR_PAINTFORMAT_TRANSFORM: |
|||
colrv1_transform(canvas, face, paint); |
|||
traverse_result = colrv1_traverse_paint(canvas, palette, face, |
|||
paint.u.transformed.paint, visited_set); |
|||
+#endif
|
|||
paint.u.transform.paint, visited_set); |
|||
break; |
|||
+#else
|
|||
+ case FT_COLR_PAINTFORMAT_TRANSFORMED:
|
|||
+ colrv1_transform(canvas, face, paint);
|
|||
+ traverse_result = colrv1_traverse_paint(canvas, palette, face,
|
|||
+ paint.u.transformed.paint, visited_set);
|
|||
+#endif
|
|||
case FT_COLR_PAINTFORMAT_TRANSLATE: |
|||
colrv1_transform(canvas, face, paint); |
|||
traverse_result = colrv1_traverse_paint(canvas, palette, face, |
@ -0,0 +1,45 @@ |
|||
diff -up chromium-93.0.4577.63/net/base/test_data_stream.cc.missing-cstring chromium-93.0.4577.63/net/base/test_data_stream.cc
|
|||
--- chromium-93.0.4577.63/net/base/test_data_stream.cc.missing-cstring 2021-09-03 13:59:54.051831465 +0000
|
|||
+++ chromium-93.0.4577.63/net/base/test_data_stream.cc 2021-09-03 14:00:05.448414041 +0000
|
|||
@@ -5,6 +5,7 @@
|
|||
#include "net/base/test_data_stream.h" |
|||
|
|||
#include <algorithm> |
|||
+#include <cstring>
|
|||
|
|||
namespace net { |
|||
|
|||
diff -up chromium-93.0.4577.63/third_party/webrtc/audio/utility/channel_mixer.cc.missing-cstring chromium-93.0.4577.63/third_party/webrtc/audio/utility/channel_mixer.cc
|
|||
--- chromium-93.0.4577.63/third_party/webrtc/audio/utility/channel_mixer.cc.missing-cstring 2021-09-03 12:29:44.105246962 +0000
|
|||
+++ chromium-93.0.4577.63/third_party/webrtc/audio/utility/channel_mixer.cc 2021-09-03 12:29:44.106246925 +0000
|
|||
@@ -8,6 +8,8 @@
|
|||
* be found in the AUTHORS file in the root of the source tree. |
|||
*/ |
|||
|
|||
+#include <cstring>
|
|||
+
|
|||
#include "audio/utility/channel_mixer.h" |
|||
|
|||
#include "audio/utility/channel_mixing_matrix.h" |
|||
diff -up chromium-93.0.4577.63/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.missing-cstring chromium-93.0.4577.63/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc
|
|||
--- chromium-93.0.4577.63/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.missing-cstring 2021-09-03 12:29:43.585266089 +0000
|
|||
+++ chromium-93.0.4577.63/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc 2021-09-03 12:29:43.585266089 +0000
|
|||
@@ -23,6 +23,7 @@
|
|||
#include <sys/mman.h> |
|||
#include <sys/syscall.h> |
|||
|
|||
+#include <cstring>
|
|||
#include <memory> |
|||
#include <utility> |
|||
|
|||
diff -up chromium-93.0.4577.63/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-cstring chromium-93.0.4577.63/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc
|
|||
--- chromium-93.0.4577.63/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc.missing-cstring 2021-09-03 12:29:43.275277492 +0000
|
|||
+++ chromium-93.0.4577.63/third_party/webrtc/modules/video_coding/utility/ivf_file_reader.cc 2021-09-03 12:29:43.273277565 +0000
|
|||
@@ -10,6 +10,7 @@
|
|||
|
|||
#include "modules/video_coding/utility/ivf_file_reader.h" |
|||
|
|||
+#include <cstring>
|
|||
#include <string> |
|||
#include <vector> |
|||
|
@ -0,0 +1,12 @@ |
|||
diff -up chromium-93.0.4577.63/services/network/test/test_url_loader_factory.h.mojo-header-fix chromium-93.0.4577.63/services/network/test/test_url_loader_factory.h
|
|||
--- chromium-93.0.4577.63/services/network/test/test_url_loader_factory.h.mojo-header-fix 2021-09-03 17:22:17.902206557 +0000
|
|||
+++ chromium-93.0.4577.63/services/network/test/test_url_loader_factory.h 2021-09-03 17:22:31.853693947 +0000
|
|||
@@ -19,7 +19,7 @@
|
|||
#include "services/network/public/cpp/resource_request.h" |
|||
#include "services/network/public/mojom/url_loader.mojom.h" |
|||
#include "services/network/public/mojom/url_loader_factory.mojom.h" |
|||
-#include "services/network/public/mojom/url_response_head.mojom-forward.h"
|
|||
+#include "services/network/public/mojom/url_response_head.mojom.h"
|
|||
|
|||
namespace network { |
|||
class WeakWrapperSharedURLLoaderFactory; |
@ -0,0 +1,90 @@ |
|||
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
|
|||
--- chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn.nounrar 2021-09-02 08:22:31.280927364 -0400
|
|||
+++ chromium-93.0.4577.63/chrome/common/safe_browsing/BUILD.gn 2021-09-02 08:23:32.143189935 -0400
|
|||
@@ -43,39 +43,6 @@ if (safe_browsing_mode == 1) {
|
|||
public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ] |
|||
} |
|||
|
|||
- source_set("rar_analyzer") {
|
|||
- sources = [
|
|||
- "rar_analyzer.cc",
|
|||
- "rar_analyzer.h",
|
|||
- ]
|
|||
-
|
|||
- deps = [
|
|||
- ":archive_analyzer_results",
|
|||
- ":download_type_util",
|
|||
- "//base",
|
|||
- "//base:i18n",
|
|||
- "//components/safe_browsing/content/common:file_type_policies",
|
|||
- "//components/safe_browsing/core/common",
|
|||
- "//third_party/unrar:unrar",
|
|||
- ]
|
|||
-
|
|||
- defines = [
|
|||
- "_FILE_OFFSET_BITS=64",
|
|||
- "LARGEFILE_SOURCE",
|
|||
- "RAR_SMP",
|
|||
- "SILENT",
|
|||
-
|
|||
- # The following is set to disable certain macro definitions in the unrar
|
|||
- # source code.
|
|||
- "CHROMIUM_UNRAR",
|
|||
-
|
|||
- # Disables exceptions in unrar, replaces them with process termination.
|
|||
- "UNRAR_NO_EXCEPTIONS",
|
|||
- ]
|
|||
-
|
|||
- public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ]
|
|||
- }
|
|||
-
|
|||
if (is_mac) { |
|||
source_set("disk_image_type_sniffer_mac") { |
|||
sources = [ |
|||
@@ -149,7 +116,6 @@ source_set("safe_browsing") {
|
|||
":archive_analyzer_results", |
|||
":binary_feature_extractor", |
|||
":download_type_util", |
|||
- ":rar_analyzer",
|
|||
"//components/safe_browsing/core/common", |
|||
] |
|||
|
|||
diff -up chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS.nounrar chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS
|
|||
--- chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS.nounrar 2021-09-02 08:22:31.280927364 -0400
|
|||
+++ chromium-93.0.4577.63/chrome/common/safe_browsing/DEPS 2021-09-02 08:23:56.092293262 -0400
|
|||
@@ -2,6 +2,5 @@ include_rules = [
|
|||
"+components/safe_browsing/content/common", |
|||
"+components/safe_browsing/core/common", |
|||
"+third_party/protobuf", |
|||
- "+third_party/unrar",
|
|||
"+third_party/zlib", |
|||
] |
|||
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
|
|||
--- chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn.nounrar 2021-08-31 21:39:29.000000000 -0400
|
|||
+++ chromium-93.0.4577.63/chrome/services/file_util/BUILD.gn 2021-09-02 08:22:31.280927364 -0400
|
|||
@@ -50,7 +50,6 @@ source_set("file_util") {
|
|||
deps += [ |
|||
"//chrome/common/safe_browsing", |
|||
"//chrome/common/safe_browsing:archive_analyzer_results", |
|||
- "//chrome/common/safe_browsing:rar_analyzer",
|
|||
] |
|||
} |
|||
|
|||
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
|
|||
--- chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc.nounrar 2021-08-31 21:39:29.000000000 -0400
|
|||
+++ chromium-93.0.4577.63/chrome/services/file_util/safe_archive_analyzer.cc 2021-09-02 08:22:31.281927369 -0400
|
|||
@@ -45,10 +45,14 @@ void SafeArchiveAnalyzer::AnalyzeDmgFile
|
|||
void SafeArchiveAnalyzer::AnalyzeRarFile(base::File rar_file, |
|||
base::File temporary_file, |
|||
AnalyzeRarFileCallback callback) { |
|||
+#if 0
|
|||
DCHECK(rar_file.IsValid()); |
|||
|
|||
safe_browsing::ArchiveAnalyzerResults results; |
|||
safe_browsing::rar_analyzer::AnalyzeRarFile( |
|||
std::move(rar_file), std::move(temporary_file), &results); |
|||
std::move(callback).Run(results); |
|||
+#else
|
|||
+ NOTREACHED();
|
|||
+#endif
|
|||
} |
@ -0,0 +1,12 @@ |
|||
diff -up chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py
|
|||
--- chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 2021-08-31 21:40:34.000000000 -0400
|
|||
+++ chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py 2021-09-02 08:26:04.415846917 -0400
|
|||
@@ -130,7 +130,7 @@ def main(argv):
|
|||
if not options.debug: |
|||
gn_gen_args += ' is_debug=false' |
|||
subprocess.check_call([ |
|||
- gn_path, 'gen', out_dir,
|
|||
+ gn_path, 'gen', out_dir, ' --script-executable=/usr/bin/python3',
|
|||
'--args=%s' % gn_gen_args, "--root=" + SRC_ROOT |
|||
]) |
|||
|
@ -0,0 +1,21 @@ |
|||
diff -up chromium-93.0.4577.63/remoting/host/remote_open_url_client.cc.remoting-nodestructor-fix chromium-93.0.4577.63/remoting/host/remote_open_url_client.cc
|
|||
--- chromium-93.0.4577.63/remoting/host/remote_open_url_client.cc.remoting-nodestructor-fix 2021-09-03 17:30:44.162605313 +0000
|
|||
+++ chromium-93.0.4577.63/remoting/host/remote_open_url_client.cc 2021-09-03 17:31:01.017986003 +0000
|
|||
@@ -56,7 +56,7 @@ void ShowMessageDialog(const std::string
|
|||
} |
|||
|
|||
bool IsBrowserValid(const std::string& browser) { |
|||
- static const base::NoDestructor<base::flat_set<std::string>> invalid_browsers(
|
|||
+ static const base::NoDestructor<base::flat_set<std::string>> invalid_browsers{
|
|||
{ |
|||
// This is the chromoting forwarder itself. |
|||
"crd-url-forwarder.desktop", |
|||
@@ -64,7 +64,7 @@ bool IsBrowserValid(const std::string& b
|
|||
// XFCE's forwarder. May potentially launch the chromoting forwarder |
|||
// recursively. |
|||
"xfce4-web-browser.desktop", |
|||
- });
|
|||
+ }};
|
|||
if (browser.empty()) { |
|||
return false; |
|||
} |
@ -0,0 +1,11 @@ |
|||
diff -up chromium-93.0.4577.63/components/cast_channel/enum_table.h.vector-fix chromium-93.0.4577.63/components/cast_channel/enum_table.h
|
|||
--- chromium-93.0.4577.63/components/cast_channel/enum_table.h.vector-fix 2021-09-03 12:23:37.974714814 +0000
|
|||
+++ chromium-93.0.4577.63/components/cast_channel/enum_table.h 2021-09-03 12:23:51.330223540 +0000
|
|||
@@ -8,6 +8,7 @@
|
|||
#include <cstdint> |
|||
#include <cstring> |
|||
#include <ostream> |
|||
+#include <vector>
|
|||
|
|||
#include "base/check_op.h" |
|||
#include "base/macros.h" |
@ -0,0 +1,14 @@ |
|||
diff -up chromium-93.0.4577.63/chrome/browser/component_updater/registration.cc.widevine-no-download chromium-93.0.4577.63/chrome/browser/component_updater/registration.cc
|
|||
--- chromium-93.0.4577.63/chrome/browser/component_updater/registration.cc.widevine-no-download 2021-09-02 08:37:03.910692041 -0400
|
|||
+++ chromium-93.0.4577.63/chrome/browser/component_updater/registration.cc 2021-09-02 08:45:07.446778150 -0400
|
|||
@@ -118,10 +118,6 @@ void RegisterComponentsForUpdate(bool is
|
|||
RegisterMediaFoundationWidevineCdmComponent(cus); |
|||
#endif |
|||
|
|||
-#if BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
|
|||
- RegisterWidevineCdmComponent(cus);
|
|||
-#endif // BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
|
|||
-
|
|||
#if BUILDFLAG(ENABLE_NACL) && !defined(OS_ANDROID) |
|||
#if BUILDFLAG(IS_CHROMEOS_ASH) |
|||
// PNaCl on Chrome OS is on rootfs and there is no need to download it. But |
@ -35,8 +35,7 @@ |
|||
%global __python3 /usr/bin/python3 |
|||
%endif |
|||
|
|||
# This will probably be truely possible with Chromium 93 |
|||
# Right now, we fake it a bit and pull in both python2 and python3 stacks. sorry. |
|||
# This is finally possible with Chromium 93 |
|||
%global build_with_python3 1 |
|||
|
|||
%if 0%{?build_with_python3} |
|||
@ -120,7 +119,7 @@ BuildRequires: libicu-devel >= 5.4 |
|||
|
|||
# Fedora's Python 2 stack is being removed, we use the bundled Python libraries |
|||
# This can be revisited once we upgrade to Python 3 |
|||
%global bundlepylibs 1 |
|||
%global bundlepylibs 0 |
|||
|
|||
# RHEL 7.9 dropped minizip. |
|||
# It exists everywhere else though. |
|||
@ -134,7 +133,7 @@ BuildRequires: libicu-devel >= 5.4 |
|||
%global gtk3 1 |
|||
|
|||
%if 0%{?rhel} == 7 || 0%{?rhel} == 8 |
|||
%global dts_version 10 |
|||
%global dts_version 9 |
|||
|
|||
%global bundleopus 1 |
|||
%global bundlelibusbx 1 |
|||
@ -176,18 +175,18 @@ BuildRequires: libicu-devel >= 5.4 |
|||
#Build with debugging symbols |
|||
%global debug_pkg 0 |
|||
|
|||
%global majorversion 92 |
|||
%global majorversion 93 |
|||
%global revision 1 |
|||
|
|||
# Depot tools revision |
|||
%global depot_tools_revision db5261ff1b9eaff1afd559e57e96330fb12ca0c3 |
|||
%global depot_tools_revision a806594b95a39141fdbf1f359087a44ffb2deaaf |
|||
|
|||
%if %{freeworld} |
|||
Name: ungoogled-chromium%{nsuffix} |
|||
%else |
|||
Name: ungoogled-chromium |
|||
%endif |
|||
Version: %{majorversion}.0.4515.131 |
|||
Version: %{majorversion}.0.4577.63 |
|||
Release: 1%{?dist}.%{revision} |
|||
%if %{?freeworld} |
|||
# chromium-freeworld |
|||
@ -210,7 +209,7 @@ Patch4: chromium-60.0.3112.78-jpeg-nomangle.patch |
|||
# Do not mangle zlib |
|||
Patch5: chromium-77.0.3865.75-no-zlib-mangle.patch |
|||
# Do not use unrar code, it is non-free |
|||
Patch6: chromium-92.0.4515.107-norar.patch |
|||
Patch6: chromium-93.0.4577.63-norar.patch |
|||
# Use Gentoo's Widevine hack |
|||
# https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/files/chromium-widevine-r3.patch |
|||
Patch7: chromium-71.0.3578.98-widevine-r3.patch |
|||
@ -220,9 +219,9 @@ Patch8: chromium-91.0.4472.77-disable-fontconfig-cache-magic.patch |
|||
Patch9: chromium-78.0.3904.70-gcc9-drop-rsp-clobber.patch |
|||
# Try to load widevine from other places |
|||
Patch10: chromium-92.0.4515.107-widevine-other-locations.patch |
|||
# Try to fix version.py for Rawhide |
|||
# Tell bootstrap.py to always use the version of Python we specify |
|||
%if 0%{?build_with_python3} |
|||
Patch11: chromium-92.0.4515.107-py3-bootstrap.patch |
|||
Patch11: chromium-93.0.4577.63-py3-bootstrap.patch |
|||
%else |
|||
Patch11: chromium-92.0.4515.107-py2-bootstrap.patch |
|||
%endif |
|||
@ -238,7 +237,7 @@ Patch55: chromium-78-protobuf-RepeatedPtrField-export.patch |
|||
# ../../third_party/perfetto/include/perfetto/base/task_runner.h:48:55: error: 'uint32_t' has not been declared |
|||
Patch56: chromium-80.0.3987.87-missing-cstdint-header.patch |
|||
# Missing <cstring> (thanks c++17) |
|||
Patch57: chromium-89.0.4389.72-missing-cstring-header.patch |
|||
Patch57: chromium-93.0.4577.63-missing-cstring.patch |
|||
# prepare for using system ffmpeg (clean) |
|||
# http://svnweb.mageia.org/packages/cauldron/chromium-browser-stable/current/SOURCES/chromium-53-ffmpeg-no-deprecation-errors.patch?view=markup |
|||
Patch58: chromium-53-ffmpeg-no-deprecation-errors.patch |
|||
@ -268,19 +267,45 @@ Patch68: chromium-84.0.4147.125-aarch64-clearkeycdm-binutils-workaround.patch |
|||
Patch75: chromium-90.0.4430.72-fstatfix.patch |
|||
# Rawhide (f35) glibc defines SIGSTKSZ as a long instead of a constant |
|||
Patch76: chromium-92.0.4515.107-rawhide-gcc-std-max-fix.patch |
|||
# Fix symbol visibility with gcc on swiftshader's libEGL |
|||
Patch77: chromium-88.0.4324.182-gcc-fix-swiftshader-libEGL-visibility.patch |
|||
# Do not download proprietary widevine module in the background (thanks Debian) |
|||
Patch79: chromium-90.0.4430.72-widevine-no-download.patch |
|||
Patch79: chromium-93.0.4577.63-widevine-no-download.patch |
|||
# Fix crashes with components/cast_* |
|||
# Thanks to Gentoo |
|||
Patch80: chromium-92.0.4515.107-EnumTable-crash.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-92-v8-constexpr.patch |
|||
Patch82: chromium-92-v8-constexpr.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-BluetoothLowEnergyScanFilter-include.patch |
|||
Patch81: chromium-93-BluetoothLowEnergyScanFilter-include.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-ClassProperty-include.patch |
|||
Patch82: chromium-93-ClassProperty-include.patch |
|||
# Fixes for python3 |
|||
Patch83: chromium-92.0.4515.107-py3-fixes.patch |
|||
# Fix build with Freetype 2.11 |
|||
Patch84: chromium-freetype-2.11.patch |
|||
# Support older freetype than 2.11 (for epel8) |
|||
Patch84: chromium-93.0.4577.63-freetype-2.11.patch |
|||
# Clean up clang-format for python3 |
|||
# thanks to Jon Nettleton |
|||
Patch86: chromium-93.0.4577.63-clang-format.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-ContextSet-permissive.patch |
|||
Patch87: chromium-93-ContextSet-permissive.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-DevToolsEmbedderMessageDispatcher-include.patch |
|||
Patch88: chromium-93-DevToolsEmbedderMessageDispatcher-include.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-FormForest-constexpr.patch |
|||
Patch89: chromium-93-FormForest-constexpr.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-HashPasswordManager-include.patch |
|||
Patch90: chromium-93-HashPasswordManager-include.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-pdfium-include.patch |
|||
Patch91: chromium-93-pdfium-include.patch |
|||
# https://github.com/stha09/chromium-patches/blob/master/chromium-93-ScopedTestDialogAutoConfirm-include.patch |
|||
Patch92: chromium-93-ScopedTestDialogAutoConfirm-include.patch |
|||
# In file included from ../../components/cast_channel/enum_table.cc:5: |
|||
# ../../components/cast_channel/enum_table.h:359:18: error: 'vector' in namespace 'std' does not name a template type |
|||
# 359 | const std::vector<Entry> data_; |
|||
# | ^~~~~~ |
|||
# ../../components/cast_channel/enum_table.h:18:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? |
|||
Patch93: chromium-93.0.4577.63-vector-fix.patch |
|||
# Fix NoDestructor issue with gcc |
|||
Patch94: chromium-93.0.4577.63-remoting-nodestructor-fix.patch |
|||
# include full UrlResponseHead header |
|||
Patch95: chromium-93.0.4577.63-mojo-header-fix.patch |
|||
|
|||
|
|||
# Use lstdc++ on EPEL7 only |
|||
Patch101: chromium-75.0.3770.100-epel7-stdc++.patch |
|||
@ -307,6 +332,8 @@ Patch109: chromium-90.0.4430.93-epel7-erase-fix.patch |
|||
# Again, not sure how epel8 is the only one to hit this... |
|||
# AARCH64 neon symbols need to be prefixed too to prevent multiple definition issue at linktime |
|||
Patch110: chromium-90.0.4430.93-epel8-aarch64-libpng16-symbol-prefixes.patch |
|||
# The implementation of linux/userfaultfd.h in EL-8 is too old to support what Chromium wants to do. Turn off the relevant chromium code. |
|||
Patch111: chromium-92.0.4515.159-epel8-uffd-off.patch |
|||
|
|||
|
|||
# VAAPI |
|||
@ -370,7 +397,7 @@ Source20: https://www.x.org/releases/individual/proto/xcb-proto-1.14.tar.xz |
|||
Source21: %{name}.appdata.xml |
|||
|
|||
# ungoogled-chromium source |
|||
%global ungoogled_chromium_revision 92.0.4515.131-1 |
|||
%global ungoogled_chromium_revision 93.0.4577.63-1 |
|||
Source300: https://github.com/Eloston/ungoogled-chromium/archive/%{ungoogled_chromium_revision}/ungoogled-chromium-%{ungoogled_chromium_revision}.tar.gz |
|||
|
|||
# We can assume gcc and binutils. |
|||
@ -446,6 +473,8 @@ BuildRequires: libstdc++-devel, openssl-devel |
|||
# Fedora tries to use system libs whenever it can. |
|||
BuildRequires: bzip2-devel |
|||
BuildRequires: dbus-glib-devel |
|||
# For eu-strip |
|||
BuildRequires: elfutils |
|||
BuildRequires: elfutils-libelf-devel |
|||
BuildRequires: flac-devel |
|||
%if 0%{?bundlefreetype} |
|||
@ -512,25 +541,26 @@ BuildRequires: pkgconfig(gtk+-3.0) |
|||
%else |
|||
BuildRequires: pkgconfig(gtk+-2.0) |
|||
%endif |
|||
# BuildRequires: %{chromium_pybin} |
|||
# %%if ! %%{build_with_python3} |
|||
BuildRequires: %{chromium_pybin} |
|||
%if ! %{build_with_python3} |
|||
%if 0%{?fedora} >= 32 |
|||
BuildRequires: python2.7 |
|||
%else |
|||
BuildRequires: python2 |
|||
BuildRequires: python2-devel |
|||
%endif |
|||
# %%else |
|||
%else |
|||
BuildRequires: python3 |
|||
BuildRequires: python3-devel |
|||
# %%endif |
|||
%endif |
|||
|
|||
# %%if 0%{?build_with_python3} |
|||
%if 0%{?build_with_python3} |
|||
%if 0%{?bundlepylibs} |
|||
# Using bundled bits, do nothing. |
|||
%else |
|||
%if 0%{?fedora} |
|||
BuildRequires: python3-beautifulsoup4 |
|||
# BuildRequires: python2-beautifulsoup |
|||
BuildRequires: python3-html5lib |
|||
BuildRequires: python3-markupsafe |
|||
BuildRequires: python3-ply |
|||
@ -543,7 +573,7 @@ BuildRequires: python-ply |
|||
%endif |
|||
BuildRequires: python3-simplejson |
|||
%endif |
|||
#%%else |
|||
%else |
|||
%if 0%{?bundlepylibs} |
|||
# Using bundled bits, do nothing. |
|||
%else |
|||
@ -562,7 +592,7 @@ BuildRequires: python-ply |
|||
%endif |
|||
BuildRequires: python2-simplejson |
|||
%endif |
|||
# %%endif |
|||
%endif |
|||
|
|||
|
|||
%if 0%{?bundlere2} |
|||
@ -761,12 +791,22 @@ ln -s depot_tools-%{depot_tools_revision} ../depot_tools |
|||
%if 0%{?fedora} >= 35 |
|||
%patch76 -p1 -b .sigstkszfix |
|||
%endif |
|||
%patch77 -p1 -b .gcc-swiftshader-visibility |
|||
%patch79 -p1 -b .widevine-no-download |
|||
%patch80 -p1 -b .EnumTable-crash |
|||
%patch82 -p1 -b .v8-constexpr |
|||
%patch81 -p1 -b .BluetoothLowEnergyScanFilter-include |
|||
%patch82 -p1 -b .ClassProperty-include |
|||
%patch83 -p1 -b .py3fixes |
|||
%patch84 -p1 -b .freetype-2.11 |
|||
%patch86 -p1 -b .clang-format-py3 |
|||
%patch87 -p1 -b .ContextSet-permissive |
|||
%patch88 -p1 -b .DevToolsEmbedderMessageDispatcher-include |
|||
%patch89 -p1 -b .FormForest-constexpr |
|||
%patch90 -p1 -b .HashPasswordManager-include |
|||
%patch91 -p1 -b .pdfium-include |
|||
%patch92 -p1 -b .ScopedTestDialogAutoConfirm-include |
|||
%patch93 -p1 -b .vector-fix |
|||
%patch94 -p1 -b .remoting-nodestructor-fix |
|||
%patch95 -p1 -b .mojo-header-fix |
|||
|
|||
|
|||
# EPEL specific patches |
|||
@ -782,6 +822,7 @@ ln -s depot_tools-%{depot_tools_revision} ../depot_tools |
|||
%if 0%{?rhel} == 8 |
|||
# %%patch107 -p1 -b .el8-arm-incompatible-ints |
|||
%patch110 -p1 -b .el8-aarch64-libpng16-symbol-prefixes |
|||
%patch111 -p1 -b .el8-uffd-off |
|||
%endif |
|||
|
|||
# Feature specific patches |
|||
@ -797,9 +838,9 @@ ln -s depot_tools-%{depot_tools_revision} ../depot_tools |
|||
%patch300 -p1 -b .disblegnomekeyring |
|||
|
|||
%patch400 -p1 -b .gcc11 |
|||
%if 0%{?rhel} >= 7 |
|||
%patch401 -p1 -b .partition-malloc |
|||
%endif |
|||
#%if 0%{?rhel} >= 7 |
|||
#%patch401 -p1 -b .partition-malloc |
|||
#%endif |
|||
|
|||
# RPM Fusion patches [free/chromium-freeworld]: |
|||
%patch503 -p1 -b .manpage |
|||
@ -934,9 +975,9 @@ UNGOOGLED_CHROMIUM_GN_DEFINES+=' use_vaapi=false' |
|||
UNGOOGLED_CHROMIUM_GN_DEFINES+=' rtc_use_pipewire=true rtc_link_pipewire=true' |
|||
%endif |
|||
# CentOS kernel header doesn't have uffdio_writeprotect, needs more info |
|||
%if 0%{?rhel} >= 7 |
|||
UNGOOGLED_CHROMIUM_GN_DEFINES+=' use_partition_alloc=false' |
|||
%endif |
|||
#%if 0%{?rhel} >= 7 |
|||
#UNGOOGLED_CHROMIUM_GN_DEFINES+=' use_partition_alloc=false' |
|||
#%endif |
|||
UNGOOGLED_CHROMIUM_GN_DEFINES+=' chrome_pgo_phase=0 enable_js_type_check=false enable_mse_mpeg2ts_stream_parser=true enable_nacl_nonsfi=false enable_one_click_signin=false enable_reading_list=false enable_remoting=false enable_reporting=false enable_service_discovery=false safe_browsing_mode=0' |
|||
export UNGOOGLED_CHROMIUM_GN_DEFINES |
|||
|
|||
@ -982,7 +1023,6 @@ build/linux/unbundle/remove_bundled_libraries.py \ |
|||
'third_party/angle/src/common/third_party/base' \ |
|||
'third_party/angle/src/common/third_party/smhasher' \ |
|||
'third_party/angle/src/common/third_party/xxhash' \ |
|||
'third_party/angle/src/third_party/compiler' \ |
|||
'third_party/angle/src/third_party/libXNVCtrl' \ |
|||
'third_party/angle/src/third_party/trace_event' \ |
|||
'third_party/angle/src/third_party/volk' \ |
|||
@ -1021,6 +1061,7 @@ build/linux/unbundle/remove_bundled_libraries.py \ |
|||
'third_party/dav1d' \ |
|||
'third_party/dawn' \ |
|||
'third_party/dawn/third_party/khronos' \ |
|||
'third_party/dawn/third_party/tint' \ |
|||
'third_party/depot_tools' \ |
|||
'third_party/devscripts' \ |
|||
'third_party/devtools-frontend' \ |
|||
@ -1106,15 +1147,14 @@ build/linux/unbundle/remove_bundled_libraries.py \ |
|||
'third_party/lss' \ |
|||
'third_party/lzma_sdk' \ |
|||
'third_party/mako' \ |
|||
%if 0%{?bundlepylibs} |
|||
'third_party/markupsafe' \ |
|||
%endif |
|||
'third_party/mesa' \ |
|||
'third_party/metrics_proto' \ |
|||
'third_party/minigbm' \ |
|||
'third_party/modp_b64' \ |
|||
'third_party/nasm' \ |
|||
'third_party/nearby' \ |
|||
'third_party/neon_2_sse' \ |
|||
'third_party/node' \ |
|||
'third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2' \ |
|||
'third_party/one_euro_filter' \ |
|||
@ -1209,7 +1249,6 @@ build/linux/unbundle/remove_bundled_libraries.py \ |
|||
'third_party/zlib' \ |
|||
'third_party/zlib/google' \ |
|||
'tools/gn/src/base/third_party/icu' \ |
|||
'tools/grit/third_party/six' \ |
|||
'url/third_party/mozilla' \ |
|||
'v8/src/third_party/siphash' \ |
|||
'v8/src/third_party/utf8-decoder' \ |
|||
@ -1218,17 +1257,6 @@ build/linux/unbundle/remove_bundled_libraries.py \ |
|||
'v8/third_party/inspector_protocol' \ |
|||
--do-remove |
|||
|
|||
%if ! 0%{?bundlepylibs} |
|||
# Look, I don't know. This package is spit and chewing gum. Sorry. |
|||
rm -rf third_party/markupsafe |
|||
%if 0%{?build_with_python3} |
|||
ln -s %{python3_sitearch}/markupsafe third_party/markupsafe |
|||
%else |
|||
ln -s %{python2_sitearch}/markupsafe third_party/markupsafe |
|||
%endif |
|||
# We should look on removing other python packages as well i.e. ply |
|||
%endif |
|||
|
|||
export PATH=$PATH:%{_builddir}/depot_tools |
|||
|
|||
build/linux/unbundle/replace_gn_files.py --system-libraries \ |
|||
@ -1300,6 +1328,11 @@ sed -i '/aarch64)/ a \ exec "/usr/bin/ninja-build" "[email protected]";;\' ../depot_tool |
|||
%endif |
|||
sed -i 's|exec "${THIS_DIR}/ninja-linux${LONG_BIT}"|exec "/usr/bin/ninja-build"|g' ../depot_tools/ninja |
|||
|
|||
# Get rid of the pre-built eu-strip binary, it is x86_64 and of mysterious origin |
|||
rm -rf buildtools/third_party/eu-strip/bin/eu-strip |
|||
# Replace it with a symlink to the Fedora copy |
|||
ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip |
|||
|
|||
%if 0%{?rhel} == 7 |
|||
. /opt/rh/devtoolset-%{dts_version}/enable |
|||
%endif |
|||
@ -1363,7 +1396,7 @@ tar xf %{SOURCE20} |
|||
%endif |
|||
|
|||
# export PYTHONPATH="../../third_party/pyjson5/src:../../third_party/catapult/third_party/google-endpoints:../../xcb-proto-1.14" |
|||
export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-1.14" |
|||
export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-1.14:../../third_party/catapult/third_party/html5lib-1.1" |
|||
|
|||
echo |
|||
# Now do the full browser |
|||
@ -1421,6 +1454,7 @@ rm -rf %{buildroot} |
|||
%endif |
|||
cp -a chrome %{buildroot}%{chromium_path}/%{chromium_browser_channel} |
|||
cp -a chrome_sandbox %{buildroot}%{chromium_path}/chrome-sandbox |
|||
cp -a crashpad_handler %{buildroot}%{chromium_path}/crashpad_handler |
|||
cp -a ../../chrome/app/resources/manpage.1.in %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 |
|||
sed -i "s|@@[email protected]@|%{chromium_browser_channel}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 |
|||
sed -i "s|@@[email protected]@|%{chromium_menu_name}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 |
|||
@ -1511,6 +1545,7 @@ fi |
|||
%dir %{chromium_path} |
|||
%{chromium_path}/*.bin |
|||
%{chromium_path}/chrome_*.pak |
|||
%{chromium_path}/crashpad_handler |
|||
%{chromium_path}/resources.pak |
|||
%{chromium_path}/icudtl.dat |
|||
%{chromium_path}/%{chromium_browser_channel} |
|||
@ -1602,6 +1637,9 @@ fi |
|||
%endif |
|||
|
|||
%changelog |
|||
* Mon Sep 4 2021 wchen342 <[email protected]> - 93.0.4577.63-1 |
|||
- update Chromium to 93.0.4577.63 |
|||
|
|||
* Mon Aug 9 2021 wchen342 <[email protected]> - 92.0.4515.131-1 |
|||
- update Chromium to 92.0.4515.131 |
|||
|
|||
|
Loading…
Reference in new issue