aports/testing/lomiri-download-manager/0002-Find-qdoc-correctly-on-distros-without-qtchooser.patch

25 lines
915 B
Diff

From 8b3114bed45cb463ff97206b412c1e33f8eb2881 Mon Sep 17 00:00:00 2001
From: Luca Weiss <luca@lucaweiss.eu>
Date: Tue, 21 Jan 2025 21:41:16 +0100
Subject: [PATCH 2/3] Find qdoc correctly on distros without qtchooser
---
docs/qml/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/qml/CMakeLists.txt b/docs/qml/CMakeLists.txt
index 26579b02..8f11a0ba 100644
--- a/docs/qml/CMakeLists.txt
+++ b/docs/qml/CMakeLists.txt
@@ -1,7 +1,7 @@
# add a target to generate API documentation with qdoc 5.x
SET(QDOC_WORKS FALSE)
SET(ENV{QT_SELECT} qt5)
-FIND_PROGRAM(QDOC_EXECUTABLE qdoc)
+FIND_PROGRAM(QDOC_EXECUTABLE NAMES qdoc PATHS /usr/lib/qt5/bin /usr/lib/*/qt5/bin)
if(QDOC_EXECUTABLE)
EXECUTE_PROCESS(COMMAND ${QDOC_EXECUTABLE} --version OUTPUT_VARIABLE QDOC_OUTPUT ERROR_QUIET)
string(REGEX REPLACE "qdoc ([0-9]+(\\.[0-9]+)+).*" "\\1" QDOC_VERSION ${QDOC_OUTPUT})
--
2.48.0