From 82ad3c86a7fc6cbf18c3276a4064585681f97bc9 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Fri, 13 Feb 2026 23:12:35 -0500 Subject: [PATCH] dev-qt/qtwebengine: also filter -march w/ clang on arm64 For a different reason than originally, but feel we're better off doing this unless Qt starts testing this. Note that it doesn't mean no native optimizations at all, qtwebengine still enables several things for detection+usage at runtime. Closes: https://bugs.gentoo.org/970048 Signed-off-by: Ionen Wolkens --- dev-qt/qtwebengine/qtwebengine-6.10.1.ebuild | 10 +++++----- dev-qt/qtwebengine/qtwebengine-6.10.2.ebuild | 10 +++++----- dev-qt/qtwebengine/qtwebengine-6.10.9999.ebuild | 10 +++++----- dev-qt/qtwebengine/qtwebengine-6.11.9999.ebuild | 10 +++++----- dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 10 +++++----- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/dev-qt/qtwebengine/qtwebengine-6.10.1.ebuild b/dev-qt/qtwebengine/qtwebengine-6.10.1.ebuild index 06d5c973fa167..f46dc12c524bd 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.10.1.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.10.1.ebuild @@ -254,11 +254,11 @@ src_configure() { ewarn "-g2+/-ggdb* *FLAGS replaced with -g1 (enable USE=custom-cflags to keep)" fi - # Built helpers segfault when using (at least) -march=armv8-a+pauth - # (bug #920555, #920568 -- suspected gcc bug). For now, filter all - # for simplicity. Override with USE=custom-cflags if wanted, please - # report if above -march works again so can cleanup. - use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + # Qt normally ignores users *FLAGS specifically for qtwebengine, and + # does not really support passing -march -- qt6-build.eclass has some + # checks to ensure working flags with amd64, but that does not exist + # for arm64 and can lead to problems (bug #920555,#920568,#970048) + use arm64 && filter-flags '-march=*' '-mcpu=*' fi # chromium passes this by default, but qtwebengine does not and it may diff --git a/dev-qt/qtwebengine/qtwebengine-6.10.2.ebuild b/dev-qt/qtwebengine/qtwebengine-6.10.2.ebuild index afb7684206a38..3be0d7ad33891 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.10.2.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.10.2.ebuild @@ -256,11 +256,11 @@ src_configure() { ewarn "-g2+/-ggdb* *FLAGS replaced with -g1 (enable USE=custom-cflags to keep)" fi - # Built helpers segfault when using (at least) -march=armv8-a+pauth - # (bug #920555, #920568 -- suspected gcc bug). For now, filter all - # for simplicity. Override with USE=custom-cflags if wanted, please - # report if above -march works again so can cleanup. - use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + # Qt normally ignores users *FLAGS specifically for qtwebengine, and + # does not really support passing -march -- qt6-build.eclass has some + # checks to ensure working flags with amd64, but that does not exist + # for arm64 and can lead to problems (bug #920555,#920568,#970048) + use arm64 && filter-flags '-march=*' '-mcpu=*' fi # chromium passes this by default, but qtwebengine does not and it may diff --git a/dev-qt/qtwebengine/qtwebengine-6.10.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.10.9999.ebuild index 2a2a37b530bd6..a3d52b57afae4 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.10.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.10.9999.ebuild @@ -255,11 +255,11 @@ src_configure() { ewarn "-g2+/-ggdb* *FLAGS replaced with -g1 (enable USE=custom-cflags to keep)" fi - # Built helpers segfault when using (at least) -march=armv8-a+pauth - # (bug #920555, #920568 -- suspected gcc bug). For now, filter all - # for simplicity. Override with USE=custom-cflags if wanted, please - # report if above -march works again so can cleanup. - use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + # Qt normally ignores users *FLAGS specifically for qtwebengine, and + # does not really support passing -march -- qt6-build.eclass has some + # checks to ensure working flags with amd64, but that does not exist + # for arm64 and can lead to problems (bug #920555,#920568,#970048) + use arm64 && filter-flags '-march=*' '-mcpu=*' fi # chromium passes this by default, but qtwebengine does not and it may diff --git a/dev-qt/qtwebengine/qtwebengine-6.11.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.11.9999.ebuild index b10fa2819c460..3a7d262a96b98 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.11.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.11.9999.ebuild @@ -255,11 +255,11 @@ src_configure() { ewarn "-g2+/-ggdb* *FLAGS replaced with -g1 (enable USE=custom-cflags to keep)" fi - # Built helpers segfault when using (at least) -march=armv8-a+pauth - # (bug #920555, #920568 -- suspected gcc bug). For now, filter all - # for simplicity. Override with USE=custom-cflags if wanted, please - # report if above -march works again so can cleanup. - use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + # Qt normally ignores users *FLAGS specifically for qtwebengine, and + # does not really support passing -march -- qt6-build.eclass has some + # checks to ensure working flags with amd64, but that does not exist + # for arm64 and can lead to problems (bug #920555,#920568,#970048) + use arm64 && filter-flags '-march=*' '-mcpu=*' fi # chromium passes this by default, but qtwebengine does not and it may diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild index b7a8a5e6d1785..c92c23cc7d511 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild @@ -254,11 +254,11 @@ src_configure() { ewarn "-g2+/-ggdb* *FLAGS replaced with -g1 (enable USE=custom-cflags to keep)" fi - # Built helpers segfault when using (at least) -march=armv8-a+pauth - # (bug #920555, #920568 -- suspected gcc bug). For now, filter all - # for simplicity. Override with USE=custom-cflags if wanted, please - # report if above -march works again so can cleanup. - use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + # Qt normally ignores users *FLAGS specifically for qtwebengine, and + # does not really support passing -march -- qt6-build.eclass has some + # checks to ensure working flags with amd64, but that does not exist + # for arm64 and can lead to problems (bug #920555,#920568,#970048) + use arm64 && filter-flags '-march=*' '-mcpu=*' fi # chromium passes this by default, but qtwebengine does not and it may