File 0002-fix_building_with_qt_6_9_0.patch of Package yacreader

From 6e0e6f3bc39ddc4d7241f4f946088291410feb50 Mon Sep 17 00:00:00 2001
From: "Jason E. Hale" <jhale@FreeBSD.org>
Date: Sat, 19 Apr 2025 06:28:17 -0400
Subject: [PATCH] Fix build with Qt 6.9.0 (fixes #469)

Support for std::array was added to QDebug in 6.9.0
---
 tests/concurrent_queue_test/concurrent_queue_test.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/concurrent_queue_test/concurrent_queue_test.cpp b/tests/concurrent_queue_test/concurrent_queue_test.cpp
index b09d05f69..d9c4eb4bb 100644
--- a/tests/concurrent_queue_test/concurrent_queue_test.cpp
+++ b/tests/concurrent_queue_test/concurrent_queue_test.cpp
@@ -209,6 +209,7 @@ void waitAndPrint(const ConcurrentQueue &queue, const QueueControlMessagePrinter
     printer.printEndWaitingMessage();
 }
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
 template<typename T, std::size_t size>
 QDebug operator<<(QDebug debug, const std::array<T, size> &array)
 {
@@ -225,6 +226,7 @@ QDebug operator<<(QDebug debug, const std::array<T, size> &array)
 
     return debug;
 }
+#endif
 
 using RandomEngine = std::mt19937_64;
 
openSUSE Build Service is sponsored by