all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1d60684e070086549216fe24bce94c0c6a775395 2110 bytes (raw)
name: gnu/packages/patches/qtbase-find-tools-in-PATH.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
From a8b9fae710a2bd5e743f5e16364eaa8c38dbd784 Mon Sep 17 00:00:00 2001
From: rewine <luhongxu@deepin.org>
Date: Wed, 29 Mar 2023 11:51:33 +0800
Subject: [PATCH 06/11] qtbase-find-tools-in-PATH

1. find qt's tools in `QTTOOLSPATH` env
   qt assumes that all components use the same install prefix
   we can't get the real prefix for qttools when build qtbase
   we will add /libexec to `QTTOOLSPATH` in qtToolsHook
   find_path will also search in 'PATH' by default
   see `CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`

2. disable tool_dependencies_enabled
   We can guarantee the build order of qt components in nixpkgs
   tools in qttools always build before qtdoc
   qdoc_bin is not a build target now, since we find it in `QTTOOLSPATH`
---
 cmake/QtDocsHelpers.cmake | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/cmake/QtDocsHelpers.cmake b/cmake/QtDocsHelpers.cmake
index 48ed5a324bf..91d8d41fb1f 100644
--- a/cmake/QtDocsHelpers.cmake
+++ b/cmake/QtDocsHelpers.cmake
@@ -47,9 +47,14 @@ function(qt_internal_add_docs)
         set(doc_tools_libexec "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_LIBEXECDIR}")
     endif()
 
-    set(qdoc_bin "${doc_tools_bin}/qdoc${CMAKE_EXECUTABLE_SUFFIX}")
-    set(qtattributionsscanner_bin "${doc_tools_libexec}/qtattributionsscanner${CMAKE_EXECUTABLE_SUFFIX}")
-    set(qhelpgenerator_bin "${doc_tools_libexec}/qhelpgenerator${CMAKE_EXECUTABLE_SUFFIX}")
+    set(tool_dependencies_enabled FALSE)
+
+    find_path(qdoc_path name qdoc PATHS ENV QTTOOLSPATH)
+    find_path(qtattributionsscanner_path name qtattributionsscanner PATHS ENV QTTOOLSPATH)
+    find_path(qhelpgenerator_path name qhelpgenerator PATHS ENV QTTOOLSPATH)
+    set(qdoc_bin "${qdoc_path}/qdoc${CMAKE_EXECUTABLE_SUFFIX}")
+    set(qtattributionsscanner_bin "${qtattributionsscanner_path}/qtattributionsscanner${CMAKE_EXECUTABLE_SUFFIX}")
+    set(qhelpgenerator_bin "${qhelpgenerator_path}/qhelpgenerator${CMAKE_EXECUTABLE_SUFFIX}")
 
     get_target_property(target_type ${target} TYPE)
     if (NOT target_type STREQUAL "INTERFACE_LIBRARY")
-- 
2.42.0


debug log:

solving 1d60684e07 ...
found 1d60684e07 in https://yhetil.org/guix/7ab3bccb56aef7d6c72a47f41d05836d240492c8.1710135242.git.zhengjunjie@iscas.ac.cn/ ||
	https://yhetil.org/guix/bc18872a7614d817539858083458054025f132a0.1710154350.git.zhengjunjie@iscas.ac.cn/

applying [1/1] https://yhetil.org/guix/7ab3bccb56aef7d6c72a47f41d05836d240492c8.1710135242.git.zhengjunjie@iscas.ac.cn/
diff --git a/gnu/packages/patches/qtbase-find-tools-in-PATH.patch b/gnu/packages/patches/qtbase-find-tools-in-PATH.patch
new file mode 100644
index 0000000000..1d60684e07

1:34: trailing whitespace.
 
1:46: trailing whitespace.
 
1:49: trailing whitespace.
-- 
Checking patch gnu/packages/patches/qtbase-find-tools-in-PATH.patch...
1:51: new blank line at EOF.
+
Applied patch gnu/packages/patches/qtbase-find-tools-in-PATH.patch cleanly.
warning: 4 lines add whitespace errors.

skipping https://yhetil.org/guix/bc18872a7614d817539858083458054025f132a0.1710154350.git.zhengjunjie@iscas.ac.cn/ for 1d60684e07
index at:
100644 1d60684e070086549216fe24bce94c0c6a775395	gnu/packages/patches/qtbase-find-tools-in-PATH.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.