summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-02-08 08:46:50 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-02-08 09:36:25 -0500
commit4012ec027621d9d530cd4f6e88d591b3c6a6163e (patch)
tree0f59d25e5ac5f52e07fb5cf36692846d793f7168
parentb6e7fe40e5d975540c4170d059fdd5e1425ac616 (diff)
gnu: qtbase: Do not capture Python from native-inputs.
* gnu/packages/qt.scm (qtbase) [phases]: Add do-not-capture-python phase.
-rw-r--r--gnu/packages/qt.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 91983d5a4f..3115bb2606 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -695,6 +695,12 @@ developers using C++ or QML, a CSS & JavaScript like language.")
(substitute* "src/corelib/CMakeLists.txt"
(("/bin/ls")
(search-input-file inputs "bin/ls")))))
+ (add-after 'patch-source-shebangs 'do-not-capture-python
+ (lambda _
+ (substitute* '("mkspecs/features/uikit/devices.py"
+ "util/testrunner/qt-testrunner.py")
+ (((which "python3"))
+ "/usr/bin/env python3"))))
(replace 'configure
(assoc-ref %standard-phases 'configure))
(replace 'build