guix_mirror_bot pushed a commit to branch qt-team
in repository guix.

commit 7b0bf9512be865c9dbb02973c0a1d6f9989492cd
Author: Brendan Tildesley <[email protected]>
AuthorDate: Mon Dec 1 02:01:56 2025 +1100

    gnu: qtbase@6: Don't install test junk.
    
    * gnu/packages/qt.scm (qtbase)[arguments]: Replace ineffective
    delete-installed-tests phase with dont-install-tests phase.
    
    Fixes: guix/guix#4529
    Change-Id: I2ddd27e34a314e7a04de571d0bc1b13f75af66f4
    Signed-off-by: 宋文武 <[email protected]>
---
 gnu/packages/qt.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index b2cb296f70..0a4cafe00c 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -20,7 +20,7 @@
 ;;; Copyright © 2020 Jonathan Brielmaier <[email protected]>
 ;;; Copyright © 2020 Michael Rohleder <[email protected]>
 ;;; Copyright © 2020-2025 Maxim Cournoyer <[email protected]>
-;;; Copyright © 2021, 2022 Brendan Tildesley <[email protected]>
+;;; Copyright © 2021, 2022, 2025 Brendan Tildesley <[email protected]>
 ;;; Copyright © 2021, 2022, 2023 Guillaume Le Vaillant <[email protected]>
 ;;; Copyright © 2021 Nicolò Balzarotti <[email protected]>
 ;;; Copyright © 2022 Foo Chuan Wei <[email protected]>
@@ -1192,10 +1192,10 @@ tst_qt_cmake_create.cpp"
                            '("device_config.prf" "moc.prf" "qt_config.prf"))
                     (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
                     (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)))))
-            (add-after 'install 'delete-installed-tests
+            (add-before 'install 'dont-install-tests
               (lambda _
-                (delete-file-recursively
-                 (string-append #$output "/tests"))))))))
+                (substitute* "cmake_install.cmake"
+                  (("include.*tests/cmake_install") "#"))))))))
     (native-inputs
      (modify-inputs (package-native-inputs qtbase-5)
        (prepend ninja                   ;CMake Generator, also used for tests

Reply via email to