commit: ad53041f0d0be43c05144fbcdd3c8dda81d148b0
Author: Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 5 11:49:18 2026 +0000
Commit: Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Fri Mar 6 22:02:00 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad53041f
www-client/chromium: arm64: filter -m{arch,tune,cpu} if ! custom-cflags
There are several bundled dependencies that simply will not compile with
these flags set on arm64, as they are explicitly compiled with specific
flags to enable runtime selection of optimisations. Due to interactions
with the unbundle toolchain (where our custom flags are appended to the
ones set by GN) this results in build failures.
amd64 is likely also impacted, though we haven't had any reports as the
multimedia extensions there are typically available everywhere.
Closes: https://bugs.gentoo.org/949123
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>
www-client/chromium/chromium-145.0.7632.109.ebuild | 4 ++++
www-client/chromium/chromium-145.0.7632.159.ebuild | 4 ++++
www-client/chromium/chromium-146.0.7680.31-r2.ebuild | 4 ++++
www-client/chromium/chromium-146.0.7680.65.ebuild | 4 ++++
www-client/chromium/chromium-147.0.7703.0-r1.ebuild | 4 ++++
5 files changed, 20 insertions(+)
diff --git a/www-client/chromium/chromium-145.0.7632.109.ebuild
b/www-client/chromium/chromium-145.0.7632.109.ebuild
index 017dd8e26f41..add1b8e0d414 100644
--- a/www-client/chromium/chromium-145.0.7632.109.ebuild
+++ b/www-client/chromium/chromium-145.0.7632.109.ebuild
@@ -1098,6 +1098,10 @@ chromium_configure() {
# Debug info section overflows without component build
# Prevent linker from running out of address space, bug #471810
.
filter-flags "-g*"
+ # 949123: Several multimedia components explicitly build with
specific CFLAGS and
+ # use runtime detection to enable optimisations; unfortunately
any of our CFLAGS are suffixed
+ # to the end of the command line, which causes build failures.
+ use arm64 && filter-flags "-march*" "-mtune*" "-mcpu*"
fi
# We don't use the same clang version as upstream, and with -Werror
diff --git a/www-client/chromium/chromium-145.0.7632.159.ebuild
b/www-client/chromium/chromium-145.0.7632.159.ebuild
index bfa466930b80..6f0f9cec6eb4 100644
--- a/www-client/chromium/chromium-145.0.7632.159.ebuild
+++ b/www-client/chromium/chromium-145.0.7632.159.ebuild
@@ -1089,6 +1089,10 @@ chromium_configure() {
# Debug info section overflows without component build
# Prevent linker from running out of address space, bug #471810
.
filter-flags "-g*"
+ # 949123: Several multimedia components explicitly build with
specific CFLAGS and
+ # use runtime detection to enable optimisations; unfortunately
any of our CFLAGS are suffixed
+ # to the end of the command line, which causes build failures.
+ use arm64 && filter-flags "-march*" "-mtune*" "-mcpu*"
fi
# We don't use the same clang version as upstream, and with -Werror
diff --git a/www-client/chromium/chromium-146.0.7680.31-r2.ebuild
b/www-client/chromium/chromium-146.0.7680.31-r2.ebuild
index 1c34e5824e2b..de3a762b2d0e 100644
--- a/www-client/chromium/chromium-146.0.7680.31-r2.ebuild
+++ b/www-client/chromium/chromium-146.0.7680.31-r2.ebuild
@@ -1086,6 +1086,10 @@ chromium_configure() {
# Debug info section overflows without component build
# Prevent linker from running out of address space, bug #471810
.
filter-flags "-g*"
+ # 949123: Several multimedia components explicitly build with
specific CFLAGS and
+ # use runtime detection to enable optimisations; unfortunately
any of our CFLAGS are suffixed
+ # to the end of the command line, which causes build failures.
+ use arm64 && filter-flags "-march*" "-mtune*" "-mcpu*"
fi
# We don't use the same clang version as upstream, and with -Werror
diff --git a/www-client/chromium/chromium-146.0.7680.65.ebuild
b/www-client/chromium/chromium-146.0.7680.65.ebuild
index 1c34e5824e2b..de3a762b2d0e 100644
--- a/www-client/chromium/chromium-146.0.7680.65.ebuild
+++ b/www-client/chromium/chromium-146.0.7680.65.ebuild
@@ -1086,6 +1086,10 @@ chromium_configure() {
# Debug info section overflows without component build
# Prevent linker from running out of address space, bug #471810
.
filter-flags "-g*"
+ # 949123: Several multimedia components explicitly build with
specific CFLAGS and
+ # use runtime detection to enable optimisations; unfortunately
any of our CFLAGS are suffixed
+ # to the end of the command line, which causes build failures.
+ use arm64 && filter-flags "-march*" "-mtune*" "-mcpu*"
fi
# We don't use the same clang version as upstream, and with -Werror
diff --git a/www-client/chromium/chromium-147.0.7703.0-r1.ebuild
b/www-client/chromium/chromium-147.0.7703.0-r1.ebuild
index faa5675e9204..ad558338c721 100644
--- a/www-client/chromium/chromium-147.0.7703.0-r1.ebuild
+++ b/www-client/chromium/chromium-147.0.7703.0-r1.ebuild
@@ -1087,6 +1087,10 @@ chromium_configure() {
# Debug info section overflows without component build
# Prevent linker from running out of address space, bug #471810
.
filter-flags "-g*"
+ # 949123: Several multimedia components explicitly build with
specific CFLAGS and
+ # use runtime detection to enable optimisations; unfortunately
any of our CFLAGS are suffixed
+ # to the end of the command line, which causes build failures.
+ use arm64 && filter-flags "-march*" "-mtune*" "-mcpu*"
fi
# We don't use the same clang version as upstream, and with -Werror