summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustKidding2024-02-04 19:28:40 -0500
committerJustKidding2024-02-04 19:28:40 -0500
commitd65c55e849e9442343ee62cc09160ee14a13dc54 (patch)
treeaebd910b0c16d3344b7bed17c2bd87ac2822dcd4
parent936e2796b0ffef71ac106de212e117c43e8564dd (diff)
downloadaur-d65c55e849e9442343ee62cc09160ee14a13dc54.tar.gz
upgpkg: ungoogled-chromium 121.0.6167.139-1
upstream release
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD54
-rw-r--r--chromium-121-constexpr.patch12
-rw-r--r--compiler-rt-16.patch36
4 files changed, 102 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f70b9a55317a..08728e54de51 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ungoogled-chromium
pkgdesc = A lightweight approach to removing Google web service dependency
- pkgver = 121.0.6167.85
+ pkgver = 121.0.6167.139
pkgrel = 1
url = https://github.com/ungoogled-software/ungoogled-chromium
arch = x86_64
@@ -51,30 +51,36 @@ pkgbase = ungoogled-chromium
optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
optdepends = kwallet: support for storing passwords in KWallet on Plasma
optdepends = chromium-extension-web-store: Web Store Functionality
- provides = chromium=121.0.6167.85
- provides = chromedriver=121.0.6167.85
+ provides = chromium=121.0.6167.139
+ provides = chromedriver=121.0.6167.139
conflicts = chromium
conflicts = chromedriver
options = !lto
- source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-121.0.6167.85.tar.xz
+ source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-121.0.6167.139.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/121/chromium-patches-121.tar.bz2
+ source = REVERT-simplify-blink-NativeValueTraitsBase.patch::https://github.com/chromium/chromium/commit/940af9f2c87b.patch
source = icu-74.patch
+ source = chromium-121-constexpr.patch
source = drop-flags-unsupported-by-clang16.patch
+ source = compiler-rt-16.patch
source = use-oauth2-client-switches-as-default.patch
- source = ungoogled-chromium-121.0.6167.85-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/121.0.6167.85-1.tar.gz
+ source = ungoogled-chromium-121.0.6167.139-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/121.0.6167.139-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 = a2f46c5266681126ea9e15c1c3067560d84f3e5d902e1ace934a3813c84e7152
+ sha256sums = e12cc967bef7a79630828792f02d95297a06eb905c98e4c6e065fd5e74d6f9ff
sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
sha256sums = e9113c1ed2900b84b488e608774ce25212d3c60094abdae005d8a943df9b505e
+ sha256sums = 318df8f8662071cebcdf953698408058e17f59f184500b7e12e01a04a4206b50
sha256sums = ff9ebd86b0010e1c604d47303ab209b1d76c3e888c423166779cefbc22de297f
+ sha256sums = 09677c39ff9b910c732a049252969bfa03587e70502765d68b0345bac396c0b2
sha256sums = 8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556
+ sha256sums = 8a2649dcc6ff8d8f24ddbe40dc2a171824f681c6f33c39c4792b645b87c9dcab
sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
- sha256sums = de62d7c174b443bb31d0a20ac96be3dbd7ac355d6f0778886b90cb4da8a0c727
+ sha256sums = a4f389f9159effbbe47a07ade0b8b9b86ebb64a56230ea7a4b43664cd499f829
sha256sums = 9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec
sha256sums = 8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f
sha256sums = 2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3
diff --git a/PKGBUILD b/PKGBUILD
index df52c0dbca41..961acd90450e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=ungoogled-chromium
-pkgver=121.0.6167.85
+pkgver=121.0.6167.139
pkgrel=1
_launcher_ver=8
_manual_clone=0
@@ -35,14 +35,20 @@ options=('!lto') # Chromium adds its own flags for ThinLTO
source=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz
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
+ REVERT-simplify-blink-NativeValueTraitsBase.patch::https://github.com/chromium/chromium/commit/940af9f2c87b.patch
icu-74.patch
+ chromium-121-constexpr.patch
drop-flags-unsupported-by-clang16.patch
+ compiler-rt-16.patch
use-oauth2-client-switches-as-default.patch)
-sha256sums=('a2f46c5266681126ea9e15c1c3067560d84f3e5d902e1ace934a3813c84e7152'
+sha256sums=('e12cc967bef7a79630828792f02d95297a06eb905c98e4c6e065fd5e74d6f9ff'
'213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
'e9113c1ed2900b84b488e608774ce25212d3c60094abdae005d8a943df9b505e'
+ '318df8f8662071cebcdf953698408058e17f59f184500b7e12e01a04a4206b50'
'ff9ebd86b0010e1c604d47303ab209b1d76c3e888c423166779cefbc22de297f'
+ '09677c39ff9b910c732a049252969bfa03587e70502765d68b0345bac396c0b2'
'8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556'
+ '8a2649dcc6ff8d8f24ddbe40dc2a171824f681c6f33c39c4792b645b87c9dcab'
'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711')
if (( _manual_clone )); then
@@ -64,7 +70,7 @@ source=("${source[@]}"
0001-ozone-wayland-implement-text_input_manager_v3.patch
0001-ozone-wayland-implement-text_input_manager-fixes.patch)
sha256sums=("${sha256sums[@]}"
- 'de62d7c174b443bb31d0a20ac96be3dbd7ac355d6f0778886b90cb4da8a0c727'
+ 'a4f389f9159effbbe47a07ade0b8b9b86ebb64a56230ea7a4b43664cd499f829'
'9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec'
'8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f'
'2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3'
@@ -139,13 +145,24 @@ prepare() {
# Fix build with ICU 74
patch -Np1 -i ../icu-74.patch
+ # Fix "error: defaulted definition of equality comparison operator cannot
+ # be declared constexpr because it invokes a non-constexpr comparison
+ # function" (patch from Fedora)
+ patch -Np1 -i ../chromium-121-constexpr.patch
+
+ # Revert usage of C++20 features which likely need newer clang
+ patch -Rp1 -i ../REVERT-simplify-blink-NativeValueTraitsBase.patch
+
# Drop compiler flags that need newer clang
- #patch -Np1 -i ../drop-flags-unsupported-by-clang16.patch
+ patch -Np1 -i ../drop-flags-unsupported-by-clang16.patch
+
+ # Allow libclang_rt.builtins from compiler-rt 16 to be used
+ patch -Np1 -i ../compiler-rt-16.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-117-material-color-include.patch
- #patch -Np1 -i ../chromium-patches-*/chromium-119-clang16.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-clang16.patch
# Custom Patches
sed -i '/^bool IsHevcProfileSupported(const VideoType& type) {$/{s++bool IsHevcProfileSupported(const VideoType\& type) { return true;+;h};${x;/./{x;q0};x;q1}' \
@@ -168,12 +185,14 @@ prepare() {
ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/
ln -s /usr/bin/java third_party/jdk/current/bin/
- # Use prebuilt rust as system rust cannot be used due to the error:
- # error: the option `Z` is only accepted on the nightly compiler
- ./tools/rust/update_rust.py
+ if (( !_system_clang )); then
+ # Use prebuilt rust as system rust cannot be used due to the error:
+ # error: the option `Z` is only accepted on the nightly compiler
+ ./tools/rust/update_rust.py
- # To link to rust libraries we need to compile with prebuilt clang
- ./tools/clang/scripts/update.py
+ # To link to rust libraries we need to compile with prebuilt clang
+ ./tools/clang/scripts/update.py
+ fi
# Ungoogled Chromium changes
_ungoogled_repo="$srcdir/$pkgname-$_uc_ver"
@@ -254,7 +273,16 @@ build() {
'clang_base_path="/usr"'
'clang_use_chrome_plugins=false'
"clang_version=\"$_clang_version\""
- #'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
+ 'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
+ )
+
+ # Allow the use of nightly features with stable Rust compiler
+ # https://github.com/ungoogled-software/ungoogled-chromium/pull/2696#issuecomment-1918173198
+ export RUSTC_BOOTSTRAP=1
+
+ _flags+=(
+ 'rust_sysroot_absolute="/usr"'
+ "rustc_version=\"$(rustc --version)\""
)
fi
diff --git a/chromium-121-constexpr.patch b/chromium-121-constexpr.patch
new file mode 100644
index 000000000000..a0b7166a5c8f
--- /dev/null
+++ b/chromium-121-constexpr.patch
@@ -0,0 +1,12 @@
+diff -up chromium-121.0.6167.57/components/performance_manager/resource_attribution/query_params.h.me chromium-121.0.6167.57/components/performance_manager/resource_attribution/query_params.h
+--- chromium-121.0.6167.57/components/performance_manager/resource_attribution/query_params.h.me 2024-01-18 17:00:24.791582422 +0100
++++ chromium-121.0.6167.57/components/performance_manager/resource_attribution/query_params.h 2024-01-18 17:22:21.521682845 +0100
+@@ -27,7 +27,7 @@ struct QueryParams {
+ QueryParams(const QueryParams& other);
+ QueryParams& operator=(const QueryParams& other);
+
+- friend constexpr bool operator==(const QueryParams&,
++ friend bool operator==(const QueryParams&,
+ const QueryParams&) = default;
+
+ // Individual resource contexts to measure.
diff --git a/compiler-rt-16.patch b/compiler-rt-16.patch
new file mode 100644
index 000000000000..e14829ad2987
--- /dev/null
+++ b/compiler-rt-16.patch
@@ -0,0 +1,36 @@
+diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
+index d4de2e0cca0..57359c32121 100644
+--- a/build/config/clang/BUILD.gn
++++ b/build/config/clang/BUILD.gn
+@@ -130,12 +130,15 @@ template("clang_lib") {
+ } else if (is_linux || is_chromeos) {
+ if (current_cpu == "x64") {
+ _dir = "x86_64-unknown-linux-gnu"
++ _suffix = "-x86_64"
+ } else if (current_cpu == "x86") {
+ _dir = "i386-unknown-linux-gnu"
++ _suffix = "-i386"
+ } else if (current_cpu == "arm") {
+ _dir = "armv7-unknown-linux-gnueabihf"
+ } else if (current_cpu == "arm64") {
+ _dir = "aarch64-unknown-linux-gnu"
++ _suffix = "-aarch64"
+ } else {
+ assert(false) # Unhandled cpu type
+ }
+@@ -166,6 +169,15 @@ template("clang_lib") {
+ assert(false) # Unhandled target platform
+ }
+
++ # Bit of a hack to make this find builtins from compiler-rt 16
++ if (is_linux || is_chromeos) {
++ if (clang_version == "16") {
++ _dir = "linux"
++ } else {
++ _suffix = ""
++ }
++ }
++
+ _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
+ _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
+ libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]