mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
www-client/chromium: drop 145.0.7632.109
Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST chromium-145.0.7632.109-linux.tar.xz 1416630532 BLAKE2B dac5230bc319295c9aac98ce9d707691372e6858098e12753c8295047c67faad65b004cce373803361f2b599c9fd3bb0236dfcebfa2fe85b8b8b0a4755292c52 SHA512 90a857d98aca2e70415332c1abd8c79ea81500254431a47b81f47ee2646cc0ff5368efe182a2cca12469b9b99a776ee47f9fef1d3343351cc31c60d5f55c4582
|
||||
DIST chromium-145.0.7632.159-linux.tar.xz 1416662532 BLAKE2B 9ec13e6d5091bb6f89cdb107db75f1c226a2689e5a01c55349511957a7886721230b72fceb25eb97cc671bea4f56e2f0044ab139e0df8b26665e4b84ef8744d4 SHA512 a07d72ac4faa7ac6e5185fbdebcdf341563c5f07f5c83a33604884a832f11d28bcee3f67f12aeab11cff963ad5e1b1fc75d6baf92f7e8a7d3b25709d18783063
|
||||
DIST chromium-146.0.7680.31-linux.tar.xz 1475597444 BLAKE2B d9f2e4929bc0fe9da8d85bb8e4a99cee220ec60a06f2bbe3836dce80a3f43ae6cd76ab8ea8d071f622deeba5a80826701bf0cefc80c9905120b902158eac9821 SHA512 bc8ef6b7e92baa15fc2b442211ba2d957e4edfb178d5c96d19745869fb575e570cb75175644cee165440f220feb3f26550b372dc4f513ee8514cb23beef78486
|
||||
DIST chromium-146.0.7680.65-linux.tar.xz 1476320316 BLAKE2B bd8ef9d324e564f4d067d100728b15078f50e32a8e05ad17fd87dd9674d9eea97f7183aec4186895cfd0a21746fe1dfaa91f4d08642ce211460d7362b719ed9c SHA512 b61a05ecb22a530bfe357ad670ab78f69b50e401f056a7f04d57511abfb5d2d269d9e70f27688109bda1c23d03198a876b4f0992e640d88aa8aecd6d48e84496
|
||||
@@ -8,7 +7,6 @@ DIST chromium-clang-llvmorg-23-init-2224-g5bd8dadb-3.tar.xz 57583584 BLAKE2B 7fd
|
||||
DIST chromium-clang-llvmorg-23-init-4965-g686acf63-1.tar.xz 57997052 BLAKE2B 5e8634c5641db77eb9f9454d21489557f264b88671f8efb25898b997337d014ea75260640415e4edd53e6fe0b033ea8f6f3aee9c08ec697f72f4566ebd36b0db SHA512 0f478d5c5894ee9ecb6dbf7a21e3928b82b49951a7b6dff0d5df29ba0972b83e44d5e5f0549eadd3c86214bbd9932960a020781ac7d9cf98bdeb2c9566543829
|
||||
DIST chromium-openpower-6e839bd947.tar.bz2 438048 BLAKE2B 50acf6c3d5b17c920dba89895d31effb36e1e234099258cfaff8f4b1735b0a401c2c239a1e53265b1dfdb2969df7cb04041b3aa0ecafc8d1e2fd90497db51629 SHA512 f87b33235a26768dda73364b85f7713f5b200a65ca8e28b09ad8f5798b7da80d1cb62b3308263d88e58c01439eb67e365c08466b80299c2b3eeebef52cb977f7
|
||||
DIST chromium-openpower-a85b64f07b.tar.bz2 2940 BLAKE2B 671e22109410b84d026ee9e73f6112e99023707b97b6af204da8adca7fd53c85d6f5b634ad400596bbc1314f21a011a38a25aa029580529306cc1ad958d4a913 SHA512 34b3e93c23f320e8ce8164527544e37c771d3663951b032e1213db83c0559a85588dbedaa1c92a493cb3e187d6afc8a9601c9e82c07d8cb402e2f1e2dc4b4312
|
||||
DIST chromium-patches-145-1.tar.bz2 11711 BLAKE2B a7d6a6e0bd129f3c96bea29bf58dfb91e90f74c3c7e619f7d3d18ea42b8046a1c1c81f463bf31fbff5990b77cb9bea1c289be93e96a22b4d2de0be7253955ce5 SHA512 1008ceac53ec94bc766085d74a703401b45f2b4ff59240dd853383e1c28e8781d9f0be3a58c2cd5470922e529a3ba583188dde0d84b2be04de9cb1b212c110a2
|
||||
DIST chromium-patches-145-3.tar.bz2 18439 BLAKE2B c4ff5ff745348d08ba927a5b3210a9970d9a2c5dd78300c3c3d96198f49f32a90573a024d92d984dc62ebfc1fbd9edfd24e8bc7d0ed7a2bcfa2b22e400b79a78 SHA512 084b05c93a5a4506beec28e1a8c143bdd4021d28695a1cbb179595f020900336ac5364da3d2b5bb0ae77967e32292988134a29f6cc1ddb7eb67d29fec31dc75d
|
||||
DIST chromium-patches-146-1.tar.bz2 18524 BLAKE2B 4b00707bfb9d83a96f8fbfe1cf55b9dfd9347b93ff7f4ace249c6ec07bf63cf48bfee2e3207e7660213d190b253157ee07a3ff5c11fcb91e259d663f10cdd6dc SHA512 1c7e5bd4e8e0c010df4500bf8125b899672692dde0ad08dd8fb962a75440c46fa5d3216385c9ab186b750714775b2682f7eb326d43862582f73e6d0f13d7c0a9
|
||||
DIST chromium-patches-147-2.tar.bz2 19019 BLAKE2B 99fe7aa0e762a851f1cf501d9b4d7c06143a6fcdccc13994d07d14046a909e503c32c42ca61db06a5b8a36d6cb33ec3b4dbd0b35c12a5f53c41092f44f278994 SHA512 194a836644fad78f351a3b2218de70f88f11750e57d1c256b222d42282cf0bc32a84c8cb21722149d0673babda8f42786ae2aa8225b1116e96537f487e546163
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +0,0 @@
|
||||
--- a/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc
|
||||
+++ b/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc
|
||||
@@ -19,7 +19,6 @@ limitations under the License.
|
||||
#include <cstdio>
|
||||
|
||||
#include "absl/strings/string_view.h" // from @com_google_absl
|
||||
-#include "third_party/zlib/contrib/minizip/ioapi.h"
|
||||
|
||||
namespace tflite {
|
||||
namespace metadata {
|
||||
@@ -1,21 +0,0 @@
|
||||
From a665875b4013eed997bd042326a038e24f3296e7 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Jolly <kangie@gentoo.org>
|
||||
Date: Thu, 10 Oct 2024 14:36:51 +1000
|
||||
Subject: [PATCH] unbundle: add missing icu target
|
||||
|
||||
--- a/build/linux/unbundle/icu.gn
|
||||
+++ b/build/linux/unbundle/icu.gn
|
||||
@@ -65,6 +65,10 @@ group("icuuc_public") {
|
||||
public_deps = [ ":icuuc" ]
|
||||
}
|
||||
|
||||
+group("icui18n_hidden_visibility") {
|
||||
+ public_deps = [ ":icuuc" ]
|
||||
+}
|
||||
+
|
||||
shim_headers("icui18n_shim") {
|
||||
root_path = "source/i18n"
|
||||
headers = [
|
||||
--
|
||||
2.46.2
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
https://issues.chromium.org/issues/418397211
|
||||
From: Matt Jolly <kangie@gentoo.org>
|
||||
Date: Tue, 25 Mar 2025 13:33:48 +1000
|
||||
Subject: [PATCH] Remove nodejs version check
|
||||
|
||||
Added in https://github.com/chromium/chromium/commit/0ff8528999941d7182be6fc77aeb12a110a3cd86,
|
||||
this change is only really useful for gclient checkouts and breaks the
|
||||
ability for downstreams to provide their own, compatible, nodejs
|
||||
version via the system package manager (or for use on arches other than
|
||||
those that Google provides binaries for):
|
||||
|
||||
[ERR_ASSERTION]: Failed NodeJS version check: Expected version 'v22.11.0', but found 'v22.13.1'. Did you run 'gclient sync'
|
||||
|
||||
This is google development footgun protection, working around
|
||||
poor development practices and gclient's inability to ensure
|
||||
that the source tree is in a consistent state. We don't need it
|
||||
here.
|
||||
|
||||
Signed-off-by: Matt Jolly <kangie@gentoo.org>
|
||||
--- a/third_party/node/node.gni
|
||||
+++ b/third_party/node/node.gni
|
||||
@@ -36,15 +36,5 @@ template("node") {
|
||||
}
|
||||
}
|
||||
|
||||
- # Automatically add a dependency to ":check_version" to ensure NodeJS is
|
||||
- # always running the expected version, except when the ':check_version'
|
||||
- # target itself is running in which case it shouldn't depend on itself.
|
||||
- if (get_label_info(":" + target_name, "label_no_toolchain") !=
|
||||
- "//third_party/node:check_version") {
|
||||
- if (!defined(deps)) {
|
||||
- deps = []
|
||||
- }
|
||||
- deps += [ "//third_party/node:check_version" ]
|
||||
- }
|
||||
}
|
||||
}
|
||||
--- a/third_party/protobuf/proto_library.gni
|
||||
+++ b/third_party/protobuf/proto_library.gni
|
||||
@@ -562,7 +562,6 @@ template("proto_library") {
|
||||
_protoc_gen_ts_path,
|
||||
"//tools/protoc_wrapper/protoc-gen-ts_proto.py",
|
||||
] + _protoc_gen_ts_runtime_deps
|
||||
- deps += [ "//third_party/node:check_version" ]
|
||||
}
|
||||
|
||||
if (_generate_with_plugin) {
|
||||
--
|
||||
2.49.0
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
|
||||
<default-apps>
|
||||
<web-browsers>
|
||||
<web-browser>
|
||||
<name>Chromium</name>
|
||||
<executable>chromium-browser</executable>
|
||||
<command>chromium-browser %s</command>
|
||||
<icon-name>chromium-browser</icon-name>
|
||||
<run-in-terminal>false</run-in-terminal>
|
||||
</web-browser>
|
||||
</web-browsers>
|
||||
</default-apps>
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/build/toolchain/linux/unbundle/BUILD.gn
|
||||
+++ b/build/toolchain/linux/unbundle/BUILD.gn
|
||||
@@ -35,7 +35,7 @@ gcc_toolchain("host") {
|
||||
extra_ldflags = getenv("BUILD_LDFLAGS")
|
||||
|
||||
toolchain_args = {
|
||||
- current_cpu = current_cpu
|
||||
- current_os = current_os
|
||||
+ current_cpu = host_cpu
|
||||
+ current_os = host_os
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Allow the user to override command-line flags, bug #357629.
|
||||
# This is based on Debian's chromium-browser package, and is intended
|
||||
# to be consistent with Debian.
|
||||
for f in /etc/chromium/*; do
|
||||
[[ -f ${f} ]] && source "${f}"
|
||||
done
|
||||
|
||||
# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
|
||||
# default CHROMIUM_FLAGS (from /etc/chromium/default).
|
||||
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
|
||||
|
||||
# Let the wrapped binary know that it has been run through the wrapper
|
||||
export CHROME_WRAPPER=$(readlink -f "$0")
|
||||
|
||||
PROGDIR=${CHROME_WRAPPER%/*}
|
||||
|
||||
case ":$PATH:" in
|
||||
*:$PROGDIR:*)
|
||||
# $PATH already contains $PROGDIR
|
||||
;;
|
||||
*)
|
||||
# Append $PROGDIR to $PATH
|
||||
export PATH="$PATH:$PROGDIR"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ ${EUID} == 0 && -O ${XDG_CONFIG_HOME:-${HOME}} ]]; then
|
||||
# Running as root with HOME owned by root.
|
||||
# Pass --user-data-dir to work around upstream failsafe.
|
||||
CHROMIUM_FLAGS="--user-data-dir=${XDG_CONFIG_HOME:-${HOME}/.config}/chromium
|
||||
${CHROMIUM_FLAGS}"
|
||||
fi
|
||||
|
||||
# Select session type and platform
|
||||
if @@OZONE_AUTO_SESSION@@; then
|
||||
platform=
|
||||
if [[ ${XDG_SESSION_TYPE} == x11 ]]; then
|
||||
platform=x11
|
||||
elif [[ ${XDG_SESSION_TYPE} == wayland ]]; then
|
||||
platform=wayland
|
||||
else
|
||||
if [[ -n ${WAYLAND_DISPLAY} ]]; then
|
||||
platform=wayland
|
||||
else
|
||||
platform=x11
|
||||
fi
|
||||
fi
|
||||
if ${DISABLE_OZONE_PLATFORM:-false}; then
|
||||
platform=x11
|
||||
fi
|
||||
CHROMIUM_FLAGS="--ozone-platform=${platform} ${CHROMIUM_FLAGS}"
|
||||
fi
|
||||
|
||||
# Set the .desktop file name
|
||||
export CHROME_DESKTOP="chromium-browser.desktop"
|
||||
|
||||
exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"
|
||||
@@ -1,64 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Allow the user to override command-line flags, bug #357629.
|
||||
# This is based on Debian's chromium-browser package, and is intended
|
||||
# to be consistent with Debian.
|
||||
for f in /etc/chromium/*; do
|
||||
# Skip backup files and hidden files #546394
|
||||
case "${f}" in
|
||||
*~|*.bak|*.old|*.swp|*.tmp|*/.*) continue ;;
|
||||
esac
|
||||
[[ -f "${f}" ]] && source "${f}"
|
||||
done
|
||||
|
||||
# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
|
||||
# default CHROMIUM_FLAGS (from /etc/chromium/default).
|
||||
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
|
||||
|
||||
# Let the wrapped binary know that it has been run through the wrapper
|
||||
export CHROME_WRAPPER=$(readlink -f "$0")
|
||||
|
||||
PROGDIR=${CHROME_WRAPPER%/*}
|
||||
|
||||
case ":$PATH:" in
|
||||
*:$PROGDIR:*)
|
||||
# $PATH already contains $PROGDIR
|
||||
;;
|
||||
*)
|
||||
# Append $PROGDIR to $PATH
|
||||
export PATH="$PATH:$PROGDIR"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ ${EUID} == 0 && -O ${XDG_CONFIG_HOME:-${HOME}} ]]; then
|
||||
# Running as root with HOME owned by root.
|
||||
# Pass --user-data-dir to work around upstream failsafe.
|
||||
echo "Refusing to run as root is a safety feature. Running as root disables the sandbox." >&2
|
||||
CHROMIUM_FLAGS="--user-data-dir=${XDG_CONFIG_HOME:-${HOME}/.config}/chromium
|
||||
${CHROMIUM_FLAGS}"
|
||||
fi
|
||||
|
||||
# Select session type and platform
|
||||
if @@OZONE_AUTO_SESSION@@; then
|
||||
platform=
|
||||
if [[ ${XDG_SESSION_TYPE} == x11 ]]; then
|
||||
platform=x11
|
||||
elif [[ ${XDG_SESSION_TYPE} == wayland ]]; then
|
||||
platform=wayland
|
||||
else
|
||||
if [[ -n ${WAYLAND_DISPLAY} ]]; then
|
||||
platform=wayland
|
||||
else
|
||||
platform=x11
|
||||
fi
|
||||
fi
|
||||
if ${DISABLE_OZONE_PLATFORM:-false}; then
|
||||
platform=x11
|
||||
fi
|
||||
CHROMIUM_FLAGS="--ozone-platform=${platform} ${CHROMIUM_FLAGS}"
|
||||
fi
|
||||
|
||||
# Set the .desktop file name
|
||||
export CHROME_DESKTOP="chromium-browser.desktop"
|
||||
|
||||
exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"
|
||||
@@ -1,5 +0,0 @@
|
||||
# Default settings for chromium. This file is sourced by /bin/bash from
|
||||
# the chromium launcher.
|
||||
|
||||
# Options to pass to chromium.
|
||||
#CHROMIUM_FLAGS=""
|
||||
@@ -1,11 +0,0 @@
|
||||
https://bugs.gentoo.org/969846
|
||||
https://bugs.gentoo.org/969495
|
||||
https://crbug.com/456218403
|
||||
--- a/sandbox/linux/system_headers/linux_seccomp.h
|
||||
+++ b/sandbox/linux/system_headers/linux_seccomp.h
|
||||
@@ -7,4 +7,5 @@
|
||||
|
||||
#include <stdint.h>
|
||||
+#include <signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
From c38c89ed1b9d600fe1d9ffe688d7029572f84b8e Mon Sep 17 00:00:00 2001
|
||||
From: Matt Jolly <kangie@gentoo.org>
|
||||
Date: Tue, 24 Feb 2026 17:13:23 +1000
|
||||
Subject: [PATCH] safe_browsing_use_unrar: add include guards
|
||||
|
||||
While the previous fix to conditionalise unrar logic in
|
||||
6dc59a3b7dc8de4903f3826e718f3231ab1a28ec allows the code to build, some
|
||||
downstreams (like Gentoo) use the `unbundle/remove_bundled_libraries.py`
|
||||
script to completely remove unrar from the source tree in configurations
|
||||
where it is not desired. As this removes the headers, include guards are
|
||||
required to enable a successful build when unrar is removed.
|
||||
|
||||
Signed-off-by: Matt Jolly <kangie@gentoo.org>
|
||||
--- a/chrome/services/file_util/obfuscated_archive_analysis_delegate.h
|
||||
+++ b/chrome/services/file_util/obfuscated_archive_analysis_delegate.h
|
||||
@@ -7,7 +7,10 @@
|
||||
|
||||
#include "chrome/utility/safe_browsing/archive_analysis_delegate.h"
|
||||
#include "components/enterprise/obfuscation/core/utils.h"
|
||||
+
|
||||
+#if USE_UNRAR
|
||||
#include "third_party/unrar/google/unrar_wrapper.h"
|
||||
+#endif
|
||||
|
||||
namespace safe_browsing {
|
||||
|
||||
--- a/chrome/services/file_util/regular_archive_analysis_delegate.cc
|
||||
+++ b/chrome/services/file_util/regular_archive_analysis_delegate.cc
|
||||
@@ -9,9 +9,12 @@
|
||||
#include "base/containers/span.h"
|
||||
#include "base/files/file.h"
|
||||
#include "chrome/utility/safe_browsing/zip_writer_delegate.h"
|
||||
+#include "third_party/zlib/google/zip_reader.h"
|
||||
+
|
||||
+#if USE_UNRAR
|
||||
#include "third_party/unrar/google/unrar_delegates.h"
|
||||
#include "third_party/unrar/google/unrar_wrapper.h"
|
||||
-#include "third_party/zlib/google/zip_reader.h"
|
||||
+#endif
|
||||
|
||||
namespace safe_browsing {
|
||||
|
||||
--- a/chrome/services/file_util/regular_archive_analysis_delegate.h
|
||||
+++ b/chrome/services/file_util/regular_archive_analysis_delegate.h
|
||||
@@ -6,7 +6,10 @@
|
||||
#define CHROME_SERVICES_FILE_UTIL_REGULAR_ARCHIVE_ANALYSIS_DELEGATE_H_
|
||||
|
||||
#include "chrome/utility/safe_browsing/archive_analysis_delegate.h"
|
||||
+
|
||||
+#if USE_UNRAR
|
||||
#include "third_party/unrar/google/unrar_delegates.h"
|
||||
+#endif
|
||||
|
||||
namespace safe_browsing {
|
||||
|
||||
--- a/chrome/utility/safe_browsing/archive_analysis_delegate.h
|
||||
+++ b/chrome/utility/safe_browsing/archive_analysis_delegate.h
|
||||
@@ -9,9 +9,12 @@
|
||||
|
||||
#include "base/files/file.h"
|
||||
#include "chrome/utility/safe_browsing/zip_writer_delegate.h"
|
||||
-#include "third_party/unrar/google/unrar_delegates.h"
|
||||
#include "third_party/zlib/google/zip_reader.h"
|
||||
|
||||
+#if USE_UNRAR
|
||||
+#include "third_party/unrar/google/unrar_delegates.h"
|
||||
+#endif
|
||||
+
|
||||
namespace safe_browsing {
|
||||
|
||||
// Delegate interface for abstracting archive analysis operations, specifically
|
||||
--
|
||||
2.52.0
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
https://chromium-review.googlesource.com/c/chromium/src/+/7493269
|
||||
From: LN Liberda <lauren@selfisekai.rocks>
|
||||
Date: Tue, 20 Jan 2026 17:01:22 -0800
|
||||
Subject: [PATCH] Fixes for safe_browsing_use_unrar=false
|
||||
|
||||
Bug: none
|
||||
Change-Id: Ie58652c7b7262d74cd9bd9cb88286aed3fda4426
|
||||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7493269
|
||||
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
|
||||
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
|
||||
Reviewed-by: Daniel Rubery <drubery@chromium.org>
|
||||
Cr-Commit-Position: refs/heads/main@{#1571974}
|
||||
--- a/chrome/services/file_util/BUILD.gn
|
||||
+++ b/chrome/services/file_util/BUILD.gn
|
||||
@@ -25,7 +25,6 @@ source_set("file_util") {
|
||||
"//components/safe_browsing:buildflags",
|
||||
"//extensions/buildflags",
|
||||
"//mojo/public/cpp/bindings",
|
||||
- "//third_party/unrar",
|
||||
"//third_party/zlib",
|
||||
]
|
||||
|
||||
@@ -36,7 +35,11 @@ source_set("file_util") {
|
||||
"//mojo/public/mojom/base",
|
||||
]
|
||||
|
||||
- defines = []
|
||||
+ defines = [ "USE_UNRAR=$safe_browsing_use_unrar" ]
|
||||
+
|
||||
+ if (safe_browsing_use_unrar) {
|
||||
+ deps += [ "//third_party/unrar" ]
|
||||
+ }
|
||||
|
||||
if (is_chromeos) {
|
||||
sources += [
|
||||
@@ -67,8 +70,6 @@ source_set("file_util") {
|
||||
"//chrome/utility/safe_browsing",
|
||||
"//components/enterprise/obfuscation/core:enterprise_obfuscation",
|
||||
]
|
||||
-
|
||||
- defines += [ "USE_UNRAR=$safe_browsing_use_unrar" ]
|
||||
}
|
||||
|
||||
if (enable_extractors) {
|
||||
--- a/chrome/services/file_util/obfuscated_archive_analysis_delegate.cc
|
||||
+++ b/chrome/services/file_util/obfuscated_archive_analysis_delegate.cc
|
||||
@@ -104,6 +104,7 @@ class ObfuscatedZipWriterDelegate : public zip::FileWriterDelegate,
|
||||
bool closed_ = false;
|
||||
};
|
||||
|
||||
+#if USE_UNRAR
|
||||
class ObfuscatedRarReaderDelegate
|
||||
: public third_party_unrar::RarReaderDelegate {
|
||||
public:
|
||||
@@ -175,6 +176,7 @@ class ObfuscatedRarWriterDelegate
|
||||
std::unique_ptr<enterprise_obfuscation::DownloadObfuscator> obfuscator_;
|
||||
bool init_ = false;
|
||||
};
|
||||
+#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -203,6 +205,7 @@ ObfuscatedArchiveAnalysisDelegate::CreateZipWriterDelegate(base::File file) {
|
||||
return std::make_unique<ObfuscatedZipWriterDelegate>(std::move(file));
|
||||
}
|
||||
|
||||
+#if USE_UNRAR
|
||||
std::unique_ptr<third_party_unrar::RarReaderDelegate>
|
||||
ObfuscatedArchiveAnalysisDelegate::CreateRarReaderDelegate(base::File file) {
|
||||
base::expected<enterprise_obfuscation::ObfuscatedFileReader,
|
||||
@@ -220,6 +223,7 @@ std::unique_ptr<third_party_unrar::RarWriterDelegate>
|
||||
ObfuscatedArchiveAnalysisDelegate::CreateRarWriterDelegate(base::File file) {
|
||||
return std::make_unique<ObfuscatedRarWriterDelegate>(std::move(file));
|
||||
}
|
||||
+#endif
|
||||
|
||||
std::unique_ptr<ArchiveAnalysisDelegate>
|
||||
ObfuscatedArchiveAnalysisDelegate::CreateNestedDelegate(
|
||||
--- a/chrome/services/file_util/obfuscated_archive_analysis_delegate.h
|
||||
+++ b/chrome/services/file_util/obfuscated_archive_analysis_delegate.h
|
||||
@@ -22,10 +22,12 @@ class ObfuscatedArchiveAnalysisDelegate : public ArchiveAnalysisDelegate {
|
||||
base::File file) override;
|
||||
std::unique_ptr<SafeBrowsingZipWriterDelegate> CreateZipWriterDelegate(
|
||||
base::File file) override;
|
||||
+#if USE_UNRAR
|
||||
std::unique_ptr<third_party_unrar::RarReaderDelegate> CreateRarReaderDelegate(
|
||||
base::File file) override;
|
||||
std::unique_ptr<third_party_unrar::RarWriterDelegate> CreateRarWriterDelegate(
|
||||
base::File file) override;
|
||||
+#endif
|
||||
std::unique_ptr<ArchiveAnalysisDelegate> CreateNestedDelegate(
|
||||
base::File extracted_file) override;
|
||||
|
||||
--- a/chrome/services/file_util/regular_archive_analysis_delegate.cc
|
||||
+++ b/chrome/services/file_util/regular_archive_analysis_delegate.cc
|
||||
@@ -92,6 +92,7 @@ RegularArchiveAnalysisDelegate::CreateZipWriterDelegate(base::File file) {
|
||||
return std::make_unique<ZipWriterDelegate>(std::move(file));
|
||||
}
|
||||
|
||||
+#if USE_UNRAR
|
||||
std::unique_ptr<third_party_unrar::RarReaderDelegate>
|
||||
RegularArchiveAnalysisDelegate::CreateRarReaderDelegate(base::File file) {
|
||||
return std::make_unique<third_party_unrar::FileReader>(std::move(file));
|
||||
@@ -101,6 +102,7 @@ std::unique_ptr<third_party_unrar::RarWriterDelegate>
|
||||
RegularArchiveAnalysisDelegate::CreateRarWriterDelegate(base::File file) {
|
||||
return std::make_unique<third_party_unrar::FileWriter>(std::move(file));
|
||||
}
|
||||
+#endif
|
||||
|
||||
std::unique_ptr<ArchiveAnalysisDelegate>
|
||||
RegularArchiveAnalysisDelegate::CreateNestedDelegate(
|
||||
--- a/chrome/services/file_util/regular_archive_analysis_delegate.h
|
||||
+++ b/chrome/services/file_util/regular_archive_analysis_delegate.h
|
||||
@@ -20,10 +20,12 @@ class RegularArchiveAnalysisDelegate : public ArchiveAnalysisDelegate {
|
||||
base::File file) override;
|
||||
std::unique_ptr<SafeBrowsingZipWriterDelegate> CreateZipWriterDelegate(
|
||||
base::File file) override;
|
||||
+#if USE_UNRAR
|
||||
std::unique_ptr<third_party_unrar::RarReaderDelegate> CreateRarReaderDelegate(
|
||||
base::File file) override;
|
||||
std::unique_ptr<third_party_unrar::RarWriterDelegate> CreateRarWriterDelegate(
|
||||
base::File file) override;
|
||||
+#endif
|
||||
std::unique_ptr<ArchiveAnalysisDelegate> CreateNestedDelegate(
|
||||
base::File extracted_file) override;
|
||||
};
|
||||
--- a/chrome/utility/safe_browsing/archive_analysis_delegate.h
|
||||
+++ b/chrome/utility/safe_browsing/archive_analysis_delegate.h
|
||||
@@ -28,6 +28,7 @@ class ArchiveAnalysisDelegate {
|
||||
virtual std::unique_ptr<SafeBrowsingZipWriterDelegate>
|
||||
CreateZipWriterDelegate(base::File file) = 0;
|
||||
|
||||
+#if USE_UNRAR
|
||||
// Creates a reader delegate for reading the RAR archive.
|
||||
virtual std::unique_ptr<third_party_unrar::RarReaderDelegate>
|
||||
CreateRarReaderDelegate(base::File file) = 0;
|
||||
@@ -35,6 +36,7 @@ class ArchiveAnalysisDelegate {
|
||||
// Creates a writer delegate for writing extracted RAR entries.
|
||||
virtual std::unique_ptr<third_party_unrar::RarWriterDelegate>
|
||||
CreateRarWriterDelegate(base::File file) = 0;
|
||||
+#endif
|
||||
|
||||
// Creates a delegate for analyzing a nested archive extracted from the
|
||||
// current archive. Returns nullptr if the nested archive cannot be handled
|
||||
@@ -1,37 +0,0 @@
|
||||
From bed3753bad970327ed3839fb1b2cda1a234060dd Mon Sep 17 00:00:00 2001
|
||||
From: Matt Jolly <kangie@gentoo.org>
|
||||
Date: Sun, 18 Jan 2026 17:34:00 +1000
|
||||
Subject: [PATCH] Update OAuth credentials patch for 145
|
||||
|
||||
Google doesn't let us bake in OAuth2 credentials, and for some time,
|
||||
Google sign-in has been broken. Arch dealt with this in March, and so
|
||||
did we to some degree, but in the last few months, our sign-in
|
||||
credentials have been broken. It appears that we actually did remove API
|
||||
credentials in March around Chrome 89, but they got added back, perhaps
|
||||
when rotating newer versions to replace older versions. Work around this
|
||||
by following Arch's lead: we remove the predefined credentials, as
|
||||
before, but also we patch Chromium so that people can use their own
|
||||
easily, using Arch's patch for that.
|
||||
|
||||
Signed-off-by: Matt Jolly <kangie@gentoo.org>
|
||||
--- a/google_apis/api_key_cache.cc
|
||||
+++ b/google_apis/api_key_cache.cc
|
||||
@@ -235,14 +235,14 @@ ApiKeyCache::ApiKeyCache(const DefaultApiKeys& default_api_keys) {
|
||||
|
||||
std::string default_client_id = CalculateKeyValue(
|
||||
default_api_keys.google_default_client_id,
|
||||
- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), nullptr,
|
||||
+ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), ::switches::kOAuth2ClientID,
|
||||
std::string(), environment.get(), command_line, gaia_config,
|
||||
default_api_keys.allow_override_via_environment,
|
||||
default_api_keys.allow_unset_values);
|
||||
std::string default_client_secret = CalculateKeyValue(
|
||||
default_api_keys.google_default_client_secret,
|
||||
STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(),
|
||||
- nullptr, std::string(), environment.get(), command_line, gaia_config,
|
||||
+ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config,
|
||||
default_api_keys.allow_override_via_environment,
|
||||
default_api_keys.allow_unset_values);
|
||||
|
||||
--
|
||||
2.52.0
|
||||
@@ -1,90 +0,0 @@
|
||||
From dc66bab2e7a13ebfc18b83b70e77a5165ad36521 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Jolly <kangie@gentoo.org>
|
||||
Date: Fri, 13 Feb 2026 19:25:21 +1000
|
||||
Subject: [PATCH] cr145: revert to rollup wasm
|
||||
|
||||
This commit reverts most of 0cea597366df8740da5cc046cde6de2468ba1e56,
|
||||
where the wasm version of rollup was replaced by a native node module
|
||||
which is a _collossal pain_ for those of us that can't just download
|
||||
random binaries from the internet.
|
||||
|
||||
Signed-off-by: Matt Jolly <kangie@gentoo.org>
|
||||
--- a/third_party/devtools-frontend/src/front_end/Images/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/front_end/Images/BUILD.gn
|
||||
@@ -28,7 +28,7 @@ node_action("generate_css_vars") {
|
||||
}
|
||||
|
||||
node_action("optimize_images") {
|
||||
- script = "node_modules/rollup/dist/bin/rollup"
|
||||
+ script = "node_modules/@rollup/wasm-node/dist/bin/rollup"
|
||||
|
||||
_bundled_entrypoint = target_gen_dir + "/Images.prebundle.js"
|
||||
_output_file_location = target_gen_dir + "/Images.js"
|
||||
--- a/third_party/devtools-frontend/src/front_end/models/live-metrics/web-vitals-injected/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/front_end/models/live-metrics/web-vitals-injected/BUILD.gn
|
||||
@@ -26,7 +26,7 @@ devtools_module("web-vitals-injected") {
|
||||
}
|
||||
|
||||
node_action("bundled_library") {
|
||||
- script = "node_modules/rollup/dist/bin/rollup"
|
||||
+ script = "node_modules/@rollup/wasm-node/dist/bin/rollup"
|
||||
|
||||
_bundled_entrypoint = target_gen_dir + "/web-vitals-injected.js"
|
||||
_output_file_location = target_gen_dir + "/web-vitals-injected.generated.js"
|
||||
--- a/third_party/devtools-frontend/src/front_end/panels/recorder/injected/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/front_end/panels/recorder/injected/BUILD.gn
|
||||
@@ -55,7 +55,7 @@ devtools_entrypoint("bundle") {
|
||||
}
|
||||
|
||||
node_action("bundled_library") {
|
||||
- script = "node_modules/rollup/dist/bin/rollup"
|
||||
+ script = "node_modules/@rollup/wasm-node/dist/bin/rollup"
|
||||
|
||||
_bundled_entrypoint = target_gen_dir + "/injected.js"
|
||||
_output_file_location = target_gen_dir + "/injected.generated.js"
|
||||
--- a/third_party/devtools-frontend/src/front_end/third_party/codemirror.next/rebuild.sh
|
||||
+++ b/third_party/devtools-frontend/src/front_end/third_party/codemirror.next/rebuild.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
npm install
|
||||
../../../node_modules/.bin/tsc -d -t esnext -m esnext --moduleResolution node bundle.ts
|
||||
-../../../node_modules/rollup/dist/bin/rollup -c
|
||||
+../../../node_modules/@rollup/wasm-node/dist/bin/rollup -c
|
||||
rm -rf node_modules bundle.js bundle.d.ts
|
||||
# Because there's a bug in clang causing it to reformat import lists even where formatting is disabled, run it right away
|
||||
git cl format --js
|
||||
--- a/third_party/devtools-frontend/src/front_end/third_party/lit/rebuild.sh
|
||||
+++ b/third_party/devtools-frontend/src/front_end/third_party/lit/rebuild.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
npm install
|
||||
../../../node_modules/.bin/tsc -d -t esnext -m esnext --moduleResolution node src/*
|
||||
-../../../node_modules/rollup/dist/bin/rollup -c
|
||||
+../../../node_modules/@rollup/wasm-node/dist/bin/rollup -c
|
||||
rm -rf node_modules src/*.js src/*.d.ts
|
||||
# Because there's a bug in clang causing it to reformat import lists even where formatting is disabled, run it right away
|
||||
git cl format --js
|
||||
--- a/third_party/devtools-frontend/src/inspector_overlay/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/inspector_overlay/BUILD.gn
|
||||
@@ -36,7 +36,7 @@ action("build_inspector_overlay") {
|
||||
"$target_gen_dir/tool_window_controls.css",
|
||||
"$target_gen_dir/main.js",
|
||||
devtools_location_prepend + "inspector_overlay/loadCSS.rollup.js",
|
||||
- devtools_location_prepend + "node_modules/rollup/dist/bin/rollup",
|
||||
+ devtools_location_prepend + "node_modules/@rollup/wasm-node/dist/bin/rollup",
|
||||
]
|
||||
|
||||
outputs = [ "$resources_out_dir/main.js" ]
|
||||
--- a/third_party/devtools-frontend/src/scripts/devtools_paths.py
|
||||
+++ b/third_party/devtools-frontend/src/scripts/devtools_paths.py
|
||||
@@ -65,7 +65,8 @@ def license_checker_path():
|
||||
def rollup_path():
|
||||
return path.join(
|
||||
node_modules_path(),
|
||||
- 'rollup',
|
||||
+ '@rollup',
|
||||
+ 'wasm-node',
|
||||
'dist',
|
||||
'bin',
|
||||
'rollup',
|
||||
--
|
||||
2.52.0
|
||||
|
||||
Reference in New Issue
Block a user