summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Vogt2023-12-10 22:49:09 +0100
committerNoah Vogt2023-12-10 22:49:09 +0100
commite8fac24a681cf8016a811b329e96fe39a710f3e0 (patch)
treeb992be930f7c8085734bc07fcfcae9f33cc44fa5
parent43c89d527ed63b6c019c540a7c1dfdf6ab25f5aa (diff)
downloadaur-e8fac24a681cf8016a811b329e96fe39a710f3e0.tar.gz
uppkg -> 120.0.6099.71-1
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD47
-rw-r--r--REVERT-disable-autoupgrading-debug-info.patch49
-rw-r--r--drop-flags-unsupported-by-clang16.patch51
-rw-r--r--libxml2-2.12.patch42
5 files changed, 130 insertions, 88 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19c90ede6451..2bbaa0739223 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ungoogled-chromium-xdg
pkgdesc = A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory
- pkgver = 119.0.6045.159
+ 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-xdg
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,28 +51,30 @@ pkgbase = ungoogled-chromium-xdg
optdepends = gtk4: for --gtk-version=4 (GTK4 IME might work better on Wayland)
optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
optdepends = kwallet5: support for storing passwords in KWallet on Plasma
- provides = chromium=119.0.6045.159
- provides = chromedriver=119.0.6045.159
+ 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.159.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 = REVERT-disable-autoupgrading-debug-info.patch
+ source = https://gitlab.com/Matt.Jolly/chromium-patches/-/archive/120/chromium-patches-120.tar.bz2
+ source = drop-flags-unsupported-by-clang16.patch
+ source = libxml2-2.12.patch
source = use-oauth2-client-switches-as-default.patch
source = xdg-basedir.patch
source = no-omnibox-suggestion-autocomplete.patch
source = index.html
- source = ungoogled-chromium-119.0.6045.123-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/refs/tags/119.0.6045.123-1.tar.gz
- sha256sums = d0d842712805ac81582dc0fecd4396fbf4380713df2fb50ceeb853dd38d1538f
+ source = ungoogled-chromium-120.0.6099.71-1.zip::https://github.com/noahvogt/ungoogled-chromium/archive/refs/heads/update.zip
+ sha256sums = 604755e5838ef0fd1bff4d6c5023cdda2d42ce982dda2c4be44cce487d3dd8d8
sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
- sha256sums = 09ecf142254525ddb9c2dbbb2c71775e68722412923a5a9bba5cc2e46af8d087
- sha256sums = 1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69
+ sha256sums = ffee1082fbe3d0c9e79dacb8405d5a0e1aa94d6745089a30b093f647354894d2
+ sha256sums = 8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556
+ sha256sums = 1808df5ba4d1e2f9efa07ac6b510bec866fa6d60e44505d82aea3f6072105a71
sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
sha256sums = f97e6cd3c4d2e04f5d9a0ea234fe768d6ba0fa9f4ecd5c7b2ca91030a1249078
sha256sums = ff1591fa38e0ede7e883dc7494b813641b7a1a7cb1ded00d9baaee987c1dbea8
sha256sums = a4cdd2b86f32d5302c2792be841ff40d982b19bb58a4e63df9d77f4c706b8665
- sha256sums = e20df54944837fc5097369b3c52b6d6922c1a32a57f25769c5bbff8a4db8bebe
+ sha256sums = 3f86e1bee22facd21b23109d5817c8dc02c563e9dbd0c65503b8fc7462bedb98
pkgname = ungoogled-chromium-xdg
diff --git a/PKGBUILD b/PKGBUILD
index 96244799ac2e..aea38da74449 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@
# binary version of this package (-bin): github.com/noahvogt/ungoogled-chromium-xdg-bin-aur
pkgname=ungoogled-chromium-xdg
-pkgver=119.0.6045.159
+pkgver=120.0.6099.71
pkgrel=1
_launcher_ver=8
_manual_clone=0
@@ -35,15 +35,17 @@ 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-disable-autoupgrading-debug-info.patch
+ drop-flags-unsupported-by-clang16.patch
+ libxml2-2.12.patch
use-oauth2-client-switches-as-default.patch
xdg-basedir.patch
no-omnibox-suggestion-autocomplete.patch
index.html)
-sha256sums=('d0d842712805ac81582dc0fecd4396fbf4380713df2fb50ceeb853dd38d1538f'
+sha256sums=('604755e5838ef0fd1bff4d6c5023cdda2d42ce982dda2c4be44cce487d3dd8d8'
'213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
- '09ecf142254525ddb9c2dbbb2c71775e68722412923a5a9bba5cc2e46af8d087'
- '1b782b0f6d4f645e4e0daa8a4852d63f0c972aa0473319216ff04613a0592a69'
+ 'ffee1082fbe3d0c9e79dacb8405d5a0e1aa94d6745089a30b093f647354894d2'
+ '8d1cdf3ddd8ff98f302c90c13953f39cd804b3479b13b69b8ef138ac57c83556'
+ '1808df5ba4d1e2f9efa07ac6b510bec866fa6d60e44505d82aea3f6072105a71'
'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711'
'f97e6cd3c4d2e04f5d9a0ea234fe768d6ba0fa9f4ecd5c7b2ca91030a1249078'
'ff1591fa38e0ede7e883dc7494b813641b7a1a7cb1ded00d9baaee987c1dbea8'
@@ -58,26 +60,26 @@ provides=("chromium=${pkgver}" "chromedriver=${pkgver}")
conflicts=('chromium' 'chromedriver')
_uc_usr=ungoogled-software
_uc_rel=1
-# _uc_ver="$pkgver-$_uc_rel"
-_uc_ver="119.0.6045.123-$_uc_rel"
+_uc_ver="$pkgver-$_uc_rel"
+# _uc_ver="119.0.6045.123-$_uc_rel"
source=(${source[@]}
- ${pkgname%-*}-$_uc_ver.tar.gz::https://github.com/$_uc_usr/ungoogled-chromium/archive/refs/tags/$_uc_ver.tar.gz)
- # ${pkgname%-*}-$_uc_ver.zip::https://github.com/noahvogt/${pkgname%-*}/archive/refs/heads/update.zip)
+ # ${pkgname%-*}-$_uc_ver.tar.gz::https://github.com/$_uc_usr/ungoogled-chromium/archive/refs/tags/$_uc_ver.tar.gz)
+ ${pkgname%-*}-$_uc_ver.zip::https://github.com/noahvogt/${pkgname%-*}/archive/refs/heads/update.zip)
sha256sums=(${sha256sums[@]}
- 'e20df54944837fc5097369b3c52b6d6922c1a32a57f25769c5bbff8a4db8bebe')
+ '3f86e1bee22facd21b23109d5817c8dc02c563e9dbd0c65503b8fc7462bedb98')
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
# Keys are the names in the above script; values are the dependencies in Arch
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]=
@@ -88,9 +90,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=(
@@ -129,18 +131,17 @@ prepare() {
patch -Np1 -i ../use-oauth2-client-switches-as-default.patch
# 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
@@ -217,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_gnome_keyring=false'
'use_sysroot=false'
'use_system_libffi=true'
diff --git a/REVERT-disable-autoupgrading-debug-info.patch b/REVERT-disable-autoupgrading-debug-info.patch
deleted file mode 100644
index a60db7ee6d2f..000000000000
--- 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 000000000000..a180426eb856
--- /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
diff --git a/libxml2-2.12.patch b/libxml2-2.12.patch
new file mode 100644
index 000000000000..6138ef350ebf
--- /dev/null
+++ b/libxml2-2.12.patch
@@ -0,0 +1,42 @@
+From 871f8ae9b65ce2679b0bc0be36902d65edf0c1e4 Mon Sep 17 00:00:00 2001
+From: Joey Arhar <jarhar@chromium.org>
+Date: Thu, 2 Nov 2023 20:45:11 +0000
+Subject: [PATCH] Roll libxml from b8961a75 to 7a2d412f
+
+Bug: 934413
+Change-Id: I6fb176d76dba9a9adf411395fa5f6b950b52920a
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4985186
+Reviewed-by: David Baron <dbaron@chromium.org>
+Commit-Queue: Joey Arhar <jarhar@chromium.org>
+Cr-Commit-Position: refs/heads/main@{#1219084}
+---
+ third_party/blink/renderer/core/xml/xslt_processor.h | 2 +-
+ third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/third_party/blink/renderer/core/xml/xslt_processor.h b/third_party/blink/renderer/core/xml/xslt_processor.h
+index d53835e9675..2eaea31ed29 100644
+--- a/third_party/blink/renderer/core/xml/xslt_processor.h
++++ b/third_party/blink/renderer/core/xml/xslt_processor.h
+@@ -77,7 +77,7 @@ class XSLTProcessor final : public ScriptWrappable {
+
+ void reset();
+
+- static void ParseErrorFunc(void* user_data, xmlError*);
++ static void ParseErrorFunc(void* user_data, const xmlError*);
+ static void GenericErrorFunc(void* user_data, const char* msg, ...);
+
+ // Only for libXSLT callbacks
+diff --git a/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc b/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc
+index 133e0b3355d..f424077089d 100644
+--- a/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc
++++ b/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc
+@@ -66,7 +66,7 @@ void XSLTProcessor::GenericErrorFunc(void*, const char*, ...) {
+ // It would be nice to do something with this error message.
+ }
+
+-void XSLTProcessor::ParseErrorFunc(void* user_data, xmlError* error) {
++void XSLTProcessor::ParseErrorFunc(void* user_data, const xmlError* error) {
+ FrameConsole* console = static_cast<FrameConsole*>(user_data);
+ if (!console)
+ return;