summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornetworkException <ungoogled-github-actions.arch@nwex.de>2024-11-14 21:43:26 +0000
committernetworkException <ungoogled-github-actions.arch@nwex.de>2024-11-14 21:43:26 +0000
commit6bbad580cb42d4a18eeab074b3f05892e948259f (patch)
treebb6d262fd816d84e2ee47c04361c3eb0900289bf
parent3c45d5093fe57cf9772eba0f8fd5806d9c9ac24f (diff)
downloadungoogled-chromium-6bbad580cb42d4a18eeab074b3f05892e948259f.tar.gz
ungoogled-chromium-6bbad580cb42d4a18eeab074b3f05892e948259f.tar.bz2
ungoogled-chromium-6bbad580cb42d4a18eeab074b3f05892e948259f.zip
Upgrade to 131.0.6778.69-1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD25
-rw-r--r--const-atomicstring-conversion.patch35
-rw-r--r--unbundle-add-enable_freetype.patch32
-rw-r--r--unbundle-icu-target.patch21
-rw-r--r--use-oauth2-client-switches-as-default.patch37
6 files changed, 139 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4fdf36f..d2abae4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ungoogled-chromium
pkgdesc = A lightweight approach to removing Google web service dependency
- pkgver = 130.0.6723.116
- pkgrel = 3
+ pkgver = 131.0.6778.69
+ pkgrel = 1
url = https://github.com/ungoogled-software/ungoogled-chromium
arch = x86_64
license = BSD-3-Clause
@@ -59,13 +59,13 @@ pkgbase = ungoogled-chromium
optdepends = org.freedesktop.secrets: password storage backend on GNOME / Xfce
optdepends = kwallet: support for storing passwords in KWallet on Plasma
optdepends = upower: Battery Status API support
- provides = chromium=130.0.6723.116
- provides = chromedriver=130.0.6723.116
+ provides = chromium=131.0.6778.69
+ provides = chromedriver=131.0.6778.69
conflicts = chromium
conflicts = chromedriver
options = !lto
source = fetch-chromium-release
- source = ungoogled-chromium-130.0.6723.116-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/130.0.6723.116-1.tar.gz
+ source = ungoogled-chromium-131.0.6778.69-1.tar.gz::https://github.com/ungoogled-software/ungoogled-chromium/archive/131.0.6778.69-1.tar.gz
source = https://github.com/foutrelis/chromium-launcher/archive/v8/chromium-launcher-8.tar.gz
source = compiler-rt-adjust-paths.patch
source = increase-fortify-level.patch
@@ -75,16 +75,22 @@ pkgbase = ungoogled-chromium
source = 0001-ozone-wayland-implement-text_input_manager_v3.patch
source = 0001-ozone-wayland-implement-text_input_manager-fixes.patch
source = 0001-vaapi-flag-ozone-wayland.patch
+ source = unbundle-add-enable_freetype.patch
+ source = unbundle-icu-target.patch
+ source = const-atomicstring-conversion.patch
sha256sums = 720a1196410080056cd97a1f5ec34d68ba216a281d9b5157b7ea81ea018ec661
- sha256sums = bba566d563e3fb75f313b1f49a81f62f75908f05d9d32e99742a8844e8790965
+ sha256sums = 68f51cd5666e16f578506c072ae595740237426a2447221e8bb1ef758404b578
sha256sums = 213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a
sha256sums = b3de01b7df227478687d7517f61a777450dca765756002c80c4915f271e2d961
sha256sums = d634d2ce1fc63da7ac41f432b1e84c59b7cceabf19d510848a7cff40c8025342
- sha256sums = a9b417b96daec33c9059065e15b3a92ae1bf4b59f89d353659b335d9e0379db6
+ sha256sums = 6de648d449159dd579e42db304aca0a36243f2ac1538f8d030473afbbc8ff475
sha256sums = 8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f
sha256sums = 2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3
sha256sums = d9974ddb50777be428fd0fa1e01ffe4b587065ba6adefea33678e1b3e25d1285
sha256sums = a2da75d0c20529f2d635050e0662941c0820264ea9371eb900b9d90b5968fa6a
sha256sums = 9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec
+ sha256sums = f6e05adc80bd2f22b766d41a91739276c62201e47272c561f18a099c4a809e37
+ sha256sums = 67de7744b92cbfa6fcbf43a71ba531eb5a7b00381d96703d8dc3dfdadaebf67d
+ sha256sums = ac0c9e366ca6afe0839f9ecb6bc42614747349da0c3dc46408e5053dcb7ada76
pkgname = ungoogled-chromium
diff --git a/PKGBUILD b/PKGBUILD
index 78466d2..1fdf6a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,14 +9,14 @@
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=ungoogled-chromium
-pkgver=130.0.6723.116
-pkgrel=3
+pkgver=131.0.6778.69
+pkgrel=1
_launcher_ver=8
_manual_clone=1
_system_clang=1
# ungoogled chromium variables
_uc_usr=ungoogled-software
-_uc_ver=130.0.6723.116-1
+_uc_ver=131.0.6778.69-1
pkgdesc="A lightweight approach to removing Google web service dependency"
arch=('x86_64')
url="https://github.com/ungoogled-software/ungoogled-chromium"
@@ -46,18 +46,24 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
0001-enable-linux-unstable-deb-target.patch
0001-ozone-wayland-implement-text_input_manager_v3.patch
0001-ozone-wayland-implement-text_input_manager-fixes.patch
- 0001-vaapi-flag-ozone-wayland.patch)
+ 0001-vaapi-flag-ozone-wayland.patch
+ unbundle-add-enable_freetype.patch
+ unbundle-icu-target.patch
+ const-atomicstring-conversion.patch)
sha256sums=('720a1196410080056cd97a1f5ec34d68ba216a281d9b5157b7ea81ea018ec661'
- 'bba566d563e3fb75f313b1f49a81f62f75908f05d9d32e99742a8844e8790965'
+ '68f51cd5666e16f578506c072ae595740237426a2447221e8bb1ef758404b578'
'213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
'b3de01b7df227478687d7517f61a777450dca765756002c80c4915f271e2d961'
'd634d2ce1fc63da7ac41f432b1e84c59b7cceabf19d510848a7cff40c8025342'
- 'a9b417b96daec33c9059065e15b3a92ae1bf4b59f89d353659b335d9e0379db6'
+ '6de648d449159dd579e42db304aca0a36243f2ac1538f8d030473afbbc8ff475'
'8ba5c67b7eb6cacd2dbbc29e6766169f0fca3bbb07779b1a0a76c913f17d343f'
'2a44756404e13c97d000cc0d859604d6848163998ea2f838b3b9bb2c840967e3'
'd9974ddb50777be428fd0fa1e01ffe4b587065ba6adefea33678e1b3e25d1285'
'a2da75d0c20529f2d635050e0662941c0820264ea9371eb900b9d90b5968fa6a'
- '9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec')
+ '9a5594293616e1390462af1f50276ee29fd6075ffab0e3f944f6346cb2eb8aec'
+ 'f6e05adc80bd2f22b766d41a91739276c62201e47272c561f18a099c4a809e37'
+ '67de7744b92cbfa6fcbf43a71ba531eb5a7b00381d96703d8dc3dfdadaebf67d'
+ 'ac0c9e366ca6afe0839f9ecb6bc42614747349da0c3dc46408e5053dcb7ada76')
if (( _manual_clone )); then
source[0]=fetch-chromium-release
@@ -119,6 +125,11 @@ prepare() {
patch -Np1 -i ../use-oauth2-client-switches-as-default.patch
# Upstream fixes
+ patch -Np1 -i ../unbundle-add-enable_freetype.patch
+
+ # Fixes from Gentoo
+ patch -Np1 -i ../unbundle-icu-target.patch
+ patch -Np1 -i ../const-atomicstring-conversion.patch
# Allow libclang_rt.builtins from compiler-rt >= 16 to be used
patch -Np1 -i ../compiler-rt-adjust-paths.patch
diff --git a/const-atomicstring-conversion.patch b/const-atomicstring-conversion.patch
new file mode 100644
index 0000000..52f7466
--- /dev/null
+++ b/const-atomicstring-conversion.patch
@@ -0,0 +1,35 @@
+From 403ee5b14df12c8ee3b3583177bbd30d930e9aaf Mon Sep 17 00:00:00 2001
+From: Matt Jolly <kangie@gentoo.org>
+Date: Sat, 12 Oct 2024 13:45:37 +1000
+Subject: [PATCH] Convert 'Const AtomicString' to 'const char *'.
+
+I don't know why this is suddenly required?
+--- a/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc
++++ b/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc
+@@ -323,7 +323,10 @@ void TextCodecICU::CreateICUConverter() const {
+ DCHECK(!converter_icu_);
+
+ #if defined(USING_SYSTEM_ICU)
+- const char* name = encoding_.GetName();
++ //convert to WTF::String to use existing `const char *` dependent functions
++ WTF::String nameString = encoding_.GetName();
++ std::string nameUtf8 = nameString.Utf8();
++ const char* name = nameUtf8.c_str();
+ needs_gbk_fallbacks_ =
+ name[0] == 'G' && name[1] == 'B' && name[2] == 'K' && !name[3];
+ #endif
+@@ -448,7 +451,10 @@ String TextCodecICU::Decode(base::span<const uint8_t> data,
+ // <http://bugs.webkit.org/show_bug.cgi?id=17014>
+ // Simplified Chinese pages use the code A3A0 to mean "full-width space", but
+ // ICU decodes it as U+E5E5.
+- if (!strcmp(encoding_.GetName(), "GBK")) {
++ // Convert AtomicString to String
++ WTF::String nameString = encoding_.GetName();
++ std::string nameUtf8 = nameString.Utf8();
++ if (!strcmp(nameUtf8.c_str(), "GBK")) {
+ if (EqualIgnoringASCIICase(encoding_.GetName(), "gb18030"))
+ resultString.Replace(0xE5E5, kIdeographicSpaceCharacter);
+ // Make GBK compliant to the encoding spec and align with GB18030
+--
+2.46.2
+
diff --git a/unbundle-add-enable_freetype.patch b/unbundle-add-enable_freetype.patch
new file mode 100644
index 0000000..1fd94c2
--- /dev/null
+++ b/unbundle-add-enable_freetype.patch
@@ -0,0 +1,32 @@
+From 88676c640928fd2dce56a46c1c3adb62ac349697 Mon Sep 17 00:00:00 2001
+From: "lauren n. liberda" <lauren@selfisekai.rocks>
+Date: Thu, 24 Oct 2024 17:54:35 +0000
+Subject: [PATCH] [unbundle] add enable_freetype
+
+fixes freetype unbundle after https://crrev.com/c/5832411
+
+Bug: none
+Change-Id: If5573d2c0e833ef3c18b505c004b3fa997f903a0
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952222
+Reviewed-by: Lei Zhang <thestig@chromium.org>
+Commit-Queue: Lei Zhang <thestig@chromium.org>
+Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
+Cr-Commit-Position: refs/heads/main@{#1373430}
+---
+ build/linux/unbundle/freetype.gn | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/build/linux/unbundle/freetype.gn b/build/linux/unbundle/freetype.gn
+index 73f9666833e5..c780c630d55b 100644
+--- a/build/linux/unbundle/freetype.gn
++++ b/build/linux/unbundle/freetype.gn
+@@ -11,4 +11,9 @@ declare_args() {
+ # System FreeType configurations other than as described WILL INTRODUCE TEXT
+ # RENDERING AND SECURITY REGRESSIONS.
+ use_system_freetype = true
++
++ # Use FreeType for font rendering. If this is set to false, FreeType is
++ # replaced with the Rust-based Fontations set of libraries plus Skia
++ # path rendering.
++ enable_freetype = true
+ }
diff --git a/unbundle-icu-target.patch b/unbundle-icu-target.patch
new file mode 100644
index 0000000..618750f
--- /dev/null
+++ b/unbundle-icu-target.patch
@@ -0,0 +1,21 @@
+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
+
diff --git a/use-oauth2-client-switches-as-default.patch b/use-oauth2-client-switches-as-default.patch
index 888b67b..118514d 100644
--- a/use-oauth2-client-switches-as-default.patch
+++ b/use-oauth2-client-switches-as-default.patch
@@ -1,18 +1,21 @@
-diff --git a/google_apis/google_api_keys-inc.cc b/google_apis/google_api_keys-inc.cc
-index 4d13e697a54d..61aac7b48662 100644
---- a/google_apis/google_api_keys-inc.cc
-+++ b/google_apis/google_api_keys-inc.cc
-@@ -193,11 +193,11 @@ class APIKeyCache {
- std::string default_client_id = CalculateKeyValue(
- GOOGLE_DEFAULT_CLIENT_ID,
- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(),
-- nullptr, std::string(), environment.get(), command_line, gaia_config);
-+ ::switches::kOAuth2ClientID, std::string(), environment.get(), command_line, gaia_config);
- std::string default_client_secret = CalculateKeyValue(
- 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);
+diff --git a/google_apis/api_key_cache.cc b/google_apis/api_key_cache.cc
+index e8bc9bb79704..38e5d2bd005f 100644
+--- a/google_apis/api_key_cache.cc
++++ b/google_apis/api_key_cache.cc
+@@ -221,14 +221,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);
- // We currently only allow overriding the baked-in values for the
- // default OAuth2 client ID and secret using a command-line