gentoo-ebuilds/sci-astronomy/stellarium/files/stellarium-0.25.3-qt610.patch
Alexey Sokolov 23f093fa05
sci-astronomy/stellarium: fix build with qt6.10
Closes: https://bugs.gentoo.org/966288
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/44746
Closes: https://github.com/gentoo/gentoo/pull/44746
Signed-off-by: Sam James <sam@gentoo.org>
2025-11-23 22:09:05 +00:00

25 lines
953 B
Diff

Fix build with Qt6.10
https://bugs.gentoo.org/966288
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -609,6 +609,10 @@ ELSE()
ENDIF()
FIND_PACKAGE(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS
Concurrent Gui Network Widgets Charts Positioning)
+SET(USE_BUNDLED_QTCOMPRESS 1 CACHE BOOL "Use bundled version of qtcompress")
+IF(Qt6_VERSION VERSION_GREATER_EQUAL 6.10 AND NOT USE_BUNDLED_QTCOMPRESS)
+ FIND_PACKAGE(Qt6 REQUIRED COMPONENTS GuiPrivate)
+ENDIF()
IF(USE_PLUGIN_TELESCOPECONTROL OR ENABLE_GPS)
FIND_PACKAGE(Qt${QT_VERSION_MAJOR} COMPONENTS SerialPort REQUIRED)
ENDIF()
@@ -809,7 +813,6 @@ ELSE()
MESSAGE(STATUS "Using system-provided zlib at ${ZLIB_LIBRARIES}")
ENDIF()
-SET(USE_BUNDLED_QTCOMPRESS 1 CACHE BOOL "Use bundled version of qtcompress")
IF(USE_BUNDLED_QTCOMPRESS)
ADD_DEFINITIONS(-DUSE_BUNDLED_QTCOMPRESS)
MESSAGE(STATUS "Using bundled qtcompress at ${CMAKE_SOURCE_DIR}/src/external/qtcompress")