Skip to content

Commit efd0557

Browse files
committed
chromium: update to 94.0.4606.61
- Removed 0012-Fix-font-rendering-with-glibc-2.33.patch as the fix landed to Chromium tree as https://crrev.com/c/3042179 - Renamed crashpad_handler into chrome_crashpad_handler. - Renamed patches so that they have a numeric order. License changes --------------- Added licenses: * third_party/maldoca/src/LICENSE - https://chromium-review.googlesource.com/c/chromium/src/+/2958804 Updated licenses: * third_party/libjxl/LICENSE - https://chromium-review.googlesource.com/c/chromium/src/+/3069018 Test-built with: * chromium-x11 * dunfell, clang (dunfell branch), MACHINE="intel-core2-32" * dunfell, clang (dunfell branch), MACHINE="intel-corei7-64" * dunfell, clang (dunfell branch), MACHINE="raspberrypi3" * hardknott, clang (hardknott branch), MACHINE="raspberrypi3" * chromium-ozone-wayland: * dunfell, clang (dunfell branch), MACHINE="intel-corei7-64" * dunfell, clang (dunfell branch), MACHINE="qemuarm64" * dunfell, clang (dunfell branch), MACHINE="m3ulcb" * hardknott, clang (hardknott branch), MACHINE="raspberrypi3
1 parent a2bb287 commit efd0557

24 files changed

+252
-450
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ OUTPUT_DIR = "out/Release"
99
B = "${S}/${OUTPUT_DIR}"
1010

1111
SRC_URI += " \
12-
file://limit-number-of-LTO-jobs.patch \
13-
file://0001-Remove-the-GN-settings-done-for-clang-that-conflict-.patch \
14-
file://0002-v8-qemu-wrapper.patch \
15-
file://0003-wrapper-extra-flags.patch \
16-
file://0004-BUILD-do-not-specify-march-on-arm.patch \
17-
file://0005-Consider-armv7ve-define.patch \
18-
file://0006-Delete-compiler-options-not-available-in-release-ver.patch \
19-
file://0010-avoid-link-latomic-failure-on-CentOS-8-host.patch \
20-
file://0012-Fix-font-rendering-with-glibc-2.33.patch \
21-
file://0001-nomerge-attribute-on-declaration-is-only-available-s.patch \
22-
file://fix-ruy-numeric-limits-error.patch \
23-
file://0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch \
24-
file://chromium-freetype-2.11.patch \
25-
file://0001-Make-Display-and-X11-available-in-the-same-build.patch \
26-
file://0001-include-utility.h.patch \
12+
file://0001-limit-number-of-LTO-jobs.patch \
13+
file://0002-Remove-the-GN-settings-done-for-clang-that-conflict-.patch \
14+
file://0003-v8-qemu-wrapper.patch \
15+
file://0004-wrapper-extra-flags.patch \
16+
file://0005-BUILD-do-not-specify-march-on-arm.patch \
17+
file://0006-Consider-armv7ve-define.patch \
18+
file://0007-Delete-compiler-options-not-available-in-release-ver.patch \
19+
file://0008-avoid-link-latomic-failure-on-CentOS-8-host.patch \
20+
file://0009-nomerge-attribute-on-declaration-is-only-available-s.patch \
21+
file://0010-fix-ruy-numeric-limits-error.patch \
22+
file://0011-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch \
23+
file://0012-chromium-freetype-2.11.patch \
24+
file://0013-Revert-Use-ffile-compilation-dir-instead-of-fdebug-c.patch \
25+
file://0014-ozone-wayland-don-t-build-xcb-for-pure-wayland-build.patch \
2726
"
2827

2928
SRC_URI:append:libc-musl = "\
@@ -477,8 +476,8 @@ do_install() {
477476
# ChromeDriver.
478477
install -m 0755 chromedriver.unstripped ${D}${bindir}/chromedriver
479478

480-
# Install crashpad_handler, it is renamed in newer versions so be aware when upgrading to M94+
481-
install -m 0755 crashpad_handler ${D}${libdir}/chromium/
479+
# Install chrome_crashpad_handler.
480+
install -m 0755 chrome_crashpad_handler ${D}${libdir}/chromium/
482481
}
483482

484483
PACKAGES =+ "${PN}-chromedriver"

meta-chromium/recipes-browser/chromium/chromium-ozone-wayland_93.0.4577.82.bb renamed to meta-chromium/recipes-browser/chromium/chromium-ozone-wayland_94.0.4606.61.bb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DEPENDS += "\
1111
"
1212

1313
SRC_URI += "\
14-
file://0001-ozone-add-va-api-support-to-wayland.patch \
14+
file://chromium-ozone-wayland/0001-ozone-add-va-api-support-to-wayland.patch \
1515
"
1616

1717
GN_ARGS += "\
@@ -30,11 +30,12 @@ GN_ARGS += "\
3030
use_gtk=false \
3131
"
3232

33-
# Since M87, Chromium builds Ozone by default, but continues to use X11.
34-
# However, the goal of two recipes - Ozone/Wayland and non-Ozone/X11 is
35-
# to provide either Wayland or X11 and avoid pulling dependencies of each
36-
# on environments where Wayland or X11 is not actually required.
37-
# See https://crrev.com/c/2382834
33+
# Ozone is default via finch since M94 and default via compile time
34+
# changes since M95. However, use_x11 still must be disable to provide
35+
# a pure Wayland build. Since M95, use_x11 is controlled via
36+
# ozone_platform_x11 and won't be needed to be altered here, but rather
37+
# through the mentioned ozone_platform_x11 arg.
38+
# TODO(msisov): remove this once recipe is updated to M95.
3839
GN_ARGS += "use_x11=false"
3940

4041
# The chromium binary must always be started with those arguments.

meta-chromium/recipes-browser/chromium/chromium-x11_93.0.4577.82.bb

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
require chromium-gn.inc
2+
3+
REQUIRED_DISTRO_FEATURES = "x11"
4+
5+
DEPENDS += "\
6+
libx11 \
7+
libxcomposite \
8+
libxcursor \
9+
libxdamage \
10+
libxext \
11+
libxfixes \
12+
libxi \
13+
libxrandr \
14+
libxrender \
15+
libxscrnsaver \
16+
libxtst \
17+
"
18+
19+
# Ozone/X11 has been set to default via finch since M93. Thus,
20+
# no longer disable ozone on X11 builds and let Chromium use
21+
# by default as non-Ozone/X11 path was deprecated. And even
22+
# though it is still possible to choose non-Ozone/X11 path by
23+
# passing --disable-features=UseOzonePlatform in M94, it is
24+
# impossible to disable Ozone since M95 as the non-Ozone path
25+
# has been completely deprecated
26+
# TODO(msisov): update the above comment once M95 is released.
27+
GN_ARGS += "\
28+
ozone_auto_platforms=false \
29+
ozone_platform_x11=true \
30+
"
31+
32+
# Compatibility glue while we have both chromium-x11 and
33+
# chromium-ozone-wayland recipes, and the former used to be called just
34+
# "chromium".
35+
PROVIDES = "chromium"

meta-chromium/recipes-browser/chromium/chromium.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ HOMEPAGE = "https://www.chromium.org/Home"
44
CVE_PRODUCT = "chromium:chromium google:chrome"
55

66
SRC_URI = "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${PV}.tar.xz"
7-
SRC_URI[md5sum] = "5d59c8619445f74d6c9b9650f16f8430"
8-
SRC_URI[sha256sum] = "5d66214858fcba11a8f733d7a6fab61ed10e13e7df4ed37e63b66a0370fb2853"
7+
SRC_URI[md5sum] = "6f2f67339ecb64c94b3f42f41938862f"
8+
SRC_URI[sha256sum] = "6446db535c02c461c7e5c8d294a0300db03abba791f97f0c70bc52255aedb9bf"
99

1010
S = "${WORKDIR}/chromium-${PV}"
1111

@@ -272,7 +272,7 @@ LIC_FILES_CHKSUM = "\
272272
file://${S}/third_party/libipp/LICENSE;md5=af9e58383a1b2b17c75c6c9ff561ca9d \
273273
file://${S}/third_party/libjingle_xmpp/LICENSE;md5=ad296492125bc71530d06234d9bfebe0 \
274274
file://${S}/third_party/libjpeg_turbo/LICENSE.md;md5=970f17d51650fe54e4f839c6e6121f79 \
275-
file://${S}/third_party/libjxl/LICENSE;md5=b1e01b26bacfc2232046c90a330332b3 \
275+
file://${S}/third_party/libjxl/LICENSE;md5=6a905a337cc228a1f68f0b5416f52a7f \
276276
file://${S}/third_party/liblouis/LICENSE;md5=8ab69863de0d3a0e00c4f97a4d78dd4a \
277277
file://${S}/third_party/libphonenumber/LICENSE;md5=e23fadd6ceef8c618fc1c65191d846fa \
278278
file://${S}/third_party/libpng/LICENSE;md5=b0085051bf265bac2bfc38bc89f50000 \
@@ -295,6 +295,7 @@ LIC_FILES_CHKSUM = "\
295295
file://${S}/third_party/logilab/logilab/common/LICENSE.txt;md5=751419260aa954499f7abaabaa882bbe \
296296
file://${S}/third_party/lottie/LICENSE;md5=827837648055a0bfb7782b91ab42eed1 \
297297
file://${S}/third_party/lzma_sdk/LICENSE;md5=a8d1f5a28cfd35e6dfea09b82672fae7 \
298+
file://${S}/third_party/maldoca/src/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \
298299
file://${S}/third_party/material_design_icons/LICENSE;md5=175792518e4ac015ab6696d16c4f607e \
299300
file://${S}/third_party/material_web_components/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
300301
file://${S}/third_party/mesa_headers/LICENSE;md5=072744090020e72ad7387e201873fe43 \

meta-chromium/recipes-browser/chromium/files/0001-Make-Display-and-X11-available-in-the-same-build.patch

Lines changed: 0 additions & 131 deletions
This file was deleted.

meta-chromium/recipes-browser/chromium/files/0001-include-utility.h.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

meta-chromium/recipes-browser/chromium/files/limit-number-of-LTO-jobs.patch renamed to meta-chromium/recipes-browser/chromium/files/0001-limit-number-of-LTO-jobs.patch

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Subject: [PATCH] limit number of LTO jobs.
1111
branch uses quite old llvm that doesn't support this keyword.
1212
Thus, use the previously used number of threads.
1313
---
14-
build/config/compiler/BUILD.gn | 11 +++++------
14+
build/config/compiler/BUILD.gn | 12 ++++++------
1515
build/config/compiler/compiler.gni | 5 +++++
16-
2 files changed, 10 insertions(+), 6 deletions(-)
16+
2 files changed, 11 insertions(+), 6 deletions(-)
1717

1818
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
19-
index 13ed917c81281..c93f1a8b4a14d 100644
19+
index d7073ad38f0bf..326786bce9b09 100644
2020
--- a/build/config/compiler/BUILD.gn
2121
+++ b/build/config/compiler/BUILD.gn
22-
@@ -656,7 +656,7 @@ config("compiler") {
22+
@@ -663,7 +663,7 @@ config("compiler") {
2323

2424
if (is_win) {
2525
ldflags += [
@@ -28,7 +28,7 @@ index 13ed917c81281..c93f1a8b4a14d 100644
2828
"-mllvm:-import-instr-limit=$import_instr_limit",
2929
"/lldltocache:" +
3030
rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
31-
@@ -669,11 +669,10 @@ config("compiler") {
31+
@@ -676,11 +676,11 @@ config("compiler") {
3232
# usage in crbug.com/1038040. Note this will increase build time in
3333
# Chrome OS.
3434

@@ -41,11 +41,12 @@ index 13ed917c81281..c93f1a8b4a14d 100644
4141
+ # linker jobs. This is still suboptimal to a potential dynamic
4242
+ # resource allocation scheme, but should be good enough.
4343
+ ldflags += [ "-Wl,--thinlto-jobs=" + max_jobs_per_link ]
44-
45-
ldflags += [
46-
"-Wl,--thinlto-cache-dir=" +
44+
+
45+
if (is_mac) {
46+
ldflags +=
47+
[ "-Wl,-cache_path_lto," +
4748
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
48-
index d9997333db2d6..18df66d9f71b3 100644
49+
index 6f1faaf10fa67..822bfca12efd7 100644
4950
--- a/build/config/compiler/compiler.gni
5051
+++ b/build/config/compiler/compiler.gni
5152
@@ -76,6 +76,11 @@ declare_args() {
@@ -60,6 +61,6 @@ index d9997333db2d6..18df66d9f71b3 100644
6061
# Whether we're using a sample profile collected on an architecture different
6162
# than the one we're compiling for.
6263
#
63-
--
64+
--
6465
2.25.1
6566

0 commit comments

Comments
 (0)