summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustKidding <jk@vin.ovh>2023-12-09 09:30:40 -0500
committerJustKidding <jk@vin.ovh>2023-12-09 09:30:40 -0500
commitb48c6c252fff36734dc059072dece4d9057397e7 (patch)
treebb40afa0ffb51314aab42b39a1a89469698cc1e4
parent46fc2c95a4ce41723e6e1e02fda309cc7dbfe302 (diff)
downloadungoogled-chromium-b48c6c252fff36734dc059072dece4d9057397e7.tar.gz
ungoogled-chromium-b48c6c252fff36734dc059072dece4d9057397e7.tar.bz2
ungoogled-chromium-b48c6c252fff36734dc059072dece4d9057397e7.zip
upgpkg: ungoogled-chromium 120.0.6099.71-1
upstream release
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD35
-rw-r--r--REVERT-disable-autoupgrading-debug-info.patch49
-rw-r--r--drop-flags-unsupported-by-clang16.patch51
4 files changed, 79 insertions, 83 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c691bc0..cb0e052 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ungoogled-chromium
pkgdesc = A lightweight approach to removing Google web service dependency
- pkgver = 119.0.6045.199
+ pkgver = 120.0.6099.71
pkgrel = 1
url = https://github.com/ungoogled-software/ungoogled-chromium
arch = x86_64
@@ -33,20 +33,15 @@ pkgbase = ungoogled-chromium
depends = desktop-file-utils
depends = hicolor-icon-theme
depends = fontconfig
- depends = woff2
depends = libjpeg
depends = icu
depends = dav1d
depends = flac
- depends = snappy
depends = libxml2
- depends = ffmpeg
depends = libwebp
depends = minizip
depends = opus
depends = harfbuzz
- depends = re2
- depends = jsoncpp
depends = libxslt
depends = libpng
depends = freetype2
@@ -56,30 +51,30 @@ pkgbase = ungoogled-chromium
optdepends = gtk4: for --gtk-version=4 (GTK4 IME might work better on Wayland)
optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
optdepends = kwallet: support for storing passwords in KWallet on Plasma
- provides = chromium=119.0.6045.199
- provides = chromedriver=119.0.6045.199
+ provides = chromium=120.0.6099.71
+ provides = chromedriver=120.0.6099.71
conflicts = chromium
conflicts = chromedriver
options = !lto
- source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-119.0.6045.199.tar.xz
+ source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-120.0.6099.71.tar.xz
source = https://github.com/foutrelis/chromium-launcher/archive/v8/chromium-launcher-8.tar.gz
- source = https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/119/chromium-patches-119.tar.bz2
+ source = https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/120/chromium-patches-120.tar.bz2
source = libxml2-2.12.patch
- source = REVERT-disable-autoupgrading-debug-info.patch
+ source = drop-flags-unsupported-by-clang16.patch
source = use-oauth2-client-switches-as-default.patch
- source = ungoogled-chromium-119.0.6045.199-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/119.0.6045.199-1.tar.gz
+ source = ungoogled-chromium-120.0.6099.71-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/120.0.6099.71-1.tar.gz
source = 0001-vaapi-flag-ozone-wayland.patch
source = 0001-adjust-buffer-format-order.patch
source = 0001-enable-linux-unstable-deb-target.patch
source = 0001-ozone-wayland-implement-text_input_manager_v3.patch
source = 0001-ozone-wayland-implement-text_input_manager-fixes.patch
- sha256sums = b1ae62beb7907d99802b74821d5198bd54a7456df1116d317da653bde8ce6388
+ sha256sums = 604755e5838ef0fd1bff4d6c5023cdda2d42ce982dda2c4be44cce487d3dd8d8
sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
- sha256sums = 09ecf142254525ddb9c2dbbb2c71775e68722412923a5a9bba5cc2e46af8d087
+ sha256sums = ffee1082fbe3d0c9e79dacb8405d5a0e1aa94d6745089a30b093f647354894d2
sha256sums = 1808df5ba4d1e2f9efa07ac6b510bec866fa6d60e44505d82aea3f6072105a71
- sha256sums = 1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69
+ sha256sums = 8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556
sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
- sha256sums = c9f8747c4e96d2d62b67909895606c546fa7986e184ce1d924a25ca1c11e69e8
+ sha256sums = e914c320883a054b3ec7463d40b9f7af4d8d750d33676dd074df952fd951d724
sha256sums = 9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec
sha256sums = 8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f
sha256sums = 2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3
diff --git a/PKGBUILD b/PKGBUILD
index 1dd4f41..280b69e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=ungoogled-chromium
-pkgver=119.0.6045.199
+pkgver=120.0.6099.71
pkgrel=1
_launcher_ver=8
_manual_clone=0
@@ -35,13 +35,13 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver/chromium-launcher-$_launcher_ver.tar.gz
https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/${pkgver%%.*}/chromium-patches-${pkgver%%.*}.tar.bz2
libxml2-2.12.patch
- REVERT-disable-autoupgrading-debug-info.patch
+ drop-flags-unsupported-by-clang16.patch
use-oauth2-client-switches-as-default.patch)
-sha256sums=('b1ae62beb7907d99802b74821d5198bd54a7456df1116d317da653bde8ce6388'
+sha256sums=('604755e5838ef0fd1bff4d6c5023cdda2d42ce982dda2c4be44cce487d3dd8d8'
'213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
- '09ecf142254525ddb9c2dbbb2c71775e68722412923a5a9bba5cc2e46af8d087'
+ 'ffee1082fbe3d0c9e79dacb8405d5a0e1aa94d6745089a30b093f647354894d2'
'1808df5ba4d1e2f9efa07ac6b510bec866fa6d60e44505d82aea3f6072105a71'
- '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69'
+ '8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556'
'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711')
if (( _manual_clone )); then
@@ -61,7 +61,7 @@ source=("${source[@]}"
0001-ozone-wayland-implement-text_input_manager_v3.patch
0001-ozone-wayland-implement-text_input_manager-fixes.patch)
sha256sums=("${sha256sums[@]}"
- 'c9f8747c4e96d2d62b67909895606c546fa7986e184ce1d924a25ca1c11e69e8'
+ 'e914c320883a054b3ec7463d40b9f7af4d8d750d33676dd074df952fd951d724'
'9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec'
'8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f'
'2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3'
@@ -74,13 +74,13 @@ sha256sums=("${sha256sums[@]}"
declare -gA _system_libs=(
#[brotli]=brotli
[dav1d]=dav1d
- [ffmpeg]=ffmpeg
+ #[ffmpeg]=ffmpeg # YouTube playback stopped working in Chromium 120
[flac]=flac
[fontconfig]=fontconfig
[freetype]=freetype2
[harfbuzz-ng]=harfbuzz
[icu]=icu
- [jsoncpp]=jsoncpp
+ #[jsoncpp]=jsoncpp # needs libstdc++
#[libaom]=aom
#[libavif]=libavif # needs https://github.com/AOMediaCodec/libavif/commit/5410b23f76
[libdrm]=
@@ -91,9 +91,9 @@ declare -gA _system_libs=(
[libxml]=libxml2
[libxslt]=libxslt
[opus]=opus
- [re2]=re2
- [snappy]=snappy
- [woff2]=woff2
+ #[re2]=re2 # needs libstdc++
+ #[snappy]=snappy # needs libstdc++
+ #[woff2]=woff2 # needs libstdc++
[zlib]=minizip
)
_unwanted_bundled_libs=(
@@ -134,16 +134,15 @@ prepare() {
# Upstream fixes
patch -Np1 -i ../libxml2-2.12.patch
- # Revert addition of compiler flag that needs newer clang
- patch -Rp1 -i ../REVERT-disable-autoupgrading-debug-info.patch
+ # Drop compiler flags that need newer clang
+ patch -Np1 -i ../drop-flags-unsupported-by-clang16.patch
# Fixes for building with libstdc++ instead of libc++
- patch -Np1 -i ../chromium-patches-*/chromium-114-ruy-include.patch
- patch -Np1 -i ../chromium-patches-*/chromium-114-vk_mem_alloc-include.patch
- patch -Np1 -i ../chromium-patches-*/chromium-117-material-color-include.patch
- patch -Np1 -i ../chromium-patches-*/chromium-119-FragmentDataIterator-std.patch
+ #patch -Np1 -i ../chromium-patches-*/chromium-114-ruy-include.patch
+ #patch -Np1 -i ../chromium-patches-*/chromium-117-material-color-include.patch
patch -Np1 -i ../chromium-patches-*/chromium-119-at-spi-variable-consumption.patch
patch -Np1 -i ../chromium-patches-*/chromium-119-clang16.patch
+ #patch -Np1 -i ../chromium-patches-*/chromium-120-std-nullptr_t.patch
# Custom Patches
sed -i '/^bool IsHevcProfileSupported(const VideoType& type) {$/{s++bool IsHevcProfileSupported(const VideoType\& type) { return true;+;h};${x;/./{x;q0};x;q1}' \
@@ -219,7 +218,7 @@ build() {
'proprietary_codecs=true'
'rtc_use_pipewire=true'
'link_pulseaudio=true'
- 'use_custom_libcxx=false'
+ 'use_custom_libcxx=true' # https://github.com/llvm/llvm-project/issues/61705
'use_sysroot=false'
'use_system_libffi=true'
'enable_hangout_services_extension=true'
diff --git a/REVERT-disable-autoupgrading-debug-info.patch b/REVERT-disable-autoupgrading-debug-info.patch
deleted file mode 100644
index a60db7e..0000000
--- a/REVERT-disable-autoupgrading-debug-info.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 54969766fd2029c506befc46e9ce14d67c7ed02a Mon Sep 17 00:00:00 2001
-From: Arthur Eubanks <aeubanks@google.com>
-Date: Tue, 25 Apr 2023 03:05:19 +0000
-Subject: [PATCH] Reland [clang] Disable autoupgrading debug info in ThinLTO
- builds
-
-ThinLTO reads bitcode many times and attempts to upgrade the debug info every time. This is expensive since it calls the verifier. We don't need this given all LLVM bitcode producers are from the same version of LLVM.
-
-For just the build step that runs ThinLTO and links official Chrome, measured 34T -> 32T instructions via perf stat.
-
-Reland disables adding flag for ChromeOS since that toolchain is too old to have this flag.
-
-Bug: 972449
-Change-Id: I44552dd6c9dc71683c002d0c885e78b2a4341659
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4470209
-Reviewed-by: Nico Weber <thakis@chromium.org>
-Commit-Queue: Arthur Eubanks <aeubanks@google.com>
-Cr-Commit-Position: refs/heads/main@{#1135007}
----
- build/config/compiler/BUILD.gn | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
-index 1c13bc80f0f..53db095c1b1 100644
---- a/build/config/compiler/BUILD.gn
-+++ b/build/config/compiler/BUILD.gn
-@@ -685,6 +685,7 @@ config("compiler") {
- "/lldltocache:" +
- rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
- "/lldltocachepolicy:$cache_policy",
-+ "-mllvm:-disable-auto-upgrade-debug-info",
- ]
- } else {
- ldflags += [ "-flto=thin" ]
-@@ -725,6 +726,14 @@ config("compiler") {
- }
-
- ldflags += [ "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" ]
-+
-+ if (!is_chromeos) {
-+ # TODO(https://crbug.com/972449): turn on for ChromeOS when that
-+ # toolchain has this flag.
-+ # We only use one version of LLVM within a build so there's no need to
-+ # upgrade debug info, which can be expensive since it runs the verifier.
-+ ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
-+ }
- }
-
- # TODO(https://crbug.com/1211155): investigate why this isn't effective on
diff --git a/drop-flags-unsupported-by-clang16.patch b/drop-flags-unsupported-by-clang16.patch
new file mode 100644
index 0000000..a180426
--- /dev/null
+++ b/drop-flags-unsupported-by-clang16.patch
@@ -0,0 +1,51 @@
+diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
+index 80bc79e5fb3..13b200e4cb0 100644
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -616,24 +616,6 @@ config("compiler") {
+ }
+ }
+
+- # TODO(crbug.com/1488374): This causes binary size growth and potentially
+- # other problems.
+- # TODO(crbug.com/1491036): This isn't supported by Cronet's mainline llvm version.
+- if (default_toolchain != "//build/toolchain/cros:target" &&
+- !llvm_android_mainline) {
+- cflags += [
+- "-mllvm",
+- "-split-threshold-for-reg-with-hint=0",
+- ]
+- if (use_thin_lto && is_a_target_toolchain) {
+- if (is_win) {
+- ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ]
+- } else {
+- ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
+- }
+- }
+- }
+-
+ # TODO(crbug.com/1235145): Investigate why/if this should be needed.
+ if (is_win) {
+ cflags += [ "/clang:-ffp-contract=off" ]
+@@ -768,7 +750,6 @@ config("compiler") {
+ ldflags += [
+ "/opt:lldltojobs=all",
+ "-mllvm:-import-instr-limit=$import_instr_limit",
+- "-mllvm:-disable-auto-upgrade-debug-info",
+ ]
+ } else {
+ ldflags += [ "-flto=thin" ]
+@@ -800,13 +781,6 @@ config("compiler") {
+ if (is_apple) {
+ ldflags += [ "-Wcrl,object_path_lto" ]
+ }
+- if (!is_chromeos) {
+- # TODO(https://crbug.com/972449): turn on for ChromeOS when that
+- # toolchain has this flag.
+- # We only use one version of LLVM within a build so there's no need to
+- # upgrade debug info, which can be expensive since it runs the verifier.
+- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
+- }
+ }
+
+ # TODO(https://crbug.com/1211155): investigate why this isn't effective on