Skip to content

chromium: Fixes for 142 and wrynose compatibility#965

Merged
MaxIhlenfeldt merged 5 commits intoOSSystems:masterfrom
zboszor:chromium-142-fixes
Mar 23, 2026
Merged

chromium: Fixes for 142 and wrynose compatibility#965
MaxIhlenfeldt merged 5 commits intoOSSystems:masterfrom
zboszor:chromium-142-fixes

Conversation

@zboszor
Copy link
Copy Markdown
Contributor

@zboszor zboszor commented Mar 23, 2026

This contains most of of #962 without the upgrade to 144.
musl patches were updated for 142. They are also applicable through the 144, 145 and 146 upgrades.

zboszor added 5 commits March 20, 2026 13:41
Use DEBUG_LEVELFLAG to set the debug flag straight instead of
DEBUG_FLAGS to remove option -g from and add -g1 to.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Removed patches:
* musl/0008-Use-monotonic-clock-for-pthread_cond_timedwait-with-.patch
* musl/0015-fix-libc-version-include.patch

Modified patches:
* musl/0001-mallinfo-implementation-is-glibc-specific.patch
* musl/0004-fontconfig-Musl-does-not-have-rand_r-API.patch
* musl/0006-debug-Fix-build-with-musl.patch
* musl/0007-mallopt-is-glibc-specific-API.patch
* musl/0009-Fix-tab-crashes-on-musl.patch
* musl/0011-sys-stat.patch

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
RUST_TARGET_SYS contains the complete system name that Chromium
needs to find static libraries from the CLANG runtime.
Tweak this system name according to Chromium needs.

Tested with MACHINE=raspberrypi3 which uses
RUST_TARGET_SYS=armv7-oe-linux-gnueabihf, which needs to be
changed into armv7-unknown-linux-gnueabihf for CLANG.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
The Yocto 6.0 release will happen soon and oe-core and meta-oe
already changed their core name to wrynose from whinlatter.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Copy link
Copy Markdown
Collaborator

@MaxIhlenfeldt MaxIhlenfeldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@MaxIhlenfeldt MaxIhlenfeldt merged commit e252b51 into OSSystems:master Mar 23, 2026
@zboszor zboszor deleted the chromium-142-fixes branch March 23, 2026 09:26
@zboszor
Copy link
Copy Markdown
Contributor Author

zboszor commented Mar 23, 2026

FWIW, the musl patches were checked to apply mostly cleanly (no fuzz) up to Chromium 146. But I have not tested to build Chromium for musl, only for glibc.

I have just run these commands to see the build and target triplets:

$ MACHINE=qemuarm64 bitbake -e chromium-x11 | grep -E 'RUST_(TARGET|BUILD)_SYS='
RUST_BUILD_SYS="x86_64-unknown-linux-gnu"
RUST_TARGET_SYS="aarch64-oe-linux-musl"
$ MACHINE=raspberrypi3 bitbake -e chromium-x11 | grep -E 'RUST_(TARGET|BUILD)_SYS='
RUST_BUILD_SYS="x86_64-unknown-linux-gnu"
RUST_TARGET_SYS="armv7-oe-linux-musleabihf"
$ MACHINE=intel-corei7-64 bitbake -e chromium-x11 | grep -E 'RUST_(TARGET|BUILD)_SYS='
RUST_BUILD_SYS="x86_64-unknown-linux-gnu"
RUST_TARGET_SYS="x86_64-oe-linux-musl"

Apparently, neither Chromium version will build for musl, because

  • 0009-Adjust-the-Rust-build-to-our-needs.patch hardcodes gnu or gnueabihf and none of the musl patches changes that to musl or musleabihf
  • The gni file responsible for setting the system triplet for a given CPU architecture to find libclang_rt.a does not really distinguish between the build and target, so e.g. a build host with glibc / x86_64 with the target build for musl / x86_64 won't be able to handle this.

I don't have any inclination to fix this. See also #580 as a failed / given up attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants