[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: gnu: qtbase: Do not capture Python (again).
From: |
guix-commits |
Subject: |
01/08: gnu: qtbase: Do not capture Python (again). |
Date: |
Mon, 16 Oct 2023 11:18:12 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 26b02f7797e75372b09ff71f78ad554a44e57a97
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Aug 22 14:53:50 2023 -0400
gnu: qtbase: Do not capture Python (again).
Fixes <https://issues.guix.gnu.org/65457>.
* gnu/packages/qt.scm (qtbase-5) [arguments]: Add #:disallowed-references
argument to guard against the problem reoccurring in the future.
Add do-not-capture-python phase.
(qtbase) [arguments]: Update do-not-capture-python phase.
---
gnu/packages/qt.scm | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index b7e394d663..a158f8114f 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -392,7 +392,7 @@ system, and the core design of Django is reused in
Grantlee.")
fontconfig
freetype
glib
- gtk+ ;for GTK theme support
+ gtk+ ;for GTK theme support
harfbuzz
icu4c
libinput-minimal
@@ -437,7 +437,8 @@ system, and the core design of Django is reused in
Grantlee.")
vulkan-headers
ruby-2.7))
(arguments
- `(#:configure-flags
+ `(#:disallowed-references ,(list python)
+ #:configure-flags
(let ((out (assoc-ref %outputs "out")))
(list "-verbose"
"-prefix" out
@@ -583,7 +584,16 @@ system, and the core design of Django is reused in
Grantlee.")
(("^\\s*(QLibrary
xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
(string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
(("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
- (string-append a (assoc-ref inputs "libxcursor") "/lib/lib"
b))))))))
+ (string-append a (assoc-ref inputs "libxcursor") "/lib/lib"
b)))))
+ (add-after 'install 'do-not-capture-python
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; For some reason, patching the file after the
+ ;; patch-source-shebangs phase doesn't work for Qt 5.
+ (substitute*
+ (search-input-file
+ outputs "lib/qt5/mkspecs/features/uikit/devices.py")
+ (((which "python3"))
+ "/usr/bin/env python3")))))))
(native-search-paths
(list (search-path-specification
(variable "QMAKEPATH")
@@ -724,10 +734,12 @@ developers using C++ or QML, a CSS & JavaScript like
language.")
(substitute* "src/corelib/CMakeLists.txt"
(("/bin/ls")
(search-input-file inputs "bin/ls")))))
+ (delete 'do-not-capture-python) ;move after patch-source-shebangs
(add-after 'patch-source-shebangs 'do-not-capture-python
(lambda _
(substitute* '("mkspecs/features/uikit/devices.py"
- "util/testrunner/qt-testrunner.py")
+ "util/testrunner/qt-testrunner.py"
+ "util/testrunner/sanitizer-testrunner.py")
(((which "python3"))
"/usr/bin/env python3"))))
(replace 'configure
- branch master updated (b6a070d2a3 -> ff11cbc2e9), guix-commits, 2023/10/16
- 02/08: gnu: qtbase: Add $TZDIR to native search paths., guix-commits, 2023/10/16
- 07/08: gnu: maliit-framework: Disable two mimpluginmanager tests., guix-commits, 2023/10/16
- 05/08: gnu: qtdeclarative: Add a debug output., guix-commits, 2023/10/16
- 06/08: gnu: qtwayland-5: Disable tst_surface test on aarch64-linux., guix-commits, 2023/10/16
- 01/08: gnu: qtbase: Do not capture Python (again).,
guix-commits <=
- 08/08: gnu: libcamera: Disable log_process test on aarch64., guix-commits, 2023/10/16
- 03/08: gnu: qtbase: Reinstate date related tests., guix-commits, 2023/10/16
- 04/08: gnu: qtbase: Disable problematic tests on powerpc64le., guix-commits, 2023/10/16