update to 140.0.7339.5
This commit is contained in:
@@ -120,6 +120,13 @@ if [ -f "${OUTPUTDIR}/libqt6_shim.so" ]; then
|
||||
install -m ${SHLIB_PERMS} "${buildfile}" "${STAGEDIR}/${INSTALLDIR}/${file}"
|
||||
fi
|
||||
|
||||
# FFMPEG (if using the bundled one)
|
||||
if [ -f "${OUTPUTDIR}/libffmpeg.so" ]; then
|
||||
file="libffmpeg.so"
|
||||
buildfile="${OUTPUTDIR}/${file}"
|
||||
install -m ${SHLIB_PERMS} "${buildfile}" "${STAGEDIR}/${INSTALLDIR}/${file}"
|
||||
fi
|
||||
|
||||
# default apps
|
||||
if [ -d "${OUTPUTDIR}/default_apps" ]; then
|
||||
cp -a "${OUTPUTDIR}/default_apps" "${STAGEDIR}/${INSTALLDIR}/"
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
Index: chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn
|
||||
===================================================================
|
||||
--- chromium-123.0.6312.46.orig/components/autofill/core/browser/BUILD.gn
|
||||
+++ chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn
|
||||
@@ -64,6 +64,11 @@
|
||||
--- chromium-140.0.7327.6/components/autofill/core/browser/BUILD.gn 2025/08/01 09:33:04 1.1
|
||||
+++ chromium-140.0.7327.6/components/autofill/core/browser/BUILD.gn 2025/08/01 09:34:47
|
||||
@@ -75,6 +75,11 @@
|
||||
}
|
||||
|
||||
static_library("browser") {
|
||||
@@ -12,5 +10,5 @@ Index: chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn
|
||||
+ ]
|
||||
+ }
|
||||
sources = [
|
||||
"autofill_browser_util.cc",
|
||||
"autofill_browser_util.h",
|
||||
"autofill_ai_form_rationalization.cc",
|
||||
"autofill_ai_form_rationalization.h",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- chromium-138.0.7191.0/build/config/compiler/BUILD.gn 2025/05/26 08:54:48 1.1
|
||||
+++ chromium-138.0.7191.0/build/config/compiler/BUILD.gn 2025/05/26 08:56:08
|
||||
@@ -310,9 +310,7 @@
|
||||
--- chromium-140.0.7259.2/build/config/compiler/BUILD.gn 2025/06/27 14:34:16 1.1
|
||||
+++ chromium-140.0.7259.2/build/config/compiler/BUILD.gn 2025/06/27 14:36:19
|
||||
@@ -312,9 +312,7 @@
|
||||
|
||||
configs += [
|
||||
# See the definitions below.
|
||||
@@ -10,11 +10,11 @@
|
||||
":compiler_codegen",
|
||||
":compiler_deterministic",
|
||||
":clang_warning_suppression",
|
||||
@@ -581,63 +579,6 @@
|
||||
@@ -603,66 +603,6 @@
|
||||
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
|
||||
}
|
||||
|
||||
- if (is_clang && !is_nacl) {
|
||||
- if (is_clang) {
|
||||
- cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
|
||||
- if (save_reproducers_on_lld_crash && use_lld) {
|
||||
- ldflags += [
|
||||
@@ -65,7 +65,10 @@
|
||||
- # Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF
|
||||
- # (excluding toolchains that use an older version of LLVM).
|
||||
- # TODO(crbug.com/376278218): This causes segfault on Linux ARM builds.
|
||||
- # It also causes segfault on Linux s390x:
|
||||
- # https://github.com/llvm/llvm-project/issues/149511
|
||||
- if (is_linux && use_lld && !llvm_android_mainline && current_cpu != "arm" &&
|
||||
- current_cpu != "s390x" &&
|
||||
- default_toolchain != "//build/toolchain/cros:target") {
|
||||
- cflags += [ "-Wa,--crel,--allow-experimental-crel" ]
|
||||
- }
|
||||
@@ -73,8 +76,8 @@
|
||||
-
|
||||
# C11/C++11 compiler flags setup.
|
||||
# ---------------------------
|
||||
if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
|
||||
@@ -1596,52 +1537,6 @@
|
||||
if (is_linux || is_chromeos || is_android || current_os == "aix") {
|
||||
@@ -1598,43 +1539,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,26 +88,17 @@
|
||||
- # different build directory like "out/feature_a" and "out/feature_b" if
|
||||
- # we build same files with same compile flag.
|
||||
- # Other paths are already given in relative, no need to normalize them.
|
||||
- if (is_nacl) {
|
||||
- # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
|
||||
- cflags += [
|
||||
- "-Xclang",
|
||||
- "-fdebug-compilation-dir",
|
||||
- "-Xclang",
|
||||
- ".",
|
||||
- ]
|
||||
- } else {
|
||||
- # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
|
||||
- # and -fcoverage-compilation-dir=.
|
||||
- cflags += [ "-ffile-compilation-dir=." ]
|
||||
-
|
||||
- # Convert absolute paths to relative paths. Expands to, for example:
|
||||
- # -file-prefix-map /path/to/chromium/src=../..
|
||||
- swiftflags += [
|
||||
- "-file-prefix-map",
|
||||
- rebase_path("//.", "") + "=" + rebase_path("//.", root_build_dir),
|
||||
- ]
|
||||
- }
|
||||
- # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
|
||||
- # and -fcoverage-compilation-dir=.
|
||||
- cflags += [ "-ffile-compilation-dir=." ]
|
||||
-
|
||||
- # Convert absolute paths to relative paths. Expands to, for example:
|
||||
- # -file-prefix-map /path/to/chromium/src=../..
|
||||
- swiftflags += [
|
||||
- "-file-prefix-map",
|
||||
- rebase_path("//.", "") + "=" + rebase_path("//.", root_build_dir),
|
||||
- ]
|
||||
- if (!is_win) {
|
||||
- # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
|
||||
- asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
|
||||
@@ -127,7 +121,7 @@
|
||||
# Tells the compiler not to use absolute paths when passing the default
|
||||
# paths to the tools it invokes. We don't want this because we don't
|
||||
# really need it and it can mess up the RBE cache entries.
|
||||
@@ -1660,87 +1555,6 @@
|
||||
@@ -1661,87 +1565,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -215,7 +209,7 @@
|
||||
# Controls the usage of a warning suppression mapping (WSM) file to suppress
|
||||
# warnings based on the path of the file they come from. It's controlled by the
|
||||
# `clang_warning_suppression_file` gn argument , which points to a text file
|
||||
@@ -2231,10 +2045,6 @@
|
||||
@@ -2229,10 +2052,6 @@
|
||||
}
|
||||
} else {
|
||||
cflags = [ "-Wall" ]
|
||||
@@ -226,7 +220,7 @@
|
||||
|
||||
# In Chromium code, we define __STDC_foo_MACROS in order to get the
|
||||
# C99 macros on Mac and Linux.
|
||||
@@ -2243,24 +2053,6 @@
|
||||
@@ -2241,24 +2060,6 @@
|
||||
"__STDC_FORMAT_MACROS",
|
||||
]
|
||||
|
||||
@@ -251,7 +245,7 @@
|
||||
if (is_apple) {
|
||||
cflags_objc = [ "-Wimplicit-retain-self" ]
|
||||
cflags_objcc = [ "-Wimplicit-retain-self" ]
|
||||
@@ -2676,7 +2468,8 @@
|
||||
@@ -2673,7 +2474,8 @@
|
||||
# [0]: https://pinpoint-dot-chromeperf.appspot.com/job/147634a8be0000
|
||||
# [1]: https://pinpoint-dot-chromeperf.appspot.com/job/132bc772be0000
|
||||
# [2]: https://crrev.com/c/5447532
|
||||
@@ -261,7 +255,7 @@
|
||||
if (is_win) {
|
||||
# clang-cl's /O2 corresponds to clang's -O3, and really want -O2 for
|
||||
# consistency with the other platforms.
|
||||
@@ -2725,7 +2518,8 @@
|
||||
@@ -2722,7 +2524,8 @@
|
||||
}
|
||||
|
||||
# Turn off optimizations.
|
||||
@@ -271,28 +265,28 @@
|
||||
if (is_win) {
|
||||
cflags = [
|
||||
"/Od", # Disable optimization.
|
||||
@@ -2760,7 +2554,8 @@
|
||||
@@ -2757,7 +2560,8 @@
|
||||
# Turns up the optimization level. Used to explicitly enable -O2 instead of
|
||||
# -Os for select targets on platforms that use optimize_for_size. No-op
|
||||
# elsewhere.
|
||||
-config("optimize_max") {
|
||||
+config("optimize_max") { }
|
||||
+config("xoptimize_max") {
|
||||
if (is_nacl && is_nacl_irt) {
|
||||
# The NaCl IRT is a special case and always wants its own config.
|
||||
# Various components do:
|
||||
@@ -2793,7 +2588,8 @@
|
||||
ldflags = common_optimize_on_ldflags
|
||||
if (is_win) {
|
||||
# Favor speed over size, /O2 must be before the common flags.
|
||||
@@ -2778,7 +2582,8 @@
|
||||
#
|
||||
# TODO(crbug.com/41259697) - rework how all of these configs are related
|
||||
# so that we don't need this disclaimer.
|
||||
-config("optimize_speed") {
|
||||
+config("optimize_speed") { }
|
||||
+config("xoptimize_speed") {
|
||||
if (is_nacl && is_nacl_irt) {
|
||||
# The NaCl IRT is a special case and always wants its own config.
|
||||
# Various components do:
|
||||
@@ -2822,7 +2618,8 @@
|
||||
}
|
||||
ldflags = common_optimize_on_ldflags
|
||||
if (is_win) {
|
||||
# Favor speed over size, /O2 must be before the common flags.
|
||||
@@ -2795,7 +2600,8 @@
|
||||
rustflags = [ "-Copt-level=3" ]
|
||||
}
|
||||
|
||||
-config("optimize_fuzzing") {
|
||||
@@ -301,7 +295,7 @@
|
||||
cflags = [ "-O1" ] + common_optimize_on_cflags
|
||||
rustflags = [ "-Copt-level=1" ]
|
||||
ldflags = common_optimize_on_ldflags
|
||||
@@ -2953,7 +2750,8 @@
|
||||
@@ -2922,7 +2728,8 @@
|
||||
}
|
||||
|
||||
# Full symbols.
|
||||
@@ -311,7 +305,7 @@
|
||||
rustflags = []
|
||||
configs = []
|
||||
if (is_win) {
|
||||
@@ -3124,7 +2922,8 @@
|
||||
@@ -3089,7 +2896,8 @@
|
||||
# Minimal symbols.
|
||||
# This config guarantees to hold symbol for stack trace which are shown to user
|
||||
# when crash happens in unittests running on buildbot.
|
||||
@@ -321,7 +315,7 @@
|
||||
rustflags = []
|
||||
if (is_win) {
|
||||
# Functions, files, and line tables only.
|
||||
@@ -3209,7 +3008,8 @@
|
||||
@@ -3165,7 +2973,8 @@
|
||||
# This configuration contains function names only. That is, the compiler is
|
||||
# told to not generate debug information and the linker then just puts function
|
||||
# names in the final debug information.
|
||||
|
||||
BIN
chromium-139.0.7258.66-linux.tar.xz
(Stored with Git LFS)
BIN
chromium-139.0.7258.66-linux.tar.xz
(Stored with Git LFS)
Binary file not shown.
44
chromium-140-revert-newline-config.patch
Normal file
44
chromium-140-revert-newline-config.patch
Normal file
@@ -0,0 +1,44 @@
|
||||
--- chromium-140.0.7327.6/build/config/android/config.gni 2025/08/01 10:41:29 1.1
|
||||
+++ chromium-140.0.7327.6/build/config/android/config.gni 2025/08/01 10:42:22
|
||||
@@ -48,18 +48,14 @@
|
||||
|
||||
import("//build/config/gclient_args.gni")
|
||||
if (defined(checkout_android)) {
|
||||
+ n = "$0x0A" # Newline
|
||||
assert(checkout_android,
|
||||
"Missing native Android toolchain support. |target_os| in your " +
|
||||
".gclient configuration file (in the parent directory of " +
|
||||
- "src) must include \"android\". For example:
|
||||
-
|
||||
-solutions = [
|
||||
-...
|
||||
-]
|
||||
-target_os=[\"android\"]
|
||||
-
|
||||
-After adding |target_os| please re-run \"gclient sync\".
|
||||
-")
|
||||
+ "src) must include \"android\". For " +
|
||||
+ "example:${n}${n}solutions = [${n}...${n}]${n}" +
|
||||
+ "target_os=[\"android\"]${n}${n}" +
|
||||
+ "After adding |target_os| please re-run \"gclient sync\".${n}")
|
||||
}
|
||||
}
|
||||
|
||||
--- chromium-140.0.7327.6/testing/test.gni
|
||||
+++ chromium-140.0.7327.6/testing/test.gni
|
||||
@@ -300,9 +300,12 @@ template("mixed_test") {
|
||||
|
||||
fuzzer_args_joined = string_join(" ", _fuzzer_args)
|
||||
|
||||
- contents = "const char* kFuzzerArgs = \"${fuzzer_args_joined}\";
|
||||
-const char* kFuzzerBinary = \"${_fuzzer_binary_name}\";
|
||||
-"
|
||||
+ NEWLINE = "$0x0A"
|
||||
+
|
||||
+ contents =
|
||||
+ "const char* kFuzzerArgs = \"${fuzzer_args_joined}\";" + NEWLINE +
|
||||
+ "const char* kFuzzerBinary = \"${_fuzzer_binary_name}\";" +
|
||||
+ NEWLINE
|
||||
}
|
||||
|
||||
_additional_fuzz_deps = []
|
||||
BIN
chromium-140.0.7339.5-linux.tar.xz
(Stored with Git LFS)
Normal file
BIN
chromium-140.0.7339.5-linux.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,10 +1,10 @@
|
||||
diff -up chromium-48.0.2564.116/services/device/usb/usb_context.cc.modern-libusbx chromium-48.0.2564.116/device/usb/usb_context.cc
|
||||
--- chromium-48.0.2564.116/services/device/usb/usb_context.cc.modern-libusbx 2016-02-24 10:21:10.534996028 -0500
|
||||
+++ chromium-48.0.2564.116/services/device/usb/usb_context.cc 2016-02-24 10:22:28.270499864 -0500
|
||||
@@ -57,7 +57,11 @@ void UsbContext::UsbEventHandler::Run()
|
||||
@@ -63,7 +63,11 @@
|
||||
|
||||
void UsbContext::UsbEventHandler::Stop() {
|
||||
base::subtle::Release_Store(&running_, 0);
|
||||
running_.store(false, std::memory_order_release);
|
||||
+#ifdef LIBUSB_API_VERSION >= 0x01000105
|
||||
+ libusb_interrupt_event_handler(context_);
|
||||
+#else
|
||||
|
||||
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 7 22:48:54 CEST 2025 - ro@suse.de
|
||||
|
||||
- Chromium 140.0.7339.5
|
||||
(beta released 2025-08-06)
|
||||
- modified patches:
|
||||
chromium-125-compiler.patch
|
||||
chromium-libusb_interrupt_event_handler.patch
|
||||
gcc-enable-lto.patch
|
||||
ppc-fedora-fix-unknown-warning-option-messages.diff
|
||||
ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch
|
||||
ppc-fedora-add-ppc64-architecture-to-extensions.diff
|
||||
chromium-102-regex_pattern-array.patch
|
||||
gtk-414.patch
|
||||
- added patches:
|
||||
chromium-140-revert-newline-config.patch
|
||||
(upstream fix 475fa4d21bb8722e9af8e4e707e2adbfd042fd52)
|
||||
- change rust_version to 1.86
|
||||
- keeplibs:
|
||||
removed buildtools/third_party/eu-strip (gone upstream)
|
||||
removed wasm_tts_engine (gone upstream)
|
||||
- bump gn BuildReq to 0.20250619
|
||||
- bump rust BuildReq to 1.88
|
||||
- do not use system_harfbuzz for 16+ for now, unbundle is broken
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 7 15:48:37 CEST 2025 - ro@suse.de
|
||||
|
||||
- really install libffmpeg.so if using the bundled one
|
||||
and block the extra dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 6 12:47:40 CEST 2025 - ro@suse.de
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
%define outputdir out
|
||||
# bsc#1108175
|
||||
%define __provides_exclude ^lib.*\\.so.*$
|
||||
%define __requires_exclude ^libffmpeg\\.so.*$
|
||||
# suse_version 1500 all of sle code 15, all of leap15
|
||||
# suse_version 1600 all of alp, slfo
|
||||
# suse_version 1699 tw
|
||||
@@ -41,7 +42,7 @@
|
||||
%bcond_without swiftshader
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1600
|
||||
%bcond_without system_harfbuzz
|
||||
%bcond_with system_harfbuzz
|
||||
%bcond_without system_freetype
|
||||
%bcond_without arm_bti
|
||||
# ERROR Unresolved dependencies.
|
||||
@@ -66,7 +67,7 @@
|
||||
# LLVM version
|
||||
%define llvm_version 19
|
||||
# RUST version
|
||||
%define rust_version 1.85
|
||||
%define rust_version 1.88
|
||||
# GCC version
|
||||
%define gcc_version 14
|
||||
# esbuild version
|
||||
@@ -161,6 +162,7 @@ Patch375: chromium-131-fix-qt-ui.pach
|
||||
Patch376: chromium-135-add_map_droppable.patch
|
||||
Patch377: chromium-139-deterministic.patch
|
||||
Patch378: chromium-139-pdfium-openjpeg-CVE-2025-54874.patch
|
||||
Patch379: chromium-140-revert-newline-config.patch
|
||||
# conditionally applied patches ppc64le only
|
||||
Patch401: ppc-fedora-add-ppc64-architecture-string.patch
|
||||
Patch402: ppc-fedora-0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch
|
||||
@@ -239,7 +241,7 @@ BuildRequires: elfutils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: git
|
||||
BuildRequires: gn >= 0.20250520
|
||||
BuildRequires: gn >= 0.20250619
|
||||
BuildRequires: gperf
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: golang(API)
|
||||
@@ -525,9 +527,6 @@ rm -f third_party/node/linux/node-linux-x64/bin/node
|
||||
ln -s %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node
|
||||
sed -i -e "s@^NODE_VERSION=.*@NODE_VERSION=\"v%{node_version}\"@" third_party/node/update_node_binaries
|
||||
|
||||
rm buildtools/third_party/eu-strip/bin/eu-strip
|
||||
ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip
|
||||
|
||||
# python3
|
||||
mkdir -p $HOME/bin
|
||||
%if 0%{?suse_version} >= 1600
|
||||
@@ -561,7 +560,6 @@ keeplibs=(
|
||||
base/third_party/superfasthash
|
||||
base/third_party/symbolize
|
||||
base/third_party/xdg_user_dirs
|
||||
buildtools/third_party/eu-strip
|
||||
buildtools/third_party/libc++
|
||||
buildtools/third_party/libc++abi
|
||||
buildtools/third_party/libunwind
|
||||
@@ -768,7 +766,6 @@ keeplibs=(
|
||||
third_party/utf
|
||||
third_party/vulkan
|
||||
third_party/wayland
|
||||
third_party/wasm_tts_engine
|
||||
third_party/webdriver
|
||||
third_party/webgpu-cts
|
||||
third_party/webrtc
|
||||
|
||||
@@ -11,8 +11,8 @@ Index: chromium-120.0.6099.18/build/config/BUILDCONFIG.gn
|
||||
# Set to true when compiling with the Clang compiler.
|
||||
is_clang = current_os != "linux" ||
|
||||
(current_cpu != "s390x" && current_cpu != "s390" &&
|
||||
@@ -354,6 +356,12 @@ default_compiler_configs = [
|
||||
"//build/config/sanitizers:default_sanitizer_flags",
|
||||
@@ -389,6 +389,12 @@
|
||||
"//build/config:feature_flags",
|
||||
]
|
||||
|
||||
+if (gcc_lto) {
|
||||
@@ -28,8 +28,8 @@ Index: chromium-120.0.6099.18/build/config/compiler/BUILD.gn
|
||||
===================================================================
|
||||
--- chromium-120.0.6099.18.orig/build/config/compiler/BUILD.gn
|
||||
+++ chromium-120.0.6099.18/build/config/compiler/BUILD.gn
|
||||
@@ -2342,6 +2342,10 @@ if (is_win) {
|
||||
common_optimize_on_cflags += [ "-fno-math-errno" ]
|
||||
@@ -2672,6 +2672,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
+config("gcc_lto") {
|
||||
|
||||
@@ -110,7 +110,7 @@ index efe6321149679..239fbf4ca69a1 100644
|
||||
- GdkTexture* texture = GetTextureFromRenderNode(node);
|
||||
size_t nbytes = width * height * sizeof(SkColor);
|
||||
SkColor* pixels = reinterpret_cast<SkColor*>(g_malloc(nbytes));
|
||||
+ memset(pixels, 0, nbytes);
|
||||
+ UNSAFE_TODO(memset(pixels, 0, nbytes));
|
||||
size_t stride = sizeof(SkColor) * width;
|
||||
- gdk_texture_download(texture, reinterpret_cast<guchar*>(pixels), stride);
|
||||
+ if (GdkTexture* texture = GetTextureFromRenderNode(node)) {
|
||||
@@ -118,7 +118,7 @@ index efe6321149679..239fbf4ca69a1 100644
|
||||
+ }
|
||||
SkColor fg = GtkStyleContextGetColor(button_context);
|
||||
for (int i = 0; i < width * height; ++i) {
|
||||
pixels[i] = SkColorSetA(fg, SkColorGetA(pixels[i]));
|
||||
UNSAFE_TODO(pixels[i]) =
|
||||
@@ -199,7 +201,7 @@ void CalculateUnscaledButtonSize(
|
||||
gfx::Size* button_size,
|
||||
gfx::Insets* button_margin) {
|
||||
|
||||
@@ -16,7 +16,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.
|
||||
===================================================================
|
||||
--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
||||
+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
||||
@@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno)
|
||||
@@ -90,7 +90,8 @@
|
||||
SyscallSets::IsPrctl(sysno) ||
|
||||
SyscallSets::IsProcessGroupOrSession(sysno) ||
|
||||
#if defined(__i386__) || \
|
||||
@@ -26,7 +26,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.
|
||||
SyscallSets::IsSocketCall(sysno) ||
|
||||
#endif
|
||||
#if defined(__arm__)
|
||||
@@ -259,7 +259,7 @@
|
||||
@@ -254,7 +255,7 @@
|
||||
|
||||
// TODO(crbug.com/40528912): should i386 really be in this list?
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
|
||||
@@ -35,7 +35,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.
|
||||
if (sysno == __NR_mmap)
|
||||
return RestrictMmapFlags();
|
||||
#endif
|
||||
@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de
|
||||
@@ -336,7 +337,8 @@
|
||||
}
|
||||
|
||||
#if defined(__i386__) || \
|
||||
@@ -392,7 +392,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
||||
#endif
|
||||
case __NR_write:
|
||||
@@ -650,11 +651,12 @@
|
||||
case __NR_vmsplice:
|
||||
#endif
|
||||
// send* syscalls need their flags filtered.
|
||||
#if defined(__arm__) || \
|
||||
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
|
||||
|
||||
@@ -2,45 +2,26 @@ Index: chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runt
|
||||
===================================================================
|
||||
--- chromium-128.0.6613.113.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
|
||||
+++ chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
|
||||
@@ -310,6 +310,8 @@
|
||||
info->arch = extensions::api::runtime::PlatformArch::kMips;
|
||||
} else if (strcmp(arch, "mips64el") == 0) {
|
||||
@@ -348,6 +348,8 @@
|
||||
info->arch = extensions::api::runtime::PlatformArch::kMips64;
|
||||
} else if (strcmp(arch, "riscv64") == 0) {
|
||||
info->arch = extensions::api::runtime::PlatformArch::kRiscv64;
|
||||
+ } else if (strcmp(arch, "ppc64") == 0) {
|
||||
+ info->arch = extensions::api::runtime::PlatformArch::kPpc64;
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -325,6 +327,8 @@
|
||||
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips;
|
||||
} else if (strcmp(nacl_arch, "mips64") == 0) {
|
||||
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64;
|
||||
+ } else if (strcmp(nacl_arch, "ppc64") == 0) {
|
||||
+ info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kPpc64;
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
Index: chromium-128.0.6613.113/extensions/common/api/runtime.json
|
||||
===================================================================
|
||||
--- chromium-128.0.6613.113.orig/extensions/common/api/runtime.json
|
||||
+++ chromium-128.0.6613.113/extensions/common/api/runtime.json
|
||||
@@ -98,7 +98,8 @@
|
||||
{"name": "x86-32", "description": "Specifies the processer architecture as x86-32."},
|
||||
@@ -99,7 +99,8 @@
|
||||
{"name": "x86-64", "description": "Specifies the processer architecture as x86-64."},
|
||||
{"name": "mips", "description": "Specifies the processer architecture as mips."},
|
||||
- {"name": "mips64", "description": "Specifies the processer architecture as mips64."}
|
||||
+ {"name": "mips64", "description": "Specifies the processer architecture as mips64."},
|
||||
{"name": "mips64", "description": "Specifies the processer architecture as mips64."},
|
||||
- {"name": "riscv64", "description": "Specifies the processer architecture as riscv64."}
|
||||
+ {"name": "riscv64", "description": "Specifies the processer architecture as riscv64."},
|
||||
+ {"name": "ppc64", "description": "Specifies the processer architecture as ppc64."}
|
||||
],
|
||||
"description": "The machine's processor architecture."
|
||||
},
|
||||
@@ -111,7 +112,8 @@
|
||||
{"name": "x86-32", "description": "Specifies the native client architecture as x86-32."},
|
||||
{"name": "x86-64", "description": "Specifies the native client architecture as x86-64."},
|
||||
{"name": "mips", "description": "Specifies the native client architecture as mips."},
|
||||
- {"name": "mips64", "description": "Specifies the native client architecture as mips64."}
|
||||
+ {"name": "mips64", "description": "Specifies the native client architecture as mips64."},
|
||||
+ {"name": "ppc64", "description": "Specifies the native client architecture as ppc64."}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2,15 +2,27 @@ Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn
|
||||
===================================================================
|
||||
--- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn
|
||||
+++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn
|
||||
@@ -1844,7 +1844,7 @@ config("default_warnings") {
|
||||
|
||||
# -Wno-class-memaccess warns about hash table and vector in blink.
|
||||
# But the violation is intentional.
|
||||
- if (!is_nacl) {
|
||||
+ if ((!is_nacl) && (current_cpu != "ppc64")) {
|
||||
cflags_cc += [ "-Wno-class-memaccess" ]
|
||||
}
|
||||
@@ -1835,12 +1835,16 @@
|
||||
cflags_cc += [
|
||||
# See comment for -Wno-c++11-narrowing.
|
||||
"-Wno-narrowing",
|
||||
-
|
||||
- # -Wno-class-memaccess warns about hash table and vector in blink.
|
||||
- # But the violation is intentional.
|
||||
- "-Wno-class-memaccess",
|
||||
]
|
||||
|
||||
+ if (current_cpu != "ppc64") {
|
||||
+ cflags_cc += [
|
||||
+ # -Wno-class-memaccess warns about hash table and vector in blink.
|
||||
+ # But the violation is intentional.
|
||||
+ "-Wno-class-memaccess",
|
||||
+ ]
|
||||
+ }
|
||||
+
|
||||
# -Wunused-local-typedefs is broken in gcc,
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63872
|
||||
cflags += [ "-Wno-unused-local-typedefs" ]
|
||||
@@ -1854,7 +1854,9 @@ config("default_warnings") {
|
||||
|
||||
# Don't warn about "maybe" uninitialized. Clang doesn't include this
|
||||
|
||||
Reference in New Issue
Block a user