commit:     e4f853b3c73ddaf91ee168c3f9aee3d30bcf6bfa
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 20 22:20:34 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Nov 20 22:30:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4f853b3

dev-qt/qtbase: warn about USE=custom-cflags if have rdrnd

Wouldn't hurt given those that have that enabled and had it working
fine may not realize that it's related. For new installs it's less
of an issue though, so don't think need to keep this forever.

Alternatively could workaround, but I don't want to play in that
film again and would rather encourage users to turn this off unless
they really need it.

As a reminder, for Qt, USE=-custom-cflags does *not* run strip-flags
except for qtwebengine. It's a different form of modifications only
targeting some simd and similar flags, and other flags will be kept
(albeit it does strip LTO unless Qt >=6.10 + >=gcc-15.2 or clang-any
where lto bugs no longer been occurring).

Bug: https://bugs.gentoo.org/966289
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qtbase/qtbase-6.10.1.ebuild    | 7 +++++++
 dev-qt/qtbase/qtbase-6.10.9999.ebuild | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/dev-qt/qtbase/qtbase-6.10.1.ebuild 
b/dev-qt/qtbase/qtbase-6.10.1.ebuild
index d171fa7ff154..e081f5d64863 100644
--- a/dev-qt/qtbase/qtbase-6.10.1.ebuild
+++ b/dev-qt/qtbase/qtbase-6.10.1.ebuild
@@ -207,6 +207,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # temporary warning to spare surprised users for whom "it worked 
before",
+       # will drop this in Qt 6.11 (bug #966289)
+       if use custom-cflags && tc-cpp-is-true __RDRND__ ${CXXFLAGS}; then
+               ewarn "USE=custom-cflags is enabled, and there is a good chance 
that the build"
+               ewarn "will fail with current CXXFLAGS. Please disable it if 
have issues."
+       fi
+
        if use gtk; then
                # defang automagic dependencies (bug #624960)
                use X || append-cxxflags -DGENTOO_GTK_HIDE_X11

diff --git a/dev-qt/qtbase/qtbase-6.10.9999.ebuild 
b/dev-qt/qtbase/qtbase-6.10.9999.ebuild
index d171fa7ff154..e081f5d64863 100644
--- a/dev-qt/qtbase/qtbase-6.10.9999.ebuild
+++ b/dev-qt/qtbase/qtbase-6.10.9999.ebuild
@@ -207,6 +207,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # temporary warning to spare surprised users for whom "it worked 
before",
+       # will drop this in Qt 6.11 (bug #966289)
+       if use custom-cflags && tc-cpp-is-true __RDRND__ ${CXXFLAGS}; then
+               ewarn "USE=custom-cflags is enabled, and there is a good chance 
that the build"
+               ewarn "will fail with current CXXFLAGS. Please disable it if 
have issues."
+       fi
+
        if use gtk; then
                # defang automagic dependencies (bug #624960)
                use X || append-cxxflags -DGENTOO_GTK_HIDE_X11

Reply via email to