git: fa932bed04d3 - main - graphics/wrapland: Prepare for Qt 6.10

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Fri, 05 Dec 2025 01:04:30 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa932bed04d379ca7b74cf6fbdf55578251559a7

commit fa932bed04d379ca7b74cf6fbdf55578251559a7
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-05 00:03:15 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:41 +0000

    graphics/wrapland: Prepare for Qt 6.10
    
    Add patch to fix build with Qt 6.10.
---
 graphics/wrapland/files/patch-CMakeLists.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/graphics/wrapland/files/patch-CMakeLists.txt b/graphics/wrapland/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..2944f1c78e2d
--- /dev/null
+++ b/graphics/wrapland/files/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+Qt 6.10+ does not automatically provide Qt6::GuiPrivate target for the
+QPA API which is not guaranteed to be compatible between releases.
+
+--- CMakeLists.txt.orig	2024-10-09 11:05:14 UTC
++++ CMakeLists.txt
+@@ -35,6 +35,9 @@ find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRE
+ set(KDE_COMPILERSETTINGS_LEVEL "5.84")
+ 
+ find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Concurrent Gui)
++if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
++  find_package(Qt6 CONFIG REQUIRED COMPONENTS GuiPrivate)
++endif()
+ 
+ find_package(Wayland 1.18 COMPONENTS Client Server)
+ set_package_properties(Wayland PROPERTIES TYPE REQUIRED)