diff options
Diffstat (limited to 'gnu/packages')
121 files changed, 2042 insertions, 1342 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d9d2f59c84..7012b5dd3b 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2689,16 +2689,20 @@ command.") (build-system qt-build-system) (arguments (list + #:tests? #f ; no tests ;; Make sure the (rarely updated) package 'imagemagick/stable' ;; does not end up in the closure. #:disallowed-references (list imagemagick/stable) - #:test-target "check" + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'chdir (lambda _ (chdir "wpa_supplicant/wpa_gui-qt4"))) (replace 'configure (lambda _ (invoke "qmake" "wpa_gui.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (add-after 'build 'build-icons (lambda _ ;; Inkscape complains (but works) without a writable $HOME. diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index 24738a4c01..d8aa9ab2f9 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -68,6 +68,7 @@ (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:parallel-tests? #f #:configure-flags #~(list "-DZINT_QT6=ON" "-DZINT_TEST=ON" diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 8773aa323f..83572e2fc6 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -831,8 +831,7 @@ cosine/ sine transforms or DCT/DST).") ;; See: https://fftw.org/release-notes.html (name "fftw-cmake") (build-system cmake-build-system) - (arguments (default-keyword-arguments '() - '())) + (arguments '(#:tests? #f)) (description (string-append (package-description fftw) " This CMake build offers the file FFTW3LibraryDepends.cmake required by some dependent packages, absent in the @@ -1202,7 +1201,8 @@ features, and more.") (inherit eigen) (name "eigen-benchmarks") (arguments - '(#:phases (modify-phases %standard-phases + '(#:tests? #f ; no tests + #:phases (modify-phases %standard-phases (delete 'configure) (replace 'build (lambda* (#:key outputs #:allow-other-keys) @@ -1285,9 +1285,7 @@ features, and more.") (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - (list - #:configure-flags #~(list "-DBUILD_TESTS=ON") - #:test-target "xtest")) + (list #:configure-flags #~(list "-DBUILD_TESTS=ON"))) (native-inputs (list doctest googletest diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 20ed472292..f804f98a0f 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -123,7 +123,8 @@ use their packages mostly unmodified in our Android NDK build system.") (base32 "0bjlljmbf8glnd9qjabx73w6pd7ibv43yiyngqvmvgxsabzr8399")))) (arguments - `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") + `(#:tests? #f + #:configure-flags '("-DBUILD_SHARED_LIBS=ON") #:phases (modify-phases %standard-phases (add-after 'install 'install-host-libraries diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index 8423befab8..c76f55127c 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -747,10 +747,9 @@ files.") (build-system cmake-build-system) (arguments (list - #:tests? #f + #:tests? #f ;; XXX: insists on using bundled googletest #:configure-flags - #~(list "-DBUILD_TESTING=off" ;; XXX: insists on using bundled googletest - "-DBUILD_SHARED_LIBS=ON" + #~(list "-DBUILD_SHARED_LIBS=ON" #$@(let ((target (%current-target-system))) (if target (cond ((string-prefix? "arm" target) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 0112ff5ecf..a96b4661fd 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -436,7 +436,6 @@ rendering of the atmosphere model and examine its properties. #:configure-flags #~(list "-DBUILD_PYTHON3=ON" "-DBUILD_PYTHON=OFF" - "-DBUILD_TESTING=TRUE" "-DUSE_HDF5=ON" "-DUSE_OPENMP=OFF" "-DUSE_THREADS=ON" @@ -1361,14 +1360,16 @@ standard astronomy libraries: #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) (string-append "PREFIX=" #$output)) - #:test-target "test" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (chdir "../source") - (setenv "CC" #$(cc-for-target)))))))) + (replace 'check + (lambda* (#:rest args) + (with-directory-excursion "../source" + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args))))))) (native-inputs (list python-wrapper)) (home-page "https://github.com/kbarbary/sep") @@ -9602,7 +9603,6 @@ deconvolution). Such post-processing is not performed by Stackistry.") (list ;; FIXME: Tests keep failing on 100% when preparing test-suit for INDI. #:tests? #f - #:test-target "test" #:configure-flags #~(list "-DENABLE_GPS=1" ;; TODO: Enable when all of the dependencies are available for Qt6. diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index db3cc55be7..c481b5a3de 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -2163,11 +2163,14 @@ object library.") (sha256 (base32 "1lgasyk8j4cl9178vci1dph63nks3cgwhf8y1d04z9dc8gg15dyn")))) (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DBUILD_STATIC_LIBRARY=ON"))) ; required to build tests (native-inputs (list bison flex gettext-minimal zlib)) (inputs (list alsa-lib boost + cunit jack-1 ladspa liblo @@ -4004,8 +4007,10 @@ buffers, and audio capture.") (patches (search-patches "alure-dumb-2.patch")))) (build-system cmake-build-system) (arguments - `(#:tests? #f ;no tests - #:configure-flags '("-DMODPLUG=ON"))) + (list + #:cmake cmake-3.25 + #:tests? #f ;no tests + #:configure-flags #~(list "-DMODPLUG=ON"))) (native-inputs (list pkg-config)) (inputs (list dumb flac @@ -4216,6 +4221,9 @@ link REQUIRED)")))))) "-DFORTIFY=ON" "-DLIBSCSYNTH=ON" "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases ;; HOME must be defined otherwise supercollider throws a "ERROR: @@ -4243,6 +4251,7 @@ link REQUIRED)")))))) (lambda _ (system "Xvfb &") (setenv "DISPLAY" ":0"))) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-before 'install 'install-ide (lambda _ (let* ((ide #$output:ide) @@ -4326,7 +4335,6 @@ using Guix System.") (build-system cmake-build-system) (arguments (list - #:cmake cmake-next #:build-type "Release" ;; The build system uses CMake modules features that are only available ;; when using Ninja. diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 69484bbb64..4ca7998cc7 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -7270,8 +7270,6 @@ bases are detected.") (bin (string-append #$output "/bin/"))) (mkdir-p bin) (copy-recursively "." share) - (delete-file (string-append share "/Chrysalis/build/CMakeFiles/CMakeOutput.log")) - (delete-file (string-append share "/Inchworm/build/CMakeFiles/CMakeOutput.log")) (wrap-program (string-append share "Trinity") `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE"))) @@ -7325,7 +7323,7 @@ bases are detected.") (list coreutils gzip which)) - (native-inputs (list cmake)) + (native-inputs (list cmake-minimal)) (home-page "https://github.com/trinityrnaseq/trinityrnaseq/wiki") (synopsis "Trinity RNA-Seq de novo transcriptome assembly") (description "Trinity assembles transcript sequences from Illumina RNA-Seq @@ -11369,7 +11367,6 @@ seamless support for BCF and VCF files.") (list #:configure-flags '(list "-DMORPHEUS_GUI=OFF" - "-DBUILD_TESTING=ON" "-DDOWNLOAD_XTENSOR=OFF") #:phases '(modify-phases %standard-phases @@ -18823,6 +18820,9 @@ Thus the per-base error rate is similar to the raw input reads.") (build-system qt-build-system) (arguments (list + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) ;; TODO: Once <https://issues.guix.gnu.org/47475> is fixed, ;; consider uncommenting the following: ;; @@ -18843,6 +18843,7 @@ Thus the per-base error rate is similar to the raw input reads.") (with-directory-excursion "tests" (setenv "XDG_RUNTIME_DIR" (getcwd)) (invoke "./bandage_command_line_tests.sh"))))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'install (lambda _ (install-file "Bandage" (string-append #$output "/bin"))))))) @@ -23466,8 +23467,7 @@ The output is in SAM format.") "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh")))) (build-system cmake-build-system) (arguments - `(#:test-target "test" - #:configure-flags + `(#:configure-flags ,#~(list "-DWITH_CHECK=ON" (string-append "-DLIBXML_LIBRARY=" #$(this-package-input "libxml2") @@ -24595,14 +24595,20 @@ both types of files.") (build-system cmake-build-system) (arguments (list - #:test-target "simple_test" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda _ - (substitute* "src/megahit" - (("os.path.join\\(script_path, '..'\\)") - "os.path.join(script_path, '../source')"))))))) + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* "src/megahit" + (("os.path.join\\(script_path, '..'\\)") + "os.path.join(script_path, '../source')")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "simple_test" args)))))) (inputs (list python-wrapper zlib)) (home-page "https://www.ncbi.nlm.nih.gov/pubmed/25609793") (synopsis "Meta-genome assembler") @@ -25188,33 +25194,33 @@ module capable of computing base-level alignments for very large sequences.") (outputs '("out" "doc")) (arguments (list + #:test-exclude (string-join (list "TestFileMetaInformation" + "TestElement2" + "TestSCUValidation" + "TestWriter" + "TestAnonymizer4" + "TestPrinter1" + "TestEcho" + ;; The scanner tests depend on TestWriter output. + "TestStrictScanner1" + "TestStrictScanner2_1" + "TestStrictScanner2" + "TestStrictScanner2_2" + "TestFind") + "|") + #:configure-flags + #~(list "-DGDCM_BUILD_TESTING=true" + "-DGDCM_DOCUMENTATION:BOOL=ON" + "-DGDCM_PDF_DOCUMENTATION:BOOL=OFF" + (string-append "-DGDCM_INSTALL_DOC_DIR=" + #$output:doc "/share/doc/" #$name)) #:phases #~(modify-phases %standard-phases (add-before 'build 'set-HOME ;; The build spams ‘Fontconfig error: No writable cache ;; directories’ in a seemingly endless loop otherwise. (lambda _ - (setenv "HOME" "/tmp")))) - #:configure-flags - #~(list "-DGDCM_BUILD_TESTING=true" - (string-append "-DCMAKE_CTEST_ARGUMENTS=-E;" - "'TestFileMetaInformation" - "|TestElement2" - "|TestSCUValidation" - "|TestWriter" - "|TestAnonymizer4" - "|TestPrinter1" - "|TestEcho" - ;; The scanner tests depend on TestWriter output - "|TestStrictScanner1" - "|TestStrictScanner2_1" - "|TestStrictScanner2" - "|TestStrictScanner2_2" - "|TestFind'") - "-DGDCM_DOCUMENTATION:BOOL=ON" - "-DGDCM_PDF_DOCUMENTATION:BOOL=OFF" - (string-append "-DGDCM_INSTALL_DOC_DIR=" - #$output:doc "/share/doc/" #$name)))) + (setenv "HOME" "/tmp")))))) (native-inputs (list docbook-xsl doxygen graphviz libxslt)) (home-page "https://gdcm.sourceforge.net/wiki/index.php/Main_Page") (synopsis "Grassroots DICOM library") diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 309f85c716..ac8e496201 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -524,7 +524,13 @@ desktops.") (arguments (list #:qtbase qtbase #:configure-flags #~(list "-DTESTING=ON") - #:test-target "check")) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + ;; Fix for "enable_testing" not in the top-level directory. + (with-directory-excursion "test" + (apply (assoc-ref %standard-phases 'check) args))))))) (native-inputs (list qttools)) (inputs diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index c466e03139..7121cec4d4 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -329,7 +329,7 @@ files and generates build instructions for the Ninja build system.") import sys sys.path.insert(0, '~a') # EASY-INSTALL-ENTRY-SCRIPT" (site-packages inputs outputs))))))))) - (inputs (list python ninja)) + (inputs (list python ninja/pinned)) (home-page "https://mesonbuild.com/") (synopsis "Build system designed to be fast and user-friendly") (description @@ -359,7 +359,7 @@ resembles Python.") "-k" "not test_pep518"))) (propagated-inputs (list meson - ninja + ninja/pinned python-colorama python-cython-3 python-pyproject-metadata diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index faf7779ce7..da8b558c6f 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -126,10 +126,12 @@ available in French.") (build-system cmake-build-system) (arguments (list - #:test-target "testit" #:configure-flags #~(list "-DUSE_SYSTEM_TZ_DB=ON" "-DBUILD_SHARED_LIBS=ON" "-DBUILD_TZ_LIB=ON" "-DENABLE_DATE_TESTING=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-bin-bash @@ -148,7 +150,11 @@ available in French.") (lambda _ (for-each delete-file '("test/solar_hijri_test/parse.pass.cpp" - "test/tz_test/zoned_time_deduction.pass.cpp"))))))) + "test/tz_test/zoned_time_deduction.pass.cpp")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "testit" args)))))) (synopsis "Date and time library for C++11 and C++14") (description "Date is a header only C++ library that extends the chrono date @@ -172,6 +178,7 @@ algorithms library for calendar dates and durations. It also provides the (build-system cmake-build-system) (arguments (list + #:parallel-tests? #f #:configure-flags #~(list "-DSHARED_ONLY=true" ;; required by evolution-data-server "-DGOBJECT_INTROSPECTION=true" diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 84dec5974c..9660cff1c7 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -587,7 +587,8 @@ PyUnit and others.") (base32 "0mf55yi8ahpczl9jz2is3dnghfi3g9qz5vch7mx7akqx4gfhhviz")))) (build-system cmake-build-system) - (arguments (list #:configure-flags + (arguments (list #:tests? #f + #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" "-DSNITCH_DO_TEST=ON" "-DSNITCH_USE_SYSTEM_DOCTEST=ON"))) @@ -1145,7 +1146,8 @@ package.") (base32 "1cv55x3amwrvfan9pr8dfnicwr8r6ar3yf6cg9v6nykd6m2v3qsv")))) (build-system cmake-build-system) (arguments - `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) + `(#:tests? #f + #:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) (native-inputs `(("python" ,python-wrapper))) (home-page "https://github.com/google/googletest/") @@ -1355,7 +1357,9 @@ with the @code{klee} package.") (arguments (list #:strip-directories #~(list "bin") ;don't strip LLVM bitcode in /lib - #:test-target "check" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch @@ -1371,6 +1375,7 @@ with the @code{klee} package.") (substitute* "test/lit.cfg" (("addEnv\\('PWD'\\)" env) (string-append env "\n" "addEnv('GUIX_PYTHONPATH')"))))) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -3607,12 +3612,11 @@ tests. The output format is JSON.") (list) (list #:configure-flags #~(list "-DTROMPELOEIL_BUILD_TESTS=yes"))) (list - #:test-target "test/self_test" #:phases #~(modify-phases %standard-phases (replace 'check - (lambda* (#:key tests? test-target #:allow-other-keys) + (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke test-target)))))))) + (invoke "test/self_test")))))))) (native-inputs (list catch2-3)) (home-page "https://github.com/rollbear/trompeloeil") (synopsis "Header only C++14 mocking framework") diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm index 522778776c..5cbdad2822 100644 --- a/gnu/packages/chemistry.scm +++ b/gnu/packages/chemistry.scm @@ -604,7 +604,6 @@ usual algorithms you expect from a modern molecular dynamics implementation.") (search-input-file %build-inputs "/lib/inchi/libinchi.so.1")) (string-append "-DINCHI_INCLUDE_DIR=" (search-input-directory %build-inputs "/include/inchi"))) - #:test-target "test" #:phases '(modify-phases %standard-phases ;; Fixed upstream: diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index 608080954f..b269365d5a 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com> ;;; Copyright © 2024 dan <i@dan.games> ;;; Copyright © 2024 Charles <charles@charje.net> +;;; Copyright © 2024 Greg Hogan <code@greghogan.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -131,6 +132,7 @@ using the CMake build system.") '("Modules/CompilerId/Xcode-3.pbxproj.in" "Modules/Internal/CPack/CPack.RuntimeScript.in" "Source/cmGlobalXCodeGenerator.cxx" + "Source/cmLocalNinjaGenerator.cxx" "Source/cmLocalUnixMakefileGenerator3.cxx" "Source/cmExecProgramCommand.cxx" "Tests/CMakeLists.txt" @@ -172,14 +174,16 @@ using the CMake build system.") ;; ELF headers. "Utilities/cmelf" ;; CMake header wrappers. - "Utilities/cm3p")) + "Utilities/cm3p" + ;; Pkg-config file format parser based on llparse. + "Utilities/cmllpkgc")) ;;; The "bootstrap" CMake. It is used to build 'cmake-minimal' below, as well ;;; as any dependencies that need cmake-build-system. (define-public cmake-bootstrap (package (name "cmake-bootstrap") - (version "3.24.2") + (version "3.31.8") (source (origin (method url-fetch) (uri (string-append "https://cmake.org/files/v" @@ -187,8 +191,7 @@ using the CMake build system.") "/cmake-" version ".tar.gz")) (sha256 (base32 - "1ny8y2dzc6fww9gzb1ml0vjpx4kclphjihkxagxigprxdzq2140d")) - (patches (search-patches "cmake-curl-certificates-3.24.patch")))) + "1akcmx9w5wbygq088hrr13l6n4b5npqvh9jk20934bfwhg5f7kg3")))) (build-system gnu-build-system) (arguments (list @@ -211,7 +214,10 @@ using the CMake build system.") ;; By default CMake is built without any optimizations. Use ;; the recommended Release target for a ~2.5x speedup. - "--" "-DCMAKE_BUILD_TYPE=Release")) + "--" "-DCMAKE_BUILD_TYPE=Release" + + ;; The debugger creates a circular dependency on cppdap. + "-DCMake_ENABLE_DEBUGGER=OFF")) #:make-flags #~(let ((skipped-tests (list #$@%common-disabled-tests @@ -251,7 +257,15 @@ using the CMake build system.") "!defined(__GNU__)"))))) #~())))) (inputs - (list libuv bzip2 curl expat file jsoncpp libarchive rhash zlib)) + (list bzip2 + curl + expat + file + jsoncpp/pinned + libarchive + libuv + rhash + zlib)) (native-search-paths (list (search-path-specification (variable "CMAKE_PREFIX_PATH") @@ -318,6 +332,8 @@ and workspaces that can be used in the compiler environment of your choice.") (list #:configure-flags #~(list "-DCMAKE_USE_SYSTEM_LIBRARIES=ON" + ;; The debugger creates a circular dependency on cppdap. + "-DCMake_ENABLE_DEBUGGER=OFF" (string-append "-DCMAKE_DOC_DIR=share/doc/cmake-" #$(version-major+minor (package-version cmake-bootstrap)))) @@ -349,6 +365,7 @@ and workspaces that can be used in the compiler environment of your choice.") (invoke "ctest" "-j" (if parallel-tests? (number->string (parallel-job-count)) "1") + "--output-on-failure" "--exclude-regex" (string-append "^(" (string-join skipped-tests "|") ")$"))) (format #t "test suite not run~%")))))) @@ -361,7 +378,7 @@ and workspaces that can be used in the compiler environment of your choice.") (package (inherit cmake-minimal) (name "cmake") - (version "3.25.1") + (version "4.0.3") (source (origin (inherit (package-source cmake-minimal)) (method url-fetch) @@ -376,8 +393,7 @@ and workspaces that can be used in the compiler environment of your choice.") ,@rest)))) (sha256 (base32 - "1n4inb3fvk70sni5gmkljqw3cyllalyg3fnr9rlr7x3aa44isl8w")) - (patches (search-patches "cmake-curl-certificates-3.24.patch")))) + "1yrzkwkr2nxl8hcjkk333l9ycbw9prkg363k4km609kknyvkfdcd")))) (outputs '("out" "doc")) (arguments (substitute-keyword-arguments (package-arguments cmake-minimal) @@ -414,58 +430,28 @@ and workspaces that can be used in the compiler environment of your choice.") (delete-file-recursively (string-append #$output html))))))))) (inputs (modify-inputs (package-inputs cmake-minimal) - (prepend ncurses))) ;required for ccmake + (prepend ncurses) ;required for ccmake + ;; Avoid circular dependency with (gnu packages debug). + (prepend (module-ref (resolve-interface '(gnu packages debug)) + 'cppdap)))) ;; Extra inputs required to build the documentation. (native-inputs (modify-inputs (package-native-inputs cmake-minimal) (append python-sphinx - texinfo))) - (properties (alist-delete 'hidden? (package-properties cmake-minimal))))) + texinfo))))) -(define-public cmake-next - (package - (inherit cmake) - (version "4.0.1") - (source (origin - (method url-fetch) - (uri (string-append "https://cmake.org/files/v" - (version-major+minor version) - "/cmake-" version ".tar.gz")) - (sha256 - (base32 - "1q9119wg68vz3ki4g3yw3dkb90zpbr13vy2raar21rb31vhafc6n")))) - (native-inputs - (modify-inputs (package-native-inputs cmake) - ;; Avoid circular dependency with (gnu packages debug). Note: cppdap - ;; is built with cmake, so when the default cmake is updated to this - ;; version this circular dependency will need to be worked around. - (prepend (module-ref (resolve-interface '(gnu packages debug)) - 'cppdap)))))) - -(define-public cmake-minimal-3.30 - (package - (inherit cmake-minimal) - (version "3.30.3") - (source (origin - (method url-fetch) - (uri (string-append "https://cmake.org/files/v" - (version-major+minor version) - "/cmake-" version ".tar.gz")) - (sha256 - (base32 - "1r48zym4dy4mvwzk704zh1vx9gb4a910f424ypvis28mcxdy2pbd")))) - (arguments - (substitute-keyword-arguments (package-arguments cmake-minimal) - ((#:phases phases) - #~(modify-phases #$phases - (delete 'delete-help-documentation))))) - (native-inputs - (modify-inputs (package-native-inputs cmake-minimal) - ;; Avoid circular dependency with (gnu packages debug). Note: cppdap - ;; is built with cmake, so when the default cmake-minimal is updated to - ;; this version this circular dependency will need to be worked around. - (prepend (module-ref (resolve-interface '(gnu packages debug)) - 'cppdap)))))) +(define-public cmake-3.25 + (hidden-package + (package/inherit cmake + (version "3.25.3") + (source (origin + (method url-fetch) + (uri (string-append "https://cmake.org/files/v" + (version-major+minor version) + "/cmake-" version ".tar.gz")) + (sha256 + (base32 + "074hw6pr7w4j6mfnpm3xh99cm6chjf4rjpi4qkmnvjlhsl0mg6fc"))))))) (define-public cmake-minimal-cross (package diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 83e28d63ed..7d081e3e3f 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -711,8 +711,7 @@ possible to collect coverage information without special compiler switches.") (arguments '(#:build-type "RelWithDebInfo" #:configure-flags - '("-DRTAGS_NO_ELISP_FILES=1" - "-DBUILD_TESTING=FALSE") + '("-DRTAGS_NO_ELISP_FILES=1") #:tests? #f)) (native-inputs (list pkg-config)) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 96b28206f7..503fa18a55 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -875,6 +875,7 @@ with the sfArk algorithm.") (build-system cmake-build-system) (arguments (list + #:parallel-tests? #f #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" "-DMZ_BUILD_TESTS=ON" "-DMZ_BUILD_UNIT_TESTS=ON" @@ -2167,6 +2168,15 @@ timestamps in the file header with a fixed time (1 January 2008). (base32 "18578xbzj8j89srv4bwayjm11bg56fl34sya0znq4fwq3apm037i")))) (build-system cmake-build-system) + (arguments + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + ;; Avoid the integration test, which requires a system bus. + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (inputs (list zlib)) (native-inputs (list perl ; for the documentation @@ -2872,7 +2882,8 @@ computations.") "17kqwvw2n6bgzidi8f5906s5hc9wm1lbfbpd491gf7csxjck99sx")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_STATIC=OFF" + (list #:parallel-tests? #f + #:configure-flags #~(list "-DBUILD_STATIC=OFF" "-DDEACTIVATE_AVX2=ON" "-DDEACTIVATE_AVX512=ON" "-DPREFER_EXTERNAL_LZ4=ON" @@ -3007,7 +3018,8 @@ can append files to the end of such compressed archives.") "00ibddiy62kbs9wl52c35j0hbqanx6pi7lvzkpzmbsizkj8mhp1p")))) (build-system cmake-build-system) (arguments - '(#:configure-flags + '(#:tests? #f + #:configure-flags (let* ((out (assoc-ref %outputs "out")) (lib (string-append out "/lib"))) (list diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 4c75400dea..3832b67aec 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -338,6 +338,8 @@ Segmentation and Registration Toolkit.") (base32 "1nm6d87j11jc5617qk58a81ajxgrncr7xsf4dkyscrygi2n3dbgz")))) (build-system cmake-build-system) + (arguments + (list #:tests? #f)) (home-page "https://github.com/Martchus/cpp-utilities/") (synopsis "Useful C++ classes and routines") (description @@ -832,8 +834,7 @@ of XDG base directories, such as XDG_CONFIG_HOME.") (build-system cmake-build-system) (arguments (list - #:configure-flags #~(list "-DBUILD_TESTS=ON") - #:test-target "xtest")) + #:configure-flags #~(list "-DBUILD_TESTS=ON"))) (native-inputs (list doctest googletest)) @@ -848,32 +849,30 @@ mathematical functions operating on batches.") (license license:bsd-3))) (define-public icecream-cpp - ;; Last release was in 2020. - (let ((commit "95c8b91c2214be76a2847cd4ab37dccd9250ed77") - (revision "0")) - (package - (name "icecream-cpp") - (version (git-version "0.3.1" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/renatoGarcia/icecream-cpp") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0zw4aj5xs13grf7qj6f33dq7md9hn5i9mf6kz66b5jsx2fly6xxs")))) - (build-system cmake-build-system) - (arguments - (list #:configure-flags #~(list "-DBUILD_TESTING=ON"))) - (native-inputs (list boost catch2)) - (home-page "https://github.com/renatoGarcia/icecream-cpp") - (synopsis "C++ library for @code{printf} debugging") - (description - "IceCream-Cpp is a C++ library for @code{printf} debugging. It is + (package + (name "icecream-cpp") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/renatoGarcia/icecream-cpp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pl3qibxa9m7qkfpxszablwyhlnn9qz0cgms8kr2wwvxdzipr1p0")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DCMAKE_CXX_STANDARD=17"))) + (native-inputs (list boost catch2)) + (home-page "https://github.com/renatoGarcia/icecream-cpp") + (synopsis "C++ library for @code{printf} debugging") + (description + "IceCream-Cpp is a C++ library for @code{printf} debugging. It is inspired by the @url{https://github.com/gruns/icecream, Python library} of the same name.") - (license license:expat)))) + (license license:expat))) (define-public google-highway (package @@ -927,7 +926,6 @@ library for SIMD (Single Instruction, Multiple Data) with runtime dispatch.") "0q7bpywn8ljsj3dymvv19cm7n0r51vg5hj1jsapdl5bwpwf7bf41")))) (build-system cmake-build-system) (native-inputs (list gcc-15 pkg-config)) - (arguments (list #:cmake cmake-next)) (inputs (list cairo hyprutils libjpeg-turbo @@ -1370,6 +1368,7 @@ a cooperatively interruptible thread that is joined upon destruction.") (sha256 (base32 "090i2qg88iknldxd6v2mh3jfvkdkwc5m38czhrbm58r3y835fy0y")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (home-page "https://github.com/ToruNiina/toml11") (synopsis "TOML for modern C++") (description @@ -1443,8 +1442,7 @@ for C++17.") (build-system cmake-build-system) (arguments (list - #:configure-flags #~(list "-DBUILD_TESTS=ON") - #:test-target "xtest")) + #:configure-flags #~(list "-DBUILD_TESTS=ON"))) (native-inputs (list doctest googletest @@ -1646,7 +1644,8 @@ tools: (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:parallel-tests? #f + #:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DHTTPLIB_TEST=ON" "-DHTTPLIB_COMPILE=ON" @@ -1965,7 +1964,8 @@ hierarchies and multiple types of execution resources.") (base32 "05g4dp1359rsx0y2wrg2yv4zx3aq5anxr8jgb2c5f1ay3nq3639s")))) (build-system cmake-build-system) (arguments - (list #:configure-flags + (list #:tests? #f + #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"))) (inputs (list kokkos @@ -2593,10 +2593,17 @@ provides a number of utilities to make coding with expected cleaner.") (sha256 (base32 "032rb84ahvdnc1m6sj4lflrwnk4p1f2jsq1pv03xbgizp2lr2pkx")))) (build-system cmake-build-system) - (arguments (list #:test-target "check" - ;; -Werror appears to report false positives. - ;; See <https://github.com/arximboldi/immer/issues/223>. - #:configure-flags #~(list "-DDISABLE_WERROR=ON"))) + (arguments + (list + ;; -Werror appears to report false positives. + ;; See <https://github.com/arximboldi/immer/issues/223>. + #:configure-flags #~'("-DDISABLE_WERROR=ON") + #:modules `((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (inputs (list boost libgc c-rrb)) (native-inputs (list catch2-3 doctest fmt pkg-config)) (home-page "https://sinusoid.es/immer") @@ -2621,7 +2628,14 @@ written in C++.") (modules '((guix build utils))) (snippet #~(delete-file-recursively "tools")))) (build-system cmake-build-system) - (arguments (list #:test-target "check")) + (arguments + (list + #:modules `((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (native-inputs (list boost catch2)) (home-page "https://sinusoid.es/zug") (synopsis "Higher-order sequence transformers") @@ -2642,13 +2656,16 @@ composable sequential transformations.") (sha256 (base32 "1by9d49qnkncifyjcq16zy605d7v4ps6hvc01q5nsp1nbswm94m4")))) (build-system cmake-build-system) - (arguments (list #:test-target "check" - #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no") + (arguments (list #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no") + #:modules `((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'delete-failing-tests (lambda _ - (delete-file-recursively "test/event_loop")))))) + (delete-file-recursively "test/event_loop"))) + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (inputs (list boost immer zug)) (native-inputs (list catch2 cereal)) (home-page "https://sinusoid.es/lager") @@ -3228,95 +3245,87 @@ validation.") "038i9nmk85vpxvs546w6cyci0ppdrrp5wnlv1kffxw29x71a3g5l")))))) (define-public bloomberg-bde-tools - (let ((commit "23217675939d434537ef74b91f71b63054e36572")) - (package - (name "bloomberg-bde-tools") - ;; Recent releases are not tagged so commit must be used for checkout. - (version "4.13.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bloomberg/bde-tools") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1x440fa8fghigipn6w8zdr60kkvxrkxs2n9a5hf3y33b8aygh8iv")) - (patches - (search-patches - "bloomberg-bde-tools-fix-install-path.patch")))) - (build-system copy-build-system) - ;; Unable to be an inline dependency of bloomberg-bde due to patch. - (properties '((hidden? . #t))) - (synopsis "Tools for developing and building libraries modeled on BDE") - (description - "This package provides the cmake imports needed to build bloomberg-bde.") - (home-page "https://github.com/bloomberg/bde-tools") - (license license:asl2.0)))) + (package + (name "bloomberg-bde-tools") + (version "4.27.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bloomberg/bde-tools") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zkf6vdvzp73h6bai6kmd062k0wyqwrrdv2z9m416kgxr6qickl2")) + (patches + (search-patches + "bloomberg-bde-tools-fix-install-path.patch")))) + (build-system copy-build-system) + ;; Unable to be an inline dependency of bloomberg-bde due to patch. + (properties '((hidden? . #t))) + (synopsis "Tools for developing and building libraries modeled on BDE") + (description + "This package provides the cmake imports needed to build bloomberg-bde.") + (home-page "https://github.com/bloomberg/bde-tools") + (license license:asl2.0))) (define-public bloomberg-bde - (let ((commit "445a8ac4223b90ee0a46749b87ffbbd21788e132")) (package - (name "bloomberg-bde") - ;; Recent releases are not tagged so commit must be used for checkout. - (version "4.14.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bloomberg/bde") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1hf09d4fcn77s1vv6qrh0sa0rv9wijpk55km6p3zi2ymkb2cha3c")) - (patches - (search-patches - "bloomberg-bde-cmake-module-path.patch")) - ;;(modules '((guix build utils))) - (snippet - `(begin - ;; FIXME: Delete bundled software. The third-party packages - ;; may be patched or modified from upstream sources. - ;;(for-each delete-file-recursively - ;; (list "thirdparty")) - ;; Delete failing tests. - (for-each - delete-file - (list "groups/bal/balcl/balcl_commandline.t.cpp" - "groups/bal/balst/balst_resolver_filehelper.t.cpp" - "groups/bal/balst/balst_stacktraceprintutil.t.cpp" - "groups/bal/balst/balst_stacktraceutil.t.cpp" - "groups/bsl/bslh/bslh_hash.t.cpp" - "groups/bsl/bsls/bsls_timeutil.t.cpp")) - #t)))) - (build-system cmake-build-system) - (arguments - `(#:parallel-tests? #f ; Test parallelism may fail inconsistently. - ;; Set UFID to build shared libraries. Flag descriptions can be found at - ;; https://bloomberg.github.io/bde-tools/bbs/reference/bbs_build_configuration.html#ufid - #:configure-flags '("-DUFID=opt_dbg_exc_mt_64_shr_cpp20") - #:phases - (modify-phases %standard-phases - ;; Explicitly build tests separate from the main build. - (add-after 'build 'build-tests - (lambda* (#:key make-flags #:allow-other-keys) - (apply invoke "make" "all.t" - `(,@(if #:parallel-build? - `("-j" ,(number->string (parallel-job-count))) - '()) - ,@make-flags))))))) - (native-inputs - (list bloomberg-bde-tools pkg-config python)) - (synopsis "Foundational C++ libraries used at Bloomberg") - (description - "The BDE Development Environment libraries provide an enhanced + (name "bloomberg-bde") + (version "4.27.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bloomberg/bde") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17315r9j20pvv4ccnd59m85miq96hp07pysfr64glb7r4f4zjkfs")) + ;;(modules '((guix build utils))) + (snippet + `(begin + ;; FIXME: Delete bundled software. The third-party packages + ;; may be patched or modified from upstream sources. + ;;(for-each delete-file-recursively + ;; (list "thirdparty")) + )))) + (build-system cmake-build-system) + (arguments + (list + ;; Set UFID to build shared libraries. Flag descriptions can be found at + ;; https://bloomberg.github.io/bde-tools/bbs/reference/bbs_build_configuration.html#ufid + #:configure-flags #~(list "-DUFID=opt_dbg_exc_mt_64_shr_cpp20") + #:test-exclude (string-join (list "balcl_commandline.t" + "balst_stacktraceprintutil.t" + "bslalg_numericformatterutil.t" + "bslh_hash.t" + "bslstl_deque.0[1345].t" + "bslstl_queue.t" + "bslstl_stack.t") + "|") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + ;; Explicitly build tests after the main build. + (add-after 'build 'build-tests + (lambda* (#:key make-flags #:allow-other-keys #:rest args) + (apply (assoc-ref gnu:%standard-phases 'build) + (list #:make-flags (list "all.t")))))))) + (native-inputs + (list bloomberg-bde-tools pkg-config python)) + (synopsis "Foundational C++ libraries used at Bloomberg") + (description + "The BDE Development Environment libraries provide an enhanced implementation of STL containers, vocabulary types for representing common concepts (like dates and times), and building blocks for developing multi-threaded applications and network applications.") - (home-page "https://github.com/bloomberg/bde") - ;; Out-of-memory on i686-linux, compile errors with non-x86. - (supported-systems '("x86_64-linux")) - (license license:asl2.0)))) + (home-page "https://github.com/bloomberg/bde") + ;; Out-of-memory on i686-linux, compile errors with non-x86. + (supported-systems '("x86_64-linux")) + (license license:asl2.0))) (define-public gulrak-filesystem (package @@ -4031,7 +4040,8 @@ based on the implementation of std::variant in libc++.") (base32 "15l0jy3v4p6rgg9dk8zr80lqp51s32ii62cm4s90400ragdgh10v")))) (build-system cmake-build-system) (arguments - '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) + '(#:tests? #f + #:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) (native-inputs (list pkg-config)) (inputs (list gtk+)) (home-page "https://github.com/btzy/nativefiledialog-extended") diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index a2031ad0c9..2bfa37ea90 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -217,6 +217,7 @@ (base32 "1dg3g66az17z4snxxw7cslqdkrvbx2nnyry73yi77yp0vpri1lz8")))) (arguments (list + #:tests? #f #:configure-flags #~(list "-DBUILD_EXTENSIONS=autocomplete;icu;json;parquet;tpch;" ;; There is no git checkout from which to read the version tag. @@ -1568,11 +1569,12 @@ pictures, sounds, or video.") (list #:imported-modules `((guix build union) ,@%cmake-build-system-modules) #:modules `(,@%cmake-build-system-modules + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils) (guix build union) (ice-9 match)) #:configure-flags #~(list "-DAPACHE_ONLY=ON" "-DSEND_TELEMETRY_DEFAULT=OFF") - #:test-target "regresschecklocal" #:phases #~(modify-phases (@ (guix build cmake-build-system) %standard-phases) (add-after 'unpack 'patch-install-location @@ -1641,7 +1643,9 @@ pictures, sounds, or video.") (("histogram_test\\.sql\\.in") "#histogram_test.sql.in"))))))) (add-after 'prepare-tests 'check - (assoc-ref %standard-phases 'check))))) + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "regresschecklocal" args)))))) (inputs (list openssl postgresql)) (home-page "https://www.timescale.com/") (synopsis "Time-series extension for PostgreSQL") @@ -5181,7 +5185,6 @@ with integrated support for finding required rows quickly.") (build-system cmake-build-system) (arguments (list - #:cmake cmake ;needs 3.25+ #:tests? #f #:phases #~(modify-phases %standard-phases diff --git a/gnu/packages/datastructures.scm b/gnu/packages/datastructures.scm index 485cd03b7d..2f64467bf1 100644 --- a/gnu/packages/datastructures.scm +++ b/gnu/packages/datastructures.scm @@ -325,7 +325,8 @@ to the structure and choosing one or more fields to act as the key.") "0m542xpys54bni29zibgrfpgpd0zgyny4h131virxsanixsbz52z"))))))) (build-system cmake-build-system) (arguments - `(#:phases + `(#:tests? #f + #:phases (modify-phases %standard-phases (add-after 'install 'install-static-library (lambda* (#:key outputs #:allow-other-keys) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 49584fc60e..a452c849fc 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -1809,11 +1809,17 @@ wrapper for disk usage querying and visualisation.") (build-system qt-build-system) (arguments (list + #:tests? #f + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (system* "qmake" (string-append "INSTALL_PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'wrap (lambda _ (wrap-program (string-append #$output diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index dc01277976..0eebedd503 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm @@ -216,7 +216,6 @@ markup) can be customized and extended by the user.") (assoc-ref %build-inputs "cross-libc") "/include")) #~'()) - #:test-target "tests" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-bibtex-test diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index d772d5244c..8deb82aa40 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -405,6 +405,9 @@ accessing and converting various ebook file formats.") #:tests? #f ; no test suite #:make-flags #~(list (string-append "PREFIX=" #$output)) + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'prefix-opt @@ -414,7 +417,9 @@ accessing and converting various ebook file formats.") #$output)))) (replace 'configure (lambda* (#:key make-flags #:allow-other-keys) - (apply invoke (cons "qmake" make-flags))))))) + (apply invoke (cons "qmake" make-flags)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (native-inputs (list qtbase-5)) (synopsis "EBook reader") diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index c27ca88c73..33855baef4 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -240,8 +240,7 @@ of categories with some of the activities available in that category. (setenv "DISPLAY" ":1") ;; The test suite wants to write to /homeless-shelter (setenv "HOME" (getcwd))))) - #:configure-flags #~(list "-DQML_BOX2D_MODULE=disabled" - "-DBUILD_TESTING=TRUE"))) + #:configure-flags #~(list "-DQML_BOX2D_MODULE=disabled"))) (native-inputs (list extra-cmake-modules gettext-minimal @@ -514,6 +513,9 @@ specialized device.") (arguments (list #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'set-initial-values @@ -542,6 +544,7 @@ specialized device.") (replace 'configure (lambda _ (invoke "qmake" "OpenBoard.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'install (lambda* (#:key inputs #:allow-other-keys) (let* ((share (string-append #$output "/share")) @@ -692,6 +695,7 @@ language and very flexible regarding to new or unknown keyboard layouts.") (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list qtdeclarative-5)) + (arguments (list #:tests? #f)) (home-page "https://invent.kde.org/libraries/kqtquickcharts") (synopsis "QtQuick plugin to render beautiful and interactive charts") (description @@ -736,6 +740,7 @@ charts.") qtquickcontrols2-5 qtx11extras qtxmlpatterns-5)) + (arguments (list #:tests? #f)) (home-page "https://edu.kde.org/ktouch/") (synopsis "Touch typing tutor") (description diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8953aed271..222d065db3 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -11370,6 +11370,7 @@ described on the homepage.") (name "emacs-irony-mode-server") (arguments (list + #:tests? #f #:phases #~(modify-phases %standard-phases (replace 'configure diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 9f64863e9b..130b2e0877 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -147,7 +147,6 @@ (build-system cmake-build-system) (arguments (list #:tests? #f ; No tests - #:cmake cmake-next ; Requires cmake >= 3.28 #:configure-flags #~(list "-DARES_BUILD_LOCAL=FALSE" "-DARES_BUILD_OFFICIAL=TRUE" @@ -491,6 +490,9 @@ It aims to support Nintendo DSi and 3DS as well.") (build-system cmake-build-system) (arguments (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-before 'configure 'generate-fonts&hardcode-libvulkan-path @@ -512,6 +514,10 @@ It aims to support Nintendo DSi and 3DS as well.") (("\"vulkan\", 1") (string-append "\"vulkan\"")) (("\"vulkan\"") (string-append "\"" libvulkan "\"")) (("Common::DynamicLibrary::GetVersionedFilename") ""))))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "unittests" args))) (add-before 'install 'build-codeloader.bin (lambda _ (with-directory-excursion "../source/docs" @@ -537,8 +543,7 @@ It aims to support Nintendo DSi and 3DS as well.") (rename-file "dsp_coef.bin" "Data/Sys/GC/dsp_coef.bin"))))) #:configure-flags #~(list "-DUSE_DISCORD_PRESENCE=OFF" ;avoid bundled discord-rpc lib - "-DDSPTOOL=ON") - #:test-target "unittests")) + "-DDSPTOOL=ON"))) (native-inputs (list (cross-gcc "powerpc-linux-gnu") gettext-minimal @@ -868,39 +873,44 @@ emulate a serial nullmodem over TCP/IP.") "1fal7a8y5g0rqqjrk795jh1l50ihz01ppjnrfjrk9vkjbd59szbp")))) (build-system qt-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (invoke "qmake" - (string-append "PREFIX=" (assoc-ref outputs "out")) - "qtmips.pro"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (substitute* "tests/test.sh" - (("qtchooser.*") "")) - (substitute* '("tests/cpu_trap/test.sh" - "tests/registers/test.sh") - (("sub-qtmips_cli") "qtmips_cli")) - (if tests? - (invoke "tests/run-all.sh") - #t))) - (replace 'install - ;; There is no install target. - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (apps (string-append out "/share/applications")) - (icons (string-append out "/share/icons/hicolor"))) - (install-file "qtmips_gui/qtmips_gui" bin) - (install-file "qtmips_cli/qtmips_cli" bin) - (install-file "data/qtmips.desktop" apps) - (install-file "data/icons/qtmips_gui.svg" - (string-append icons "/scalable/apps")) - (install-file "data/icons/qtmips_gui.png" - (string-append icons "/48x48/apps")) - #t)))) - #:tests? #f)) ; test suite wants mips toolchain + (list + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (invoke "qmake" + (string-append "PREFIX=" (assoc-ref outputs "out")) + "qtmips.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (substitute* "tests/test.sh" + (("qtchooser.*") "")) + (substitute* '("tests/cpu_trap/test.sh" + "tests/registers/test.sh") + (("sub-qtmips_cli") "qtmips_cli")) + (if tests? + (invoke "tests/run-all.sh") + #t))) + (replace 'install + ;; There is no install target. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (apps (string-append out "/share/applications")) + (icons (string-append out "/share/icons/hicolor"))) + (install-file "qtmips_gui/qtmips_gui" bin) + (install-file "qtmips_cli/qtmips_cli" bin) + (install-file "data/qtmips.desktop" apps) + (install-file "data/icons/qtmips_gui.svg" + (string-append icons "/scalable/apps")) + (install-file "data/icons/qtmips_gui.png" + (string-append icons "/48x48/apps")) + #t)))) + #:tests? #f)) ; test suite wants mips toolchain (inputs (list elfutils qtbase-5 qtwayland-5)) (home-page "https://github.com/cvut/QtMips") @@ -4130,7 +4140,7 @@ graphic filters. Some of its features include: (("include\\(cmake/") "include("))))) (build-system pyproject-build-system) - (native-inputs (list cmake pkg-config python-setuptools python-wheel)) + (native-inputs (list cmake-minimal pkg-config python-setuptools python-wheel)) (home-page "https://www.unicorn-engine.org") (synopsis "Generic CPU emulator framework") (description @@ -4579,7 +4589,7 @@ stack-machine, written in ANSI C. Graphical output is implemented using SDL2.") (base32 "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig")))) (build-system pyproject-build-system) (native-inputs - (list cmake + (list cmake-minimal python-setuptools python-wheel)) (home-page "https://www.keystone-engine.org") diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 451d5ab9c9..77383428b5 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -311,21 +311,25 @@ their devices.") (build-system qt-build-system) (arguments (list - #:test-target "check" + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (system* "qmake" (string-append "BOOST_DIR=" #$(this-package-input "boost"))))) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((bin (string-append #$output "/bin")) - (share (string-append #$output "/share/librecad"))) - (mkdir-p bin) - (install-file "unix/librecad" bin) - (mkdir-p share) - (copy-recursively "unix/resources" share))))))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append #$output "/bin")) + (share (string-append #$output "/share/librecad"))) + (mkdir-p bin) + (install-file "unix/librecad" bin) + (mkdir-p share) + (copy-recursively "unix/resources" share))))))) (inputs (list bash-minimal boost muparser freetype qtbase-5 qtsvg-5)) (native-inputs @@ -906,6 +910,9 @@ required for Fritzing app.") ;; XXX: tests are built for the CMake build option but it seems to be ;; broken in 0.8.0. (list #:tests? #f + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -913,7 +920,9 @@ required for Fritzing app.") ;; Patch hardcoded path before running qmake. (substitute* "qelectrotech.pro" (("\\/usr\\/local") #$output)) - (invoke "qmake")))))) + (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (native-inputs (list pkg-config qttools-5)) (inputs @@ -1155,12 +1164,12 @@ fonts to gEDA.") (build-system cmake-build-system) (arguments (list + #:tests? #f ; Several tests fail due to floating point error. #:imported-modules `((guix build guile-build-system) ,@%cmake-build-system-modules) #:modules '((guix build cmake-build-system) ((guix build guile-build-system) #:prefix guile:) (guix build utils)) - #:test-target "libfive-test" #:configure-flags #~(list (string-append "-DPYTHON_SITE_PACKAGES_DIR=" @@ -1420,10 +1429,7 @@ electrical diagrams), gerbview (viewing Gerber files) and others.") (build-system cmake-build-system) (arguments `(#:configure-flags (list "-DBUILD_FORMATS=html") - #:tests? #f ;no test suite - #:phases - (modify-phases %standard-phases - (delete 'build)))) + #:tests? #f)) ;no test suite (native-inputs (list asciidoc gettext-minimal git-minimal @@ -3042,8 +3048,9 @@ specification can be downloaded at @url{http://3mf.io/specification/}.") (build-system cmake-build-system) (inputs (list tbb clipper2 assimp python-nanobind googletest)) (arguments - ;; can be removed once emscripten is packaged - `(#:configure-flags '("-DMANIFOLD_JSBIND=OFF"))) + (list #:tests? #f + ;; can be removed once emscripten is packaged + #:configure-flags #~(list "-DMANIFOLD_JSBIND=OFF"))) (synopsis "Geometry library for topological robustness") (description "Manifold is a geometry library dedicated to creating and operating on @@ -3726,7 +3733,8 @@ extension and customization.") (build-system cmake-build-system) (inputs (list hdf5-1.10)) (arguments - `(#:phases + `(#:parallel-tests? #f + #:phases (modify-phases %standard-phases (add-after 'install 'remove-test-output (lambda* (#:key outputs #:allow-other-keys) @@ -4181,6 +4189,7 @@ calibration of the milling depth.") (arguments (list #:build-type "Release" + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'unpack-libdxfrw (lambda _ @@ -5655,13 +5664,7 @@ towards field theory.") (commit commit))) (sha256 (base32 "1c7vimy065908qs5nwhnrk9pp0wh8pjgdvz2hwb12a9wcsj50kf0")) - (file-name (git-file-name name version)) - (modules '((guix build utils))) - ;; make tests deterministic by seeding the random number generator - (snippet '(substitute* '("orocos_kdl/tests/treeinvdyntest.cpp" - "orocos_kdl/tests/solvertest.cpp") - (("srand\\( \\(unsigned\\)time\\( NULL \\)\\)") - "srand(0u)"))))) + (file-name (git-file-name name version)))) (build-system cmake-build-system) (native-inputs (list cppunit)) (propagated-inputs (list eigen)) @@ -5669,10 +5672,20 @@ towards field theory.") (list #:configure-flags #~(list "-DENABLE_TESTS=ON") - #:test-target "check" #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'chdir + (add-after 'unpack 'fix-tests + (lambda _ + ;; Make tests deterministic by seeding the random number generator. + (substitute* '("orocos_kdl/tests/treeinvdyntest.cpp" + "orocos_kdl/tests/solvertest.cpp") + (("srand\\( \\(unsigned\\)time\\( NULL \\)\\)") + "srand(0u)")) + ;; CTest requires tests to be enabled in the top-level directory. + (substitute* "orocos_kdl/CMakeLists.txt" + (("IF\\( ENABLE_TESTS \\)" _all) + (string-append _all "\n" "enable_testing()"))))) + (add-after 'fix-tests 'chdir (lambda _ (chdir "orocos_kdl")))))) (home-page "https://docs.orocos.org/kdl/overview.html") diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm index 7952f5cc4b..ac6c80a952 100644 --- a/gnu/packages/fcitx5.scm +++ b/gnu/packages/fcitx5.scm @@ -516,7 +516,9 @@ including input methods previous bundled inside Fcitx 4: (sha256 (base32 "1kg0hddds7raqf5y4qw2x02hb4i5impv4hjfm2qvcn3g775rzrq6")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list "-DUSE_QT6=ON"))) + (arguments + (list #:tests? #f + #:configure-flags #~(list "-DUSE_QT6=ON"))) (inputs (list fcitx5 fcitx5-qt diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 1bc64735b7..20c5356765 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1359,8 +1359,10 @@ agent.") (inputs (list libzip qtsvg qtwebengine qt5compat)) (arguments (list #:tests? #f ; tests do not even build with Qt6 anymore - #:test-target "check" #:qtbase qtbase ; use Qt6 + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -1372,6 +1374,7 @@ agent.") (substitute* "kitsasproject.pro" ((" *(unittest|testit).*") "") (("\\\\") "")))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'install (lambda* _ (install-file "kitsas/kitsas" diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 9b0dfa9479..294a2f2c38 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -1536,22 +1536,7 @@ translated keywords and acts.") (list freetype)) (arguments (if (system-hurd?) - (list - #:phases - #~(modify-phases %standard-phases - (replace 'check - ;; cmake-build-system ignores #:make-flags for make check - (lambda* (#:key test-target tests? parallel-tests? - #:allow-other-keys) - (if tests? - (let ((jobs (if parallel-tests? - (number->string (parallel-job-count)) - "1"))) - (invoke "make" - (string-append - "ARGS=-j " jobs " --exclude-regex ^awamicmp3$") - test-target)) - (format #t "test suite not run~%")))))) + (list #:test-exclude "awamicmp3") '())) (synopsis "Reimplementation of the SIL Graphite text processing engine") (description @@ -1731,69 +1716,54 @@ definitions.") python zlib)) (arguments - (list - #:configure-flags #~`(;; TODO: Provide GTK+ for the Wayland-friendly GDK - ;; backend, instead of the legacy X11 backend. - ;; Currently it introduces a circular dependency. - "-DENABLE_X11=ON") - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'do-not-override-RPATH - (lambda _ - ;; Do not attempt to set a default RPATH, as our ld-wrapper - ;; already does the right thing. - (substitute* "CMakeLists.txt" - (("^set_default_rpath\\(\\)") - "")))) - (add-after 'unpack 'do-not-use-msgfmt--check - (lambda _ - ;; msgfmt --check from gettext-0.23 fails on fr.po: - ;; 'msgstr' is not a valid C format string - (substitute* "po/CMakeLists.txt" - ((" --check") "")))) - #$@(if (target-hurd?) - #~((add-after 'unpack 'apply-hurd-patch - (lambda _ - (let ((patch-file - #$(local-file - (search-patch "fontforge-hurd.patch")))) - (invoke "patch" "--force" "-p1" "-i" patch-file))))) - #~()) - #$@(if (system-hurd?) - #~((replace 'check - ;; cmake-build-system ignores #:make-flags for make check - (lambda* (#:key test-target tests? parallel-tests? - #:allow-other-keys) - (let ((skip '("test0001_py" "test0001_pyhook"))) - (if tests? - (let ((jobs - (if parallel-tests? - (number->string (parallel-job-count)) - "1"))) - (invoke "make" - (string-append "ARGS=-j " jobs - " --exclude-regex ^" - (string-join skip "\\|") - "$") - test-target)) - (format #t "test suite not run~%")))))) - #~()) - (add-after 'install 'set-library-path - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (potrace (dirname - (search-input-file inputs "bin/potrace")))) - (wrap-program (string-append out "/bin/fontforge") - ;; Fontforge dynamically opens libraries. - `("LD_LIBRARY_PATH" ":" prefix - ,(map (lambda (input) - (string-append (assoc-ref inputs input) - "/lib")) - '("libtiff" "libjpeg-turbo" "libpng" "libungif" - "libxml2" "zlib" "libspiro" "freetype" - "pango" "cairo" "fontconfig-minimal"))) - ;; Checks for potrace program at runtime - `("PATH" ":" prefix (,potrace))))))))) + (append + (if (system-hurd?) + (list #:test-exclude "test0001_py|test0001_pyhook") + '()) + (list + #:configure-flags #~`(;; TODO: Provide GTK+ for the Wayland-friendly GDK + ;; backend, instead of the legacy X11 backend. + ;; Currently it introduces a circular dependency. + "-DENABLE_X11=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-override-RPATH + (lambda _ + ;; Do not attempt to set a default RPATH, as our ld-wrapper + ;; already does the right thing. + (substitute* "CMakeLists.txt" + (("^set_default_rpath\\(\\)") + "")))) + (add-after 'unpack 'do-not-use-msgfmt--check + (lambda _ + ;; msgfmt --check from gettext-0.23 fails on fr.po: + ;; 'msgstr' is not a valid C format string + (substitute* "po/CMakeLists.txt" + ((" --check") "")))) + #$@(if (target-hurd?) + #~((add-after 'unpack 'apply-hurd-patch + (lambda _ + (let ((patch-file + #$(local-file + (search-patch "fontforge-hurd.patch")))) + (invoke "patch" "--force" "-p1" "-i" patch-file))))) + #~()) + (add-after 'install 'set-library-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (potrace (dirname + (search-input-file inputs "bin/potrace")))) + (wrap-program (string-append out "/bin/fontforge") + ;; Fontforge dynamically opens libraries. + `("LD_LIBRARY_PATH" ":" prefix + ,(map (lambda (input) + (string-append (assoc-ref inputs input) + "/lib")) + '("libtiff" "libjpeg-turbo" "libpng" "libungif" + "libxml2" "zlib" "libspiro" "freetype" + "pango" "cairo" "fontconfig-minimal"))) + ;; Checks for potrace program at runtime + `("PATH" ":" prefix (,potrace)))))))))) (synopsis "Outline font editor") (description "FontForge allows you to create and modify postscript, truetype and diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 805983f6c7..7451082232 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -715,7 +715,14 @@ automated testing of HDL code.") (base32 "1v5fg3h9ffdzq9f6zplvr9all00ssc1gpdvbg129xahkrbl53kvw")))) (native-inputs (list perl)) (build-system cmake-build-system) - (arguments '(#:test-target "check")) + (arguments + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (home-page "https://accellera.org/community/systemc") (synopsis "Library for event-driven simulation") (description diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 7f50cb0acd..55ece1d96f 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -3678,7 +3678,7 @@ supporting behavior like @samp{ssh -X}.") (base32 "05rxchwzhnkm91kcr30mavizkp25wgjlhb6lcraa456pw7vgb04q")))) (build-system meson-build-system) - (native-inputs (list cmake pkg-config)) + (native-inputs (list cmake-minimal pkg-config)) (inputs (list cairo dbus egl-wayland diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index d82af433d8..4d60ff60d1 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -3244,7 +3244,6 @@ is designed to be used in interactive 3D graphics applications.") (build-system cmake-build-system) (arguments `(#:configure-flags '("-DBUILD_DOCUMENTATION=ON" - "-DBUILD_TESTING=ON" "-DENABLE_DOUBLE_PRECISION=ON"))) (native-inputs (list python-sphinx)) @@ -3357,9 +3356,19 @@ rigid body physics library written in C.") "include <doctest/doctest.h>")))))) (build-system cmake-build-system) (arguments - `(#:test-target "unit_test" - #:configure-flags '("-DBUILD_SHARED_LIBS=ON" - "-DBOX2D_BUILD_TESTBED=OFF"))) + (list #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON" + "-DBOX2D_BUILD_TESTBED=OFF") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "unit_test" args) + (invoke "bin/unit_test"))))))) (native-inputs (list doctest)) ;for tests (inputs @@ -3390,11 +3399,13 @@ physics engine is just a system for procedural animation.") (arguments (substitute-keyword-arguments (package-arguments box2d) - ((#:test-target _) "") ; no check ((#:configure-flags original-flags) - `(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps - "-DBOX2D_SAMPLES=OFF" - (delete "-DBOX2D_BUILD_TESTBED=OFF" ,original-flags))))))) + #~(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps + "-DBOX2D_SAMPLES=OFF" + (delete "-DBOX2D_BUILD_TESTBED=OFF" #$original-flags))) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'check))))))) ; no check (define-public libtcod (package diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2128a06d30..12d4efff4a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1554,6 +1554,9 @@ practise.") (arguments (list #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -1563,6 +1566,8 @@ practise.") #$output)) (invoke "qmake" "DoomRunner.pro" "-spec" "linux-g++" "\"CONFIG+=release\""))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'install-xdg (lambda _ (with-directory-excursion "Install/XDG" @@ -7183,6 +7188,9 @@ colors, pictures, and sounds.") (arguments (list #:tests? #f ;no test suite + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -7198,7 +7206,9 @@ colors, pictures, and sounds.") ((" h264bitstream.*\n") "") ((" app \\\\") " app") (("app.depends") "INCLUDEPATH +=")) - (invoke "qmake" (string-append "PREFIX=" #$output))))))) + (invoke "qmake" (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (native-inputs (list pkg-config qttools-5)) (inputs (list ffmpeg h264bitstream @@ -7603,22 +7613,31 @@ screensaver."))) (native-inputs (list cppunit pkg-config)) (arguments - `(#:configure-flags - (list "-DCMAKE_CXX_FLAGS=-fcommon" - "-DCMAKE_C_FLAGS=-fcommon" - (string-append "-DCUSTOM_DATA_INSTALL_PATH=" - (search-input-directory %build-inputs - "share/megaglest")) - "-DBUILD_MEGAGLEST_TESTS=ON") - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-ini-search-path - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "source/glest_game/global/config.cpp" - (("/usr/share/megaglest/") - (string-append (assoc-ref outputs "out") - "/share/megaglest/")))))) - #:test-target "megaglest_tests")) + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:configure-flags + #~(list "-DCMAKE_CXX_FLAGS=-fcommon" + "-DCMAKE_C_FLAGS=-fcommon" + (string-append "-DCUSTOM_DATA_INSTALL_PATH=" + (search-input-directory %build-inputs + "share/megaglest")) + "-DBUILD_MEGAGLEST_TESTS=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-ini-search-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "source/glest_game/global/config.cpp" + (("/usr/share/megaglest/") + (string-append (assoc-ref outputs "out") + "/share/megaglest/"))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "megaglest_tests" args) + (invoke "source/tests/megaglest_tests"))))))) (home-page "https://megaglest.org/") (synopsis "3D real-time strategy (RTS) game") (description "MegaGlest is a cross-platform 3D real-time strategy (RTS) @@ -7844,26 +7863,31 @@ small robot living in the nano world, repair its maker.") #t)))) (build-system cmake-build-system) (arguments - `(#:test-target "run_tests" + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-paths - (lambda* (#:key outputs #:allow-other-keys) - ;; Embed path to assets. - (substitute* "src/engine/shared/storage.cpp" - (("#define DATA_DIR.*") - (string-append "#define DATA_DIR \"" - (assoc-ref outputs "out") - "/share/teeworlds/data" - "\""))) - #t)) - (add-after 'unpack 'replace-font - (lambda* (#:key inputs #:allow-other-keys) - (delete-file "datasrc/fonts/DejaVuSans.ttf") - (symlink (string-append (assoc-ref inputs "font-dejavu") - "/share/fonts/truetype/DejaVuSans.ttf") - "datasrc/fonts/DejaVuSans.ttf") - #t))))) + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key outputs #:allow-other-keys) + ;; Embed path to assets. + (substitute* "src/engine/shared/storage.cpp" + (("#define DATA_DIR.*") + (string-append "#define DATA_DIR \"" + (assoc-ref outputs "out") + "/share/teeworlds/data" + "\""))))) + (add-after 'unpack 'replace-font + (lambda* (#:key inputs #:allow-other-keys) + (delete-file "datasrc/fonts/DejaVuSans.ttf") + (symlink (string-append (assoc-ref inputs "font-dejavu") + "/share/fonts/truetype/DejaVuSans.ttf") + "datasrc/fonts/DejaVuSans.ttf"))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "run_tests" args)))))) (inputs (list freetype font-dejavu @@ -10808,7 +10832,9 @@ a fortress beyond the forbidden swamp.") (list #:configure-flags #~(list "-DAudio_TK=OpenAL") - #:test-target "tests" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'prepare-gmock @@ -10839,7 +10865,13 @@ a fortress beyond the forbidden swamp.") (substitute* "CMakeLists.txt" (("share/games/openclonk") "share/openclonk") (("TARGETS openclonk DESTINATION games") - "TARGETS openclonk DESTINATION bin"))))))) + "TARGETS openclonk DESTINATION bin")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + (invoke "tests/tests"))))))) (native-inputs (list (package-source googletest) googletest @@ -11134,13 +11166,7 @@ levels to unlock.") (build-system cmake-build-system) (arguments `(#:configure-flags (list "-DSYSTEM_EXPAT=ON") - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; Skip tests that require internet access. - (invoke "ctest" "-E" "(http|dns)"))))))) + #:test-exclude "(http|dns)")) (inputs `(("boost" ,boost) ("curl" ,curl) @@ -11292,7 +11318,10 @@ attached joysticks and displays which buttons and axis are pressed.") (base32 "1x5m6xvd1r9dhgzh6hp4vrszczbbxr04v7lyh4wjxxzrj3ahbmcq")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list "-DBUILD_TESTS=ON"))) + (arguments + (list #:tests? #f + #:configure-flags + #~(list "-DBUILD_TESTS=ON"))) (native-inputs (list pkg-config)) (inputs (list gtkmm-3 libsigc++-2)) (home-page "https://github.com/Grumbel/jstest-gtk/") @@ -11812,12 +11841,17 @@ can be downloaded from @url{https://zero.sjeng.org/best-network}.") (arguments (list #:tests? #f + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (invoke "qmake" - (string-append "PREFIX=" #$output))))))) + (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list qtbase-5 qtsvg-5)) (home-page "https://portnov.github.io/qcheckers/") (synopsis "Qt-based checkers boardgame") @@ -12004,35 +12038,36 @@ and chess engines.") (inputs (list qtbase-5 qtmultimedia-5 qtspeech-5 qtsvg-5 zlib)) (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-paths - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "chessx.pro" - (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") - (search-input-file inputs "/bin/lrelease"))))) - (add-after 'fix-paths 'make-qt-deterministic - (lambda _ - (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") - #t)) - (add-after 'make-qt-deterministic 'disable-versioncheck - (lambda _ - (substitute* "src/database/settings.cpp" - (("\"/General/onlineVersionCheck\", true") - "\"/General/onlineVersionCheck\", false")) - #t)) - (replace 'configure - (lambda _ - (invoke "qmake") - #t)) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (install-file "release/chessx" (string-append out "/bin")) - (install-file "unix/chessx.desktop" - (string-append out "/share/applications"))) - #t))))) + (list + #:tests? #f + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "chessx.pro" + (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") + (search-input-file inputs "/bin/lrelease"))))) + (add-after 'fix-paths 'make-qt-deterministic + (lambda _ + (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1"))) + (add-after 'make-qt-deterministic 'disable-versioncheck + (lambda _ + (substitute* "src/database/settings.cpp" + (("\"/General/onlineVersionCheck\", true") + "\"/General/onlineVersionCheck\", false")))) + (replace 'configure + (lambda _ + (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "release/chessx" (string-append out "/bin")) + (install-file "unix/chessx.desktop" + (string-append out "/share/applications")))))))) (synopsis "Chess game database") (description "ChessX is a chess database. With ChessX you can operate on your @@ -12406,6 +12441,9 @@ game.") ;thanks to Debian for description (arguments (list #:tests? #f ; No test suite + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-paths @@ -12428,7 +12466,9 @@ game.") ;thanks to Debian for description (replace 'configure (lambda _ (invoke "qmake" "pokerth.pro" "CONFIG+=client" - (string-append "PREFIX=" #$output))))))) + (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (home-page "https://www.pokerth.net") (synopsis "Texas holdem poker game") (description @@ -13482,7 +13522,6 @@ virtual reality devices.") (build-system cmake-build-system) (arguments (list - #:cmake cmake-next #:configure-flags #~(list "-DUSE_TESTS=ON" "-DOPENGL_BACKEND=OpenGL"))) (native-inputs (list python-3.10 glibc-locales googletest)) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 9ac28d998b..35700b2382 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -1446,14 +1446,8 @@ development.") (arguments (list #:configure-flags #~(list "-DUSE_EXTERNAL_GTEST=ON") - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "ctest" "-E" - ;; This tests needs network . - "pdal_io_(stac|copc)_reader_test"))))))) + #:parallel-tests? #f + #:test-exclude "pdal_io_(stac|copc)_reader_test")) (native-inputs (list python googletest)) (inputs (list gdal h3 @@ -2298,6 +2292,7 @@ volunteers.") (sha256 (base32 "02n5vjcyk04w0djidyp21hfbxfpbbara8ifd9nml6158rwqr8lja")))) + (arguments (list #:tests? #f)) (build-system cmake-build-system) (home-page "https://libspatialindex.org") (synopsis "Spatial indexing library") @@ -4149,7 +4144,6 @@ and 2D images (photos taken using a 3D imaging system).") #:configure-flags #~(list ;; Options "-DOPTION_BUILD_CCVIEWER=NO" - "-DBUILD_TESTING=ON" "-DOPTION_USE_SHAPE_LIB=YES" "-DOPTION_USE_DXF_LIB=YES" "-DOPTION_USE_GDAL=YES" diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 2526e79a00..1efaa8b8ab 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -1269,18 +1269,11 @@ programming language. It also provides the @command{dbusxx-xml2cpp} and (snippet '(delete-file-recursively "tools/libcppgenerate")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_TESTING=ON" - "-DENABLE_TOOLS=ON" + (list #:configure-flags #~(list "-DENABLE_TOOLS=ON" "-DENABLE_GLIB_SUPPORT=ON" "-DTOOLS_BUNDLED_CPPGENERATE=OFF") - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; There is no /etc/machine-id file in the build - ;; environment. - (invoke "ctest" "-E" "test-machine-uuid-method"))))))) + ;; There is no /etc/machine-id file in the build environment. + #:test-exclude "test-machine-uuid-method")) ;; These are propagated due to being referenced in headers and pkg-config ;; .pc files. (propagated-inputs (list glib libsigc++)) @@ -1318,18 +1311,24 @@ Some codes examples can be find at: (arguments (list ;; Avoid the integration test, which requires a system bus. - #:test-target "sdbus-c++-unit-tests" #:configure-flags #~(list "-DSDBUSCPP_BUILD_CODEGEN=ON" "-DSDBUSCPP_BUILD_TESTS=ON" ;; Do not install tests. "-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp" "-DCMAKE_VERBOSE_MAKEFILE=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'do-not-install-tests (lambda _ (substitute* "tests/CMakeLists.txt" - (("/etc/dbus-1/system.d") "/tmp"))))))) + (("/etc/dbus-1/system.d") "/tmp")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "sdbus-c++-unit-tests" args)))))) (native-inputs (list googletest-1.17 pkg-config)) (inputs (list expat)) (propagated-inputs (list elogind)) ;required by sdbus-c++.pc @@ -1608,6 +1607,7 @@ that uses asynchronous and future-based APIs.") (build-system cmake-build-system) (arguments (list + #:tests? #f ; fail with GLib-CRITICAL errors #:configure-flags #~(list "-DINTERNAL_EXPECTED=OFF"))) (inputs (list boost fmt expected-lite)) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 170faa8020..174df89df4 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5055,7 +5055,22 @@ indicators etc).") (list ;; TODO: Figure out why some tests SIGABRT on aarch64-linux. #:tests? (and (not (%current-target-system)) - (not (target-aarch64?))))) + (not (target-aarch64?))) + ;; Exclude flaky tests (see https://codeberg.org/guix/guix/issues/1377). + ;; Meson cannot exclude individual tests so the test suite is added in the + ;; phase below. + #:test-options #~(list "--no-suite" "connection") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'mark-tests-for-exclusion + (lambda _ + ;; The test names are programmatically generated in the meson + ;; build file. The two failing tests are "connection-gnutls" and + ;; "connection-gnutls-tls1.2" and share program[0] == "common", + ;; so use that as the suite name. + (substitute* "tls/tests/meson.build" + (("test\\(([^)]*)\\)" _ args) + (string-append "test(" args ", suite: program[0])")))))))) (native-inputs (list `(,glib "bin") ; for gio-querymodules pkg-config gettext-minimal)) @@ -5104,7 +5119,7 @@ from the GSettings schemas in gsettings-desktop-schemas.") (native-inputs (list gettext-minimal pkg-config - cmake + cmake-minimal `(,glib "bin") desktop-file-utils itstool @@ -8415,6 +8430,7 @@ Microsoft Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.") (build-system cmake-build-system) (arguments (list + #:parallel-tests? #f #:configure-flags #~(let* ((lib (string-append #$output "/lib")) (runpaths (map (lambda (s) @@ -12362,6 +12378,7 @@ generic enough to work for everyone.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:imported-modules `(,@%cmake-build-system-modules (guix build glib-or-gtk-build-system)) #:modules '((guix build cmake-build-system) @@ -14297,7 +14314,7 @@ historical battery usage and related statistics.") ;; This is done so we can override. (("`set.PREFIX_BIN") "set(QPREFIX_BIN"))))))) (native-inputs - (list cmake pkg-config intltool gettext-minimal)) + (list cmake-minimal pkg-config intltool gettext-minimal)) (inputs (list glib gtk+ libx11 libsm libxv libxaw libxcb libxkbfile shared-mime-info)) diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm index 9f2f677968..ee9fe5a366 100644 --- a/gnu/packages/gnucash.scm +++ b/gnu/packages/gnucash.scm @@ -78,13 +78,13 @@ (build-system cmake-build-system) (arguments (list - #:test-target "check" #:configure-flags #~(list "-DWITH_PYTHON=ON") #:make-flags #~(list "GUILE_AUTO_COMPILE=0") #:imported-modules `(,@%default-gnu-imported-modules (guix build cmake-build-system) (guix build glib-or-gtk-build-system)) #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) (guix build utils)) #:phases @@ -114,6 +114,7 @@ (invoke "localedef" "-i" "en_US" "-f" "UTF-8" "./en_US.UTF-8") (invoke "localedef" "-i" "en_GB" "-f" "UTF-8" "./en_GB.UTF-8") (invoke "localedef" "-i" "fr_FR" "-f" "UTF-8" "./fr_FR.UTF-8"))) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) ;; There is about 100 MiB of documentation. (add-after 'install 'install-docs (lambda _ diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6a3676be04..42aa985ac2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -21799,7 +21799,7 @@ recognizers) at run time.") (list #:import-path "mvdan.cc/editorconfig")) (native-inputs - (list cmake)) + (list cmake-minimal)) (home-page "https://github.com/mvdan/editorconfig") (synopsis "EditorConfig support in Go") (description diff --git a/gnu/packages/gps.scm b/gnu/packages/gps.scm index aefb993f79..8ee1515d6b 100644 --- a/gnu/packages/gps.scm +++ b/gnu/packages/gps.scm @@ -220,6 +220,9 @@ coordinates as well as partial support for adjustments in global coordinate syst (list #:qtbase qtbase #:tests? #f ; no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure ;; Use lrelease to convert TS translation files into QM files. @@ -227,7 +230,9 @@ coordinates as well as partial support for adjustments in global coordinate syst (apply invoke "lrelease" (find-files "lang" "\\.ts")) (invoke "qmake" - (string-append "PREFIX=" #$output))))))) + (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list libxkbcommon qtbase qtpositioning qtserialport qtsvg)) (native-inputs (list qttools)) (home-page "https://www.gpxsee.org") diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 2549889a11..239910ad1a 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -146,7 +146,9 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).") ;; Use the same integer width as suitesparse-cxsparse, which ;; uses int64_t in SuiteSparse v6.0.0 and later. "-DIGRAPH_INTEGER_SIZE=64") - #:test-target "check" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'version-file @@ -178,6 +180,7 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).") (add-after 'build 'build-doc (lambda _ (invoke "cmake" "--build" "." "--target" "html"))) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) (add-after 'install 'install-doc (lambda _ (copy-recursively @@ -536,8 +539,7 @@ intuitive way.") (arguments (list #:configure-flags #~'("-DFAISS_ENABLE_GPU=OFF" ; thanks, but no thanks, CUDA. - "-DFAISS_ENABLE_PYTHON=OFF" - "-DBUILD_TESTING=ON"))) + "-DFAISS_ENABLE_PYTHON=OFF"))) (inputs (list openblas)) (native-inputs diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 09b69091ff..37eb060a8f 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -205,7 +205,8 @@ framebuffer graphics, audio output and input event.") (base32 "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y")))) (build-system gnu-build-system) (arguments - `(#:configure-flags + `(#:parallel-build? #f + #:configure-flags '("CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types") #:phases (modify-phases %standard-phases @@ -634,7 +635,8 @@ Please note that this version requires a processor with SSE2 support.")))) "0r6q7bl8513ggrvx3n73j1s3f7n5x1rxy5xi471qyrya95gy6c60")))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:tests? #f + #:configure-flags (list (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")))) (inputs @@ -802,6 +804,18 @@ and export to various formats including the format used by Magicavoxel.") (sha256 (base32 "097fxq0frb2nl6bp8wz7kjx6vq4i4117wwq9fnxzkiij9xwv3cq9")))) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'enable-testing + (lambda _ + (substitute* "CMakeLists.txt" + (("IF \\( ASSIMP_BUILD_TESTS \\)" all) + (string-append all "\n enable_testing()"))) + (substitute* "test/CMakeLists.txt" + ;; Leave the test binary where ctest will look for it. + (("TARGET_USE_COMMON_OUTPUT_DIRECTORY\\(unit\\)") + ""))))))) (build-system cmake-build-system) (inputs (list zlib)) @@ -2787,11 +2801,15 @@ Some feature highlights: (url "https://github.com/KhronosGroup/OpenXR-SDK") (commit (string-append "release-" version)))) (file-name (git-file-name name version)) - (modules '((guix build utils))) - (snippet - '(begin - ;; Delete bundled jsoncpp. - (delete-file-recursively "src/external/jsoncpp"))) + ;; When compiling against jsoncpp 1.9.6 the build fails with + ;; 'Unknown CMake command "check_required_components"' + ;; (see https://github.com/open-source-parsers/jsoncpp/issues/1568). + ;; When fixed uncomment the snippet and re-add jsoncpp as an input. + ;(modules '((guix build utils))) + ;(snippet + ; '(begin + ; ;; Delete bundled jsoncpp. + ; (delete-file-recursively "src/external/jsoncpp"))) (sha256 (base32 "0s66xgwkdj5vn05l493hqydrxfpxxidd6mcb8l7l5awhn88cy16f")))) (build-system cmake-build-system) @@ -2800,7 +2818,7 @@ Some feature highlights: (native-inputs (list pkg-config python shaderc vulkan-headers)) (inputs - (list jsoncpp mesa vulkan-loader wayland)) + (list mesa vulkan-loader wayland)) (home-page "https://www.khronos.org/openxr/") (synopsis "Generated headers and sources for OpenXR loader") (description "This package contains OpenXR headers, as well as source code @@ -3067,7 +3085,6 @@ generated discrete signed distance field using the cubic spline kernel. (string-append "-DCMAKE_INSTALL_MANDIR=" #$output "/share/man") "-DBUILD_SHARED_LIBS=ON" "-DBUILD_DOC=ON" - "-DBUILD_TESTING=ON" ;; The longer tests are for continuous integration and ;; depend on input data which must be downloaded. "-DONLY_VERY_SHORT_TESTS=ON" @@ -3293,7 +3310,6 @@ desired local properties.") #:configure-flags #~(list (string-append "-DCMAKE_INSTALL_DOCDIR=" #$output "/share/doc/" #$name "-" #$version) - "-DBUILD_TESTING=OFF" "-DF3D_LINUX_GENERATE_MAN=ON" "-DF3D_USE_EXTERNAL_CXXOPTS=ON" "-DF3D_USE_EXTERNAL_NLOHMANN_JSON=ON" diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index ed386371ce..9de7f7d63d 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -1149,6 +1149,9 @@ technology, such as head mounted displays with built in head tracking.") #:tests? #f ; doesn't have tests #:make-flags #~(list (string-append "INSTALL_ROOT=" #$output )) + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'unbundle @@ -1167,7 +1170,9 @@ technology, such as head mounted displays with built in head tracking.") "/bin/chmod"))))) ;; Call qmake instead of configure to create a Makefile. (replace 'configure - (lambda _ (invoke "qmake" "PREFIX=/" "OpenRGB.pro")))))) + (lambda _ (invoke "qmake" "PREFIX=/" "OpenRGB.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list coreutils hidapi @@ -1467,6 +1472,9 @@ management, attestation, encryption, and signing.") (arguments (list #:configure-flags #~(list "-DLIBCPUID_ENABLE_TESTS=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'absolutize @@ -1481,7 +1489,11 @@ management, attestation, encryption, and signing.") (when (and #$(target-linux?) #$(target-arm?)) (substitute* "drivers/arm/linux/CMakeLists.txt" - (("/usr/src/") (string-append #$output "/src/"))))))))) + (("/usr/src/") (string-append #$output "/src/")))))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args)))))) (inputs (append (if (target-linux?) @@ -1519,7 +1531,7 @@ confused with the @code{cpuid} command line utility from package @code{cpuid}.") (base32 "1cc95ggs64jqq9lk5c8fm4nk6fdnv1x7lr3k4znamj0vv6w22bcd")))) (build-system meson-build-system) (native-inputs - (list cmake pkg-config)) + (list cmake-minimal pkg-config)) (inputs (list avahi libtirpc libxml2)) (home-page "https://lxi-tools.github.io/") @@ -1559,7 +1571,7 @@ your network, send SCPI commands, and receive responses.") (("update-desktop-database") (which "true")))))))) (native-inputs (list bash-completion - cmake + cmake-minimal (list glib "bin") pkg-config python diff --git a/gnu/packages/hyperledger.scm b/gnu/packages/hyperledger.scm index 49955f0121..91e9493ea9 100644 --- a/gnu/packages/hyperledger.scm +++ b/gnu/packages/hyperledger.scm @@ -172,9 +172,8 @@ link-time. New implementations can be added as well.") '("-DTESTING=OFF" ; The tests fail to link correctly to googletest. ;; Don't install the shared libraries of the dependencies: "-DENABLE_LIBS_PACKAGING=OFF") - #:tests? #f ;; https://iroha.readthedocs.io/en/latest/build/index.html#running-tests-optional - #:test-target ".")) + #:tests? #f)) ;; https://github.com/hyperledger/iroha/blob/master/vcpkg/VCPKG_DEPS_LIST (native-inputs (list fmt-8 diff --git a/gnu/packages/i2p.scm b/gnu/packages/i2p.scm index b4f0c8d639..bb5fa5fce8 100644 --- a/gnu/packages/i2p.scm +++ b/gnu/packages/i2p.scm @@ -54,8 +54,7 @@ #:configure-flags #~(list (string-append "-S" #$source "/build") "-DWITH_UPNP=ON" - "-DBUILD_SHARED_LIBS=ON" - "-DBUILD_TESTING=ON"))) + "-DBUILD_SHARED_LIBS=ON"))) (home-page "https://i2pd.website/") (synopsis "Router for an end-to-end encrypted and anonymous internet") (description "i2pd is a client for the anonymous I2P network, upon which diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 6e42be1140..22ad2308a5 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -292,16 +292,14 @@ licences similar to the Modified BSD licence.")))) (substitute* "tests/cpu/fileformats/FileFormatCTF_tests.cpp" (("OCIO_CHECK_NE.*ErrorOutputs.*") "")))) - (add-after 'install 'fix-OpenColorIOConfig + (add-after 'unpack 'fix-broken-test (lambda _ - ;; Work around a CMake Zlib-detection bug: - ;; https://gitlab.kitware.com/cmake/cmake/-/issues/25200 - ;; make OpenColorIOConfig.cmake is a normal cmake file - (substitute* - (string-append #$output - "/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake") - (("\\.#define ZLIB_VERSION \"1\\.3\"") - ""))))))) + ;; Replace the invalid multi-line list. It is unclear why + ;; this is now failing after only build system updates. + ;; (see https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/v2.4.2/tests/cpu/Config_tests.cpp#L6227) + (substitute* "tests/cpu/Config_tests.cpp" + (("cs1\\\\t\\\\n \\\\n, \\\\ncs2") + "cs1, cs2"))))))) (native-inputs ;; XXX: OCIO has unit tests for OpenShadingLanguage, but they fail. ;; They also require OIIO, but OCIO is an optional dependency to it. @@ -366,8 +364,7 @@ many popular formats.") (arguments (list #:build-type "Release" ;Build without '-g' to save space. #:configure-flags - #~'( ;;"-DBUILD_TESTING:BOOL=TRUE" ;not honored - "-DVTK_USE_EXTERNAL=OFF" ;default + #~'("-DVTK_USE_EXTERNAL=OFF" ;default "-DVTK_MODULE_USE_EXTERNAL_VTK_doubleconversion=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_expat=ON" @@ -541,7 +538,8 @@ different data arrays similar to those available in the numdiff software.") "1ha0230yw9ihybmg2b3mkk9vbnlgzlwx597v2hm14y403047zvgb")))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:parallel-tests? #f + #:configure-flags (list "-DWITH_ADE=OFF" ;we don't have a package for ade yet "-DWITH_IPP=OFF" "-DWITH_ITT=OFF" @@ -1240,6 +1238,9 @@ programmatically.") "")) #t)))) (build-system cmake-build-system) + (arguments + ;; Not an actual test, but is incorrectly generated by the build system. + (list #:test-exclude "vul_vul_test_driver")) (inputs (list libgeotiff libtiff libjpeg-turbo libpng zlib)) (home-page "https://github.com/vxl/vxl/") @@ -1274,10 +1275,12 @@ libraries designed for computer vision research and implementation.") (("add_subdirectory\\((tiff|png|jpeg|zlib|bzlib|geotiff)\\)") "")))))) (arguments - `(#:configure-flags - ;; Needed for itk-snap - (list "-DVNL_CONFIG_LEGACY_METHODS=ON" - "-DCMAKE_CXX_STANDARD=14"))))) + (substitute-keyword-arguments (package-arguments vxl) + ((#:configure-flags flags) + #~(cons* ;; Needed for itk-snap + "-DVNL_CONFIG_LEGACY_METHODS=ON" + "-DCMAKE_CXX_STANDARD=14" + #$flags)))))) (define-public insight-toolkit ;; For information about ITK remote modules, see: diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 8101977f2d..3e1c30b8d7 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -822,6 +822,9 @@ Poppler-Qt5 binding, PDF documents.") (list #:qtbase qtbase #:tests? #f ; test code doesn't compile + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -836,7 +839,9 @@ Poppler-Qt5 binding, PDF documents.") (lambda _ (substitute* "src/qvaboutdialog.cpp" (("qvApp->checkUpdates\\(\\);") "") - (("updateText\\(\\);") ""))))))) + (("updateText\\(\\);") "")))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (native-inputs (list qttools)) (inputs @@ -1292,7 +1297,6 @@ any user may run. Everything is free and privacy is the first concern.") (build-system cmake-build-system) (arguments (list #:tests? #f ; no tests. - #:cmake cmake-next #:configure-flags #~ (list "-DMARCH_NATIVE=OFF" "-DCMAKE_BUILD_TYPE=Release" diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 1598d33046..33e8b32c10 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -1036,7 +1036,6 @@ test suite, including conformance tests (following Rec. ITU-T T.803 | ISO/IEC (list "-DBUILD_STATIC_LIBS=OFF" "-DBUILD_UNIT_TESTS=ON" - "-DBUILD_TESTING=ON" (string-append "-DOPJ_DATA_ROOT=" (assoc-ref %build-inputs "openjpeg-data"))) #:phases @@ -1461,7 +1460,6 @@ from Lisp and S-expressions, building pixel perfect badges.") (native-inputs (list doxygen python-nose python-sphinx)) (arguments (list - #:test-target "check" #:configure-flags #~(list "-Wno-dev" ;suppress developer mode with lots of warnings (string-append @@ -1477,7 +1475,11 @@ from Lisp and S-expressions, building pixel perfect badges.") ;; needs to be set. (string-append "-DCMAKE_CXX_FLAGS=-I" (assoc-ref %build-inputs "ilmbase") - "/include/OpenEXR" " -ffloat-store")))) + "/include/OpenEXR" " -ffloat-store") + ;; Tests are not built by default. + "-DAUTOBUILD_TESTS=ON" + ;; Disable running tests during the build. + "-DAUTOEXEC_TESTS=OFF"))) (synopsis "Computer vision library") (description "VIGRA stands for Vision with Generic Algorithms. It is an image @@ -1614,38 +1616,46 @@ channels.") (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests" - #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON" - ;; darktable needs BMFF to support - ;; CR3 files. - "-DEXIV2_ENABLE_BMFF=ON") - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-gcc-reference - (lambda _ - ;; _GLIBCXX_ASSERTIONS brings reference to GCC. - (substitute* "cmake/compilerFlags.cmake" - (("add_compile_options[(]-Wp,-D_GLIBCXX_ASSERTIONS[)]") - "")))) - (add-after 'install 'delete-static-libraries - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (lib (string-append out "/lib"))) - (for-each delete-file (find-files lib "\\.a$"))))) + (list + #:configure-flags + #~(list "-DEXIV2_BUILD_UNIT_TESTS=ON" + ;; darktable needs BMFF to support + ;; CR3 files. + "-DEXIV2_ENABLE_BMFF=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-gcc-reference + (lambda _ + ;; _GLIBCXX_ASSERTIONS brings reference to GCC. + (substitute* "cmake/compilerFlags.cmake" + (("add_compile_options[(]-Wp,-D_GLIBCXX_ASSERTIONS[)]") + "")))) + (add-after 'install 'delete-static-libraries + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (for-each delete-file (find-files lib "\\.a$"))))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "tests" args))) - ,@(if (or (target-ppc64le?) - (target-aarch64?) - (target-riscv64?)) - '((add-after 'unpack 'adjust-tests - (lambda _ - ;; Adjust test on ppc64 and aarch64, where no exception - ;; is raised and thus the return value is different. See - ;; <https://github.com/Exiv2/exiv2/issues/365> and - ;; <https://github.com/Exiv2/exiv2/issues/933>. - (substitute* "tests/bugfixes/github/test_CVE_2018_12265.py" - (("\\$uncaught_exception \\$addition_overflow_message\n") "") - (("retval = \\[1\\]") "retval = [0]"))))) - '())))) + #$@(if (or (target-ppc64le?) + (target-aarch64?) + (target-riscv64?)) + '((add-after 'unpack 'adjust-tests + (lambda _ + ;; Adjust test on ppc64 and aarch64, where no exception + ;; is raised and thus the return value is different. See + ;; <https://github.com/Exiv2/exiv2/issues/365> and + ;; <https://github.com/Exiv2/exiv2/issues/933>. + (substitute* "tests/bugfixes/github/test_CVE_2018_12265.py" + (("\\$uncaught_exception \\$addition_overflow_message\n") "") + (("retval = \\[1\\]") "retval = [0]"))))) + '())))) (propagated-inputs (list expat zlib)) (native-inputs diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm index c75c4822b3..e3acf3fd71 100644 --- a/gnu/packages/inkscape.scm +++ b/gnu/packages/inkscape.scm @@ -160,7 +160,6 @@ endif()~%~%" (build-system cmake-build-system) (arguments (list - #:test-target "check" ;otherwise some test binaries are missing #:disallowed-references (list imagemagick/stable) #:imported-modules `(,@%cmake-build-system-modules (guix build glib-or-gtk-build-system)) @@ -260,7 +259,7 @@ endif()~%~%" '())))) (invoke "make" "-j" job-count "tests") (invoke "ctest" "-j" job-count - "--output-on-error" + "--output-on-failure" "-E" (string-append "(" (string-join skipped-tests "|") ")")))))) (add-after 'install 'glib-or-gtk-compile-schemas @@ -358,6 +357,8 @@ as the native format.") (build-system cmake-build-system) (arguments (substitute-keyword-arguments (package-arguments inkscape/pinned) + ((#:modules modules) + (append '(((guix build gnu-build-system) #:prefix gnu:)) modules)) ((#:configure-flags flags ''()) ;; Enable ImageMagick support. #~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags)) @@ -371,11 +372,9 @@ as the native format.") #$%inkscape-release-year))))) #$@(if (target-x86-32?) #~() ;XXX: there are remaining failures on i686 - #~((replace 'check - ;; Re-instate the tests disabled in inkscape/pinned, now that - ;; their ImageMagick requirement is satisfied. - (assoc-ref %standard-phases 'check)))) - + ;; Re-instate the tests disabled in inkscape/pinned, now that + ;; their ImageMagick requirement is satisfied. + #~((replace 'check (assoc-ref gnu:%standard-phases 'check)))) (replace 'wrap-program ;; Ensure Python is available at runtime. (lambda _ diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 81bbd5118e..be6373225e 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -698,7 +698,14 @@ bundled with python-3 and luajit that you can delete in a package variant.") (base32 "1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5")))) (build-system cmake-build-system) - (arguments `(#:test-target "check")) + (arguments + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (native-inputs (list boost python-pytest)) (home-page "https://github.com/eepp/yactfr") (synopsis "CTF reading library offering a C++14 API") diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 1ff8eb1cff..17e397f86b 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -292,8 +292,7 @@ setting @env{LUA_PATH} and @env{LUA_CPATH} in glirc's run-time environment.") (arguments ;; The three binaries are not mutually exlusive, and are all built ;; by default. - '(#:configure-flags '("-DBUILD_TESTING=ON" - ;;"-DWANT_QTCLIENT=OFF" + '(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ;;"-DWANT_CORE=OFF" ;;"-DWANT_MONO=OFF" "-DWITH_KDE=OFF" diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm index 327272170c..989477c263 100644 --- a/gnu/packages/jami.scm +++ b/gnu/packages/jami.scm @@ -251,7 +251,6 @@ QSortFilterProxyModel conveniently exposed for QML.") #:qtbase qtbase #:configure-flags #~(list "-DWITH_DAEMON_SUBMODULE=OFF" - "-DBUILD_TESTING=ON" (string-append "-DBUILD_VERSION=" #$version) ;; Disable the webengine since it grows the closure size by ;; about 450 MiB and requires more resources. diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm index 5450a4fd9a..975366598f 100644 --- a/gnu/packages/jupyter.scm +++ b/gnu/packages/jupyter.scm @@ -515,9 +515,9 @@ extensions.") (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - '(#:configure-flags '("-DBUILD_STATIC_LIBS=OFF" - "-DDISABLE_ARCH_NATIVE=ON" ;no '-march=native' - "-DBUILD_TESTING=ON"))) + '(#:tests? #f + #:configure-flags '("-DBUILD_STATIC_LIBS=OFF" + "-DDISABLE_ARCH_NATIVE=ON"))) ;no '-march=native' (native-inputs (list pkg-config ;; The following inputs are used by the test suite. diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 72d97c4bcb..f8e80851f2 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -257,7 +257,8 @@ continuous display of high-volume data.") (base32 "0acv6cis7gjpnzpnlxfrf6rzhwyqdm234p6r7vx7gl7ad3rp30ph")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs @@ -317,7 +318,8 @@ image editing capabilities.") gst-plugins-base libxml2)) (arguments - `(#:configure-flags + `(#:tests? #f + #:configure-flags '( "-DPHONON_BUILD_PHONON4QT5=ON"))) (home-page "https://community.kde.org/Phonon") (synopsis "Phonon backend which uses GStreamer") @@ -341,7 +343,8 @@ Phonon-GStreamer is a backend based on the GStreamer multimedia library.") "19f9wzff4nr36ryq18i6qvsq5kqxfkpqsmsvrarr8jqy8pf7k11k")))) (build-system cmake-build-system) (arguments - (list #:configure-flags + (list #:tests? #f + #:configure-flags #~(list "-DPHONON_BUILD_QT5=OFF" "-DPHONON_BUILD_QT6=ON"))) (native-inputs @@ -827,15 +830,15 @@ propagate their changes to their respective configuration files.") (list qtdeclarative-5)) (propagated-inputs '()) (arguments - (list #:phases + (list #:test-exclude "(kconfigcore-kconfigtest|\ +kconfiggui-kstandardshortcutwatchertest)" + #:phases #~(modify-phases %standard-phases - (replace 'check + (add-before 'check 'pre-check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; kconfigcore-kconfigtest fails inconsistently!! (setenv "HOME" (getcwd)) - (setenv "QT_QPA_PLATFORM" "offscreen") - (invoke "ctest" "-E" "(kconfigcore-kconfigtest|\ -kconfiggui-kstandardshortcutwatchertest)"))))))))) + (setenv "QT_QPA_PLATFORM" "offscreen"))))))))) (define-public kcoreaddons (package @@ -1023,6 +1026,7 @@ as well as an API to create KDED modules.") (inputs (list avahi ; alternatively dnssd could be used qtbase)) + (arguments (list #:tests? #f)) (home-page "https://community.kde.org/Frameworks") (synopsis "Network service discovery using Zeroconf") (description "KDNSSD is a library for handling the DNS-based Service @@ -1074,6 +1078,7 @@ infrastructure.") qt5compat)) (native-inputs (list pkg-config extra-cmake-modules kdoctools)) + (arguments (list #:tests? #f)) (home-page "https://apps.kde.org/kgraphviewer/") (synopsis "Graphviz dot graph viewer for KDE") (description "KGraphViewer is a Graphviz DOT graph file viewer, aimed to @@ -1230,6 +1235,7 @@ translation scripting.") (sha256 (base32 "1p766vi3xg07691dpac5wc4a1ynwnyb6iacv1q73j1ymrpvx65zf")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config ;; for wayland-scanner @@ -1283,6 +1289,13 @@ or user activity.") (base32 "0ac3k26xbl6kvchr9j8dmk51valwrbvim19729rypi7vp2ss2nnx")))) (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'set-offscreen-display + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen")))))) (native-inputs (list extra-cmake-modules qttools)) (inputs @@ -1313,6 +1326,9 @@ of applications that follow the Kirigami Human Interface Guidelines.") (sha256 (base32 "1q69b1qd2qs9hpwgw0y0ig93ag41l50dghribsnqhi0c9aklsn4b")))) + (arguments + ;; Tests require an OpenGL context + (list #:tests? #f)) (native-inputs (list extra-cmake-modules qttools-5)) (inputs @@ -1611,7 +1627,8 @@ protocols used in KDE Plasma.") wayland wayland-protocols)) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/plasma/kwayland") (synopsis "Qt-style API to interact with the wayland client and server") (description "As the names suggest they implement a Client respectively a @@ -2186,7 +2203,8 @@ uses a job-based interface to queue tasks and execute them in an efficient way." (list pkg-config extra-cmake-modules)) (inputs (list libraw qtbase)) - (arguments (list #:configure-flags + (arguments (list #:tests? #f + #:configure-flags #~(list #$(string-append "-DQT_MAJOR_VERSION=" (version-major @@ -2244,6 +2262,7 @@ decode RAW picture files.") kxmlgui-5 qtdeclarative-5 solid-5)) + (arguments (list #:tests? #f)) (home-page "https://community.kde.org/Frameworks") (synopsis "Core components for the KDE Activity concept") (description "KActivities provides the infrastructure needed to manage a @@ -2785,6 +2804,7 @@ formats.") (list extra-cmake-modules qttools)) (inputs (list libxkbcommon kcoreaddons knotifications kwidgetsaddons qtbase)) + (arguments (list #:tests? #f)) (home-page "https://community.kde.org/Frameworks") (synopsis "Widgets for showing progress of asynchronous jobs") (description "KJobWIdgets provides widgets for showing progress of @@ -2824,6 +2844,7 @@ asynchronous jobs.") (base32 "1pgrd42wgd6ffy52mfs9ii1l87lvx772w4blr05p03z898fjzcfj")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config qttools)) (propagated-inputs (list qtdeclarative)) @@ -3166,7 +3187,10 @@ maintaining an index of the contents of your files.") kwindowsystem qtdeclarative solid)) - (arguments (list #:qtbase qtbase)) + (arguments + (list + #:tests? #f + #:qtbase qtbase)) (home-page "https://invent.kde.org/plasma/plasma-activities") (synopsis "Core components for the KDE Activity System") (description "KActivities provides the infrastructure needed to manage a @@ -3190,6 +3214,7 @@ with other frameworks.") (base32 "0kcbnajlmn6rf298x493sv8bjqh5966jzl1fyl7y3j1xk3mx6jq1")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs @@ -3494,6 +3519,7 @@ their settings.") kwidgetsaddons qtshadertools qtbase)) + (arguments (list #:tests? #f)) (home-page "https://community.kde.org/Frameworks") (synopsis "Integration of QML and KDE work spaces") (description "KDeclarative provides integration of QML and KDE work spaces. @@ -3572,6 +3598,7 @@ that offer bindings to some of the Frameworks.") (base32 "1f0zjd0gigfd6rqlvnyg6yz5fjdkcvkh3srw7044nhhc0wns8xbh")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -3704,7 +3731,10 @@ emoticons coming from different providers.") kwindowsystem libxkbcommon qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments + (list + #:tests? #f + #:qtbase qtbase)) (home-page "https://community.kde.org/Frameworks") (synopsis "Global desktop keyboard shortcuts") (description "KGlobalAccel allows you to have global accelerators that are @@ -3774,6 +3804,11 @@ window does not need focus for them to be activated.") (arguments (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'enable-testing + (lambda _ + (substitute* "CMakeLists.txt" + (("if \\(BUILD_TESTING\\)" all) + (string-append all "\n enable_testing()"))))) (add-before 'check 'check-setup (lambda* (#:key inputs #:allow-other-keys) (setenv "HOME" (getcwd)) @@ -3847,6 +3882,7 @@ in applications using the KDE Frameworks.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-paths @@ -4148,7 +4184,10 @@ KIO enabled infrastructure.") qtdeclarative syndication)) (arguments - (list #:phases + (list ;; This failing test is run by the cmake-build-system phases but not + ;; by the gnu-build-system phases. + #:test-exclude "knewstuff-atticaprovidertest" + #:phases #~(modify-phases %standard-phases (add-before 'check 'check-setup (lambda _ ; XDG_DATA_DIRS isn't set @@ -4216,6 +4255,7 @@ specification.") (base32 "1d1rz0p270fwx84870kj7nih40kkxnpl3963mf52zs0xzkmkk6xb")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs @@ -4525,6 +4565,7 @@ typed.") (list kcrash kdbusaddons kdoctools ki18n qtbase qtdeclarative)) (arguments (list + #:parallel-tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch @@ -4618,7 +4659,10 @@ types or handled by application specific code.") (base32 "16nynk0b1bmbi4fjyppfavnw1m6jkfwnpvsnm4zvrdfwwgg7yf7d")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list + #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules qttools)) (inputs (list kwindowsystem libxkbcommon)) (home-page "https://community.kde.org/Frameworks") @@ -5211,8 +5255,7 @@ script engines.") qtdeclarative prison)) (arguments - (list #:tests? #f ;; seem to require network; don't find QTQuick components - #:configure-flags #~'("-DBUILD_TESTING=OFF"))) ; not run anyway + (list #:tests? #f)) ;; seem to require network; don't find QTQuick components (home-page "https://community.kde.org/Frameworks") (synopsis "Offers available actions for a specific purpose") (description "This framework offers the possibility to create integrate @@ -5250,9 +5293,7 @@ need.") qtbase-5 qtdeclarative-5)) (arguments - (list #:tests? #f ;; seem to require network; don't find QTQuick components - ;; not run anyway - #:configure-flags #~'("-DBUILD_TESTING=OFF"))))) + (list #:tests? #f)))) ;; seem to require network; don't find QTQuick components (define-public ktextaddons (package diff --git a/gnu/packages/kde-games.scm b/gnu/packages/kde-games.scm index 4d1e659198..b645538a8d 100644 --- a/gnu/packages/kde-games.scm +++ b/gnu/packages/kde-games.scm @@ -56,7 +56,9 @@ (sha256 (base32 "0hdn2rvi1v6jzvidqq6db38axiah7cg1jsmj0bdlpfjzbffi8mjl")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools perl)) (inputs @@ -142,7 +144,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0pbq1v84j8jl64p4lv60x1gss28181594vlhcpqyjadxwgy5n37m")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -193,6 +197,7 @@ This package is part of the KDE games module.") (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-tileset-dir @@ -252,7 +257,9 @@ other Mah Jongg like games.") libkmahjongg qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kmahjongg/") (synopsis "Tile laying patience") (description "In KMahjongg the tiles are scrambled and staked on top of @@ -318,6 +325,7 @@ This package is part of the KDE games module.") (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-paths @@ -387,7 +395,9 @@ This package is part of the KDE games module.") (sha256 (base32 "00qbyv7awf70dxid2m71izsl39mfvjgzrfqdpfgkgisfvrwwnw90")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -425,7 +435,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0qw460yp5g1ca21dl72mkdl7fidcbzs8ajvdsqyylrslh4aafxjq")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -463,7 +475,9 @@ This package is part of the KDE games module.") (sha256 (base32 "1ks4x320q6di0f8w8r9bnayhmn11cnfqw86jx63a74vgkn4878w6")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -503,7 +517,9 @@ This package is part of the KDE games module.") (sha256 (base32 "1kdrwn4i24kn9r3ardz92m2c2lfh2fla6x62g8wd8j30sd4q2i8j")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -583,7 +599,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0mhc56s59l2hqdb27jypdgd82l2li2lil9a7kb4zg8x245c42jhk")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -644,7 +662,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0xqddz0xzyn2j578v2clqsnqmqbf83787wkv54kpzdz3v6nbdswk")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -688,7 +708,9 @@ This package is part of the KDE games module.") (sha256 (base32 "07mz92k9ggdfrl3hnpwg6xl70mjaklwrp26a282n1j66arawmkjv")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -730,7 +752,9 @@ This package is part of the KDE games module.") (sha256 (base32 "1a2fgdfckmsz3ycrlbiddfd2vfhlhx8zn47zg5f2ic00jpp8wch4")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -769,7 +793,9 @@ This package is part of the KDE games module.") (sha256 (base32 "05cddjavbhdn4bwmg6ik2q0y0vjl1pn2nrlpkivsn97m1aka57hl")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -809,7 +835,9 @@ This package is part of the KDE games module.") (sha256 (base32 "1bj181is31hci056qxvf0wcqzggxxlszn65npm16038wa3bh95lw")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -904,7 +932,9 @@ This package is part of the KDE games module.") kxmlgui libkdegames qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/bomber/") (synopsis "Arcade bombing game") (description "Bomber is a single player arcade game. @@ -950,7 +980,9 @@ This package is part of the KDE games module.") libkdegames qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/granatier/") (synopsis "Bomberman clone") (description "Granatier is a clone of the classic Bomberman game, @@ -990,7 +1022,9 @@ This package is part of the KDE games module.") qtmultimedia qtsvg zlib)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/ksirk/") (synopsis "Computerized version of the well known strategy board game 'Risk'") @@ -1051,7 +1085,9 @@ This package is part of the KDE games module.") qtdeclarative qtsvg shared-mime-info)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/palapeli/") (synopsis "Jigsaw puzzle game") (description "Palapeli is a jigsaw puzzle game. Unlike other games in @@ -1090,7 +1126,9 @@ This package is part of the KDE games module.") kxmlgui libkdegames qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kiriki/") (synopsis "Yahtzee dice game") (description "Kiriki is an addictive and fun dice game, designed to be @@ -1117,6 +1155,7 @@ This package is part of the KDE games module.") (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-gnugo-command (lambda* (#:key inputs #:allow-other-keys) @@ -1186,7 +1225,9 @@ This package is part of the KDE games module.") qtbase qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kubrick/") (synopsis "Game based on Rubik's Cube") (description "Kubrick is a game based on the Rubik's Cube puzzle. @@ -1228,7 +1269,9 @@ This package is part of the KDE games module.") libkdegames qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/lskat/") (synopsis "Lieutnant Skat card game") (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and @@ -1267,7 +1310,9 @@ This package is part of the KDE games module.") libkdegames qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kapman/") (synopsis "Pac-Man clone") (description "Kapman is a clone of the well known game Pac-Man. @@ -1306,7 +1351,9 @@ This package is part of the KDE games module.") libkdegames qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kspaceduel/") (synopsis "Two player game with shooting spaceships flying around a sun") (description "KSpaceduel is a space battle game for one or two players, @@ -1340,7 +1387,9 @@ This package is part of the KDE games module.") libkdegames qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/bovo/") (synopsis "Classic pen and paper game: five in a line") (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five @@ -1364,7 +1413,9 @@ This package is part of the KDE games module.") (sha256 (base32 "1h1j3n2wy641gp53m2rb8zbsn93ciprivfi718bcvwvr2k41ncga")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1406,7 +1457,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0v7rh6zlf742gz6y8w440ap9zirv2yvmdybhz3qiwbxag5qvr5r0")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1445,7 +1498,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0hh85zl2wid190bgp542msigjyvdwfgvzvfcl22sx15ydnp6v6ma")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1483,7 +1538,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0dammn0a2z5valmbr3c85y6rsxh2isixl72wvfj6zvvp2s5lvsi1")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1523,7 +1580,9 @@ This package is part of the KDE games module.") (sha256 (base32 "01chrif9f73nxx4fdmipi3yl2r8dzi5wsgksrc6kqj12j6gpdpjy")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1565,7 +1624,9 @@ This package is part of the KDE games module.") (sha256 (base32 "0p1nc34n93mzdxih6799j25fic95mha311rifnghk9mlc6fw416n")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1601,7 +1662,9 @@ This package is part of the KDE games module.") (sha256 (base32 "058sbbx73kbm2ils6ay0g3n9q05lid8aixl81i0246cgi2kvwvwy")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1640,7 +1703,8 @@ This package is part of the KDE games module.") (base32 "0yrrbmiv9blpafwpa24w4farv76rqghqnrr6r01kkxrikcav9j0y")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs diff --git a/gnu/packages/kde-internet.scm b/gnu/packages/kde-internet.scm index 7d42ed5f3f..b39bd77f6b 100644 --- a/gnu/packages/kde-internet.scm +++ b/gnu/packages/kde-internet.scm @@ -74,6 +74,8 @@ (sha256 (base32 "0zm4nkpmvd181xlkis7ydzx54p3vn0zgpdzgh54f1hsjy6ahsq16")))) (build-system qt-build-system) + (arguments + (list #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools-5 pkg-config)) (inputs @@ -332,6 +334,7 @@ Features are: gnutls)) (arguments (list #:configure-flags #~(list "-DQT_MAJOR_VERSION=6") + #:tests? #f #:qtbase qtbase)) (home-page "https://apps.kde.org/krdc/") (synopsis "Remote desktop client") diff --git a/gnu/packages/kde-multimedia.scm b/gnu/packages/kde-multimedia.scm index 600a868238..1c3db87d95 100644 --- a/gnu/packages/kde-multimedia.scm +++ b/gnu/packages/kde-multimedia.scm @@ -87,7 +87,9 @@ libkcompactdisc libvorbis phonon)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kio_audiocd/") (synopsis "Transparent audio CD integration for applications using the KDE Platform") @@ -134,7 +136,9 @@ This package is part of the KDE multimedia module.") phonon phonon-backend-vlc solid)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/dragonplayer/") (synopsis "Simple video player") (description "Dragon Player is a multimedia player where the focus is on @@ -160,6 +164,7 @@ This package is part of the KDE multimedia module.") (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-yt-dlp-path @@ -249,10 +254,10 @@ This package is part of the KDE multimedia module.") (system "Xvfb :1 -screen 0 640x480x24 &") (setenv "DISPLAY" ":1"))) (replace 'check - (lambda* (#:key tests? test-target #:allow-other-keys) + (lambda* (#:key tests? #:allow-other-keys) (when tests? (setenv "CTEST_OUTPUT_ON_FAILURE" "1") - (invoke "dbus-launch" "make" test-target))))))) + (invoke "dbus-launch" "make" "test"))))))) (home-page "https://apps.kde.org/elisa/") (synopsis "Powerful music player for Plasma 5") (description "Elisa is a simple music player aiming to provide a nice @@ -280,6 +285,7 @@ its own database. You can build and play your own playlist.") (inputs (list ffmpeg kconfig ki18n kio taglib)) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) (home-page "https://apps.kde.org/ffmpegthumbs/") (synopsis "Video thumbnail generator for KDE using ffmpeg") @@ -541,7 +547,8 @@ the available CD drives.") v4l-utils ; libdvbv5 vlc)) (arguments - (list #:phases + (list #:tests? #f + #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-code (lambda _ @@ -647,7 +654,8 @@ camera. Use it to take pictures and make videos to share.") vulkan-loader)) (arguments (list - #:qtbase qtbase)) + #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kasts/") (synopsis "Convergent podcast client") (description @@ -847,6 +855,7 @@ Its features include: solid)) (arguments (list #:configure-flags #~(list "-DQT_MAJOR_VERSION=6") + #:tests? #f #:qtbase qtbase)) (home-page "https://invent.kde.org/multimedia/libkcompactdisc") (synopsis "KDE library for playing & ripping CDs") diff --git a/gnu/packages/kde-office.scm b/gnu/packages/kde-office.scm index ca0d6849cc..dc3241d7ec 100644 --- a/gnu/packages/kde-office.scm +++ b/gnu/packages/kde-office.scm @@ -67,8 +67,6 @@ (arguments (list #:qtbase qtbase ;; XXX: 26/164 tests fail. - #:configure-flags - #~(list "-DBUILD_TESTING=OFF") #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools perl pkg-config)) @@ -166,8 +164,7 @@ Advanced plugins: (arguments (list #:qtbase qtbase #:configure-flags - #~(list "-DQT_MAJOR_VERSION=6" - "-DBUILD_TESTING=ON"))) + #~(list "-DQT_MAJOR_VERSION=6"))) (native-inputs (list extra-cmake-modules kdoctools pkg-config qttools)) (inputs diff --git a/gnu/packages/kde-pim.scm b/gnu/packages/kde-pim.scm index 3f713bb7c2..dcb1e8a4a3 100644 --- a/gnu/packages/kde-pim.scm +++ b/gnu/packages/kde-pim.scm @@ -395,7 +395,9 @@ Akonadi PIM data server. It uses Xapian for indexing and querying.") (sha256 (base32 "1gv2jxy1xc6b70jax320rvk68qmgz1wpnrbx6wlxg1dmrafhby4d")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -616,7 +618,9 @@ information.") breeze-icons ; default icon set, required for tests prison qgpgme-qt6)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://kontact.kde.org/components/kaddressbook/") (synopsis "Address Book application to manage your contacts") (description "KAddressBook stores all the personal details of your family, @@ -648,7 +652,9 @@ CalDAV server.") libaccounts-qt6 qcoro-qt6 signond-qt6)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/network/kaccounts-integration") (synopsis "Online account management system") (description "The Kaccounts Integration library provides online account @@ -678,7 +684,9 @@ management system and its Plasma integration components.") qtwebengine qcoro-qt6 signond-qt6)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/network/kaccounts-providers") (synopsis "Online account providers for the KAccounts system") (description "This package provides online account providers for the @@ -1873,7 +1881,9 @@ Features: kwindowsystem kxmlgui libxkbcommon)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://api.kde.org/kdepim/kontactinterface/html/index.html") (synopsis "Kontact interface library") (description "This library provides the glue necessary for diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index 7742a3ffbf..d1926c3426 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -112,7 +112,8 @@ (base32 "1fhgqxrqbm20liap57h35qq6wvh7x5r980r2ibv3k0k7naqp16sm")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config qttools)) (inputs (list kcoreaddons kcmutils @@ -167,6 +168,7 @@ kcolorscheme qtsvg)) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list "-DBUILD_QT5=OFF"))) (home-page "https://invent.kde.org/plasma/breeze") (synopsis "Default KDE Plasma theme") @@ -188,7 +190,10 @@ the Plasma Desktop. Breeze is the default theme for the KDE Plasma desktop.") kiconthemes-5 kpackage-5 kwindowsystem-5)) - (arguments (list #:configure-flags #~(list "-DBUILD_QT6=OFF"))))) + (arguments + (list #:tests? #f + #:configure-flags + #~(list "-DBUILD_QT6=OFF"))))) (define-public breeze-gtk (package @@ -239,7 +244,8 @@ Breeze is the default theme for the KDE Plasma desktop.") kpeople qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/plasma-mobile/calindori") (synopsis "Calendar for Plasma Mobile") (description @@ -413,7 +419,8 @@ games, and tools.") (base32 "00kmx5zdfvg0w18hcc4wi1xqfi3n8x46664khf48mcl3gzjval2g")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs (list boost kcompletion @@ -443,6 +450,7 @@ concept.") "1g4c4p2ydm2xvfy8li8zk8ldy45xqaxbf47hmwx2w5ysidkg1g44")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'hardcode-openssl @@ -496,6 +504,7 @@ RDP server.") (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-gsettings-schemas-path @@ -662,7 +671,9 @@ KDE Frameworks 5 to better interact with the system.") (base32 "1nsdkqnrhl20g6giaglk22vzh2zs1v5qjkhy8zq7z050xsqn2g7w")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kauth kcoreaddons @@ -841,7 +852,8 @@ computer's hardware.") (base32 "0plvzwp7p0l9sp6ga7xbszh6hm3bzdb1wyd3vbidlpjwkigd37by")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kcrash ki18n @@ -890,7 +902,9 @@ computer's hardware.") kiconthemes qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kongress/") (synopsis "Companion application for conferences") (description "This application provides list of upcoming conferences with @@ -989,7 +1003,9 @@ KDE Plasma Workspaces.") (base32 "15ar4lx46y92hy3cirls17jya6w7hnvbpk4qx7nfqf6g2bdl2cvr")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1098,7 +1114,9 @@ an elegant and intuitive experience for your tasks and plasmoids.") (base32 "0ik3l9lqqh9s2574swv045zj1kk8fg33zsacd3bfzayk90zrh37q")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config)) (inputs @@ -1596,7 +1614,9 @@ conjunction with the KDE Plasma Desktop.") (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list kcoreaddons ki18n kpty knotifications)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/plasma/kwrited") (synopsis "System notification daemon") (description @@ -1627,7 +1647,8 @@ conjunction with the KDE Plasma Desktop.") krunner ksvg qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (synopsis "Dedicated search application built on top of Baloo") (description "This package provides a dedicated search application built on top of Baloo.") @@ -1648,7 +1669,8 @@ on top of Baloo.") "1ipra7srk3xdq8b1jls46jkhbn1dcyadbl5gjm0lxqlivr49j87f")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs (list qtdeclarative @@ -1672,6 +1694,7 @@ on top of Baloo.") (base32 "0r90hrwib31wfv0mj42vf19c13642vb79m152rgps590i89yrkj9")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules)) (home-page "https://community.kde.org/Frameworks") (synopsis "Sounds for the KDE desktop") @@ -1691,6 +1714,7 @@ on top of Baloo.") (base32 "1v51qhcr0swbajc0skwscp2h3m4qr337l8s145nmiv2scsn7sc86")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs (list qtbase)) (home-page "https://invent.kde.org/plasma/ocean-sound-theme") @@ -1856,7 +1880,8 @@ KF5/Qt5 to KF6/Qt6") (propagated-inputs (list mpv)) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/libraries/mpvqt") (synopsis "libmpv wrapper for QtQuick2 and QML") (description "This package provides a libmpv wrapper for QtQuick2 and QML.") @@ -2242,6 +2267,7 @@ integration of Qt applications when running on a KDE Plasma workspace.") kwindowsystem kwayland ki18n)) + (arguments (list #:tests? #f)) (home-page "https://plasma-mobile.org/") (synopsis "Minimal Plasma Shell package") (description @@ -2356,6 +2382,7 @@ customizable platform for mobile devices.") (base32 "1br6kzicrr45vgg0ciqczxlcid21n5lfjm6zc06rw86ys7fx7bpi")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config)) (home-page "https://plasma-mobile.org/") (synopsis "Sounds for Plasma Mobile devices") @@ -2430,6 +2457,7 @@ PulseAudio.") ;; $QML_IMPORT_PATH. (list kirigami libplasma qtdeclarative)) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) (home-page "https://invent.kde.org/plasma/plasma-pass") (synopsis "Plasma applet for the Pass password manager") @@ -2450,7 +2478,8 @@ PulseAudio.") (base32 "1f2z3djq8q2z90vrn18k5qbiw8crhs69c5qvdnzxmp3s3f63bk4l")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config)) (inputs (list kpeople kirigami @@ -2498,6 +2527,7 @@ adding, modifying and removing contacts.") (arguments (list #:qtbase qtbase + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch @@ -2558,7 +2588,9 @@ vaults.") libksysguard qqc2-desktop-style qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (synopsis "System sensors, process information and other system resources monitor") (description "This package provides an interface for monitoring system @@ -2605,7 +2637,9 @@ sensors, process information and other system resources.") libplasma qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (synopsis "Plasma welcome screen") (description "This package provides a wizard for Plasma to configure settings.") @@ -2809,6 +2843,11 @@ deviceerrormonitor_p.cpp" "shelltest" "tasksmodeltest" "tasktoolstest" + + ;; Failure in TestDesktop::testRename: + ;; 'spyFileRenamed.count() >= 1' returned FALSE. + "testdesktop" + "testimagebackend" "testimagefinder" "testimagefrontend" @@ -2850,6 +2889,7 @@ hardware management, and a high degree of customizability.") (base32 "0jccrbpg0qdfys2gj789zfn0yilkwckd81d9nvpkppljv94p0gfa")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules)) (home-page "https://community.kde.org/Frameworks") (synopsis "Oxygen wallpapers for the KDE desktop") @@ -2887,7 +2927,9 @@ hardware management, and a high degree of customizability.") kwindowsystem libplasma qtdeclarative)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/plasma/print-manager") (synopsis "Manage print jobs and printers") (description @@ -2906,7 +2948,8 @@ hardware management, and a high degree of customizability.") (base32 "1ky4k1z24r6rbx3bg69w609nbdcnwzjpajm1xmhgr8li4khgd5x7")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs (list ki18n kwindowsystem diff --git a/gnu/packages/kde-systemtools.scm b/gnu/packages/kde-systemtools.scm index 32c02874a9..f1b0001f0f 100644 --- a/gnu/packages/kde-systemtools.scm +++ b/gnu/packages/kde-systemtools.scm @@ -134,7 +134,9 @@ The main features of Dolphin are: kxmlgui breeze-icons ;; default icon set qt5compat)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://www.kde.org/") (synopsis "VCS-Plugins for Dolphin") (description "This package contains plugins that offer integration in @@ -253,6 +255,7 @@ This package is part of the KDE base applications module.") (base32 "1m3f4lpzwbrbdmp9237186x4p0w2rk1cz4a7nin38c8ll9sgrfb2")))) (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list (string-append "-DQtWaylandScanner_EXECUTABLE=" #$(this-package-native-input "qtwayland") @@ -373,7 +376,9 @@ This package is part of the KDE administration module.") kwallet kwindowsystem kxmlgui)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kwalletmanager5/") (synopsis "Tool to manage passwords on KWallet") (description @@ -397,11 +402,15 @@ This package is part of the KDE administration module.") (arguments (list #:qtbase qtbase #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (invoke "qmake" (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'install (lambda _ (install-file "spectacle-ocr-screenshot" @@ -455,7 +464,9 @@ as well as QR codes.") kwindowsystem libxkbcommon qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/yakuake/") (synopsis "Quad-style terminal emulator for KDE") (description "Yakuake is a drop-down terminal emulator based on KDE Konsole diff --git a/gnu/packages/kde-utils.scm b/gnu/packages/kde-utils.scm index bc79975bef..4b1d067c28 100644 --- a/gnu/packages/kde-utils.scm +++ b/gnu/packages/kde-utils.scm @@ -150,6 +150,7 @@ well as CD-ROM images.") (base32 "00jccpwvksyp2vr3fjxajs8d9d30rspg4zj6rnj8dai96alp303k")))) (build-system qt-build-system) + (arguments (list #:tests? #f)) (native-inputs (list extra-cmake-modules pkg-config)) (inputs (list ki18n-5 kxmlgui-5 @@ -254,7 +255,8 @@ well as CD-ROM images.") ksyntaxhighlighting qtdeclarative qtsvg)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/utilities/fielding") (synopsis "REST API testing tool") (description @@ -344,7 +346,8 @@ your computer.") kcrash solid kwidgetsaddons)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/utilities/isoimagewriter") (synopsis "Write hybrid ISO files onto USB disks") (description @@ -364,7 +367,8 @@ your computer.") "1448kiykab4lm2xkimapj11m7iqj6x7y2ly5mrw3c1092p56kvs2")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -512,7 +516,8 @@ Kate's features include: libarchive shared-mime-info qt5compat)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kbackup/") (synopsis "Backup program with an easy-to-use interface") (description @@ -570,7 +575,9 @@ drive, USB stick, etc (base32 "195lr8ik6w03kc6ma9zfz7ksg296rn48d1vryin087i9k783rrad")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs (list kbookmarks kcoreaddons kcrash ki18n kwidgetsaddons kxmlgui)) (home-page "https://apps.kde.org/kcharselect/") @@ -594,7 +601,8 @@ characters.") (base32 "0ffnw3hc2xngxryiyanaid7nh51fymahg4jbqf3w684wrn1v6gan")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list ktextwidgets knotifications @@ -633,7 +641,8 @@ shell scripts.") kio kwidgetsaddons kxmlgui)) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (home-page "https://invent.kde.org/utilities/keurocalc") (synopsis "Currency conversion tool") (description "This package provides a utility to handle currency @@ -682,7 +691,8 @@ with support for QR scanning.") (base32 "01dxajpx2959m3gk23cvjra1w7i70f49lvys3h034205dyi3qgnm")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list karchive kcoreaddons @@ -716,7 +726,8 @@ with support for QR scanning.") "1gncfnwadh11ipynfcrsh1vnk2g02c7scd5wanphi8i95jzak9jd")))) (build-system qt-build-system) (arguments - (list #:phases #~(modify-phases %standard-phases + (list #:tests? #f + #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-gstreamer (lambda* _ (substitute* "CMakeLists.txt" @@ -763,7 +774,8 @@ with support for QR scanning.") (base32 "031jsvk060y9w0mh1ylq7cz9nzmikz7vm098nrb10m9bx2x4h13d")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools python-minimal)) (inputs (list kcrash kirigami @@ -799,6 +811,7 @@ combinations are distinct enough to be readable and accessible.") (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list qtcharts-5 qtdeclarative-5 qtserialport-5)) + (arguments (list #:tests? #f)) (home-page "https://invent.kde.org/libraries/atcore") (synopsis "Library for connection and management of 3D printers") (description @@ -818,7 +831,9 @@ the computer and 3D Printers.") (sha256 (base32 "0565x812jbq0j56750q03hmfai4fgdqjrxzw6k94c37ck0nvlfl5")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -867,7 +882,9 @@ artists to web-designers to people with low vision.") libxt phonon qtmultimedia)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kmousetool/") (synopsis "Automatic mouse click and mouse manipulation tool for the disabled") @@ -903,7 +920,9 @@ whom pressing buttons hurts.") kxmlgui breeze-icons ;; default icon set qtspeech)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/kmouth/") (synopsis "Type-and-say frontend for speech synthesizers") (description "KMouth is a program which enables persons that cannot speak @@ -1027,7 +1046,8 @@ to save the times and resume them later.") (base32 "012f75afp7vjpp7wps4lzvcszj6a5y9yzv21wgh9zikcvvx9pdy9")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1089,6 +1109,7 @@ great on your desktop.") (list extra-cmake-modules kdoctools-5 pkg-config)) (inputs (list ktexteditor-5 imagemagick qtbase-5 qtx11extras)) + (arguments (list #:tests? #f)) (home-page "https://apps.kde.org/kxstitch/") (synopsis "Create and print cross stitch patterns") (description @@ -1210,6 +1231,7 @@ remind you to take a break now and then.") (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list "-DSMB4K_WITH_WS_DISCOVERY=ON"))) (native-inputs (list extra-cmake-modules kdoctools)) @@ -1287,7 +1309,9 @@ Features: (sha256 (base32 "0v7hwz6xnp52fysbmqwrhjjcsr96bmw0a70n2kr2bq1hhh0zvf3h")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm index 3e96f343db..4fccab09ef 100644 --- a/gnu/packages/kde.scm +++ b/gnu/packages/kde.scm @@ -379,8 +379,7 @@ annotating features.") ;; fails with an unexpected exception. (list #:qtbase qtbase - #:configure-flags #~(list "-DBUILD_TESTING=off" - "-DFETCH_OTIO=off") + #:configure-flags #~(list "-DFETCH_OTIO=off") #:tests? #f #:phases #~(modify-phases %standard-phases @@ -486,6 +485,7 @@ expressions and let you evaluate and draw them.") (build-system qt-build-system) (arguments (list + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'install 'wrap-qt-process-path @@ -535,9 +535,7 @@ such as addition, trigonometric functions or derivatives.") (base32 "1wiv509y80m6gf891yw55d9429a35axngi922k119zvxfk5641as")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase - #:configure-flags - #~(list "-DBUILD_TESTING=ON"))) + (list #:qtbase qtbase)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -891,7 +889,8 @@ and desktop experiences.") (base32 "888q3kkv2wq426w000iq14wy3a45rrnn0bmsdks6caz4vq04ccay")))) (build-system qt-build-system) (arguments - `(#:configure-flags (list "-DBUILD_TESTS=ON"))) ; disabled by default + `(#:tests? #f + #:configure-flags (list "-DBUILD_TESTS=ON"))) ; disabled by default (native-inputs (list bison doxygen extra-cmake-modules flex googletest)) (inputs @@ -921,7 +920,9 @@ expression library, that is used in Krita.") (list kcoreaddons ki18n kxmlgui)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://apps.kde.org/de/kcolorchooser/") (synopsis "Color selector utility") (description "KColorChooser is a utility to select a color.") @@ -950,7 +951,9 @@ expression library, that is used in Krita.") ktextwidgets kwidgetsaddons kxmlgui)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "http://kolourpaint.org/") (synopsis "Paint program for KDE") (description "KolourPaint is a paint program for KDE. It is useful for @@ -974,7 +977,7 @@ painting, image manipulating and icon editing.") (build-system qt-build-system) (arguments `(#:tests? #f - #:configure-flags (list "-DBUILD_TESTING=OFF -DCMAKE_CXX_FLAGS=-fPIC") + #:configure-flags (list "-DCMAKE_CXX_FLAGS=-fPIC") #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-raqm (lambda _ @@ -1290,7 +1293,9 @@ submoduletest|cachetest|switchtest)"))))))) (base32 "1ajr7qaf4dcccl5pc09ywfa4mgrfpa3qq1w7x4lfmv82gvp7ld64")))) (build-system qt-build-system) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1464,7 +1469,8 @@ multi-floor indoor maps.") (base32 "17p63a9igpbcv0xdziaf3d30n88rj9474w9yx2cpvh0m2nrv3582")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules kdoctools)) (inputs @@ -1543,7 +1549,8 @@ transport data and for performing public transport journey queries.") (base32 "06g43b1l72aghkhcn59ss8kjc4sammn5ii5x5sql34kmvgiwamwk")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs @@ -1569,7 +1576,8 @@ for scanner hardware.") (base32 "1b0cbf4cq0ajl5xlpy75wj4p1zsri2igh23pswj8ysnrrk0pxg5w")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase)) + (list #:qtbase qtbase + #:tests? #f)) (native-inputs (list extra-cmake-modules)) (inputs @@ -1628,8 +1636,7 @@ different notification systems.") (arguments (list #:qtbase qtbase #:configure-flags - #~(list "-DBUILD_TESTING=ON" - (string-append "-DQtWaylandScanner_EXECUTABLE=" + #~(list (string-append "-DQtWaylandScanner_EXECUTABLE=" #$(this-package-native-input "qtwayland") "/lib/qt6/libexec/qtwaylandscanner") "-DKDE_INSTALL_LIBEXECDIR=libexec" @@ -1805,7 +1812,9 @@ to perform data analysis.") kstatusnotifieritem kxmlgui qt5compat)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://kde.org/applications/system/kdk") (synopsis "View Disk Usage") (description "KDiskFree displays the available file devices (hard drive @@ -1838,7 +1847,9 @@ unmount drives and view them in a file manager.") kconfigwidgets kstatusnotifieritem qt5compat)) - (arguments (list #:qtbase qtbase)) + (arguments + (list #:qtbase qtbase + #:tests? #f)) (home-page "https://kde.org/applications/utilities/ktimer") (synopsis "Countdown Launcher") (description "KTimer is a little tool to execute programs after some time. @@ -1862,6 +1873,7 @@ timers for each task can be started, stopped, changed, or looped.") (list extra-cmake-modules perl python qttools kdoctools)) (inputs (list qtbase karchive ki18n kio kxmlgui kdbusaddons)) + (arguments (list #:tests? #f)) ;; Note: The 'hotshot2calltree' and 'pprof2calltree' scripts depend on ;; Python and PHP, respectively. These are optional and we ignore them ;; for now. @@ -2112,7 +2124,9 @@ PO template files.") (sha256 (base32 "0rpam31s5cvky4w3bb2qp1pjv0gm9f63a2jv6bcim7qnz050bvvn")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) + (arguments + (list #:tests? #f + #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) (native-inputs (list extra-cmake-modules)) (inputs @@ -2135,7 +2149,10 @@ Mobipocket e-books in Dolphin and other KDE apps.") (sha256 (base32 "073px490jvp5f2979ipzbjlw6qg55cfzisj1g3a1f9wwqshm3q5q")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) + (arguments + (list + #:tests? #f + #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) (native-inputs (list extra-cmake-modules)) (inputs @@ -2163,6 +2180,7 @@ picture metadata as EXIF/IPTC and XMP.") (inputs (list kdbusaddons kdnssd ki18n kio)) (arguments (list #:qtbase qtbase + #:tests? #f #:configure-flags #~(list "-DQT_MAJOR_VERSION=6"))) (home-page "https://apps.kde.org/kio_zeroconf/") diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm index 02efcbbbc0..25db26793d 100644 --- a/gnu/packages/libftdi.scm +++ b/gnu/packages/libftdi.scm @@ -87,7 +87,6 @@ (string-append share "/doc/" #$name "-" #$version "/html")))))) - #:test-target "check" #:tests? #f)) ; tests fail without access to USB (native-inputs (list doxygen graphviz pkg-config python swig)) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 4aa1684866..8dc546ad69 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -164,7 +164,6 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages netpbm) #:use-module (gnu packages networking) - #:use-module (gnu packages ninja) #:use-module (gnu packages nss) #:use-module (gnu packages onc-rpc) #:use-module (gnu packages perl) @@ -7900,9 +7899,8 @@ from the ntfs-3g package. It is meant to be used in initrds.") ;; Upstream uses the "ninja" build system and encourage distros ;; to do the same for consistency. - #:configure-flags (list "-GNinja" - - ,@(if (%current-target-system) + #:generator "Ninja" + #:configure-flags (list ,@(if (%current-target-system) `((string-append "-DPKG_CONFIG_EXECUTABLE=" (search-input-file @@ -7912,18 +7910,9 @@ from the ntfs-3g package. It is meant to be used in initrds.") '()) (string-append "-DRST2MAN_EXECUTABLE=" (search-input-file - %build-inputs "/bin/rst2man.py"))) - #:phases - (modify-phases %standard-phases - (replace 'build - (lambda _ - (invoke "ninja" - "-j" (number->string (parallel-job-count))))) - (replace 'install - (lambda _ - (invoke "ninja" "install")))))) + %build-inputs "/bin/rst2man.py"))))) (native-inputs - (list ninja pkg-config python-wrapper python-docutils)) ;for 'rst2man' + (list pkg-config python-wrapper python-docutils)) ;for 'rst2man' (inputs (list libnl eudev)) (home-page "https://github.com/linux-rdma/rdma-core") @@ -8172,6 +8161,24 @@ not as a replacement for it.") #:configure-flags #~(list "-DINSTALL_KAUTH_HELPER=OFF" "-DQT6_BUILD=ON") #:qtbase qtbase + ;; The 'tst_models' and 'tst_callgraphgenerator' fail, with + ;; the later seemingly requiring sudo or access to the kernel + ;; trace points. + #:test-exclude + (string-append + "(" + (string-join + ;; The 'tst_models' expected output doesn't exactly + ;; match. + '("tst_models" + ;; The 'tst_callgraphgenerator' perf invocation + ;; fails when run in the build container. + "tst_callgraphgenerator" + ;; The 'tst_perfparser' test requires sudo/access + ;; to the kernel scheduler trace points. + "tst_perfparser") + "|") + ")") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-perfparser @@ -8207,28 +8214,7 @@ not as a replacement for it.") (substitute* "src/perfrecord.cpp" (("\"perf( )?\"" _ space) (string-append "\"" (search-input-file inputs "bin/perf") - (or space "") "\""))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; The 'tst_models' and 'tst_callgraphgenerator' fail, with - ;; the later seemingly requiring sudo or access to the kernel - ;; trace points. - (invoke "ctest" "-E" - (string-append - "(" - (string-join - ;; The 'tst_models' expected output doesn't exactly - ;; match. - '("tst_models" - ;; The 'tst_callgraphgenerator' perf invocation - ;; fails when run in the build container. - "tst_callgraphgenerator" - ;; The 'tst_perfparser' test requires sudo/access - ;; to the kernel scheduler trace points. - "tst_perfparser") - "|") - ")")))))))) + (or space "") "\"")))))))) (native-inputs (list extra-cmake-modules vulkan-headers)) @@ -10771,7 +10757,9 @@ set as @code{LD_PRELOAD} to override the C library file system functions.") #$(string-append "-DFALCOSECURITY_LIBS_VERSION=" version)) ;; Only the libsinsp test suite is run, as the one for libscap requires ;; elevated privileges. - #:test-target "run-unit-test-libsinsp" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-problematic-tests @@ -10781,6 +10769,10 @@ set as @code{LD_PRELOAD} to override the C library file system functions.") ;; exists in the build environment. (("TEST_F\\(usergroup_manager_test, system_lookup)") "TEST_F(usergroup_manager_test, DISABLED_system_lookup)")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "run-unit-test-libsinsp" args))) (add-after 'install 'delete-src (lambda _ (delete-file-recursively @@ -11310,11 +11302,7 @@ modification of BPF objects on the system.") (build-system cmake-build-system) (arguments (list - #:configure-flags #~(list "-DBUILD_TESTING=ON") - ;; Only run the unit tests suite, as the other ones - ;; (runtime_tests, tools-parsing-test) require to run as - ;; 'root'. - #:test-target "bpftrace_test" + #:test-exclude "(runtime_tests|tools-parsing-test)" #:phases #~(modify-phases %standard-phases ;; This patch also fixes broken compilation due to improper detection @@ -11336,8 +11324,28 @@ modification of BPF objects on the system.") "runtime/call" "procmon.cpp") (("/bin/ls") - (which "ls"))))))))) - (native-inputs (list bison dwarves flex googletest xxd)) + (which "ls")))))) + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* '("tests/child.cpp") + (("/bin/sleep") + (search-input-file inputs "bin/sleep"))))) + (add-before 'check 'set-test-filter + (lambda _ + (setenv "GTEST_FILTER" + (string-join + (list ; "-" disables all following tests + "-ast.probe_name_uprobe" + "bpftrace.add_probes_uprobe_wildcard_file" + "bpftrace.add_probes_uprobe_wildcard_file_uprobe_multi" + "bpftrace.add_probes_usdt_wildcard" + "Parser.multiple_attach_points_kprobe" + "Parser.uretprobe_offset" + "semantic_analyser.builtin_functions" + "semantic_analyser.call_func" + "semantic_analyser.call_uaddr") + ":"))))))) + (native-inputs (list bison coreutils dwarves flex googletest xxd)) (inputs (list bcc clang-15 elfutils libbpf libiberty cereal)) (home-page "https://github.com/bpftrace/bpftrace") (synopsis "High-level tracing language for Linux eBPF") diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 8c2b28cc6c..dd4f0ef791 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -277,7 +277,10 @@ until LLVM/Clang 14." (propagated-inputs (list llvm clang-runtime)) (arguments - `(#:configure-flags + `(;; TODO: enable tests. + #:tests? #f + + #:configure-flags (list "-DCLANG_INCLUDE_TESTS=True" ;; TODO: Use --gcc-install-dir when GCC_INSTALL_PREFIX is @@ -618,6 +621,7 @@ output), and Binutils.") (outputs '("out" "opt-viewer")) (arguments (list + #:tests? (not (target-x86-32?)) #:configure-flags #~(list ;; These options are required for cross-compiling LLVM according @@ -659,11 +663,19 @@ output), and Binutils.") "-DLLVM_PARALLEL_LINK_JOBS=1") ;cater to smaller build machines ;; Don't use '-g' during the build, to save space. #:build-type "Release" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'change-directory (lambda _ (chdir "llvm"))) + (replace 'check + (lambda* (#:rest args) + (setenv "HOME" "/tmp") + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "check-llvm" args))) (add-after 'install 'install-opt-viewer (lambda* (#:key outputs #:allow-other-keys) (let* ((opt-viewer-share (string-append #$output:opt-viewer @@ -701,6 +713,10 @@ of programming tools as well as libraries with equivalent functionality.") (source (llvm-monorepo version)) (arguments (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:tests? (not (target-x86-32?)) #:configure-flags #~(list ;; These options are required for cross-compiling LLVM according @@ -739,6 +755,11 @@ of programming tools as well as libraries with equivalent functionality.") (add-after 'unpack 'change-directory (lambda _ (chdir "llvm"))) + (replace 'check + (lambda* (#:rest args) + (setenv "HOME" "/tmp") + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "check-llvm" args))) (add-after 'install 'install-opt-viewer (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -749,9 +770,7 @@ of programming tools as well as libraries with equivalent functionality.") (rename-file (string-append out "/share/opt-viewer") opt-viewer-dir))))))) - (native-inputs - `(("python" ,python-wrapper) - ("perl" ,perl))))) + (native-inputs (list perl python-wrapper which)))) (define-public clang-runtime-15 (clang-runtime-from-llvm llvm-15)) @@ -798,14 +817,20 @@ of programming tools as well as libraries with equivalent functionality.") #~(list "-DLIBOMP_USE_HWLOC=ON" "-DOPENMP_TEST_C_COMPILER=clang" "-DOPENMP_TEST_CXX_COMPILER=clang++") - #:test-target "check-libomp" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'chdir-to-source-and-install-license (lambda _ (chdir "openmp") (install-file "LICENSE.TXT" - (string-append #$output "/share/doc"))))))) + (string-append #$output "/share/doc")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "check-libomp" args)))))) (native-inputs (list clang-15 llvm-15 perl pkg-config python)) (inputs (list `(,hwloc "lib"))) (home-page "https://openmp.llvm.org") @@ -902,14 +927,14 @@ Library.") "0kvbr4j6ldpssiv7chgqra5y77n7jwbyxlwcl7z32v31f49jcybb")) (file-name (string-append "libomp-" version ".tar.xz")))) (arguments - '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" - "-DOPENMP_TEST_C_COMPILER=clang" - "-DOPENMP_TEST_CXX_COMPILER=clang++" - - ;; Work around faulty target detection, fixed in 14: - ;; https://github.com/llvm/llvm-project/issues/52910 - "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF") - #:test-target "check-libomp")) + (substitute-keyword-arguments (package-arguments libomp-14) + ((#:configure-flags flags) + ;; Work around faulty target detection, fixed in 14: + ;; https://github.com/llvm/llvm-project/issues/52910 + #~(cons* "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags)) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'chdir-to-source-and-install-license))))) (native-inputs (modify-inputs (package-native-inputs libomp-14) (replace "clang" clang-13) @@ -932,6 +957,8 @@ Library.") (patches (search-patches "llvm-13-gcc-14.patch")))) (arguments (substitute-keyword-arguments (package-arguments llvm-13) + ;; Disable tests for old releases now compiled with newer GCC. + ((#:tests? _ #false) #false) ((#:phases phases) #~(modify-phases #$phases #$@(if (assoc "config" (package-native-inputs this-package)) @@ -942,6 +969,9 @@ Library.") "/bin/config.guess"))) (copy-file config.guess "cmake/config.guess"))))) #~()) + (add-after 'unpack 'delete-failing-tests + (lambda _ + (delete-file "test/DebugInfo/X86/vla-multi.ll"))) (add-before 'build 'shared-lib-workaround ;; Even with CMAKE_SKIP_BUILD_RPATH=FALSE, llvm-tblgen ;; doesn't seem to get the correct rpath to be able to run @@ -983,10 +1013,9 @@ Library.") "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0")) (file-name (string-append "libomp-" version ".tar.xz")))) (arguments - '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" - "-DOPENMP_TEST_C_COMPILER=clang" - "-DOPENMP_TEST_CXX_COMPILER=clang++") - #:test-target "check-libomp")) + (substitute-keyword-arguments (package-arguments libomp-13) + ((#:configure-flags flags) + #~`(,@(delete "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags))))) (native-inputs (modify-inputs (package-native-inputs libomp-13) (replace "clang" clang-12) @@ -1271,7 +1300,12 @@ Library.") (uri (llvm-uri "llvm" version)) (sha256 (base32 - "1qpls3vk85lydi5b4axl0809fv932qgsqgdgrk098567z4jc7mmn")))))) + "1qpls3vk85lydi5b4axl0809fv932qgsqgdgrk098567z4jc7mmn")))) + (arguments + (substitute-keyword-arguments (package-arguments llvm-7) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'delete-failing-tests))))))) (define-public clang-runtime-6 (clang-runtime-from-llvm @@ -1320,7 +1354,7 @@ Library.") "1vi9sf7rx1q04wj479rsvxayb6z740iaz3qniwp266fgp5a07n8z")))) (outputs '("out")) (arguments - (substitute-keyword-arguments (package-arguments llvm) + (substitute-keyword-arguments (package-arguments llvm-6) ((#:phases phases) #~(modify-phases #$phases (add-before 'build 'shared-lib-workaround @@ -1887,6 +1921,8 @@ misuse of libraries outside of the store."))) (build-system cmake-build-system) (arguments (list + ;; No access to a compiled llvm-lit since compiled separately from llvm. + #:tests? #f #:configure-flags #~(list "-DOPENMP_TEST_CXX_COMPILER=clang++") #:phases #~(modify-phases %standard-phases @@ -1921,7 +1957,6 @@ which highly leverage existing libraries in the larger LLVM project.") (build-system cmake-build-system) (arguments (list - #:test-target "check-cxx" #:tests? #f ;prohibitively expensive to run #:implicit-inputs? #f ;to avoid conflicting GCC headers #:configure-flags @@ -1934,11 +1969,18 @@ which highly leverage existing libraries in the larger LLVM project.") ;; as RUNPATH and don't attempt to patch it. ;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963 "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'enter-subdirectory (lambda _ - (chdir "runtimes")))))) + (chdir "runtimes"))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "check-cxx" args)))))) (native-inputs (modify-inputs (standard-packages) ;; Remove GCC from the build environment, to avoid its C++ @@ -2480,7 +2522,6 @@ LLVM bitcode files.") ;; FIXME: 79 tests fail, out of ~200 (see: ;; https://github.com/root-project/cling/issues/534) #:tests? #f - #:test-target "check-cling" #:configure-flags #~(list (string-append "-DCLING_CXX_PATH=" (search-input-file %build-inputs "bin/g++")) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 59598f20c5..7ebd79e6f6 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -984,7 +984,6 @@ spirit of the Lua C API and thus degrade performance.") `(#:configure-flags ;; lua pc file in CMakeLists.txt is lua5.3.pc '("-DLUA_PC_CFG=lua;lua-5.3;lua-5.1") - #:test-target "all" #:phases ;; This is a header only library (modify-phases %standard-phases diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 1865b22895..4d8ff4b5e3 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4819,7 +4819,6 @@ TensorFlow.js, PyTorch, and MediaPipe.") (build-system cmake-build-system) (arguments (list - #:cmake cmake-next #:configure-flags ''("-DFBGEMM_LIBRARY_TYPE=shared") ;; Tests require AVX2 or AVX-512 instructions @@ -4888,7 +4887,6 @@ the tensors contained therein.") (build-system cmake-build-system) (arguments (list - #:test-target "cpptest" #:configure-flags #~(list "-DUSE_OPENCL=ON" "-DUSE_VULKAN=ON" @@ -4908,11 +4906,11 @@ the tensors contained therein.") #:phases #~(modify-phases %standard-phases (replace 'check - (lambda* (#:key source test-target tests? #:allow-other-keys) + (lambda* (#:key source tests? #:allow-other-keys) (when tests? (begin (invoke "make" "-j" - (number->string (parallel-job-count)) test-target) + (number->string (parallel-job-count)) "cpptest") ;; Disable below the actual run of the tests because ;; several fail due to platform variations (for example, ;; fp16 tests fail because not supported on CPUs). @@ -6384,7 +6382,6 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.") (build-system cmake-build-system) (arguments (list - #:test-target "ctranslate2_test" ;; XXX: mkl and openblas seem incompatible. #:configure-flags `(list "-DBUILD_TESTS=ON" "-DWITH_ACCELERATE=OFF" @@ -6393,7 +6390,16 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.") "-DWITH_CUDA=OFF" "-DWITH_CUDNN=OFF" "-DWITH_MKL=OFF" - "-DWITH_OPENBLAS=ON"))) + "-DWITH_OPENBLAS=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "ctranslate2_test" args)))))) (native-inputs (list libomp cxxopts spdlog diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index f13dbc3010..0627370086 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -149,7 +149,6 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages nettle) #:use-module (gnu packages networking) - #:use-module (gnu packages ninja) #:use-module (gnu packages onc-rpc) #:use-module (gnu packages openldap) #:use-module (gnu packages pcre) @@ -1012,49 +1011,30 @@ mailpack. What can alterMIME do? (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "17m99llggkg7xg72k8xaf7iipax7sgfhqa2a1qnlylndwa42f57b")) - (modules '((guix build utils))) - (snippet - '(begin - ;; https://github.com/astroidmail/astroid/pull/685 - (substitute* "tests/test_composed_message.cc" - (("\\\\n\\.\\.\\.") "\\n...\\n")))))) + (base32 "17m99llggkg7xg72k8xaf7iipax7sgfhqa2a1qnlylndwa42f57b")))) (build-system cmake-build-system) (arguments - `(#:modules ((guix build cmake-build-system) + `(#:parallel-tests? #f + ;; This test relies on the plugins and the test suite + ;; cannot find the Astroid module. + ;; gi.require_version ('Astroid', '0.2') + ;; ValueError: Namespace Astroid not available + #:test-exclude "markdown" + #:modules ((guix build cmake-build-system) ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) (guix build utils) (ice-9 match)) #:imported-modules ((guix build glib-or-gtk-build-system) ,@%cmake-build-system-modules) - #:configure-flags (list "-GNinja") + #:generator "Ninja" #:phases (modify-phases %standard-phases - (add-after 'unpack 'skip-markdown-test - ;; This test relies on the plugins and the test suite - ;; cannot find the Astroid module. - ;; gi.require_version ('Astroid', '0.2') - ;; ValueError: Namespace Astroid not available - (lambda _ - (substitute* "tests/CMakeLists.txt" - ((".*markdown.*") "")))) - (replace 'build - (lambda _ - (invoke "ninja" "-j" (number->string (parallel-job-count))))) (add-before 'check 'start-xserver (lambda* (#:key inputs #:allow-other-keys) (let ((xorg-server (assoc-ref inputs "xorg-server"))) (setenv "HOME" (getcwd)) (system (format #f "~a/bin/Xvfb :1 &" xorg-server)) (setenv "DISPLAY" ":1")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (setenv "CTEST_OUTPUT_ON_FAILURE" "1") - (invoke "ctest" ".")))) - (replace 'install - (lambda _ - (invoke "ninja" "install"))) (add-after 'install 'wrap-with-GI_TYPELIB_PATH (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) @@ -1077,7 +1057,6 @@ mailpack. What can alterMIME do? (list glib-networking gsettings-desktop-schemas gnupg - ninja pkg-config ronn-ng w3m diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 85a9db1a3c..a85b695883 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -485,8 +485,6 @@ convert HTML to Markdown.") (base32 "0llj68l9rxdhral0zyv0bz6yzqsxgq8d3730082sl3kx78lsq5qq")))) (build-system cmake-build-system) - (arguments - '(#:test-target "test")) (native-inputs (list python)) (synopsis "CommonMark Markdown reference implementation") (description @@ -543,8 +541,7 @@ CommonMark C library libcmark. It closely follows the original API.") (base32 "1apy9i76rgs0bmgdlpjszv0fpqhlap2s12m68wvnsv8j3fsqc90y")))) (arguments - (list #:test-target "test" - #:phases #~(modify-phases %standard-phases + (list #:phases #~(modify-phases %standard-phases (add-after 'install 'install-config (lambda _ ;; XXX: cmark-gfm-core-extensions.h includes this file. diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3e4439c60d..dad9d4c4d5 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -481,9 +481,7 @@ enough to be used effectively as a scientific calculator.") "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv")))) (build-system cmake-build-system) (arguments - '(#:test-target "test" - #:configure-flags '("-DBUILD_SHARED_LIBS=ON" - "-DBUILD_TESTING=ON"))) + '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) (synopsis "Conversion routines for IEEE doubles") (description "The double-conversion library provides binary-decimal and decimal-binary @@ -1200,8 +1198,7 @@ large scale eigenvalue problems.") "-DCBLAS=ON" "-DLAPACKE=ON" ;; Build the 'LAPACKE_clatms' functions. - "-DLAPACKE_WITH_TMG=ON" - "-DBUILD_TESTING=ON"))) + "-DLAPACKE_WITH_TMG=ON"))) (synopsis "Library for numerical linear algebra") (description "LAPACK is a Fortran 90 library for solving the most commonly occurring @@ -3253,8 +3250,6 @@ includes a complete LAPACK implementation.") (sha256 (base32 "0xxqjz4lba57vn65m2k5jxrz0v7y6jwnhxwg6njd4vrafv5w17yv")))) - (arguments - (list #:configure-flags #~(list "-DBUILD_TESTING=ON"))) (native-inputs (list catch2-3.8)) (build-system cmake-build-system) @@ -5454,7 +5449,8 @@ implemented in ANSI C, and MPI for communications.") (list flex bison gfortran)) (outputs '("out" "metis")) (arguments - (list #:configure-flags #~'("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64" + (list #:parallel-tests? #f + #:configure-flags #~'("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64" "-DBUILD_PTSCOTCH=OFF") #:phases #~(modify-phases %standard-phases @@ -5549,6 +5545,7 @@ bio-chemistry.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" #$@(if (target-x86?) @@ -8115,8 +8112,7 @@ supports compressed MAT files, as well as newer (version 7.3) MAT files.") (arguments (list #:configure-flags - #~(list "-DBUILD_TESTING=ON" - ;; By default, Vc will optimize for the CPU of the build machine. + #~(list ;; By default, Vc will optimize for the CPU of the build machine. ;; Setting this to "none" makes it create portable binaries. See ;; "cmake/OptimizeForArchitecture.cmake". "-DTARGET_ARCHITECTURE=none") @@ -8801,6 +8797,7 @@ reduction.") (inputs (list boost glu mesa qtbase-5)) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (synopsis "Toolset for the mCRL2 formal specification language") (description "@dfn{mCRL2} (micro Common Representation Language 2) is a formal @@ -8819,7 +8816,8 @@ analysed.") (inputs (list boost)) (arguments - '(#:configure-flags '("-DMCRL2_ENABLE_GUI_TOOLS=OFF"))))) + (list #:tests? #f + #:configure-flags #~(list "-DMCRL2_ENABLE_GUI_TOOLS=OFF"))))) (define-public tcalc (package @@ -10328,7 +10326,6 @@ community detection algorithm.") (arguments (list #:build-type "Release" - #:test-target "test" #:configure-flags #~(list "-DENABLE_TESTING=ON" "-DSTATS=ON") #:phases #~(modify-phases %standard-phases @@ -10644,16 +10641,23 @@ projects up to the certification of critical software.") (base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461")))) (build-system cmake-build-system) (arguments - `(#:configure-flags '("-DBUILD_DOC=ON" - "-DBUILD_TESTING=ON") - ;; The default "check" target also includes examples and benchmarks. - #:test-target "check-testsuite" - #:phases - (modify-phases %standard-phases - (add-after 'build 'build-doc - (lambda _ - (invoke "make" "-j" (number->string (parallel-job-count)) - "blitz-doc")))))) + (list + #:configure-flags #~(list "-DBUILD_DOC=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'build 'build-doc + (lambda _ + (invoke "make" "-j" (number->string (parallel-job-count)) + "blitz-doc"))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + ;; The default "check" target also includes examples and + ;; benchmarks. + #:test-target "check-testsuite" args)))))) (native-inputs (list python texinfo)) (synopsis "C++ template class library for multidimensional arrays") diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index a72596e17b..8a32f2a75a 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -414,17 +414,12 @@ conferencing.") (arguments `(#:configure-flags (list "-DBUILD_EXAMPLES=false" "-DWITH_GSTREAMER=true") - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "ctest" "-E" - (string-join ;; These tests use the network. - (list "tst_qxmppiceconnection" - "tst_qxmppcallmanager" - "tst_qxmpptransfermanager") - "|")))))))) + #:test-exclude + (string-join ;; These tests use the network. + (list "tst_qxmppiceconnection" + "tst_qxmppcallmanager" + "tst_qxmpptransfermanager") + "|"))) (native-inputs (list pkg-config)) (inputs @@ -574,8 +569,8 @@ your private keys, no previous conversation is compromised.") (base32 "0z5p03vk15i6h870azfjgyfgxhv31q2vq6rfhnybrnkxq2wqzwhk")))) (arguments - `(;; Required for proper linking and for tests to run. - #:configure-flags '("-DBUILD_SHARED_LIBS=on" "-DBUILD_TESTING=1"))) + `(;; Required for proper linking. + #:configure-flags '("-DBUILD_SHARED_LIBS=on"))) (build-system cmake-build-system) (inputs (list ;; Required for tests: check openssl)) @@ -633,9 +628,10 @@ by Dino to provide OMEMO support."))) (git-file-name name version)) (sha256 (base32 "0b02b9flri374f8aw6xfz7mm9s57rb7393r8mdphv7kcsf76i7i5")))) - (build-system cmake-build-system) + (build-system gnu-build-system) (arguments - `(#:phases (modify-phases %standard-phases + `(#:test-target "test" + #:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) @@ -665,15 +661,17 @@ It implements the necessary interfaces using @code{libgcrypt} and (git-file-name name version)) (sha256 (base32 "1q3vyj8zk3vm0a4v6w8qya5dhk2yw04bga8799a0zl6907nf122k")))) - (build-system cmake-build-system) + (build-system gnu-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (setenv "CC" "gcc") - (setenv "PREFIX" out))))) - #:parallel-tests? #f)) + (list + #:parallel-tests? #f + #:test-target "test" + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "CC" "gcc") + (setenv "PREFIX" out))))))) (native-inputs (list cmocka pkg-config)) (inputs (list glib libgcrypt minixml sqlite)) (synopsis "OMEMO C library") @@ -1149,7 +1147,8 @@ control of your private keys, no previous conversation is compromised.") "06bb6c2nciwbknfschxd2fjkpigd6i0zgwl6jiz5lm7gcadssrdy")))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:tests? #f + #:configure-flags (list "-DWANT_CYRUS=ON" "-DWANT_I18N=ON" "-DWANT_PERL=ON" @@ -2406,7 +2405,6 @@ notifications, and Python scripting support.") (list olm openssl qtkeychain-qt6 qtmultimedia)) (arguments (list #:qtbase qtbase - #:cmake cmake-next #:configure-flags #~(list "-DBUILD_TESTING=ON" "-DBUILD_SHARED_LIBS=ON") @@ -2823,10 +2821,11 @@ support for high performance Telegram Bot creation.") (git-file-name name version)) (sha256 (base32 "1ipd9gwh04wbqv6c10yxi02lc2yjsr02hwjycgxhl4r9x8b33psd")))) - (build-system cmake-build-system) + (build-system gnu-build-system) (arguments (list #:parallel-tests? #f + #:test-target "test" #:phases #~(modify-phases %standard-phases (replace 'configure @@ -2879,11 +2878,18 @@ asynchronicity.") (base32 "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9")))) (arguments - `(#:test-target "tests" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'change-directory - (lambda _ (chdir "cpp")))))) + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ (chdir "cpp"))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "tests" args)))))) (build-system cmake-build-system) (native-inputs (list googletest pkg-config)) @@ -2977,6 +2983,7 @@ as well as on desktop platforms. It's based on libpurple and ModemManager.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:configure-flags #~(list "-DWITH_WEBSOCKETS=ON"))) (inputs (list openssl libxslt libwebsockets-for-mosquitto)) diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm index 47b577cef1..5650b075b4 100644 --- a/gnu/packages/mold.scm +++ b/gnu/packages/mold.scm @@ -61,8 +61,7 @@ #:configure-flags #~(list #$@(if (target-64bit?) '("-DMOLD_USE_SYSTEM_MIMALLOC=ON") '("-DMOLD_USE_MIMALLOC=OFF")) - "-DMOLD_USE_SYSTEM_TBB=ON" - "-DBUILD_TESTING=ON") + "-DMOLD_USE_SYSTEM_TBB=ON") #:phases #~(modify-phases %standard-phases (add-before 'configure 'force-system-xxhash diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index d2b97372d1..884ed86cce 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm @@ -668,8 +668,7 @@ command-line tool.") (arguments `(#:tests? #f ; tests require googletest *sources* ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests - #:configure-flags '("-DBUILD_TOOLS=ON") ; for fpcalc - #:test-target "check")) + #:configure-flags '("-DBUILD_TOOLS=ON"))) ; for fpcalc (inputs ;; requires one of FFmpeg (prefered), FFTW3 or vDSP ;; use the same ffmpeg version as for acoustid-fingerprinter @@ -828,7 +827,7 @@ simple to use yet fully featured.") (,(string-append (assoc-ref inputs "gtk+") "/share/glib-2.0/schemas")))))))))) (native-inputs - (list pkg-config cmake)) + (list pkg-config cmake-minimal)) (inputs (list glib gtk+ diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 1706b0d649..8e7394946e 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -537,27 +537,34 @@ enables iPod support in music players such as Clementine.") #:directories? #t)))))) (build-system cmake-build-system) (arguments - '(#:test-target "clementine_test" - #:configure-flags - (list ;; Requires unpackaged "projectm" - "-DENABLE_VISUALISATIONS=OFF" - ;; Otherwise it may try to download a non-free library at run-time. - ;; TODO In an origin snippet, remove the code that performs the - ;; download. - "-DHAVE_SPOTIFY_DOWNLOADER=FALSE" - ;; Clementine checks that the taglib version is higher than 1.11, - ;; because of https://github.com/taglib/taglib/issues/864. Remove - ;; this flag when 1.12 is released. - "-DUSE_SYSTEM_TAGLIB=TRUE") - #:phases - (modify-phases %standard-phases - (add-after 'install 'wrap-program - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) - (wrap-program (string-append out "/bin/clementine") - `("GST_PLUGIN_SYSTEM_PATH" ":" prefix - (,gst-plugin-path))))))))) + (list + #:configure-flags + #~(list ;; Requires unpackaged "projectm" + "-DENABLE_VISUALISATIONS=OFF" + ;; Otherwise it may try to download a non-free library at run-time. + ;; TODO In an origin snippet, remove the code that performs the + ;; download. + "-DHAVE_SPOTIFY_DOWNLOADER=FALSE" + ;; Clementine checks that the taglib version is higher than 1.11, + ;; because of https://github.com/taglib/taglib/issues/864. Remove + ;; this flag when 1.12 is released. + "-DUSE_SYSTEM_TAGLIB=TRUE") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "clementine_test" args))) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/clementine") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix + (,gst-plugin-path))))))))) (native-inputs (list gettext-minimal googletest @@ -620,7 +627,6 @@ playing your music.") (build-system cmake-build-system) (arguments (list - #:cmake cmake ;needs 3.25 #:tests? #false ;there are none #:phases #~(modify-phases %standard-phases @@ -769,24 +775,31 @@ Winamp/XMMS skins.") #:directories? #t)))))) (build-system qt-build-system) (arguments - `(#:qtbase ,qtbase - #:test-target "run_strawberry_tests" - #:configure-flags - `("-DBUILD_WITH_QT6=ON") - #:phases - (modify-phases %standard-phases - (add-after 'install 'wrap-program - (lambda* (#:key outputs #:allow-other-keys) - (wrap-program (search-input-file outputs "bin/strawberry") - `("GST_PLUGIN_SYSTEM_PATH" ":" prefix - (,(getenv "GST_PLUGIN_SYSTEM_PATH")))))) - (add-before 'check 'pre-check - (lambda* (#:key native-inputs inputs #:allow-other-keys) - (system (format #f "~a :1 &" - (search-input-file (or native-inputs inputs) - "bin/Xvfb"))) - (setenv "DISPLAY" ":1") - (setenv "HOME" (getcwd))))))) + (list + #:qtbase qtbase + #:configure-flags + #~(list "-DBUILD_WITH_QT6=ON") + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (system (format #f "~a :1 &" + (search-input-file (or native-inputs inputs) + "bin/Xvfb"))) + (setenv "DISPLAY" ":1") + (setenv "HOME" (getcwd)))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "run_strawberry_tests" args))) + (add-after 'install 'wrap-program + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program (search-input-file outputs "bin/strawberry") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix + (,(getenv "GST_PLUGIN_SYSTEM_PATH"))))))))) (native-inputs (list bash-minimal gettext-minimal @@ -1009,7 +1022,7 @@ settings (aliasing, linear interpolation and cubic interpolation).") (base32 "1i5gz5zck8s0kskjgnx9c75gh7zx0kbjsqzl2765f99p9svprirq")))) (build-system qt-build-system) (arguments - `(#:test-target "tests" + `(#:tests? #f ; require audio subsystem #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-data-directory @@ -5992,10 +6005,7 @@ the electronic or dubstep genre.") "0zn9v4lxjpnpdlpnv2px8ch3z0xagmqlvff5pd39pss3mxfp32g0")))) (build-system cmake-build-system) (arguments - (list #:configure-flags - (if (%current-target-system) - #~(list "-DBUILD_TESTING=OFF") - #~(list "-DBUILD_TESTING=ON")))) + (list #:tests? (not (%current-target-system)))) ; run unless cross-compiling (native-inputs (list googletest)) (home-page "https://github.com/pedrolcl/sonivox") @@ -6083,7 +6093,14 @@ for the DSSI Soft Synth Interface. A brief list of features: version ".tar.gz")) (sha256 (base32 "10mj1hwv1598nsi7jw5di0pfcwk36g4rr6kl7gi45m7ak8f8ypnx")))) - (arguments `(#:test-target "check")) + (arguments + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (build-system cmake-build-system) (home-page "https://musicbrainz.org/doc/libdiscid") (synopsis "Disc id reader library") @@ -7971,28 +7988,31 @@ midi devices to JACK midi devices.") (file-name (git-file-name name version)))) (arguments (list - #:test-target "check" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases - ;; This package does not use the perl-build-system, so we have to - ;; manually set up the Perl environment used by the test suite. - (add-before 'check 'setup-perl-environment - (lambda* (#:key inputs #:allow-other-keys) - (let* ((perl-list-moreutils-lib - (string-append #$(this-package-native-input "perl-list-moreutils") - "/lib/perl5/site_perl/" - #$(package-version perl))) - (perl-exporter-tiny-lib - (string-append #$(this-package-native-input "perl-exporter-tiny") - "/lib/perl5/site_perl/" - #$(package-version perl))) - (perl-test-deep-lib - (string-append #$(this-package-native-input "perl-test-deep") - "/lib/perl5/site_perl/" - #$(package-version perl)))) - (setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":" - perl-exporter-tiny-lib ":" - perl-test-deep-lib)))))))) + ;; This package does not use the perl-build-system, so we have to + ;; manually set up the Perl environment used by the test suite. + (add-before 'check 'setup-perl-environment + (lambda* (#:key inputs #:allow-other-keys) + (let* ((perl-list-moreutils-lib + (string-append #$(this-package-native-input "perl-list-moreutils") + "/lib/perl5/site_perl/" + #$(package-version perl))) + (perl-exporter-tiny-lib + (string-append #$(this-package-native-input "perl-exporter-tiny") + "/lib/perl5/site_perl/" + #$(package-version perl))) + (perl-test-deep-lib + (string-append #$(this-package-native-input "perl-test-deep") + "/lib/perl5/site_perl/" + #$(package-version perl)))) + (setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":" + perl-exporter-tiny-lib ":" + perl-test-deep-lib))))) + (replace 'check (assoc-ref gnu:%standard-phases 'check))))) (build-system cmake-build-system) (inputs (list libogg)) @@ -8226,13 +8246,19 @@ Renoise, VCV Rack, or SuperCollider.") (build-system qt-build-system) (arguments (list #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (substitute* "samplebrain.pro" (("\\/usr") #$output)) - (invoke "qmake")))))) + (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list fftw liblo libsndfile portaudio)) (home-page "https://thentrythis.org/projects/samplebrain/") (synopsis "Sample mashing synthesizer designed by Aphex Twin") diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 19d09cf603..1db090b1a3 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -726,7 +726,8 @@ from any network device in any of three ASCII graph formats.") (base32 "1zr1l9zkai7rpw9cn5j9h4zrv08hgpfmwscwyscf2j4cgwf0rxrr")))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:parallel-tests? #f + #:configure-flags (list (string-append "-DCMAKE_INSTALL_BINDIR=" (assoc-ref %outputs "out") "/bin") @@ -3887,7 +3888,10 @@ never see any machines other than the one Dante is running on.") (inputs (list asio catch-framework openssl)) (arguments - `(#:configure-flags + `(;; Running parallel tests results in "bind: Address already in use" error + ;; in test service_status_feature_test_suite. + #:parallel-tests? #f + #:configure-flags '("-DBUILD_SSL=NO") #:phases (modify-phases %standard-phases @@ -3932,6 +3936,8 @@ communication over HTTP.") (build-system cmake-build-system) (arguments (list + ;; Error when tests are run in parallel: "bind: Address already in use". + #:parallel-tests? #f #:configure-flags #~(list "-DRESTINIO_INSTALL=ON" "-DRESTINIO_TEST=ON" @@ -4136,7 +4142,6 @@ A very simple IM client working over the DHT. (list #:configure-flags #~(list "-DBUILD_DEPENDENCIES=OFF" "-DBUILD_SHARED_LIBS=ON" - "-DBUILD_TESTING=ON" "-DDNC_SYSTEMD=OFF") #:phases #~(modify-phases %standard-phases diff --git a/gnu/packages/ninja.scm b/gnu/packages/ninja.scm index 398c4be10f..c4cd2fd55f 100644 --- a/gnu/packages/ninja.scm +++ b/gnu/packages/ninja.scm @@ -25,61 +25,72 @@ #:use-module ((guix licenses) #:select (asl2.0 expat)) #:use-module (guix gexp) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages re2c) + #:use-module (srfi srfi-1)) -(define-public ninja - (package - (name "ninja") - (version "1.11.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ninja-build/ninja") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "14kshkxdn833nkz2qkzb3w531dcqj6haad90gxj70ic05lb7zx9f")))) - (build-system gnu-build-system) - (inputs (list python-wrapper)) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'configure - (lambda _ - (substitute* "src/subprocess-posix.cc" - (("/bin/sh") (which "sh"))) - (substitute* "src/subprocess_test.cc" - (("/bin/echo") (which "echo"))))) - (replace 'build - (lambda _ - (invoke "./configure.py" "--bootstrap"))) - (replace 'check - (lambda _ - (invoke "./configure.py") - (invoke "./ninja" "ninja_test") - (invoke "./ninja_test"))) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (doc (string-append out "/share/doc/ninja"))) - (install-file "ninja" bin) - (install-file "doc/manual.asciidoc" doc))))))) - (home-page "https://ninja-build.org/") - (synopsis "Small build system") - (description - "Ninja is a small build system with a focus on speed. It differs from +(define-public ninja/pinned + (hidden-package + (package + (name "ninja") + (version "1.13.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ninja-build/ninja") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vil4mz0h1z39d2airzdi8cia8xhn3n5p94pv4sd3mqk0pkha40s")))) + (build-system gnu-build-system) + (inputs (list python-wrapper re2c)) + (arguments + '(; Tests now require googletest, which is a circular dependency. + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "src/subprocess-posix.cc" + (("/bin/sh") (which "sh"))) + (substitute* "src/subprocess_test.cc" + (("/bin/echo") (which "echo"))))) + (replace 'build + (lambda _ + (invoke "./configure.py" "--bootstrap"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./configure.py") + (invoke "./ninja" "ninja_test") + (invoke "./ninja_test")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (doc (string-append out "/share/doc/ninja"))) + (install-file "ninja" bin) + (install-file "doc/manual.asciidoc" doc))))))) + (home-page "https://ninja-build.org/") + (synopsis "Small build system") + (description + "Ninja is a small build system with a focus on speed. It differs from other build systems in two major respects: it is designed to have its input files generated by a higher-level build system, and it is designed to run builds as fast as possible.") - (license asl2.0))) + (license asl2.0)))) + +(define-public ninja + (package/inherit ninja/pinned + (properties (alist-delete 'hidden? (package-properties ninja/pinned))))) (define-public samurai (package diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm index 9b8de13794..40fa5981fe 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -115,9 +115,7 @@ (arguments (list #:tests? #f ;The regression tests require a lot more dependencies. #:configure-flags - #~(list "-DBUILD_EXAMPLES=OFF" "-DBUILD_TESTS=OFF" - ;; CTest needs this to be turned off. - "-DBUILD_TESTING=OFF"))) + #~(list "-DBUILD_EXAMPLES=OFF" "-DBUILD_TESTS=OFF"))) (native-inputs (list python-wrapper)) (propagated-inputs (list opencl-headers)) (home-page "https://github.khronos.org/OpenCL-CLHPP/") diff --git a/gnu/packages/opencog.scm b/gnu/packages/opencog.scm index 998d9b47ae..722cc0ffb7 100644 --- a/gnu/packages/opencog.scm +++ b/gnu/packages/opencog.scm @@ -29,6 +29,7 @@ #:use-module (gnu packages python) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix utils)) @@ -52,7 +53,21 @@ "1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests")) + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + (for-each + (lambda (file) + (invoke file)) + (find-files "tests" "UTest$")))))))) (inputs (list boost)) (native-inputs @@ -84,14 +99,29 @@ utilities use for typical programming tasks in multiple OpenCog projects.") "0vxzhszb0z8081li38hid07a5axzxyflsmq1mcn4b1k4z1j8ggch")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests" - #:configure-flags - (list (string-append "-DGUILE_INCLUDE_DIR=" - (assoc-ref %build-inputs "guile") - "/include/guile/2.2/") - (string-append "-DGUILE_SITE_DIR=" - (assoc-ref %outputs "out") - "/share/guile/site/2.2/")))) + (list + #:configure-flags + #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 + "/include/guile/2.2/") + (string-append "-DGUILE_SITE_DIR=" #$output + "/share/guile/site/2.2/")) + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + ;; Failing tests. + (for-each delete-file + '("tests/matrix/VectorAPIUTest" + "tests/scm/MultiAtomSpaceUTest")) + (setenv "GUILE_LOAD_PATH" ".:opencog/scm") + (for-each invoke + (find-files "tests" "UTest$")))))))) (inputs (list boost cogutil gmp guile-2.2 postgresql)) (native-inputs @@ -126,14 +156,26 @@ features not otherwise available.") "1h0vcxb6n5dc654xqinqcxc7dxwcs6bsywgir8rhrqiykk760mzl")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests" - #:configure-flags - (list (string-append "-DGUILE_INCLUDE_DIR=" - (assoc-ref %build-inputs "guile") - "/include/guile/2.2/") - (string-append "-DGUILE_SITE_DIR=" - (assoc-ref %outputs "out") - "/share/guile/site/2.2/")))) + (list + #:configure-flags + #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 + "/include/guile/2.2/") + (string-append "-DGUILE_SITE_DIR=" #$output + "/share/guile/site/2.2/")) + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + ;; Failing test. + (delete-file "tests/shell/ShellUTest") + (for-each invoke + (find-files "tests" "UTest$")))))))) (inputs (list atomspace boost cogutil gmp guile-2.2)) (native-inputs @@ -164,15 +206,29 @@ OpenCog framework.") "0sndslphicv6w9qpag168rqkxq5sf71l5qbfx6zhsd5bzlf5fhwv")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests" - #:configure-flags - (list - (string-append "-DGUILE_INCLUDE_DIR=" - (assoc-ref %build-inputs "guile") - "/include/guile/2.2/") - (string-append "-DGUILE_SITE_DIR=" - (assoc-ref %outputs "out") - "/share/guile/site/2.2/")))) + (list + #:configure-flags + #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 + "/include/guile/2.2/") + (string-append "-DGUILE_SITE_DIR=" #$output + "/share/guile/site/2.2/")) + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + ;; Failing tests. + (for-each delete-file + '("tests/attention/AttentionParamQueryUTest" + "tests/attention/HebbianCreationModuleUTest" + "tests/attention/ImportanceDiffusionUTest")) + (for-each invoke + (find-files "tests" "UTest$")))))))) (inputs (list atomspace boost @@ -209,15 +265,24 @@ tasks.") "1j8wv910fvrmph370wv5pv2f4bc2s9vl6i7bw3pkmwbdhxkhjbhm")))) (build-system cmake-build-system) (arguments - `(#:test-target "tests" - #:configure-flags - (list - (string-append "-DGUILE_INCLUDE_DIR=" - (assoc-ref %build-inputs "guile") - "/include/guile/2.2/") - (string-append "-DGUILE_SITE_DIR=" - (assoc-ref %outputs "out") - "/share/guile/site/2.2/")))) + (list + #:configure-flags + #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 + "/include/guile/2.2/") + (string-append "-DGUILE_SITE_DIR=" #$output + "/share/guile/site/2.2/")) + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + (apply (assoc-ref gnu:%standard-phases 'check) + #:tests? tests? #:test-target "tests" args) + (for-each invoke + (find-files "tests" "UTest$")))))))) (inputs `(("attention" ,attention) ("atomspace" ,atomspace) diff --git a/gnu/packages/openpgp.scm b/gnu/packages/openpgp.scm index c98023566f..1aebfa6a68 100644 --- a/gnu/packages/openpgp.scm +++ b/gnu/packages/openpgp.scm @@ -121,7 +121,6 @@ environments.") ;; Lower the minimum tuning ratio from 6 to 4, as suggested ;; upstream to avoid the s2k_iteration_tuning failing. "-DS2K_MINIMUM_TUNING_RATIO=4" - "-DBUILD_TESTING=on" "-DDOWNLOAD_GTEST=off" "-DDOWNLOAD_RUBYRNP=off") #:phases diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 0936c0a14d..d032002464 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -1607,6 +1607,8 @@ tools_locations = { (native-inputs (list autoconf-wrapper automake + ;; If cmake is replaced with cmake-minimal then Guix errors when + ;; listing the dependents of rapidjson. cmake git-minimal libtool diff --git a/gnu/packages/pantheon.scm b/gnu/packages/pantheon.scm index 4b3ea8ac0b..2e4fa08d5a 100644 --- a/gnu/packages/pantheon.scm +++ b/gnu/packages/pantheon.scm @@ -127,7 +127,7 @@ in apps built for the Pantheon desktop.") libgee libhandy)) (native-inputs - (list cmake + (list cmake-minimal `(,glib "bin") ; for glib-compile-schemas gettext-minimal pkg-config @@ -186,7 +186,7 @@ desktop.") libical libportal)) (native-inputs - (list cmake + (list cmake-minimal `(,glib "bin") ; for glib-compile-schemas gettext-minimal pkg-config diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 7e5d6acbb7..051dc6a9ac 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -1079,7 +1079,9 @@ key URIs using the standard otpauth:// scheme.") (build-system qt-build-system) (arguments (list - #:test-target "check" + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -1088,9 +1090,12 @@ key URIs using the standard otpauth:// scheme.") "QMAKE_LRELEASE=lrelease" "QMAKE_LUPDATE=lupdate" (string-append "PREFIX=" #$output)))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) (add-before 'check 'pre-check ;; Fontconfig needs a writable cache. (lambda _ (setenv "HOME" "/tmp"))) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'install-auxilliary ;; Install man-page, icon and .desktop file. (lambda _ diff --git a/gnu/packages/patches/bloomberg-bde-cmake-module-path.patch b/gnu/packages/patches/bloomberg-bde-cmake-module-path.patch deleted file mode 100644 index 7743863cf8..0000000000 --- a/gnu/packages/patches/bloomberg-bde-cmake-module-path.patch +++ /dev/null @@ -1,14 +0,0 @@ -This package requires CMAKE_MODULE_PATH be set by the calling process. This -patch uses the CMAKE_PREFIX_PATH passed from Guix as the search path for -locating the bloomberg-bde-tools CMake modules. - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -14,6 +14,7 @@ else() - if (NOT CMAKE_MODULE_PATH) - message(FATAL "Please specify path to BDE cmake modules.") - endif() -+ string(REPLACE ":" "cmake/;" CMAKE_MODULE_PATH "$ENV{CMAKE_PREFIX_PATH}cmake/") - - include(bde_workspace) - diff --git a/gnu/packages/patches/cmake-curl-certificates-3.24.patch b/gnu/packages/patches/cmake-curl-certificates-3.24.patch deleted file mode 100644 index ca29c9001e..0000000000 --- a/gnu/packages/patches/cmake-curl-certificates-3.24.patch +++ /dev/null @@ -1,21 +0,0 @@ -Submitted upstream at https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7670. - -diff --git a/Source/cmCurl.cxx b/Source/cmCurl.cxx -index 28ee24dfe9..fc5405213a 100644 ---- a/Source/cmCurl.cxx -+++ b/Source/cmCurl.cxx -@@ -38,6 +38,14 @@ std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile) - ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAINFO, cafile.c_str()); - check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); - } -+ /* Honor the user-configurable OpenSSL environment variables. */ -+ else if (cmSystemTools::GetEnv("SSL_CERT_FILE", e)) { -+ ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAINFO, e.c_str()); -+ check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); -+ } else if (cmSystemTools::GetEnv("SSL_CERT_DIR", e)) { -+ ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAPATH, e.c_str()); -+ check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); -+ } - #ifdef CMAKE_FIND_CAFILE - # define CMAKE_CAFILE_FEDORA "/etc/pki/tls/certs/ca-bundle.crt" - else if (cmSystemTools::FileExists(CMAKE_CAFILE_FEDORA, true)) { diff --git a/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch b/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch deleted file mode 100644 index a5bee60ac2..0000000000 --- a/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch +++ /dev/null @@ -1,40 +0,0 @@ -Description: Fix building kiwix-desktop with libkiwix-12.1.0 -Bug: https://github.com/kiwix/kiwix-desktop/issues/964 -Origin: https://github.com/kiwix/kiwix-desktop/commit/1b322d8f01c787846546a6473f153cf1daa41e65 -Applied-Upstream: https://github.com/kiwix/kiwix-desktop/commit/1b322d8f01c787846546a6473f153cf1daa41e65 ---- -From 1b322d8f01c787846546a6473f153cf1daa41e65 Mon Sep 17 00:00:00 2001 -From: Matthieu Gautier <mgautier@kymeria.fr> -Date: Thu, 9 Feb 2023 09:47:47 +0100 -Subject: [PATCH] With last version of libkiwix, Downloader now return - shared_ptr<Download>. - ---- - src/contentmanager.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/contentmanager.cpp b/src/contentmanager.cpp -index c2f4ff9..d4db50a 100644 ---- a/src/contentmanager.cpp -+++ b/src/contentmanager.cpp -@@ -173,7 +173,7 @@ QStringList ContentManager::updateDownloadInfos(QString id, const QStringList &k - return values; - } - auto& b = mp_library->getBookById(id); -- kiwix::Download* d; -+ std::shared_ptr<kiwix::Download> d; - try { - d = mp_downloader->getDownload(b.getDownloadId()); - } catch(...) { -@@ -270,7 +270,7 @@ QString ContentManager::downloadBook(const QString &id) - for (auto b : booksList) - if (b.toStdString() == book.getId()) - return ""; -- kiwix::Download *download; -+ std::shared_ptr<kiwix::Download> download; - try { - std::pair<std::string, std::string> downloadDir("dir", downloadPath.toStdString()); - const std::vector<std::pair<std::string, std::string>> options = { downloadDir }; --- -2.41.0 - diff --git a/gnu/packages/patches/llvm-13-gcc-14.patch b/gnu/packages/patches/llvm-13-gcc-14.patch index a7697b01d0..2625ad497c 100644 --- a/gnu/packages/patches/llvm-13-gcc-14.patch +++ b/gnu/packages/patches/llvm-13-gcc-14.patch @@ -10,3 +10,13 @@ See: https://github.com/smlnj/smlnj/issues/279 #include <string> namespace llvm { +--- llvm-13.0.1.src/include/llvm/Support/Base64.h 1970-01-01 00:00:01.000000000 +0000 ++++ llvm-13.0.1.src/include/llvm/Support/Base64.h 2025-07-18 23:45:19.568475987 +0000 +@@ -14,6 +14,7 @@ + #define LLVM_SUPPORT_BASE64_H + + #include <string> ++#include <cstdint> + + namespace llvm { + diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 58260fcf01..4c18dad6ed 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -841,6 +841,7 @@ interaction.") zlib)) (arguments (list + #:tests? #f #:configure-flags #~(list "-DPODOFO_BUILD_SHARED=ON") #:phases @@ -886,6 +887,8 @@ extracting content or merging files.") lua-5.1 openssl zlib)) + (arguments + (list #:tests? #f)) (home-page "https://github.com/podofo/podofo") (synopsis "Tools to work with the PDF file format") (description @@ -1063,13 +1066,18 @@ program capable of converting PDF into other formats.") qtsvg-5)) (arguments (list #:tests? #f ; no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure (lambda _ (substitute* "qpdfview.pri" (("/usr") #$output)) - (invoke "qmake" "qpdfview.pro")))))) + (invoke "qmake" "qpdfview.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (home-page "https://launchpad.net/qpdfview") (synopsis "Tabbed document viewer") (description "@command{qpdfview} is a document viewer for PDF, PS and DJVU @@ -1850,9 +1858,12 @@ Keywords: html2pdf, htmltopdf") (build-system cmake-build-system) (arguments (list + #:tests? #f ; no tests #:configure-flags #~(list (string-append "PREFIX=" #$output)) - #:test-target "check" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-paths @@ -1865,7 +1876,9 @@ Keywords: html2pdf, htmltopdf") (replace 'configure (lambda* (#:key configure-flags #:allow-other-keys) (apply invoke "qmake" configure-flags))) - (add-after 'install 'instal-man-page + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) + (add-after 'install 'install-man-page (lambda _ (install-file "resources/sioyek.1" (string-append #$output "/share/man/man1"))))))) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 673979d1d8..33990bc2eb 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -559,7 +559,6 @@ photographic equipment.") (list #:configure-flags #~(list "-DBINARY_PACKAGE_BUILD=On" - "-DBUILD_TESTING=On" "-DDONT_USE_INTERNAL_LIBRAW=On") #:phases #~(modify-phases %standard-phases @@ -820,7 +819,7 @@ such as Batch image processing.") `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) `("GUIX_PYTHONPATH" ":" prefix (,python-path))))))))) (native-inputs - (list cmake + (list cmake-minimal gettext-minimal `(,glib "bin") gobject-introspection diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 5276f96fea..67c3c93410 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm @@ -90,7 +90,7 @@ automake bison boost - cmake + cmake-minimal emacs-minimal flex ghostscript ;for tests diff --git a/gnu/packages/popt.scm b/gnu/packages/popt.scm index 8fa6ddb588..5ed1be87e5 100644 --- a/gnu/packages/popt.scm +++ b/gnu/packages/popt.scm @@ -135,8 +135,7 @@ similar to getopt(3), it contains a number of enhancements, including: (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" - "-DBUILD_TESTING=ON"))) + '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) (home-page "https://gflags.github.io/gflags/") (synopsis "C++ library for command-line argument parsing") (description diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm index 9c6f42bdec..08120663f6 100644 --- a/gnu/packages/potassco.scm +++ b/gnu/packages/potassco.scm @@ -170,6 +170,7 @@ satisfiability checking (SAT).") (build-system cmake-build-system) (arguments (list + #:tests? #f #:configure-flags #~`("-DCLINGO_BUILD_TESTS=on" "-DCLINGO_INSTALL_LIB=on" "-DCLINGO_BUILD_STATIC=off" @@ -295,7 +296,8 @@ and goals over linear (in)equations.") "0050qp5gpznigpm743br8yhjg62gl739xmzkfr70hlqm1xrj0sa7")))) (build-system cmake-build-system) (arguments - (list #:phases + (list #:tests? #f + #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-cmake (lambda _ diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 683afae035..4361c0b65e 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -835,8 +835,7 @@ wrapper. It provides a backport of the @code{Path} object.") (lambda _ (setenv "LIBDEFLATE_PREFIX" #$(this-package-input "libdeflate"))))))) - ;; CMake >= 3.26 required. - (native-inputs (list cmake-next python-pytest python-scikit-build-core)) + (native-inputs (list cmake-minimal python-pytest python-scikit-build-core)) (inputs (list libdeflate)) (home-page "https://github.com/dcwatson/deflate") (synopsis "Python wrapper for @code{libdeflate}") diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm index 3d03ce93c3..a4b83c3ea8 100644 --- a/gnu/packages/python-graphics.scm +++ b/gnu/packages/python-graphics.scm @@ -375,7 +375,7 @@ Design spec without sacrificing ease of use or application performance.") (("\\$\\{SoQt_INCLUDE_DIRS}") "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))))))) (native-inputs - (list cmake swig)) + (list cmake-minimal swig)) (inputs (list python-wrapper qtbase-5 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 03f2828cfc..e24cd2288f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -165,6 +165,7 @@ ;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org> ;;; Copyright © 2025, Cayetano Santos <csantosb@inventati.org> ;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com> +;;; Copyright © 2025 Luis Felipe López Acevedo <sirgazil@zoho.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -458,7 +459,7 @@ compare against a vast section of other version formats.") (("^minimum-version =.*") ""))))))) (propagated-inputs (list python-numpy)) (native-inputs - (list cmake pybind11 python-pytest python-scikit-build-core)) + (list cmake-minimal pybind11 python-pytest python-scikit-build-core)) (home-page "https://github.com/scikit-hep/awkward-1.0") (synopsis "CPU kernels and compiled extensions for Awkward Array") (description "Awkward CPP provides precompiled routines for the awkward @@ -1175,6 +1176,37 @@ attribution. It uses similarity detection algorithms to compare code files and highlight matching sections.") (license license:agpl3+))) +(define-public python-wheel-filename + (package + (name "python-wheel-filename") + (version "1.4.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "wheel_filename" version)) + (sha256 + (base32 "1zcqq8mydjjrk8x5xlm53bavs51jm40nz42a7500pd6bbm31r2c7")))) + (build-system pyproject-build-system) + (native-inputs (list python-hatchling python-pytest python-pytest-cov)) + (home-page "https://github.com/wheelodex/wheel-filename") + (synopsis "Parse wheel filenames") + (description + "This software allows you to verify +@url{https://packaging.python.org/en/latest/specifications/binary-distribution-format/, wheel} +filenames and parse them into their component fields. + +This package adheres strictly to the standard, with the following +exceptions: + +@itemize @bullet +@item +Version components may be any sequence of the relevant set of +characters; they are not verified for PEP 440 compliance. +@item +The @file{.whl} file extension is matched case-insensitively. +@end itemize") + (license license:expat))) + (define-public python-xmldiff (package (name "python-xmldiff") @@ -29459,23 +29491,28 @@ user-space file systems in Python.") ("catch" ,catch2-1) ("eigen" ,eigen))) (arguments - `(#:configure-flags - (list (string-append "-DCATCH_INCLUDE_DIR=" - (assoc-ref %build-inputs "catch") - "/include/catch")) - - #:phases (modify-phases %standard-phases - (add-after 'install 'install-python - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (with-directory-excursion "../source" - (setenv "PYBIND11_USE_CMAKE" "yes") - (invoke "python" "setup.py" "install" - "--single-version-externally-managed" - "--root=/" - (string-append "--prefix=" out))))))) - - #:test-target "check")) + (list + #:configure-flags + #~(list (string-append "-DCATCH_INCLUDE_DIR=" + (assoc-ref %build-inputs "catch") + "/include/catch")) + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) args))) + (add-after 'install 'install-python + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (with-directory-excursion "../source" + (setenv "PYBIND11_USE_CMAKE" "yes") + (invoke "python" "setup.py" "install" + "--single-version-externally-managed" + "--root=/" + (string-append "--prefix=" out))))))))) (home-page "https://github.com/pybind/pybind11/") (synopsis "Seamless operability between C++11 and Python") (description @@ -31744,7 +31781,7 @@ Its algorithms are based on the kakasi library, which is written in C.") (list pkg-config python-meson-python meson - ninja + ninja/pinned patchelf python-setuptools python-sphinx @@ -35500,7 +35537,7 @@ and frame grabber interface.") (list cmake-minimal gfortran git-minimal/pinned ;for tests - ninja + ninja/pinned python-coverage python-cython python-hatchling diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 9489ceadd8..67582c4a54 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -327,7 +327,8 @@ window managers, that don't provide Qt integration by themselves.") (base32 "0d0pxynlyfgavf6l1b1z7zpmbrzm96hkphnqnalr7mshm147450g")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list + (arguments (list #:tests? #f + #:configure-flags #~(list "-DKDDockWidgets_QT6=ON" "-DKDDockWidgets_TESTS=ON"))) (inputs @@ -1100,7 +1101,12 @@ tst_qt_cmake_create.cpp" "test_qt_add_ui_8" "test_qt_add_ui_9" ;; This test is susceptible to the 600 ms timeout used: - "tst_qpauseanimation") + "tst_qpauseanimation" + + ;; This test may fail non-deterministically as reported + ;; in Guix bug#73233 and upstream at + ;; https://bugreports.qt.io/browse/QTBUG-119321. + "tst_qsharedmemory") #$@(cond ((target-ppc64le?) #~((list @@ -2623,6 +2629,7 @@ that helps in Qt development."))) (build-system cmake-build-system) (arguments (list + #:tests? #f ;; The build system attempts to fetch online resources and fails when ;; building the test suite. #:configure-flags #~(list "-DQT_BUILD_TESTS=OFF") @@ -2824,6 +2831,9 @@ also contains functionality to support data models and executable content."))) (delete-file-recursively "tests/3rdparty"))))) (arguments (list + ;; This failing test is run by the cmake-build-system phases but not + ;; by the gnu-build-system phases. + #:test-exclude "tst_scion" #:phases #~(modify-phases %standard-phases (delete 'check) ;move after the install phase @@ -4130,6 +4140,9 @@ instances.") (arguments (list #:qtbase qtbase + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-installation-prefix @@ -4144,6 +4157,7 @@ instances.") (replace 'configure (lambda _ (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? @@ -5078,6 +5092,7 @@ different kinds of sliders, and much more.") (base32 "13n2qb8q9jz4ihwlbs7y15lw90w9113gb1bgnb1dggpxkj64r953")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list qttools-5)) (inputs @@ -5118,6 +5133,7 @@ a binding language: (build-system qt-build-system) (arguments (list #:qtbase qtbase + #:cmake cmake-3.25 #:tests? #f ;no tests #:configure-flags #~(list "-DBUILD_EXAMPLE=ON" @@ -5194,8 +5210,7 @@ window docking system.") "0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s")))) (build-system qt-build-system) (arguments - (list #:test-target "tests" - #:phases + (list #:phases #~(modify-phases %standard-phases (add-before 'install 'fix-include-path (lambda _ @@ -5239,6 +5254,9 @@ programming paradigm.") (arguments (list #:qtbase qtbase #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases ;; This project does not have any build rule but its demo has @@ -5255,6 +5273,7 @@ programming paradigm.") (replace 'configure (lambda _ (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) ;; No install rule exists. (replace 'install (lambda _ @@ -5805,7 +5824,7 @@ configurable also via HTTP.") (build-system cmake-build-system) (arguments '(#:tests? #f)) ; There are no tests (native-inputs - (list pkg-config cmake)) + (list pkg-config cmake-minimal)) (inputs (list qtbase-5 coin3d)) (home-page "https://github.com/coin3d/soqt") @@ -6117,6 +6136,9 @@ a secure way."))) (inputs (list dbus glib libaccounts-glib)) (arguments (list #:tests? #f ; Figure out how to run tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -6139,7 +6161,9 @@ a secure way."))) (string-append "PREFIX=" #$output) (string-append "LIBDIR=" #$output "/lib") (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," - #$output "/lib -Wl,-rpath,"))))))) + #$output "/lib -Wl,-rpath,")))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (home-page "https://accounts-sso.gitlab.io/signond/index.html") (synopsis "Perform user authentication over D-Bus") (description "This package provides a D-Bus service which performs user @@ -6189,6 +6213,9 @@ authentication on behalf of its clients.") (inputs (list signond)) (arguments (list #:tests? #f ;no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'configure @@ -6200,7 +6227,9 @@ authentication on behalf of its clients.") (string-append "PREFIX=" #$output) (string-append "LIBDIR=" #$output "/lib") (string-append "SIGNON_PLUGINS_DIR=" #$output - "/lib/signon"))))))) + "/lib/signon")))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (synopsis "OAuth 2 plugin for signon") (description "This plugin for the Accounts-SSO SignOn daemon handles the OAuth diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index c73cae9882..7b989d38f9 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -147,8 +147,17 @@ (base32 "0i6jhrdswr1wglyb9h39idpz5v9z13yhidvlbj34vxpyngrkhlvs")))) (build-system cmake-build-system) (arguments - `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") - #:test-target "test_all")) + (list + #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test_all" args)))))) (home-page "https://github.com/quiet/libfec") (synopsis "Forward error correction algorithms library") (description @@ -175,12 +184,15 @@ useful in modems implemented with @dfn{digital signal processing} (DSP).") (build-system cmake-build-system) (arguments (list - #:test-target "check" + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'build 'build-libfec-compatibility-layer (lambda _ (invoke "make" "shim"))) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) (add-after 'install 'delete-static-libraries (lambda _ (delete-file (string-append #$output "/lib/libcorrect.a")) @@ -1097,7 +1109,8 @@ environment.") spdlog volk)) (arguments - (list #:modules '((guix build cmake-build-system) + (list #:tests? #f + #:modules '((guix build cmake-build-system) ((guix build python-build-system) #:prefix python:) (guix build utils)) #:imported-modules `(,@%cmake-build-system-modules @@ -1230,6 +1243,7 @@ DMR, NXDN, P25, etc.") (sha256 (base32 "12p193ngcs65nd3lynry119nhv40mikamqkw37wdln7lawx3nw7p")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) (native-inputs (list doxygen pkg-config @@ -2274,13 +2288,19 @@ NanoVNA vector network analyzers.") qtbase-5 v4l-utils)) (arguments - `(#:tests? #f ; No test suite. - #:phases - (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (invoke "qmake" - (string-append "PREFIX=" (assoc-ref outputs "out")))))))) + (list + #:tests? #f ; No test suite. + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (invoke "qmake" + (string-append "PREFIX=" (assoc-ref outputs "out"))))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (home-page "http://users.telenet.be/on4qz/qsstv/") (synopsis "Program for receiving and transmitting SSTV and HAMDRM") (description @@ -2437,7 +2457,8 @@ intended for people who want to learn receiving and sending morse code.") (base32 "1lhsmyhljqa6apzbysqar56wpfcdvs3pq9ia1mshqd6d3hz74s78")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DGGMORSE_SUPPORT_SDL2=OFF") + (list #:tests? #f + #:configure-flags #~(list "-DGGMORSE_SUPPORT_SDL2=OFF") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-imgui-build (lambda _ @@ -2635,34 +2656,40 @@ sinks and sources.") speexdsp zlib)) (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-paths - (lambda* (#:key inputs outputs #:allow-other-keys) - (substitute* "dream.pro" - (("target\\.path = /usr/bin") - (string-append "target.path = " - (assoc-ref outputs "out") "/bin")) - (("documentation\\.path = /usr/share/man/man1") - (string-append "documentation.path = " - (assoc-ref outputs "out") - "/share/man/man1")) - (("/usr/include/pulse") - (search-input-directory inputs "/include/pulse")) - (("/usr/include/sndfile\\.h") - (search-input-file inputs "/include/sndfile.h")) - (("/usr/include/opus") - (search-input-directory inputs "/include/opus")) - (("/usr/include/speex") - (search-input-directory inputs "/include/speex")) - (("/usr/include/qwt") - (search-input-directory inputs "/include/qwt")) - (("\\$\\$OUT_PWD/include/neaacdec\\.h") - (search-input-file inputs "/include/neaacdec.h"))))) - (replace 'configure - (lambda _ - (invoke "qmake")))))) + (list + #:tests? #f + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* "dream.pro" + (("target\\.path = /usr/bin") + (string-append "target.path = " + (assoc-ref outputs "out") "/bin")) + (("documentation\\.path = /usr/share/man/man1") + (string-append "documentation.path = " + (assoc-ref outputs "out") + "/share/man/man1")) + (("/usr/include/pulse") + (search-input-directory inputs "/include/pulse")) + (("/usr/include/sndfile\\.h") + (search-input-file inputs "/include/sndfile.h")) + (("/usr/include/opus") + (search-input-directory inputs "/include/opus")) + (("/usr/include/speex") + (search-input-directory inputs "/include/speex")) + (("/usr/include/qwt") + (search-input-directory inputs "/include/qwt")) + (("\\$\\$OUT_PWD/include/neaacdec\\.h") + (search-input-file inputs "/include/neaacdec.h"))))) + (replace 'configure + (lambda _ + (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (home-page "https://sourceforge.net/projects/drm/") (synopsis "Digital Radio Mondiale receiver") (description @@ -3122,6 +3149,7 @@ various hardware.") (sha256 (base32 "11v5idwvfi9w60qg4fgqgvm7ahmb0ys4j094qv4c93r92kd9d3f9")))) (build-system qt-build-system) + (arguments (list #:tests? #f)) (native-inputs (list pkg-config)) (inputs @@ -3150,6 +3178,9 @@ software-defined radio receivers.") (arguments (list #:tests? #f ; No test suite. + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-paths @@ -3174,7 +3205,9 @@ software-defined radio receivers.") (chdir "build") (invoke "qmake" (string-append "PREFIX=" #$output) - "../wfview.pro")))))) + "../wfview.pro"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list eigen eudev diff --git a/gnu/packages/rdesktop.scm b/gnu/packages/rdesktop.scm index 9f79f895c3..2f89b29d85 100644 --- a/gnu/packages/rdesktop.scm +++ b/gnu/packages/rdesktop.scm @@ -163,7 +163,6 @@ to remotely control a user's Windows desktop.") #~()) "-DWITH_PULSE=ON" "-DWITH_CUPS=ON" - "-DBUILD_TESTING=ON" "-DWITH_SERVER=ON" ;build servers "-DWITH_SHADOW=ON" ;build shadow server "-DWITH_PROXY=ON"))) diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm index 869b0fc81f..a9f7449043 100644 --- a/gnu/packages/rdf.scm +++ b/gnu/packages/rdf.scm @@ -116,8 +116,7 @@ HTML and JSON.") (list boost ; could also use bundled copy zlib)) (arguments - `(#:test-target "cl_test" - #:configure-flags '("-DBUILD_CONTRIBS_LIB=ON") + `(#:configure-flags '("-DBUILD_CONTRIBS_LIB=ON") #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses ; undeclared usleep. After fixing this, one needs to run ; "make test" in addition to "make cl_test", then diff --git a/gnu/packages/regex.scm b/gnu/packages/regex.scm index bf1ab703c0..f0d965f45e 100644 --- a/gnu/packages/regex.scm +++ b/gnu/packages/regex.scm @@ -81,12 +81,13 @@ Python. It is a C++ library.") (base32 "11q0kz8b3y5ysn58fr62yhib520f9l3grbn8gxr8x5s9k700vq11")))) (build-system cmake-build-system) - (arguments (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" + (arguments (list #:tests? (not (%current-target-system)) + #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" ;; "-DRE2_USE_ICU=ON" - #$@(if (%current-target-system) + #$@(if (not (%current-target-system)) #~("-DRE2_BUILD_TESTING=ON") #~())))) - (native-inputs (list googletest)) + (native-inputs (list googlebenchmark googletest)) (propagated-inputs (list abseil-cpp)))) (define-public tre diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm index 054d2509a8..dd24b38c9e 100644 --- a/gnu/packages/sdl.scm +++ b/gnu/packages/sdl.scm @@ -810,7 +810,8 @@ mappings intended for the use with SDL2's game controller functionality.") (base32 "18g9qavk0wh1bvfh6gdi5q75fd57dk0gp5r20c80x7xnp2ywywih")))) (build-system cmake-build-system) - (arguments (list #:configure-flags + (arguments (list #:tests? #f + #:configure-flags #~(list "-DBUILD_TESTS=ON"))) (propagated-inputs (list sdl3)) (home-page "https://github.com/sabdul-khabir/SDL3_gfx") diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 660e170794..0f99a4ec64 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -888,6 +888,9 @@ an unprivileged user.") (arguments (list #:tests? #f ;no test suite + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-paths @@ -898,6 +901,8 @@ an unprivileged user.") (replace 'configure (lambda _ (invoke "qmake"))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'install-desktop-resources (lambda _ (let ((datadir (string-append #$output "/share"))) @@ -969,8 +974,6 @@ to the @code{python-yubikey-manager} package.") (base32 "0z39f8w0zvra874az0f67ck1al9kbpaidpilggbl8jnfs05010ck")))) (build-system cmake-build-system) - (arguments - '(#:configure-flags (list "-DBUILD_TESTING=on"))) (native-inputs (list pkg-config qttools-5)) (inputs (list catch2)) (home-page "https://github.com/tplgy/cppcodec") diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 3caf943957..5b2f023736 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -437,8 +437,17 @@ that implements both the msgpack and msgpack-rpc specifications.") "1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw")))) (build-system qt-build-system) (arguments - (list #:qtbase qtbase - #:test-target "tests")) + (list #:modules '((guix build cmake-build-system) + (guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:qtbase qtbase + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "tests" args)))))) (home-page "https://github.com/iamantony/qtcsv") (synopsis "Library for reading and writing CSV files in Qt") (description @@ -561,32 +570,39 @@ character limit for implicit keys.") (license license:expat))) (define-public yaml-cpp - (package - (name "yaml-cpp") - (version "0.8.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jbeder/yaml-cpp") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0whdn6pqa56532ml20h89p6rchcrrazdrvi5fz6zpmrkl15yiki7")))) - (build-system cmake-build-system) - (arguments - '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON"))) - (native-inputs - (list python)) - (home-page "https://github.com/jbeder/yaml-cpp") - (synopsis "YAML parser and emitter in C++") - (description "YAML parser and emitter in C++ matching the YAML 1.2 spec.") - (license license:bsd-3))) + (let ((commit "2f86d13775d119edbb69af52e5f566fd65c6953b") + (revision "0")) + (package + (name "yaml-cpp") + (version (git-version "0.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jbeder/yaml-cpp") + (commit commit))) + (modules '((guix build utils))) + (snippet #~(delete-file-recursively "test/googletest-1.13.0")) + (file-name (git-file-name name version)) + (sha256 + (base32 "12ncx2hlsl5vp9yfja6myxalg85j0kgxwbargn37yiwi8rn17m8s")))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON" + "-DYAML_CPP_BUILD_TESTS=ON" + "-DYAML_USE_SYSTEM_GTEST=ON"))) + (native-inputs + (list python)) + (inputs (list googletest)) + (home-page "https://github.com/jbeder/yaml-cpp") + (synopsis "YAML parser and emitter in C++") + (description "YAML parser and emitter in C++ matching the YAML 1.2 spec.") + (license license:bsd-3)))) (define-public jsoncpp (package (name "jsoncpp") - (version "1.9.5") + (version "1.9.6") (home-page "https://github.com/open-source-parsers/jsoncpp") (source (origin (method git-fetch) @@ -594,7 +610,7 @@ character limit for implicit keys.") (file-name (git-file-name name version)) (sha256 (base32 - "06zss7z56ykzwcsfdxarmini63hkf8i8gx70q3yw9wb0bw7wj9rv")))) + "070xg4i52z3yv5b9bw5k95qskw0daivh0njka87mzj0d3zf1qsyy")))) (build-system meson-build-system) (synopsis "C++ library for interacting with JSON") (description "JsonCpp is a C++ library that allows manipulating JSON values, @@ -603,6 +619,20 @@ preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files.") (license license:expat))) +(define-public jsoncpp/pinned + (hidden-package + ;; Version that rarely changes, depended on by CMake. + (package/inherit jsoncpp + (version "1.9.6") + (source + (origin + (method git-fetch) + (uri (git-reference (url (package-home-page jsoncpp)) (commit version))) + (file-name (git-file-name (package-name jsoncpp) version)) + (sha256 + (base32 + "070xg4i52z3yv5b9bw5k95qskw0daivh0njka87mzj0d3zf1qsyy"))))))) + ;; Tensorflow does not build with jsoncpp 1.8.x. It is built with commit ;; 4356d9bba191e1e16ce7a92073cbf3e63564e973, which lies between version 1.7.2 ;; and 1.7.3. @@ -621,7 +651,8 @@ it a convenient format to store user input files.") "1180ln8blrb0mwzpcf78k49hlki6di65q77rsvglf83kfcyh4d7z")))) (build-system cmake-build-system) (arguments - (list #:configure-flags + (list #:tests? #f + #:configure-flags #~'("-DBUILD_SHARED_LIBS:BOOL=YES" #$@(if (%current-target-system) #~("-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF") diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 2bfa4e83af..0759a56385 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -143,8 +143,12 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") (list doxygen groff ; for 'fish --help' procps)) ; for the test suite (arguments - '(#:phases - (modify-phases %standard-phases + (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases (add-after 'unpack 'set-env (lambda _ ;; some tests write to $HOME @@ -244,6 +248,10 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") port) (close-port port)) #t)) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args))) ;; Use fish-foreign-env to source /etc/profile. (add-before 'install 'source-etc-profile (lambda* (#:key inputs #:allow-other-keys) diff --git a/gnu/packages/storage.scm b/gnu/packages/storage.scm index c7b1d2e2fd..567bea2c82 100644 --- a/gnu/packages/storage.scm +++ b/gnu/packages/storage.scm @@ -69,6 +69,7 @@ #:use-module (gnu packages sqlite) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages) @@ -84,14 +85,14 @@ (define-public ceph (package (name "ceph") - (version "17.2.7") + (version "17.2.9") (source (origin (method url-fetch) (uri (string-append "https://download.ceph.com/tarballs/ceph-" version ".tar.gz")) (sha256 (base32 - "1612424yrf39dz010ygz8k5x1vc8731549ckfj1r39dg00m62klp")) + "04m4zxp9hjvppl679ilnr90zr6ij08wr4ralr0whzldy0fskc8hp")) (patches (search-patches "ceph-disable-cpu-optimizations.patch" @@ -233,7 +234,7 @@ (outputs '("out" "lib")) (native-inputs - (list gperf pkg-config python-cython python-sphinx yasm)) + (list git-minimal gperf pkg-config python-cython python-sphinx yasm)) (inputs (list `(,apache-thrift "lib") `(,apache-thrift "include") diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm index 6bb754a079..a323457615 100644 --- a/gnu/packages/sync.scm +++ b/gnu/packages/sync.scm @@ -143,6 +143,7 @@ (((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) (guix build qt-build-system) (guix build utils)) + #:test-exclude "SyncXAttrTest" #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-cmake @@ -159,13 +160,9 @@ (("@kwidgetsaddons@") (search-input-directory inputs "/include/KF5/KWidgetsAddons/"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (setenv "QT_QPA_PLATFORM" "offscreen") - (invoke "ctest" "-E" "SyncXAttrTest")))) (add-before 'check 'pre-check (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") ;; Tests write to $HOME. (setenv "HOME" (getcwd)) #t)) @@ -442,7 +439,6 @@ and securely connects to Microsoft OneDrive services.") `(;; The "tests" target is broken and assumes that tests are run in the ;; root directory. #:tests? #f - #:test-target "tests" #:phases (modify-phases %standard-phases (add-after 'unpack 'search-$PATH-for-binaries diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index dfe6a782be..dae4719b51 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -601,7 +601,7 @@ to create RSS feeds for websites that don't provide any.") (base32 "1fl362920n6nz4x9wihyzbr82d9cy60sknhmajj62whd5gs49sbw")))) (build-system meson-build-system) (inputs (list fmt tidy-html pybind11 python pugixml)) - (native-inputs (list cmake pkg-config)) ; need cmake to find pybind11 + (native-inputs (list cmake-minimal pkg-config)) ; need cmake to find pybind11 (home-page "https://gitlab.com/gabmus/syndication-domination") (synopsis "RSS/Atom feed parser") (description "This package provides an experimental RSS/Atom feed diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm index 1020595718..047145dd63 100644 --- a/gnu/packages/task-management.scm +++ b/gnu/packages/task-management.scm @@ -267,6 +267,9 @@ execution, and libreadline support.") (build-system cmake-build-system) (arguments (list + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (add-after 'patch-source-shebangs 'patch-cmake-shell @@ -282,6 +285,10 @@ execution, and libreadline support.") (substitute* "doc/man7/CMakeLists.txt" (("\\$\\{CMAKE_CURRENT_BINARY_DIR\\}") "${CMAKE_CURRENT_SOURCE_DIR}")))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args))) (add-after 'install 'install-completions (lambda _ (let ((bash-completion-install-dir diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm index 926e9dcad4..5fdc41553b 100644 --- a/gnu/packages/tbb.scm +++ b/gnu/packages/tbb.scm @@ -50,7 +50,8 @@ "tbb-gcc-14.patch")))) (build-system cmake-build-system) (arguments - `(#:configure-flags + `(#:parallel-tests? #f + #:configure-flags '(,@(if (or (target-riscv64?) (target-ppc32?)) '("-DTBB_TEST_LINK_FLAGS=-latomic") diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index c833bcc0cc..2fa8013485 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -1291,6 +1291,7 @@ route audio during phone calls, and a library.") (sha256 (base32 "1k874v9bzipk5x9nr21f3259f5sk7nxnnz618kji0mx9aa0fvjf1")))) (build-system cmake-build-system) + (arguments (list #:tests? #f)) ; disabled by default and still failing (native-inputs (list pkg-config)) (inputs (list openssl zlib)) (synopsis "Library for real-time communications with async IO support") @@ -1321,7 +1322,8 @@ Binary Floor Control Protocol}, @acronym{HTTP, Hypertext Transfer Protocol} and (base32 "1xwvhpvrs6anw8mq709ff9d6vm0mizf6sj1sz69y85s7p4qz4rfz")))) (build-system cmake-build-system) (arguments - `(#:make-flags (list (string-append "PREFIX=" %output)) + `(#:tests? #f + #:make-flags (list (string-append "PREFIX=" %output)) #:phases (modify-phases %standard-phases (add-after 'unpack 'neuter-module_path (lambda* (#:key outputs #:allow-other-keys) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index c2a2e79998..4d14c334ae 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -290,8 +290,6 @@ text-based approach to terminal recording.") (delete-file-recursively "external/xkbcommon") #t)))) (build-system cmake-build-system) - (arguments - `(#:configure-flags '("-DBUILD_TESTING=ON"))) (native-inputs (list check libxkbcommon ; for xkbcommon-keysyms.h pkg-config)) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index b9a3c2222b..c240878926 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -77468,19 +77468,25 @@ PDF documents.") "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx")))) (build-system qt-build-system) (arguments - `(#:test-target "check" - #:phases - (modify-phases %standard-phases - ;; Qt has its own configuration utility. - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (invoke "qmake" - (string-append "PREFIX=" out) - (string-append "DESKTOPDIR=" out "/share/applications") - (string-append "ICONDIR=" out "/share/pixmaps") - (string-append "METAINFODIR=" out "/share/metainfo") - "texmaker.pro"))))))) + (list + #:tests? #f ; no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + ;; Qt has its own configuration utility. + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "qmake" + (string-append "PREFIX=" out) + (string-append "DESKTOPDIR=" out "/share/applications") + (string-append "ICONDIR=" out "/share/pixmaps") + (string-append "METAINFODIR=" out "/share/metainfo") + "texmaker.pro")))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list poppler-qt5 qtbase-5 qtwayland-5 qtscript-5 zlib)) (native-inputs diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index db32a20e0c..e1c69ceb60 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -78,6 +78,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages base) #:use-module (gnu packages boost) + #:use-module (gnu packages cmake) #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) @@ -780,8 +781,7 @@ jmacs, joe, jpico, jstar, and rjoe.") (delete-file-recursively "lib/json"))))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_TESTING=ON") - #:phases + (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-tiny-process-library (lambda* (#:key native-inputs inputs #:allow-other-keys) @@ -1258,27 +1258,29 @@ in plain text file format.") (base32 "05qllpls3r95nfl14gqq3cv4lisf07fgn85n52w8blc5pfl1h93g")))) (build-system cmake-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'insert-tests - (lambda* (#:key inputs #:allow-other-keys) - (let ((tests (assoc-ref inputs "tests"))) - (copy-recursively tests "tests")) - #t)) - (add-after 'insert-tests 'disable-failing-tests - (lambda _ - (substitute* "tests/parser/CMakeLists.txt" - (("# Test max property name and values") - "# Disabled: test max property name and values\nif(FALSE)\n") - (("# Test max section names") - "endif()\n\n# Test max section names")))) - (add-after 'install 'delete-static-library - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (lib (string-append out "/lib"))) - (with-directory-excursion lib - (delete-file "libeditorconfig_static.a")) - #t)))))) + (list + #:cmake cmake-3.25 + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'insert-tests + (lambda* (#:key inputs #:allow-other-keys) + (let ((tests (assoc-ref inputs "tests"))) + (copy-recursively tests "tests")) + #t)) + (add-after 'insert-tests 'disable-failing-tests + (lambda _ + (substitute* "tests/parser/CMakeLists.txt" + (("# Test max property name and values") + "# Disabled: test max property name and values\nif(FALSE)\n") + (("# Test max section names") + "endif()\n\n# Test max section names")))) + (add-after 'install 'delete-static-library + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (with-directory-excursion lib + (delete-file "libeditorconfig_static.a")) + #t)))))) (native-inputs `(("tests" ,(origin diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index c693e043c4..ae8bce7b3e 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -1463,6 +1463,7 @@ reading and writing CSV and TSV files.") (arguments ;; Required to locate the install script properly. `(#:out-of-source? #f + #:tests? #f #:parallel-build? #f ;occasionally failed. #:imported-modules (,@%cmake-build-system-modules diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 79bfe7827f..7eefc31928 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -978,7 +978,8 @@ number generator") (base32 "0ldqhvmj9wl0yp3hz675zbnq69lw533s0ahy9bbdxxnj5gjb86gw")))) (build-system cmake-build-system) (arguments - (list #:configure-flags + (list #:parallel-tests? #f + #:configure-flags #~(list "-DCMAKE_C_FLAGS=-Wno-error=calloc-transposed-args" "-DUSE_SHARED_MBEDTLS_LIBRARY=ON" "-DUSE_STATIC_MBEDTLS_LIBRARY=OFF") @@ -1230,9 +1231,18 @@ ciphers such as ChaCha20, Curve25519, NTRU, and Blake2b.") (build-system cmake-build-system) (native-inputs (list perl)) (arguments - '(#:test-target "run_minimal_tests" - #:configure-flags - '("-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON"))) + (list + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "run_minimal_tests" args)))))) (synopsis "General purpose cryptographic library") (description "AWS libcrypto (aws-lc) contains portable C implementations of algorithms needed for TLS and common applications, and includes optimized diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 368a01941b..cbdb31e3fe 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2833,9 +2833,14 @@ projects while introducing many more.") (list #:tests? #false ; no tests #:make-flags #~(list (string-append "PREFIX=" #$output) (string-append "CC=" #+(cc-for-target))) + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases #~(modify-phases %standard-phases (delete 'configure) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'wrap-executable (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -4151,7 +4156,7 @@ be used for realtime video capture via Linux-specific APIs.") (build-system cmake-build-system) (arguments (list - #:cmake cmake-next ;needs cmake >= 3.28 + #:tests? #f #:configure-flags #~(let ((libdir (string-append (assoc-ref %outputs "out") "/lib"))) (list (string-append "-DOBS_VERSION_OVERRIDE=" #$version) @@ -6112,7 +6117,8 @@ create smoother and stable videos.") qtsvg-5 zeromq)) (arguments - `(#:configure-flags + `(#:tests? #f + #:configure-flags (list (string-append "-DPYTHON_MODULE_PATH:PATH=" %output "/lib/python" ,(version-major+minor (package-version python)) "/site-packages") diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 89a001b51c..b67f5b1373 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -811,7 +811,8 @@ is based on Vim's builtin plugin support.") "1j3z7jay0m6g06v04falrzr062g07xr4svbrc3hywlqi2h6rrvk5")))) (build-system cmake-build-system) (arguments - (list #:modules + (list #:tests? #f + #:modules '((srfi srfi-26) (guix build cmake-build-system) (guix build utils)) #:configure-flags diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm index c4051c7672..c7883d1bbc 100644 --- a/gnu/packages/vnc.scm +++ b/gnu/packages/vnc.scm @@ -372,7 +372,7 @@ used to connect to VNC servers such as the tigervnc-server package.") libtool gettext-minimal font-util - cmake + cmake-minimal perl))) (inputs (modify-inputs (append (package-inputs xorg-server) diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 1df4e9d1c5..53e6e9d4b1 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -190,7 +190,16 @@ SPIR-V, aiming to emit GLSL or MSL that looks like human-written code.") (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" #$output "/lib") "-DBUILD_SHARED_LIBS=ON" - "-DLLVM_SPIRV_INCLUDE_TESTS=ON"))) + "-DLLVM_SPIRV_INCLUDE_TESTS=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "test" args)))))) (inputs (list llvm-18)) (native-inputs (list clang-18 llvm-18 python-lit spirv-headers)) (home-page "https://github.com/KhronosGroup/SPIRV-LLVM-Translator") @@ -216,8 +225,7 @@ translation between LLVM IR and SPIR-V.") (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - `(#:cmake ,cmake-minimal-3.30 - #:configure-flags '("-DBUILD_SHARED_LIBS=ON" + `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DALLOW_EXTERNAL_SPIRV_TOOLS=ON" ,@(if (target-riscv64?) `("-DCMAKE_EXE_LINKER_FLAGS=-latomic") @@ -371,6 +379,7 @@ Enhanced Subpixel Morphological Anti-Aliasing ;; Limit the tests to those architectures tested upstream. #:tests? (and (not (%current-target-system)) (target-x86?)) + #:parallel-tests? #f #:configure-flags #~(list (string-append "-DVULKAN_HEADERS_INSTALL_DIR=" (dirname (dirname diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index c5048ece31..a9b5f732ab 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1712,12 +1712,27 @@ current version of any major web browser.") (delete-file-recursively "bin/jsonchecker"))))) (build-system cmake-build-system) (arguments - '(#:phases + '(#:configure-flags (list "-DCMAKE_CXX_FLAGS=-Wno-free-nonheap-object") + #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-march=native (lambda _ (substitute* "CMakeLists.txt" - (("-m[^-]*=native") ""))))))) + (("-m[^-]*=native") "")))) + (add-after 'fix-march=native 'skip-deleted-tests + (lambda _ + (substitute* "test/unittest/CMakeLists.txt" + (("jsoncheckertest.cpp") "")))) + (add-after 'fix-march=native 'fix-dependencies + (lambda _ + (substitute* "test/CMakeLists.txt" + (("^find_package\\(GTestSrc\\)") + "find_package(GTest REQUIRED)") + ((".*GTEST_SOURCE_DIR.*") "") + (("GTESTSRC_FOUND)") + "GTest_FOUND)"))))))) + (native-inputs (list valgrind/pinned)) + (inputs (list googletest)) (home-page "https://github.com/Tencent/rapidjson") (synopsis "JSON parser/generator for C++ with both SAX/DOM style API") (description @@ -1766,7 +1781,8 @@ C.") (search-patches "yajl-CVE-2023-33460.patch")))) (build-system cmake-build-system) (arguments - '(#:phases + '(#:tests? #f + #:phases (modify-phases %standard-phases (add-after 'patch-source-shebangs 'patch-tests (lambda _ @@ -1853,8 +1869,10 @@ for efficient socket-like bidirectional reliable communication channels.") (list ;; Tests on non-x86_64 architectures are not well supported upstream. #:tests? (target-x86-64?) - #:test-target "run-tests" #:configure-flags '(list "-DUSE_SYSTEM_GTEST=ON") + #:modules '((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) #:phases '(modify-phases %standard-phases (add-after 'unpack 'use-gcc @@ -1862,7 +1880,11 @@ for efficient socket-like bidirectional reliable communication channels.") ;; XXX This is the only test that fails. (add-after 'unpack 'delete-broken-test (lambda _ - (delete-file "test/wasm2c/spec/memory_init.txt")))))) + (delete-file "test/wasm2c/spec/memory_init.txt"))) + (replace 'check + (lambda* (#:rest args) + (apply (assoc-ref gnu:%standard-phases 'check) + #:test-target "run-tests" args)))))) (native-inputs (list python googletest)) (home-page "https://github.com/WebAssembly/wabt") (synopsis "WebAssembly Binary Toolkit") @@ -1990,7 +2012,8 @@ features.") (patches (search-patches "websocketpp-fix-for-cmake-3.15.patch")))) (build-system cmake-build-system) (inputs (list boost openssl)) - (arguments '(#:configure-flags '("-DBUILD_TESTS=ON") + (arguments '(#:parallel-tests? #f + #:configure-flags '("-DBUILD_TESTS=ON") #:phases (modify-phases %standard-phases (add-after 'install 'remove-tests @@ -7626,6 +7649,7 @@ protocols.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" "-DCIVETWEB_ENABLE_CXX=ON" @@ -9031,6 +9055,7 @@ HTTrack is fully configurable, and has an integrated help system.") (build-system cmake-build-system) (arguments (list + #:tests? #f #:phases '(modify-phases %standard-phases (add-after 'unpack 'use-system-googletest @@ -9577,7 +9602,7 @@ grepping the list.") (define-public libzim (package (name "libzim") - (version "8.2.1") + (version "9.3.0") (source (origin (method git-fetch) (uri (git-reference @@ -9585,7 +9610,7 @@ grepping the list.") (commit version))) (sha256 (base32 - "1g735aqw0vlxqgyjv02lvq24dr5shydp4y8mqianf8720s5fs73f")) + "1il1vc1hs954s3vnwhr337165dxbykvrldrvbilp5jxbkmwqb60d")) (file-name (git-file-name name version)))) (build-system meson-build-system) (arguments @@ -9611,7 +9636,7 @@ for ZIM files.") (define-public kiwix-lib (package (name "kiwix-lib") - (version "13.0.0") + (version "14.0.0") (home-page "https://github.com/kiwix/kiwix-lib/") (source (origin (method git-fetch) @@ -9620,7 +9645,7 @@ for ZIM files.") (commit version))) (sha256 (base32 - "0mvlppbj0mqn4ka3cfaaj1pvn062cxbgz01c0nq04x0mzq1xwh5w")) + "099arjsx1wgz5jhvzn49859wh0v8n3ya33kmnqaw69h55mjvgza0")) (file-name (git-file-name name version)))) (build-system meson-build-system) (arguments @@ -9656,7 +9681,7 @@ It contains the code shared by all Kiwix ports.") (define-public kiwix-desktop (package (name "kiwix-desktop") - (version "2.3.1") + (version "2.4.1") (source (origin (method url-fetch) (uri (string-append @@ -9665,18 +9690,23 @@ It contains the code shared by all Kiwix ports.") ".tar.gz")) (sha256 (base32 - "0hlk05gcb3fmnxhwj6gan51v98rdq3iv2lklwbpmm1bazmz8i7br")) - (patches (search-patches "kiwix-desktop-newer-libkiwix.patch")))) + "1vkmk9j2jii7ri4lcayr0dr5b2w3dc24lyqmm3g4234834b1f4wl")))) (build-system qt-build-system) (arguments - `(#:test-target "check" - #:phases - (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (invoke "qmake" - (string-append "PREFIX=" - (assoc-ref outputs "out")))))))) + (list + #:tests? #f ; no tests + #:modules '((guix build qt-build-system) + ((guix build gnu-build-system) #:prefix gnu:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (invoke "qmake" + (string-append "PREFIX=" + (assoc-ref outputs "out"))))) + (replace 'build (assoc-ref gnu:%standard-phases 'build)) + (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (inputs (list bash-minimal curl @@ -9705,14 +9735,14 @@ offline (such as Wikipedia), without any access to Internet.") (define-public kiwix-tools (package (name "kiwix-tools") - (version "3.5.0") + (version "3.7.0") (source (origin (method url-fetch) (uri (string-append "https://download.kiwix.org/release/" "kiwix-tools/kiwix-tools-" version ".tar.xz")) (sha256 (base32 - "0q6b7viy1jr212q0glqid2hqxnsd2mxsx5gzcalkc4gb0bzgj32d")))) + "032lzzgn3hicai4lx701cs6h731cs29x1h59j9gggcgrp1n4wxks")))) (build-system meson-build-system) (inputs (list curl diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 52642760e0..92f86c25f8 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -393,8 +393,7 @@ loginctl commands (lock/unlock/before-sleep) and inhibit.") "0mn97wlzc5ccywbq87ka7a27jajkdkgypkfzkcan014viph80wif")))) (build-system cmake-build-system) (arguments - (list #:cmake cmake-next - #:tests? #f ;No tests. + (list #:tests? #f ;No tests. #:configure-flags #~'("-DNO_HYPRPM=True") #:phases #~(modify-phases %standard-phases diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 7737aed2b1..13cbcc94d8 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -261,8 +261,7 @@ command line, without displaying a keyboard at all.") "0cwbd9cdbg40frhircwfbaxdqh11s8jqq9dqy228j9zvb27y2b72")))) (build-system cmake-build-system) (arguments - (list #:cmake cmake-next - ;; TODO: Figure out what's expected in the test environment. + (list ;; TODO: Figure out what's expected in the test environment. #:tests? #f)) (native-inputs (list gcc-15 hyprwayland-scanner pkg-config)) @@ -3411,8 +3410,7 @@ virtual-pointer (pointer command) protocols.") (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_TESTING=ON") - #:phases #~(modify-phases %standard-phases + (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-problematic-tests (lambda _ (substitute* "config_parser_test.cc" @@ -3944,9 +3942,7 @@ This package is the fork of hsetroot by Hyriand.") (base32 "0h0iibncjl780nnwvf1mfmqckdzzc4b4fphflj4mq56nswf697ha")))) (build-system cmake-build-system) (arguments - (list - #:cmake cmake-next - #:tests? #f)) ;No tests. + (list #:tests? #f)) ;No tests. (native-inputs (list gcc-15 pkg-config)) @@ -3984,8 +3980,7 @@ reduce percieved brightness below the monitor's minimum.") (base32 "1f0vcp0c9d3m9v3avajprpv14khnv3wk3y9fi3pcwr5xf2alaxv2")))) (build-system cmake-build-system) (arguments - `(#:cmake ,cmake-next - #:phases + `(#:phases (modify-phases %standard-phases ;; remove when fixed (add-after 'unpack 'fixgldiscover @@ -4034,9 +4029,7 @@ GPU-accelerated screen locking utility.") (base32 "0j3hbqfx40cjxkvaiqzfij8pgblg2hyv9lbbjjh4iahciwgh7623")))) (build-system cmake-build-system) - (arguments - `(#:tests? #f ;; no test - #:cmake ,cmake-next)) + (arguments '(#:tests? #f)) ;; no test (native-inputs (list gcc-14 pkg-config)) (inputs (list cairo |