Update package version to 153.0.8010.52
This commit is contained in:
12 files changed
+702
-94
No files matched your search
@@ -2,49 +2,75 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
_patch() {
|
||||
echo "Patching $1..."
|
||||
patch -Np1 -i "$BPM_WORKDIR"/"$1"
|
||||
}
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for putting downloaded files to the correct location or applying patches
|
||||
prepare() {
|
||||
cd "$BPM_SOURCE"
|
||||
|
||||
# Most of these patches and fixes have been borrowed from Arch Linux
|
||||
|
||||
# Use the --oauth2-client-id= and --oauth2-client-secret= switches for
|
||||
# setting GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET at
|
||||
# runtime -- this allows signing into Chromium without baked-in values
|
||||
patch -Np1 -i "$BPM_WORKDIR"/use-oauth2-client-switches-as-default.patch
|
||||
_patch use-oauth2-client-switches-as-default.patch
|
||||
|
||||
# Fixes from Gentoo
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-138-nodejs-version-check.patch
|
||||
_patch chromium-138-nodejs-version-check.patch
|
||||
|
||||
# Increase _FORTIFY_SOURCE level
|
||||
patch -Np1 -i "$BPM_WORKDIR"/increase-fortify-level.patch
|
||||
_patch increase-fortify-level.patch
|
||||
|
||||
# Fix issue about missing compiler flag. Can be fixed by upgrading to LLVM 23
|
||||
# clang++: error: unknown argument: '-fsanitize-ignore-for-ubsan-feature=array-bounds'
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-149-drop-unknown-clang-flag.patch
|
||||
_patch chromium-149-drop-unknown-clang-flag.patch
|
||||
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-147-rust-1.95-bytemuck.patch
|
||||
_patch chromium-147-rust-1.95-bytemuck.patch
|
||||
|
||||
# Fixes unknown argument error
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-147-revert-clang-no-lifetime-dse-flag.patch
|
||||
_patch chromium-147-revert-clang-no-lifetime-dse-flag.patch
|
||||
|
||||
# https://crbug.com/456218403
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-145-fix-SYS_SECCOMP.patch
|
||||
_patch chromium-145-fix-SYS_SECCOMP.patch
|
||||
|
||||
patch -Np1 -i "$BPM_WORKDIR"/ungoogled-chromium-145-build-with-wasm-rollup.patch
|
||||
_patch ungoogled-chromium-145-build-with-wasm-rollup.patch
|
||||
|
||||
patch -Np1 -i "$BPM_WORKDIR"/dont_require_profiler_builtins.rlib.patch
|
||||
_patch dont_require_profiler_builtins.rlib.patch
|
||||
|
||||
# Chromium bundles a patched minizip with extra features.
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-149-unbundle-minizip-undo-unicode.patch
|
||||
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-149-use-of-undeclared-identifier-ERROR.patch
|
||||
|
||||
# Credit: https://github.com/ungoogled-software/ungoogled-chromium/pull/3883
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-151-dont-depends-on-histograms.xml-if-it-is-not-git-checkout.patch
|
||||
_patch chromium-149-use-of-undeclared-identifier-ERROR.patch
|
||||
|
||||
# Fix issue about missing AVX functions
|
||||
# Credit: https://github.com/ungoogled-software/ungoogled-chromium/pull/3837
|
||||
patch -Np1 -i "$BPM_WORKDIR"/chromium-150-revert-avx-flag-change.patch
|
||||
_patch chromium-150-revert-avx-flag-change.patch
|
||||
|
||||
pushd third_party/devtools-frontend/src
|
||||
_patch chromium-152-fix-gn-no-public_inputs.patch
|
||||
popd
|
||||
|
||||
_patch chromium-152-unbundle-minizip-undo-unicode.patch
|
||||
|
||||
_patch chromium-152-unbundle-opus-devtools.patch
|
||||
|
||||
# Use system python3 instead of the hermetic cpython3 interpreter
|
||||
# https://github.com/ungoogled-software/ungoogled-chromium/pull/3946
|
||||
_patch chromium-153-hermetic-python.patch
|
||||
|
||||
# third_party/iamf_tools includes vendored Opus via relative "include/opus.h"
|
||||
# paths that only resolve against a real bundled Opus checkout; fix them up
|
||||
# for the unbundled system Opus build
|
||||
_patch chromium-153-iamf-tools-unbundled-opus.patch
|
||||
|
||||
# Work around TypeScript becoming a build dependency: disable tsgo for the
|
||||
# WebUI and point devtools at the system tsc binary
|
||||
# https://github.com/ungoogled-software/ungoogled-chromium/pull/3946
|
||||
_patch chromium-153-typescript.patch
|
||||
|
||||
_patch chromium-153-crubit.patch
|
||||
|
||||
|
||||
# Allow building against system libraries in official builds
|
||||
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
|
||||
@@ -66,16 +92,21 @@ prepare() {
|
||||
|
||||
local _system_libs=(
|
||||
brotli
|
||||
dav1d
|
||||
flac
|
||||
fontconfig
|
||||
freetype
|
||||
harfbuzz
|
||||
highway
|
||||
libdrm
|
||||
libjpeg
|
||||
libwebp
|
||||
libxml
|
||||
libxslt
|
||||
openh264
|
||||
opus
|
||||
zlib
|
||||
zstd
|
||||
)
|
||||
|
||||
# Remove bundled libraries for which we will use the system copies; this
|
||||
|
||||
Reference in new issue
Block a user