All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/qt6: fix c++ static_assert issue
@ 2026-08-26 21:00 Romain Naour via buildroot
  2026-08-27 19:47 ` Julien Olivain via buildroot
  2026-09-04 12:17 ` Thomas Perale via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour via buildroot @ 2026-08-26 21:00 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

Since the last qt6 version bump to 6.11.1 [1], the TestQuazipQt6 fail to
build due to a c++ static_assert issue.

Backport a patch from v6.11.2 release.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/16060153667 (TestQuazipQt6)

[1] https://github.com/qt/qtbase/commit/2983318421d623c6c9feff95ff947ca489f4313d

Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
 ...e.cpp-remove-is_always_lock_free-sta.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/qt6/qt6base/0001-qtestsupport_core.cpp-remove-is_always_lock_free-sta.patch

diff --git a/package/qt6/qt6base/0001-qtestsupport_core.cpp-remove-is_always_lock_free-sta.patch b/package/qt6/qt6base/0001-qtestsupport_core.cpp-remove-is_always_lock_free-sta.patch
new file mode 100644
index 0000000000..3347caa8da
--- /dev/null
+++ b/package/qt6/qt6base/0001-qtestsupport_core.cpp-remove-is_always_lock_free-sta.patch
@@ -0,0 +1,41 @@
+From 2983318421d623c6c9feff95ff947ca489f4313d Mon Sep 17 00:00:00 2001
+From: Mitch Curtis <mitch.curtis@qt.io>
+Date: Mon, 11 May 2026 08:41:08 +0800
+Subject: [PATCH] qtestsupport_core.cpp: remove is_always_lock_free
+ static_assert
+
+This causes a build failure when cross-compiling Qt for MIPS32 targets
+(e.g. `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`).
+
+Amends 9b938823776865837901f29082301f5624ac2b04.
+
+Fixes: QTBUG-146670
+Change-Id: I170bd9f93c1ef809f56e5b36835e457bbbe8e16c
+Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
+Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
+
+Upstream: https://github.com/qt/qtbase/commit/2983318421d623c6c9feff95ff947ca489f4313d
+[Romain: backport to 6.11.1]
+Signed-off-by: Romain Naour <romain.naour@smile.fr>
+---
+ src/corelib/kernel/qtestsupport_core.cpp | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/corelib/kernel/qtestsupport_core.cpp b/src/corelib/kernel/qtestsupport_core.cpp
+index 9bbe1c18e84..5f28cedec68 100644
+--- a/src/corelib/kernel/qtestsupport_core.cpp
++++ b/src/corelib/kernel/qtestsupport_core.cpp
+@@ -8,10 +8,6 @@
+ 
+ using namespace std::chrono_literals;
+ 
+-// Assert that this instantiation of std::atomic is always lock-free so we
+-// know that no code will execute on destruction.
+-static_assert(std::atomic<std::chrono::milliseconds>::is_always_lock_free);
+-
+ QT_BEGIN_NAMESPACE
+ 
+ // ### Qt 7: reduce the default: QTBUG-138160
+-- 
+2.55.0
+
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-04 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 21:00 [Buildroot] [PATCH] package/qt6: fix c++ static_assert issue Romain Naour via buildroot
2026-08-27 19:47 ` Julien Olivain via buildroot
2026-09-04 12:17 ` Thomas Perale via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.