[core-updates PATCH 00/19] Use CMake in build-system/cmake.

  • Open
  • quality assurance status badge
Details
2 participants
  • Greg Hogan
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Greg Hogan
Severity
normal
G
G
Greg Hogan wrote on 27 Mar 15:49 +0100
(address . guix-patches@gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
cover.1711549374.git.code@greghogan.com
Following up on this discussion from 2+ years ago:

The current cmake-build-system defers to gnu-build-system to build and
check packages. This patch adapts the cmake-build-system to use CMake
commands. The benefits include:

1) Tests can run in parallel. Make (from the gnu-build-system) treats
ctest as a single target so cannot parallelize tests. By directly
running ctest the tests are run with optional parallelism.

2) Alternative generators, namely Ninja. When configured with an
alternative generator the CMake build, check, and install commands will
use that generator and the package need not replace each phase.

The simplification can be seen in the included patch for astroid. Ninja
must still be included (both the module and native input) and the
generator specified:

(use-modules
(gnu packages ninja))

(arguments
(list #:generator "Ninja"))

(native-inputs (list ninja))

This compares with the current requirement to override flags and phases:

(arguments
(list
#:configure-flags #~(list "-GNinja")
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda _
(invoke "ninja" "-j" (number->string (parallel-job-count)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "CTEST_OUTPUT_ON_FAILURE" "1")
(invoke "ctest" "."))))
(replace 'install
(lambda _
(invoke "ninja" "install"))))))

It would be nice to include the ninja module and ninja as a native input
by default when using the cmake-build-system, but I do not think this is
possible due to circular dependencies with Python and CMake, the two
supported build methods for Ninja.

Greg Hogan (19):
build-system/cmake: Parallelize tests using ctest.
build-system/cmake: Parameterize build system generator.
build-system/cmake: Add build.
build-system/cmake: Add install.
gnu: libmedfile: Disable parallel tests.
gnu: srt: Disable parallel tests.
gnu: fish: Fix tests.
gnu: vulkan-loader: Disable parallel tests.
gnu: igraph: Move test target to check phase.
gnu: inkscape: Move test target to check phase.
gnu: vigra: Move test target to check phase.
gnu: cpp-httplib: Disable parallel tests.
gnu: libical: Disable parallel tests.
gnu: astroid: Remove custom phases.
gnu: websocketpp: Disable parallel tests.
gnu: mbedtls-lts: Disable parallel tests.
gnu: scotch: Disable parallel tests.
gnu: evolution-data-server: Disable parallel tests.
gnu: aws-c-common: Disable parallel tests.

doc/guix.texi | 4 +++
gnu/packages/c.scm | 3 +-
gnu/packages/calendar.scm | 1 +
gnu/packages/cpp.scm | 3 +-
gnu/packages/engineering.scm | 3 +-
gnu/packages/gnome.scm | 1 +
gnu/packages/graph.scm | 5 +++-
gnu/packages/image.scm | 9 ++++--
gnu/packages/inkscape.scm | 8 ++++--
gnu/packages/mail.scm | 16 ++---------
gnu/packages/maths.scm | 3 +-
gnu/packages/networking.scm | 3 +-
gnu/packages/shells.scm | 5 ++++
gnu/packages/tls.scm | 3 +-
gnu/packages/vulkan.scm | 1 +
gnu/packages/web.scm | 3 +-
guix/build-system/cmake.scm | 4 +++
guix/build/cmake-build-system.scm | 46 +++++++++++++++++++++++++------
18 files changed, 85 insertions(+), 36 deletions(-)


base-commit: 656baadf83f2812c0ff79f4f2f0b5f1e927ed8a5
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 01/19] build-system/cmake: Parallelize tests using ctest.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
cbc2309b5444207bb5805ca67241b572d545b104.1711549374.git.code@greghogan.com
* guix/build/cmake-build-system.scm (check): Replace call to gnu-build's
non-parallelizable check with an implementation using cmake's ctest.
---
guix/build/cmake-build-system.scm | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)

Toggle diff (45 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index d1ff5071be5..ea342ff2ac9 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -23,6 +23,7 @@ (define-module (guix build cmake-build-system)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module (guix build utils)
#:use-module (ice-9 match)
+ #:use-module (srfi srfi-34)
#:export (%standard-phases
cmake-build))
@@ -77,12 +78,25 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "running 'cmake' with arguments ~s~%" args)
(apply invoke "cmake" args))))
-(define* (check #:key (tests? #t) (parallel-tests? #t) (test-target "test")
+(define %test-suite-log-regexp
+ ;; Name of test suite log files as commonly found in CMake.
+ "^LastTestFailed\\.log$")
+
+(define* (check #:key (tests? #t) (parallel-tests? #t)
+ (test-suite-log-regexp %test-suite-log-regexp)
#:allow-other-keys)
- (let ((gnu-check (assoc-ref gnu:%standard-phases 'check)))
- (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
- (gnu-check #:tests? tests? #:test-target test-target
- #:parallel-tests? parallel-tests?)))
+ (if tests?
+ (guard (c ((invoke-error? c)
+ ;; Dump the test suite log to facilitate debugging.
+ (display "\nTest suite failed, dumping logs.\n"
+ (current-error-port))
+ (gnu:dump-file-contents "." test-suite-log-regexp)
+ (raise c)))
+ (apply invoke "ctest" "--output-on-failure"
+ `(,@(if parallel-tests?
+ `("-j" ,(number->string (parallel-job-count)))
+ '()))))
+ (format #t "test suite not run~%")))
(define %standard-phases
;; Everything is as with the GNU Build System except for the `configure'
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 03/19] build-system/cmake: Add build.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
adaf97000bd461508b11da115413d2055fc00856.1711549374.git.code@greghogan.com
* guix/build/cmake-build-system.scm (build): New function to replace
the make build with the cmake build command.
---
guix/build/cmake-build-system.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

Toggle diff (33 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 1775f7a7509..8f1c80aeb64 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -81,6 +81,14 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "running 'cmake' with arguments ~s~%" args)
(apply invoke "cmake" args))))
+(define* (build #:key (parallel-build? #t) #:allow-other-keys)
+ (apply invoke "cmake"
+ `("--build"
+ "."
+ ,@(if parallel-build?
+ `("-j" ,(number->string (parallel-job-count)))
+ '()))))
+
(define %test-suite-log-regexp
;; Name of test suite log files as commonly found in CMake.
"^LastTestFailed\\.log$")
@@ -102,10 +110,9 @@ (define* (check #:key (tests? #t) (parallel-tests? #t)
(format #t "test suite not run~%")))
(define %standard-phases
- ;; Everything is as with the GNU Build System except for the `configure'
- ;; and 'check' phases.
(modify-phases gnu:%standard-phases
(delete 'bootstrap)
+ (replace 'build build)
(replace 'check check)
(replace 'configure configure)))
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 02/19] build-system/cmake: Parameterize build system generator.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
928c4ed06ed4eb8adc84d4926d2f6640b3ff52ec.1711549374.git.code@greghogan.com
* guix/build-system/cmake.scm (cmake-build): Add generator parameter
defaulted to the default CMake build system generator.
* guix/build/cmake-build-system.scm (configure): Add and use generator
parameter to configure the build system.
* doc/guix.texi (Build Systems): Document #:generator for
cmake-build-system.
---
doc/guix.texi | 4 ++++
guix/build-system/cmake.scm | 4 ++++
guix/build/cmake-build-system.scm | 5 ++++-
3 files changed, 12 insertions(+), 1 deletion(-)

Toggle diff (76 lines)
diff --git a/doc/guix.texi b/doc/guix.texi
index ddd98a5fd46..782893b4f23 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9623,6 +9623,10 @@ Build Systems
it defaults to @code{"RelWithDebInfo"} (short for ``release mode with
debugging information''), which roughly means that code is compiled with
@code{-O2 -g}, as is the case for Autoconf-based packages by default.
+The @code{#:generator} parameter configures the native build system; it
+defaults to @code{"Unix Makefiles"} and can be changed to an alternative
+such as @code{Ninja} (the alternative generator must be available as
+both a module and native input).
@end defvar
@defvar composer-build-system
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index aa187c9844b..a4d69276748 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -101,6 +101,7 @@ (define* (cmake-build name inputs
(search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #t)
(test-target "test")
@@ -140,6 +141,7 @@ (define* (cmake-build name inputs
configure-flags)
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
@@ -177,6 +179,7 @@ (define* (cmake-cross-build name
(native-search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #f) ; nothing can be done
(test-target "test")
@@ -231,6 +234,7 @@ (define* (cmake-cross-build name
#:configure-flags #$configure-flags
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index ea342ff2ac9..1775f7a7509 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -34,7 +34,7 @@ (define-module (guix build cmake-build-system)
;; Code:
(define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
- build-type target
+ build-type target generator
#:allow-other-keys)
"Configure the given package."
(let* ((out (assoc-ref outputs "out"))
@@ -50,6 +50,9 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "build directory: ~s~%" (getcwd))
(let ((args `(,srcdir
+ ,@(if generator
+ (list (string-append "-G" generator))
+ '())
,@(if build-type
(list (string-append "-DCMAKE_BUILD_TYPE="
build-type))
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 04/19] build-system/cmake: Add install.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
4e4097bdce2d41c010f6300b725c492e95b8a5c9.1711549374.git.code@greghogan.com
* guix/build/cmake-build-system.scm (build): New function to replace
make install with the cmake install command.
---
guix/build/cmake-build-system.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Toggle diff (24 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 8f1c80aeb64..c3e095425f9 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -109,12 +109,16 @@ (define* (check #:key (tests? #t) (parallel-tests? #t)
'()))))
(format #t "test suite not run~%")))
+(define* (install #:rest args)
+ (invoke "cmake" "--install" "."))
+
(define %standard-phases
(modify-phases gnu:%standard-phases
(delete 'bootstrap)
(replace 'build build)
(replace 'check check)
- (replace 'configure configure)))
+ (replace 'configure configure)
+ (replace 'install install)))
(define* (cmake-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args)
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 05/19] gnu: libmedfile: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
d7cf9e7277f7993791b9624260f50d5908508bab.1711549374.git.code@greghogan.com
* gnu/packages/engineering.scm (libmedfile): Disable parallel tests.
---
gnu/packages/engineering.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 6af0c75eb2b..802f45f5cf6 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2941,7 +2941,8 @@ (define-public libmedfile
(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)
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 06/19] gnu: srt: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
69153829550bf00f123b1d21d4c2624e2f9ab78e.1711549374.git.code@greghogan.com
* gnu/packages/networking.scm (srt): Disable parallel tests.
---
gnu/packages/networking.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 3a743730a63..de89ba91e7e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -642,7 +642,8 @@ (define-public srt
(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")
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 07/19] gnu: fish: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
9260bab870fadbfc6f9fad757eac2deb80813cec.1711549374.git.code@greghogan.com
* gnu/packages/shells.scm (fish)[arguments]: Replace 'check phase to
properly build and run tests.

Change-Id: I1f5d82d7b4e817be3863ae7aff4798774b15cc2f
---
gnu/packages/shells.scm | 5 +++++
1 file changed, 5 insertions(+)

Toggle diff (18 lines)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index ae4e73956e6..e4856d94c8a 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -243,6 +243,11 @@ (define-public fish
port)
(close-port port))
#t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Test artifacts and actions are built with the 'test' target.
+ (invoke "make" "test"))))
;; Use fish-foreign-env to source /etc/profile.
(add-before 'install 'source-etc-profile
(lambda* (#:key inputs #:allow-other-keys)
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 08/19] gnu: vulkan-loader: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e3e9f78b07271c5a46858d09ad2d17c3205745e7.1711549374.git.code@greghogan.com
* gnu/packages/vulkan.scm (vulkan-loader): Disable parallel tests.
---
gnu/packages/vulkan.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 285d6be7f59..ce7bbef02a8 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -266,6 +266,7 @@ (define-public vulkan-loader
;; Limit the tests to those architectures tested upstream.
#:tests? (and (%current-system)
(target-x86?))
+ #:parallel-tests? #f
#:configure-flags
#~(list (string-append "-DVULKAN_HEADERS_INSTALL_DIR="
(dirname (dirname
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 09/19] gnu: igraph: Move test target to check phase.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
1be9ed6dba126f3705d7c7c25364c58586994e13.1711549374.git.code@greghogan.com
* gnu/packages/graph.scm (igraph)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.

Change-Id: Idf5a8913e22f30b1aa02fdad12212bf690ddc0c4
---
gnu/packages/graph.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Toggle diff (25 lines)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index a3607689a3e..30dd1a59cfa 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -142,7 +142,6 @@ (define-public igraph
;; 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"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'version-file
@@ -174,6 +173,10 @@ (define-public igraph
(add-after 'build 'build-doc
(lambda _
(invoke "cmake" "--build" "." "--target" "html")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "check"))))
(add-after 'install 'install-doc
(lambda _
(copy-recursively
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 10/19] gnu: inkscape: Move test target to check phase.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
f7fb1c465b5f80e4a47913b34f4d761da763615d.1711549374.git.code@greghogan.com
* gnu/packages/inkscape.scm (inkscape)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.

Change-Id: I2d7046baaaa5bfcd6909d0d9dc3e6e6c4eb3e1e3
---
gnu/packages/inkscape.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

Toggle diff (28 lines)
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm
index aa2c6419a09..9ce9f81cfda 100644
--- a/gnu/packages/inkscape.scm
+++ b/gnu/packages/inkscape.scm
@@ -156,8 +156,7 @@ (define-public inkscape/stable
((".*find_package\\(DoubleConversion.*") ""))))))
(build-system cmake-build-system)
(arguments
- `(#:test-target "check" ;otherwise some test binaries are missing
- #:imported-modules (,@%cmake-build-system-modules
+ `(#:imported-modules (,@%cmake-build-system-modules
(guix build glib-or-gtk-build-system))
#:modules ((guix build cmake-build-system)
((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
@@ -220,7 +219,10 @@ (define-public inkscape/stable
;; as the "share/inkscape/ui/units.xml" file.
(delete 'check)
(add-after 'install 'check
- (assoc-ref %standard-phases 'check))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Test artifacts and actions are built with the 'test' target.
+ (invoke "make" "check"))))
(add-after 'install 'glib-or-gtk-compile-schemas
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
(add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 11/19] gnu: vigra: Move test target to check phase.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
fe1d72f5131b889c4c91b0f2ef4b134c879ab62f.1711549374.git.code@greghogan.com
* gnu/packages/image.scm (vigra)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.

Change-Id: I6465caaff8c249373537652d001b22a4d9eafe09
---
gnu/packages/image.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 6accf68ef09..45ded6af04b 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1370,8 +1370,7 @@ (define-public vigra
("python-nose" ,python-nose)
("sphinx" ,python-sphinx)))
(arguments
- `(#:test-target "check"
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-tests
(lambda _
@@ -1382,7 +1381,11 @@ (define-public vigra
;; <https://github.com/ukoethe/vigra/issues/436>.
(substitute* "vigranumpy/test/CMakeLists.txt"
(("test1\\.py") ""))
- #t)))
+ #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "check")))))
#:configure-flags
(list "-Wno-dev" ; suppress developer mode with lots of warnings
(string-append "-DVIGRANUMPY_INSTALL_DIR="
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 12/19] gnu: cpp-httplib: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
aeafb6d598439263d053a8cb3a464e0e307db75b.1711549374.git.code@greghogan.com
* gnu/packages/cpp.scm (cpp-httplib): Disable parallel tests.
---
gnu/packages/cpp.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index acbe3e4836b..1f9f4db2712 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -981,7 +981,8 @@ (define-public cpp-httplib
(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"
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 13/19] gnu: libical: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
5e2ad71f569addfc661c5fec04ce15dcd9cc644d.1711549374.git.code@greghogan.com
* gnu/packages/calendar.scm (libical): Disable parallel tests.
---
gnu/packages/calendar.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm
index 7c75b225871..1dd068603bb 100644
--- a/gnu/packages/calendar.scm
+++ b/gnu/packages/calendar.scm
@@ -135,6 +135,7 @@ (define-public libical
(build-system cmake-build-system)
(arguments
(list
+ #:parallel-tests? #f
#:configure-flags #~(list "-DSHARED_ONLY=true"
;; required by evolution-data-server
"-DGOBJECT_INTROSPECTION=true"
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 14/19] gnu: astroid: Remove custom phases.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
567ffcd595b40938fefee7d90de6dea3fcafee23.1711549375.git.code@greghogan.com
* gnu/packages/mail.scm (astroid)[arguments]:
Disable parallel tests.
Add generator.
Remove custom 'build, 'check, and 'install phases.
---
gnu/packages/mail.scm | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)

Toggle diff (47 lines)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 23c78a6db5b..e99736752f0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -903,13 +903,14 @@ (define-public astroid
(("\\\\n\\.\\.\\.") "\\n...\\n"))))))
(build-system cmake-build-system)
(arguments
- `(#:modules ((guix build cmake-build-system)
+ `(#:parallel-tests? #f
+ #: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
@@ -920,23 +921,12 @@ (define-public astroid
(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"))
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 15/19] gnu: websocketpp: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
eacccc2f20cfb8fb655fc7eb66d2b06b977d6f1b.1711549375.git.code@greghogan.com
* gnu/packages/web.scm (websocketpp): Disable parallel tests.

Change-Id: I9fd6247cf59b26a1d8c08398b2408884fd0f4848
---
gnu/packages/web.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index aab3ae18390..6a4f647e704 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1802,7 +1802,8 @@ (define-public websocketpp
(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
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 16/19] gnu: mbedtls-lts: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
b459b597c2092eeca358ff5992c5e080f449505f.1711549375.git.code@greghogan.com
* gnu/packages/tls.scm (mbedtls-lts): Disable parallel tests.

Change-Id: Ibaa4af6d12c9e8db931c0038b2bba9fbf1959592
---
gnu/packages/tls.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 2f212e9f90f..99830f5e10d 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -988,7 +988,8 @@ (define-public mbedtls-lts
(base32 "070i5pxciw04swfqk1rmdprhsafn4cias3dlmkm467pqpjnhb394"))))
(build-system cmake-build-system)
(arguments
- (list #:configure-flags
+ (list #:parallel-tests? #f
+ #:configure-flags
#~(list "-DUSE_SHARED_MBEDTLS_LIBRARY=ON"
"-DUSE_STATIC_MBEDTLS_LIBRARY=OFF")
#:phases
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 17/19] gnu: scotch: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
dd3dbc8c2293ec75814bde84c1ce2c433a4fc935.1711549375.git.code@greghogan.com
* gnu/packages/maths.scm (scotch): Disable parallel tests.

Change-Id: Ic1368158890b64fe485b197749e2f44b621733f8
---
gnu/packages/maths.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 1b4d3256493..7765a703e32 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4509,7 +4509,8 @@ (define-public scotch
(list flex bison gfortran))
(outputs '("out" "metis"))
(arguments
- `(#:configure-flags '("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64"
+ `(#:parallel-tests? #f
+ #:configure-flags '("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64"
"-DBUILD_PTSCOTCH=OFF")
#:phases
(modify-phases %standard-phases
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 18/19] gnu: evolution-data-server: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
9f1f7b5c881ce4ca9355b124f896ac094dd4eb50.1711549375.git.code@greghogan.com
* gnu/packages/gnome.scm (evolution-data-server): Disable parallel
tests.

Change-Id: Ib56a2b25aa331763f72d2fd5ad034aee9b8f2d83
---
gnu/packages/gnome.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 06256066bc1..13387cb3b6e 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8141,6 +8141,7 @@ (define-public evolution-data-server
(build-system cmake-build-system)
(arguments
(list
+ #:parallel-tests? #f
#:configure-flags
#~(let* ((lib (string-append #$output "/lib"))
(runpaths (map (lambda (s)
--
2.44.0
G
G
Greg Hogan wrote on 27 Mar 15:52 +0100
[core-updates PATCH 19/19] gnu: aws-c-common: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
ad4f5d191e4dcc730217f35e53cc08943142f067.1711549375.git.code@greghogan.com
* gnu/packages/c.scm (aws-c-common): Disable parallel tests.

Change-Id: I7b8fb481e21ca6c61417ab3664f796998fe971ae
---
gnu/packages/c.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index c004aade73d..0e9662eea55 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -866,7 +866,8 @@ (define-public aws-c-common
"089grcj58n4xs41kmnpaqpwsalcisjbqqb5yqahxxyfx2lf1j9c9"))))
(build-system cmake-build-system)
(arguments
- '(#:configure-flags
+ '(#:parallel-tests? #f
+ #:configure-flags
'("-DBUILD_SHARED_LIBS=ON")))
(synopsis "Amazon Web Services core C library")
(supported-systems '("i686-linux" "x86_64-linux"))
--
2.44.0
M
M
Maxim Cournoyer wrote on 31 Mar 01:36 +0100
Re: [bug#70031] [core-updates PATCH 18/19] gnu: evolution-data-server: Disable parallel tests.
(name . Greg Hogan)(address . code@greghogan.com)
87y19zxmn0.fsf@gmail.com
Hi Greg,

Greg Hogan <code@greghogan.com> writes:

Toggle quote (21 lines)
> * gnu/packages/gnome.scm (evolution-data-server): Disable parallel
> tests.
>
> Change-Id: Ib56a2b25aa331763f72d2fd5ad034aee9b8f2d83
> ---
> gnu/packages/gnome.scm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 06256066bc1..13387cb3b6e 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -8141,6 +8141,7 @@ (define-public evolution-data-server
> (build-system cmake-build-system)
> (arguments
> (list
> + #:parallel-tests? #f
> #:configure-flags
> #~(let* ((lib (string-append #$output "/lib"))
> (runpaths (map (lambda (s)

A comment/upstream issue link would be nice.

--
Thanks,
Maxim
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 00/65] Use CMake in build-system/cmake.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
cover.1729619913.git.code@greghogan.com
This update follows the original submission in March based on a mailing
list discussion from 3+ years ago regarding cmake-build-system tests not
running in parallel.

Additional improvements have made, allowing packages to use CMake
features by default or by configuration rather than rewriting phases:

1) Tests can run in parallel. Make (from the gnu-build-system) treats
ctest as a single target so cannot parallelize tests. By directly
running ctest the tests are run with optional parallelism.

2) Alternative generators, namely Ninja. When configured with an
alternative generator the CMake build, check, and install commands will
use that generator and the package need not replace each phase. This is
now simply accomplished with a #:generator argument.

3) Adds a #:test-exclude parameter to cmake-build-system, updates
several packages to use this, and forces CMake to disable parallelism
when :#test-parallelism is #false. Both changes were recommended by
Zheng Junjie.

4) The CMake variable BUILD_TESTING is now set to the value of the build
system's 'tests?' field which allows packages to optionally skip
building tests. Furthermore, the CMake variables are stored into and
loaded via a 'cache' file to prevent warnings about unused variables.

5) Updates CMake and pins packages with CMake as a native-input to use
cmake-minimal.

Greg Hogan (65):
build-system/cmake: Parallelize tests using ctest.
build-system/cmake: Add generator fields.
build-system/qt: Add generator fields.
build-system/cmake: Add generator.
build-system/cmake: Add build.
build-system/cmake: Add install.
build-system/cmake: Add test-exclude fields.
build-system/qt: Add test-exclude fields.
build-system/cmake: Add test exclusion.
build-system/cmake: Optionally build tests.
build-system/cmake: Include ninja.
build-system/qt: Include ninja.
gnu: astroid: Remove custom phases.
gnu: rdma-core: Remove custom phases.
gnu: fish: Fix tests.
gnu: igraph: Fix tests.
gnu: inkscape: Fix tests.
gnu: inkscape/stable: Fix tests.
gnu: kirigami: Fix tests.
gnu: kirigami-5: Disable tests.
gnu: vigra: Fix tests.
gnu: cpp-httplib: Disable parallel tests.
gnu: evolution-data-server: Disable parallel tests.
gnu: kservice: Disable parallel tests.
gnu: libical: Disable parallel tests.
gnu: libmedfile: Disable parallel tests.
gnu: mbedtls-lts: Disable parallel tests.
gnu: scotch: Disable parallel tests.
gnu: srt: Disable parallel tests.
gnu: vulkan-loader: Disable parallel tests.
gnu: websocketpp: Disable parallel tests.
gnu: dbus-cxx: Use #:test-exclude.
gnu: hotspot: Use #:test-exclude.
gnu: kconfig-5: Use #:test-exclude.
gnu: nextcloud-client: Use #:test-exclude.
gnu: pdal: Use :#test-exclude and disable parallel tests.
gnu: qxmpp: Use #:test-exclude.
gnu: simgear: Use #:test-exclude.
gnu: cmake: Update to 3.30.5.
gnu: asymptote: Pin CMake dependency.
gnu: conan: Pin CMake dependency.
gnu: entangle: Pin CMake dependency.
gnu: go-mvdan-cc-editorconfig: Pin CMake dependency.
gnu: libdecor: Pin CMake dependency.
gnu: liblxi: Pin CMake dependency.
gnu: lxi-tools: Pin CMake dependency.
gnu: pantheon-calculator: Pin CMake dependency.
gnu: pantheon-calendar: Pin CMake dependency.
gnu: python-awkward-cpp: Pin CMake dependency.
gnu: python-contourpy: Pin CMake dependency.
gnu: python-keystone-engine: Pin CMake dependency.
gnu: python-lief: Pin CMake dependency.
gnu: python-optree: Pin CMake dependency.
gnu: python-pivy: Pin CMake dependency.
gnu: python-pytorch: Pin CMake dependency.
gnu: python-symengine: Pin CMake dependency.
gnu: raider: Pin CMake dependency.
gnu: siril: Pin CMake dependency.
gnu: soqt: Pin CMake dependency.
gnu: syndication-domination: Pin CMake dependency.
gnu: tigervnc-server: Pin CMake dependency.
gnu: trinityrnaseq: Pin CMake dependency.
gnu: unicorn: Pin CMake dependency.
gnu: wavbreaker: Pin CMake dependency.
gnu: xffm+: Pin CMake dependency.

doc/guix.texi | 33 +++++---
gnu/packages/astronomy.scm | 2 +-
gnu/packages/bioinformatics.scm | 4 +-
gnu/packages/calendar.scm | 1 +
gnu/packages/cmake.scm | 40 +++++-----
gnu/packages/cpp.scm | 3 +-
gnu/packages/emulators.scm | 4 +-
gnu/packages/engineering.scm | 3 +-
gnu/packages/freedesktop.scm | 2 +-
gnu/packages/games.scm | 8 +-
gnu/packages/geo.scm | 9 +--
gnu/packages/glib.scm | 10 +--
gnu/packages/gnome.scm | 5 +-
gnu/packages/golang-xyz.scm | 2 +-
gnu/packages/graph.scm | 10 ++-
gnu/packages/hardware.scm | 4 +-
gnu/packages/image.scm | 14 +++-
gnu/packages/inkscape.scm | 12 ++-
gnu/packages/kde-frameworks.scm | 21 +++--
gnu/packages/linux.scm | 59 ++++++--------
gnu/packages/machine-learning.scm | 2 +-
gnu/packages/mail.scm | 38 +++------
gnu/packages/maths.scm | 3 +-
gnu/packages/messaging.scm | 17 ++--
gnu/packages/mp3.scm | 2 +-
gnu/packages/networking.scm | 3 +-
gnu/packages/package-management.scm | 2 +-
gnu/packages/pantheon.scm | 4 +-
gnu/packages/photo.scm | 2 +-
gnu/packages/plotutils.scm | 2 +-
gnu/packages/python-xyz.scm | 12 +--
gnu/packages/qt.scm | 2 +-
gnu/packages/shells.scm | 9 +++
gnu/packages/sync.scm | 7 +-
gnu/packages/syndication.scm | 2 +-
gnu/packages/tls.scm | 3 +-
gnu/packages/vnc.scm | 2 +-
gnu/packages/vulkan.scm | 1 +
gnu/packages/web.scm | 3 +-
guix/build-system/cmake.scm | 12 +++
guix/build-system/qt.scm | 12 +++
guix/build/cmake-build-system.scm | 120 +++++++++++++++++++---------
42 files changed, 293 insertions(+), 213 deletions(-)


base-commit: 5b0afaca8a67402667ae620cc26eef06fbe144cb
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 01/65] build-system/cmake: Parallelize tests using ctest.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
1179fec17862e6fbd526842d2d517e01dfab9990.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (check): Replace call to gnu-build's
non-parallelizable check with an implementation using cmake's ctest.
---
guix/build/cmake-build-system.scm | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)

Toggle diff (54 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index d1ff5071be..1109b5c7c4 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2014, 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2024 Greg Hogan <code@greghogan.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,6 +24,7 @@ (define-module (guix build cmake-build-system)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module (guix build utils)
#:use-module (ice-9 match)
+ #:use-module (srfi srfi-34)
#:export (%standard-phases
cmake-build))
@@ -77,12 +79,26 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "running 'cmake' with arguments ~s~%" args)
(apply invoke "cmake" args))))
-(define* (check #:key (tests? #t) (parallel-tests? #t) (test-target "test")
+(define %test-suite-log-regexp
+ ;; Name of test suite log files as commonly found in CMake.
+ "^LastTest\\.log$")
+
+(define* (check #:key (tests? #t) (parallel-tests? #t)
+ (test-suite-log-regexp %test-suite-log-regexp)
#:allow-other-keys)
- (let ((gnu-check (assoc-ref gnu:%standard-phases 'check)))
- (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
- (gnu-check #:tests? tests? #:test-target test-target
- #:parallel-tests? parallel-tests?)))
+ (if tests?
+ (guard (c ((invoke-error? c)
+ ;; Dump the test suite log to facilitate debugging.
+ (display "\nTest suite failed, dumping logs.\n"
+ (current-error-port))
+ (gnu:dump-file-contents "." test-suite-log-regexp)
+ (raise c)))
+ (apply invoke "ctest" "--output-on-failure"
+ `(,@(if parallel-tests?
+ `("-j" ,(number->string (parallel-job-count)))
+ ;; When unset CMake defers to the build system.
+ '("-j" "1")))))
+ (format #t "test suite not run~%")))
(define %standard-phases
;; Everything is as with the GNU Build System except for the `configure'
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 03/65] build-system/qt: Add generator fields.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
f63d2e168207b322618b9bbf42baad56899f4a27.1729619913.git.code@greghogan.com
* guix/build-system/qt.scm (qt-build, qt-cross-build): Add generator
field defaulted to the default CMake build system generator.

Change-Id: I41e003a212f94a636a7503eec37c90a2d9de23f6
---
guix/build-system/qt.scm | 4 ++++
1 file changed, 4 insertions(+)

Toggle diff (38 lines)
diff --git a/guix/build-system/qt.scm b/guix/build-system/qt.scm
index d1f721c54e..8771888a62 100644
--- a/guix/build-system/qt.scm
+++ b/guix/build-system/qt.scm
@@ -128,6 +128,7 @@ (define* (qt-build name inputs
(search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #t)
(test-target "test")
@@ -168,6 +169,7 @@ (define* (qt-build name inputs
#:configure-flags #$configure-flags
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
@@ -205,6 +207,7 @@ (define* (qt-cross-build name
(native-search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #f) ; nothing can be done
(test-target "test")
@@ -258,6 +261,7 @@ (define* (qt-cross-build name
#:configure-flags #$configure-flags
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 02/65] build-system/cmake: Add generator fields.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
38097bbcb07be1af9e45997ea0065acfd414304a.1729619913.git.code@greghogan.com
* guix/build-system/cmake.scm (cmake-build, cmake-cross-build):
Add generator field defaulted to the default CMake build system
generator.
* doc/guix.texi: Document generator parameter.

Change-Id: I82c8157ac865bc1ea435910421ceff36decc34ca
---
doc/guix.texi | 29 ++++++++++++++++++++---------
guix/build-system/cmake.scm | 4 ++++
2 files changed, 24 insertions(+), 9 deletions(-)

Toggle diff (86 lines)
diff --git a/doc/guix.texi b/doc/guix.texi
index ac3a7adef0..d7efec0aab 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -132,6 +132,7 @@
Copyright @copyright{} 2024 Fabio Natali@*
Copyright @copyright{} 2024 Arnaud Daby-Seesaram@*
Copyright @copyright{} 2024 Nigko Yerden@*
+Copyright @copyright{} 2024 Greg Hogan@*
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
@@ -9443,16 +9444,26 @@ Build Systems
implements the build procedure for packages using the
@url{https://www.cmake.org, CMake build tool}.
-It automatically adds the @code{cmake} package to the set of inputs.
-Which package is used can be specified with the @code{#:cmake}
-parameter.
+This build system adds the following keyword parameters to the ones
+defined by @code{gnu-build-system}:
-The @code{#:configure-flags} parameter is taken as a list of flags
-passed to the @command{cmake} command. The @code{#:build-type}
-parameter specifies in abstract terms the flags passed to the compiler;
-it defaults to @code{"RelWithDebInfo"} (short for ``release mode with
-debugging information''), which roughly means that code is compiled with
-@code{-O2 -g}, as is the case for Autoconf-based packages by default.
+@table @code
+@item #:cmake
+The @code{cmake} package is added to the set of inputs. Which package
+is used can be specified with the @code{#:cmake} parameter.
+
+@item #:build-type
+The @code{#:build-type} parameter specifies in abstract terms the flags
+passed to the compiler; it defaults to @code{"RelWithDebInfo"} (short
+for ``release mode with debugging information''), which roughly means
+that code is compiled with @code{-O2 -g}, as is the case for
+Autoconf-based packages by default.
+
+@item #:generator
+This parameter specifies the
+@url{https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html, CMake generator}
+responsible for writing the input files for the native build system.
+@end table
@end defvar
@defvar composer-build-system
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index 0b8a651ee0..af6d2e5c8a 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -101,6 +101,7 @@ (define* (cmake-build name inputs
(search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #t)
(test-target "test")
@@ -141,6 +142,7 @@ (define* (cmake-build name inputs
configure-flags)
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
@@ -179,6 +181,7 @@ (define* (cmake-cross-build name
(native-search-paths '())
(make-flags ''())
(out-of-source? #t)
+ (generator "Unix Makefiles")
(build-type "RelWithDebInfo")
(tests? #f) ; nothing can be done
(test-target "test")
@@ -234,6 +237,7 @@ (define* (cmake-cross-build name
#:configure-flags #$configure-flags
#:make-flags #$make-flags
#:out-of-source? #$out-of-source?
+ #:generator #$generator
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 05/65] build-system/cmake: Add build.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e6f7b90a72deaff320efab7e975d4e56f9946efa.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (build): New function to replace
the make build with the cmake build command.
---
guix/build/cmake-build-system.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

Toggle diff (34 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 3fab010c85..d827be1806 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -82,6 +82,15 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "running 'cmake' with arguments ~s~%" args)
(apply invoke "cmake" args))))
+(define* (build #:key (parallel-build? #t) #:allow-other-keys)
+ (apply invoke "cmake"
+ `("--build"
+ "."
+ ,@(if parallel-build?
+ `("-j" ,(number->string (parallel-job-count)))
+ ;; When unset CMake defers to the build system.
+ '("-j" "1")))))
+
(define %test-suite-log-regexp
;; Name of test suite log files as commonly found in CMake.
"^LastTest\\.log$")
@@ -104,10 +113,9 @@ (define* (check #:key (tests? #t) (parallel-tests? #t)
(format #t "test suite not run~%")))
(define %standard-phases
- ;; Everything is as with the GNU Build System except for the `configure'
- ;; and 'check' phases.
(modify-phases gnu:%standard-phases
(delete 'bootstrap)
+ (replace 'build build)
(replace 'check check)
(replace 'configure configure)))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 06/65] build-system/cmake: Add install.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e990bcaece3182cbdd8d38717c533058b0a2afc7.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (build): New function to replace
make install with the cmake install command.
---
guix/build/cmake-build-system.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Toggle diff (24 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index d827be1806..250ef96540 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -112,12 +112,16 @@ (define* (check #:key (tests? #t) (parallel-tests? #t)
'("-j" "1")))))
(format #t "test suite not run~%")))
+(define* (install #:rest args)
+ (invoke "cmake" "--install" "."))
+
(define %standard-phases
(modify-phases gnu:%standard-phases
(delete 'bootstrap)
(replace 'build build)
(replace 'check check)
- (replace 'configure configure)))
+ (replace 'configure configure)
+ (replace 'install install)))
(define* (cmake-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 04/65] build-system/cmake: Add generator.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
4588e38c2760887b689225b16aba317969cee9bd.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (configure): Add and use generator
field to configure the build system.

Change-Id: Ie6f439f031c3ba063773e6aa2c9c36c5eda56c0f
---
guix/build/cmake-build-system.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Toggle diff (25 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 1109b5c7c4..3fab010c85 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -35,7 +35,7 @@ (define-module (guix build cmake-build-system)
;; Code:
(define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
- build-type target
+ build-type target generator
#:allow-other-keys)
"Configure the given package."
(let* ((out (assoc-ref outputs "out"))
@@ -51,6 +51,9 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(format #t "build directory: ~s~%" (getcwd))
(let ((args `(,srcdir
+ ,@(if generator
+ (list (string-append "-G" generator))
+ '())
,@(if build-type
(list (string-append "-DCMAKE_BUILD_TYPE="
build-type))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 08/65] build-system/qt: Add test-exclude fields.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
824830a0c3276fef9e20f0f9f4e4b1032f0feaa0.1729619913.git.code@greghogan.com
* guix/build-system/qt.scm (qt-build, qt-cross-build): Add test-exclude
field.

Change-Id: I415c0b110e6214c391b2c9c0952cbda0e848041e
---
guix/build-system/qt.scm | 4 ++++
1 file changed, 4 insertions(+)

Toggle diff (38 lines)
diff --git a/guix/build-system/qt.scm b/guix/build-system/qt.scm
index 8771888a62..6f52faf1d0 100644
--- a/guix/build-system/qt.scm
+++ b/guix/build-system/qt.scm
@@ -132,6 +132,7 @@ (define* (qt-build name inputs
(build-type "RelWithDebInfo")
(tests? #t)
(test-target "test")
+ (test-exclude "")
(parallel-build? #t) (parallel-tests? #t)
(validate-runpath? #t)
(patch-shebangs? #t)
@@ -173,6 +174,7 @@ (define* (qt-build name inputs
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
+ #:test-exclude #$test-exclude
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:validate-runpath? #$validate-runpath?
@@ -211,6 +213,7 @@ (define* (qt-cross-build name
(build-type "RelWithDebInfo")
(tests? #f) ; nothing can be done
(test-target "test")
+ (test-exclude "")
(parallel-build? #t) (parallel-tests? #f)
(validate-runpath? #t)
(patch-shebangs? #t)
@@ -265,6 +268,7 @@ (define* (qt-cross-build name
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
+ #:test-exclude #$test-exclude
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:validate-runpath? #$validate-runpath?
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 07/65] build-system/cmake: Add test-exclude fields.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
86ea3066f2431faa918a42ef0e6726ac4584e798.1729619913.git.code@greghogan.com
* guix/build-system/cmake.scm (cmake-build, cmake-cross-build):
Add test-exclude field.
* doc/guix.texi: Document test-exclude parameter.

Change-Id: I7e2596968bec74ea7b48850abd9ab2c6a5121043
---
doc/guix.texi | 4 ++++
guix/build-system/cmake.scm | 4 ++++
2 files changed, 8 insertions(+)

Toggle diff (53 lines)
diff --git a/doc/guix.texi b/doc/guix.texi
index d7efec0aab..7d38a1322f 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9463,6 +9463,10 @@ Build Systems
This parameter specifies the
@url{https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html, CMake generator}
responsible for writing the input files for the native build system.
+
+@item #:test-exclude
+Tests matching this regular expression are excluded from testing by
+@url{https://cmake.org/cmake/help/latest/manual/ctest.1.html, ctest}.
@end table
@end defvar
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index af6d2e5c8a..d9e9bf7bb6 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -105,6 +105,7 @@ (define* (cmake-build name inputs
(build-type "RelWithDebInfo")
(tests? #t)
(test-target "test")
+ (test-exclude "")
(parallel-build? #t) (parallel-tests? #t)
(validate-runpath? #t)
(patch-shebangs? #t)
@@ -146,6 +147,7 @@ (define* (cmake-build name inputs
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
+ #:test-exclude #$test-exclude
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:validate-runpath? #$validate-runpath?
@@ -185,6 +187,7 @@ (define* (cmake-cross-build name
(build-type "RelWithDebInfo")
(tests? #f) ; nothing can be done
(test-target "test")
+ (test-exclude "")
(parallel-build? #t) (parallel-tests? #t)
(validate-runpath? #t)
(patch-shebangs? #t)
@@ -241,6 +244,7 @@ (define* (cmake-cross-build name
#:build-type #$build-type
#:tests? #$tests?
#:test-target #$test-target
+ #:test-exclude #$test-exclude
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:validate-runpath? #$validate-runpath?
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:08 +0200
[PATCH v2 09/65] build-system/cmake: Add test exclusion.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
425b8ab87efc72818397ca54d7d9b24597f8f8c4.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (check): Pass test exclusion regex
to ctest.

Change-Id: I11160f5b43a67006616057d19f863fdbc9337bf6
---
guix/build/cmake-build-system.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Toggle diff (28 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 250ef96540..b90a0c14a9 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -95,7 +95,8 @@ (define %test-suite-log-regexp
;; Name of test suite log files as commonly found in CMake.
"^LastTest\\.log$")
-(define* (check #:key (tests? #t) (parallel-tests? #t)
+(define* (check #:key (tests? #t) (test-exclude "")
+ (parallel-tests? #t)
(test-suite-log-regexp %test-suite-log-regexp)
#:allow-other-keys)
(if tests?
@@ -106,7 +107,10 @@ (define* (check #:key (tests? #t) (parallel-tests? #t)
(gnu:dump-file-contents "." test-suite-log-regexp)
(raise c)))
(apply invoke "ctest" "--output-on-failure"
- `(,@(if parallel-tests?
+ `(,@(if (string-null? test-exclude)
+ '()
+ `("--exclude-regex" ,test-exclude))
+ ,@(if parallel-tests?
`("-j" ,(number->string (parallel-job-count)))
;; When unset CMake defers to the build system.
'("-j" "1")))))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 11/65] build-system/cmake: Include ninja.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e416d514c58fbc8e403a825779a7311b8854d0ca.1729619913.git.code@greghogan.com
* guix/build-system/cmake.scm (cmake-build): Add ninja to build-inputs.

Change-Id: I277615a6adb2c9f4d4ddecf2be73867fe72c2b92
---
guix/build-system/cmake.scm | 4 ++++
1 file changed, 4 insertions(+)

Toggle diff (17 lines)
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index d9e9bf7bb6..f99c5661d2 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -72,6 +72,10 @@ (define* (lower name
`(("source" ,source))
'())
,@`(("cmake" ,cmake))
+ ,@`(("ninja" ,(module-ref
+ (resolve-interface
+ '(gnu packages ninja))
+ 'ninja)))
,@native-inputs
,@(if target '() inputs)
,@(if target
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 10/65] build-system/cmake: Optionally build tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
1c3f2eb08c2b228381a059cfe1f359841a8bcbe9.1729619913.git.code@greghogan.com
* guix/build/cmake-build-system.scm (configure): Create and use CMake
variable cache file. Set the CMake variable BUILD_TESTING to the value
of TESTS? so that a package can optionally build tests. Set
CMAKE_COLOR_DIAGNOSTICS to ON.

Change-Id: Ia69de938a56733f717d4b4c6207b499bcee524ff
---
guix/build/cmake-build-system.scm | 75 ++++++++++++++++++-------------
1 file changed, 44 insertions(+), 31 deletions(-)

Toggle diff (96 lines)
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index b90a0c14a9..0933801ecb 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -35,7 +35,7 @@ (define-module (guix build cmake-build-system)
;; Code:
(define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
- build-type target generator
+ build-type target generator (tests? #t)
#:allow-other-keys)
"Configure the given package."
(let* ((out (assoc-ref outputs "out"))
@@ -50,37 +50,50 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
(chdir "../build"))
(format #t "build directory: ~s~%" (getcwd))
- (let ((args `(,srcdir
- ,@(if generator
- (list (string-append "-G" generator))
- '())
- ,@(if build-type
- (list (string-append "-DCMAKE_BUILD_TYPE="
- build-type))
- '())
- ,(string-append "-DCMAKE_INSTALL_PREFIX=" out)
- ;; ensure that the libraries are installed into /lib
- "-DCMAKE_INSTALL_LIBDIR=lib"
- ;; add input libraries to rpath
- "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
- ;; add (other) libraries of the project itself to rpath
- ,(string-append "-DCMAKE_INSTALL_RPATH=" out "/lib")
- ;; enable verbose output from builds
- "-DCMAKE_VERBOSE_MAKEFILE=ON"
+ (call-with-temporary-output-file
+ (lambda (temp port)
+ (let ((args `(,srcdir
+ ;; Load variables into the the cache to prevent
+ ;; warnings about unused manually-specified variables.
+ ,(string-append "-C " temp)
+ ,@(if generator
+ (list (string-append "-G" generator))
+ '())
+ ,@configure-flags)))
- ;; Cross-build
- ,@(if target
- (list (string-append "-DCMAKE_C_COMPILER="
- target "-gcc")
- (string-append "-DCMAKE_CXX_COMPILER="
- target "-g++")
- (if (string-contains target "mingw")
- "-DCMAKE_SYSTEM_NAME=Windows"
- "-DCMAKE_SYSTEM_NAME=Linux"))
- '())
- ,@configure-flags)))
- (format #t "running 'cmake' with arguments ~s~%" args)
- (apply invoke "cmake" args))))
+ (define save-to-cache
+ (lambda* (name value)
+ ;; <type> and <docstring> arguments are used only by CMake GUIs.
+ (format port "set(~a \"~a\" CACHE STRING \"\")~%" name value)))
+
+ (if build-type
+ (save-to-cache "CMAKE_BUILD_TYPE" build-type))
+ (save-to-cache "CMAKE_INSTALL_PREFIX" out)
+ ;; Ensure that the libraries are installed into /lib.
+ (save-to-cache "CMAKE_INSTALL_LIBDIR" "lib")
+ ;; Add input libraries to rpath.
+ (save-to-cache "CMAKE_INSTALL_RPATH_USE_LINK_PATH" "TRUE")
+ ;; Add (other) libraries of the project itself to rpath.
+ (save-to-cache "CMAKE_INSTALL_RPATH" (string-append out "/lib"))
+ ;; Enable verbose output from builds.
+ (save-to-cache "CMAKE_VERBOSE_MAKEFILE" "ON")
+ ;; Enable colored compiler diagnostics.
+ (save-to-cache "CMAKE_COLOR_DIAGNOSTICS" "ON")
+ ;; BUILD_TESTING in an option of CMake's CTest module.
+ (save-to-cache "BUILD_TESTING" (if tests? "ON" "OFF"))
+
+ ;; Cross-build
+ (if target
+ (begin
+ (save-to-cache "CMAKE_C_COMPILER" (string-append target "-gcc"))
+ (save-to-cache "CMAKE_CXX_COMPILER" (string-append target "-g++"))
+ (if (string-contains target "mingw")
+ (save-to-cache "CMAKE_SYSTEM_NAME" "Windows")
+ (save-to-cache "CMAKE_SYSTEM_NAME" "Linux"))))
+
+ (close-port port)
+ (format #t "running 'cmake' with arguments ~s~%" args)
+ (apply invoke "cmake" args))))))
(define* (build #:key (parallel-build? #t) #:allow-other-keys)
(apply invoke "cmake"
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 12/65] build-system/qt: Include ninja.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
8d243d1a8a30abad7ef11bbd5227fcfc75321c34.1729619913.git.code@greghogan.com
* guix/build-system/qt.scm (qt-build): Add ninja to build-inputs.

Change-Id: I6ac3c1429c13674a94aaa869431214c49280f1da
---
guix/build-system/qt.scm | 4 ++++
1 file changed, 4 insertions(+)

Toggle diff (17 lines)
diff --git a/guix/build-system/qt.scm b/guix/build-system/qt.scm
index 6f52faf1d0..56fd5561e1 100644
--- a/guix/build-system/qt.scm
+++ b/guix/build-system/qt.scm
@@ -96,6 +96,10 @@ (define* (lower name
`(("source" ,source))
'())
,@`(("cmake" ,cmake))
+ ,@`(("ninja" ,(module-ref
+ (resolve-interface
+ '(gnu packages ninja))
+ 'ninja)))
,@`(("qtbase" ,qtbase))
,@native-inputs
,@(if target
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 13/65] gnu: astroid: Remove custom phases.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
8e8b4d452102dc8ce946d9c01b5e13b072bc3632.1729619913.git.code@greghogan.com
* gnu/packages/mail.scm (astroid):
[origin]: Remove bugfix resolved upstream.
[arguments]<#:parallel-tests?>: Disable.
<#:test-exclude>: Move exclusions from 'skip-markdown-test phase to here
and delete 'skip-markdown-test phase.
<#:generator>: Add.
<#:phases>: Remove custom 'build, 'check, and 'install.
[native-inputs]: Remove ninja.
---
gnu/packages/mail.scm | 38 +++++++++-----------------------------
1 file changed, 9 insertions(+), 29 deletions(-)

Toggle diff (73 lines)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index ead8740627..a0257f9c90 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -953,49 +953,30 @@ (define-public astroid
(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"))
@@ -1018,7 +999,6 @@ (define-public astroid
(list glib-networking
gsettings-desktop-schemas
gnupg
- ninja
pkg-config
ronn
w3m
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 14/65] gnu: rdma-core: Remove custom phases.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
62bbca07be0784137c33bcc0541e487e5a36b56b.1729619913.git.code@greghogan.com
* gnu/packages/linux.scm (rdma-core)
<#:configure-flags>: Remove generator.
<#:generator>: Add.
<#:phases>: Delete.
[native-inputs]: Remove ninja.

Change-Id: Ic0c2b60203df8a1e79ad1f7a51770c9c5aeaf3fc
---
gnu/packages/linux.scm | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)

Toggle diff (39 lines)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 272d9bdd3f..2391a79a2a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7095,9 +7095,8 @@ (define-public rdma-core
;; 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
@@ -7107,18 +7106,9 @@ (define-public rdma-core
'())
(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")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 15/65] gnu: fish: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
7600668636aa6420babf9f73b208dbbee9f89068.1729619913.git.code@greghogan.com
* gnu/packages/shells.scm (fish)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.
---
gnu/packages/shells.scm | 9 +++++++++
1 file changed, 9 insertions(+)

Toggle diff (22 lines)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 43a1fbb540..13f99bc728 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -255,6 +255,15 @@ (define-public fish
port)
(close-port port))
#t))
+ (replace 'check
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ ;; Test artifacts and actions are built and run with the
+ ;; 'test' target.
+ (invoke "make" "-j" job-count "test")))))
;; Use fish-foreign-env to source /etc/profile.
(add-before 'install 'source-etc-profile
(lambda* (#:key inputs #:allow-other-keys)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 16/65] gnu: igraph: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
7ddea8633ad301313975f4aa7c5b75a356228f58.1729619913.git.code@greghogan.com
* gnu/packages/graph.scm (igraph)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.

Change-Id: I88e10e714744433227975575c6bb94d3f205474c
---
gnu/packages/graph.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Toggle diff (30 lines)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 02033c25b3..5351440450 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -144,7 +144,6 @@ (define-public igraph
;; 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"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'version-file
@@ -176,6 +175,15 @@ (define-public igraph
(add-after 'build 'build-doc
(lambda _
(invoke "cmake" "--build" "." "--target" "html")))
+ (replace 'check
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ ;; Test artifacts and actions are built and run with the
+ ;; 'check' target.
+ (invoke "make" "-j" job-count "check")))))
(add-after 'install 'install-doc
(lambda _
(copy-recursively
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 17/65] gnu: inkscape: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
d484d5cdf1d214d3fe27fda9e269dfd0d851f29f.1729619913.git.code@greghogan.com
* gnu/packages/inkscape.scm (inkscape)[arguments]: Replace 'check
phase to replace the old cmake-build-system test target.

Change-Id: I95d4829b476b03becdf6c646bc3aabcfff1fba0a
---
gnu/packages/inkscape.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

Toggle diff (32 lines)
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm
index 13e1652f87..ea98a1f285 100644
--- a/gnu/packages/inkscape.scm
+++ b/gnu/packages/inkscape.scm
@@ -159,7 +159,6 @@ (define-public inkscape/stable
(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))
@@ -359,10 +358,15 @@ (define-public inkscape
#$@(if (target-x86-32?)
#~() ;XXX: there are remaining failures on i686
#~((replace 'check
+ ;; Test artifacts and actions are built with the 'check' target.
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
;; Re-instate the tests disabled in inkscape/stable, now that
;; their ImageMagick requirement is satisfied.
- (assoc-ref %standard-phases 'check))))
-
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ (invoke "make" "-j" job-count "check")))))))
(replace 'wrap-program
;; Ensure Python is available at runtime.
(lambda _
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 18/65] gnu: inkscape/stable: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e955bdbcd27acd768677f23c6c233aacba8f62b8.1729619913.git.code@greghogan.com
* gnu/packages/inkscape.scm (inkscape/stable)[arguments]<#:phases>:
Fix argument to test command in 'check.

Change-Id: Ie89a7026f63256afabba038e0fc30e6ab0d8f3a6
---
gnu/packages/inkscape.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm
index ea98a1f285..c813c61e9d 100644
--- a/gnu/packages/inkscape.scm
+++ b/gnu/packages/inkscape.scm
@@ -257,7 +257,7 @@ (define-public inkscape/stable
'()))))
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 19/65] gnu: kirigami: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
ecf4e0da3d378b24f695ddcf1090ce996b949530.1729619913.git.code@greghogan.com
* gnu/packages/kde-frameworks.scm (kirigami)[arguments]
<#:phases>: Add 'set-offscreen-display.

Change-Id: I054c0a2301e1e342f12ef4aa9e9b542c1339f712
---
gnu/packages/kde-frameworks.scm | 7 +++++++
1 file changed, 7 insertions(+)

Toggle diff (20 lines)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 13d4e24726..d5bd5f0b5c 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1242,6 +1242,13 @@ (define-public kirigami
(base32
"173m6h9wr8pl5l70s6wmasm8dimkq737qgn6mlzdm18w3qb3p9s3"))))
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 20/65] gnu: kirigami-5: Disable tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
957c4b22a60f96ca338565407e00938953317249.1729619913.git.code@greghogan.com
* gnu/packages/kde-frameworks.scm (kirigami)[arguments]
<#:tests?>: Re-disable tests, which are enabled by BUILD_TESTING.

Change-Id: I37061eff4514cf009208e5d29c60fa6ceecac422
---
gnu/packages/kde-frameworks.scm | 3 +++
1 file changed, 3 insertions(+)

Toggle diff (16 lines)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index d5bd5f0b5c..f85b0d67dc 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1279,6 +1279,9 @@ (define-public kirigami-5
(sha256
(base32
"1q69b1qd2qs9hpwgw0y0ig93ag41l50dghribsnqhi0c9aklsn4b"))))
+ (arguments
+ ;; Tests require an OpenGL context
+ (list #:tests? #f))
(native-inputs
(list extra-cmake-modules qttools-5))
(inputs
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 21/65] gnu: vigra: Fix tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
79b2615428ea757c511ffc2dad383969d52a4054.1729619913.git.code@greghogan.com
* gnu/packages/image.scm (vigra)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.
---
gnu/packages/image.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

Toggle diff (34 lines)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7f17c71aef..75937cf6d8 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1371,8 +1371,7 @@ (define-public vigra
("python-nose" ,python-nose)
("sphinx" ,python-sphinx)))
(arguments
- `(#:test-target "check"
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-tests
(lambda _
@@ -1383,7 +1382,16 @@ (define-public vigra
;; <https://github.com/ukoethe/vigra/issues/436>.
(substitute* "vigranumpy/test/CMakeLists.txt"
(("test1\\.py") ""))
- #t)))
+ #t))
+ (replace 'check
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ ;; Test artifacts and actions are built and run with the
+ ;; 'check' target.
+ (invoke "make" "-j" job-count "check"))))))
#:configure-flags
(list "-Wno-dev" ; suppress developer mode with lots of warnings
(string-append "-DVIGRANUMPY_INSTALL_DIR="
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 22/65] gnu: cpp-httplib: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
6cb2c7282d5bca4cbaa5963633f8133308489925.1729619913.git.code@greghogan.com
* gnu/packages/cpp.scm (cpp-httplib)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: I88334deb4afc29ab84b279e9d1759a777ddd49dd
---
gnu/packages/cpp.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 7044e491ec..a96037ffcf 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1134,7 +1134,8 @@ (define-public cpp-httplib
(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"
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 23/65] gnu: evolution-data-server: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
2b65410f73a635dfafd6d49022e00dfaa455b789.1729619913.git.code@greghogan.com
* gnu/packages/gnome.scm (evolution-data-server)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: Ib56a2b25aa331763f72d2fd5ad034aee9b8f2d83
---
gnu/packages/gnome.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index cf3d1a1496..088a60279d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8264,6 +8264,7 @@ (define-public evolution-data-server
(build-system cmake-build-system)
(arguments
(list
+ #:parallel-tests? #f
#:configure-flags
#~(let* ((lib (string-append #$output "/lib"))
(runpaths (map (lambda (s)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 24/65] gnu: kservice: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
028f904222209fd3428cb63ae0c470f3951d835f.1729619913.git.code@greghogan.com
* gnu/packages/kde-frameworks.scm (kservice)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: I07b2bf1302a85328825b6c2c3fdad02ab99f7f93
---
gnu/packages/kde-frameworks.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index f85b0d67dc..56e067fcd8 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -4538,6 +4538,7 @@ (define-public kservice
(list kcrash kdbusaddons kdoctools ki18n qtbase qtdeclarative))
(arguments
(list
+ #:parallel-tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 25/65] gnu: libical: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
f1181c256b795b74cfcbda8e114d28c659bac5f7.1729619913.git.code@greghogan.com
* gnu/packages/calendar.scm (libical)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: Ie7f2922a77bdc065a4a000b1fa683221c853c3af
---
gnu/packages/calendar.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm
index 6717db867f..878e5269a0 100644
--- a/gnu/packages/calendar.scm
+++ b/gnu/packages/calendar.scm
@@ -137,6 +137,7 @@ (define-public libical
(build-system cmake-build-system)
(arguments
(list
+ #:parallel-tests? #f
#:configure-flags #~(list "-DSHARED_ONLY=true"
;; required by evolution-data-server
"-DGOBJECT_INTROSPECTION=true"
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 26/65] gnu: libmedfile: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
74ba01bb5db4098515f122cf890044cdc3c79fe4.1729619913.git.code@greghogan.com
* gnu/packages/engineering.scm (libmedfile)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: I55f0d7bded6ac6b94b8389d6af4958b7ce7c6487
---
gnu/packages/engineering.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 6f449f0c39..81ee2748e7 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3047,7 +3047,8 @@ (define-public libmedfile
(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)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 27/65] gnu: mbedtls-lts: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
8f06a12e533e38e7753c3fc79715ff43f4272789.1729619913.git.code@greghogan.com
* gnu/packages/tls.scm (mbedtls-lts)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: Ibaa4af6d12c9e8db931c0038b2bba9fbf1959592
---
gnu/packages/tls.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 1a1ce0d215..54203c7a78 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -974,7 +974,8 @@ (define-public mbedtls-lts
(base32 "070i5pxciw04swfqk1rmdprhsafn4cias3dlmkm467pqpjnhb394"))))
(build-system cmake-build-system)
(arguments
- (list #:configure-flags
+ (list #:parallel-tests? #f
+ #:configure-flags
#~(list "-DUSE_SHARED_MBEDTLS_LIBRARY=ON"
"-DUSE_STATIC_MBEDTLS_LIBRARY=OFF")
#:phases
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 28/65] gnu: scotch: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
900a5577ab7adcf0ea6bb4abd8a207521facd96b.1729619913.git.code@greghogan.com
* gnu/packages/maths.scm (scotch)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: Ic1368158890b64fe485b197749e2f44b621733f8
---
gnu/packages/maths.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 4f5f5ce63e..78688c7543 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4657,7 +4657,8 @@ (define-public scotch
(list flex bison gfortran))
(outputs '("out" "metis"))
(arguments
- `(#:configure-flags '("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64"
+ `(#:parallel-tests? #f
+ #:configure-flags '("-DBUILD_SHARED_LIBS=YES" "-DINTSIZE=64"
"-DBUILD_PTSCOTCH=OFF")
#:phases
(modify-phases %standard-phases
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 29/65] gnu: srt: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e38a4826017a00240c4882c172288f827d262344.1729619913.git.code@greghogan.com
* gnu/packages/networking.scm (srt)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: If95af98db404f17d80b467f456af65ac333276fc
---
gnu/packages/networking.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f209c1e27c..90f409d625 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -669,7 +669,8 @@ (define-public srt
(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")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 30/65] gnu: vulkan-loader: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
3bbf93b85bc1d285ae8b4a7682c6d62ca38a6428.1729619913.git.code@greghogan.com
* gnu/packages/vulkan.scm (vulkan-loader)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: Ibea1a1e8c86dffedd2d184b441851b0a60898942
---
gnu/packages/vulkan.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 1b69da1a4d..77e63091c1 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -344,6 +344,7 @@ (define-public vulkan-loader
;; Limit the tests to those architectures tested upstream.
#:tests? (and (%current-system)
(target-x86?))
+ #:parallel-tests? #f
#:configure-flags
#~(list (string-append "-DVULKAN_HEADERS_INSTALL_DIR="
(dirname (dirname
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 31/65] gnu: websocketpp: Disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
628dc98428467d38680b41205945bf57703f52c9.1729619913.git.code@greghogan.com
* gnu/packages/web.scm (websocketpp)
[arguments]<#:parallel-tests?>: Disable.

Change-Id: I9fd6247cf59b26a1d8c08398b2408884fd0f4848
---
gnu/packages/web.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (16 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 9cd6d4dd40..463ef52cf6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1848,7 +1848,8 @@ (define-public websocketpp
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 35/65] gnu: nextcloud-client: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
c4c02938f28d9824884717c63f73d099aaaf0148.1729619913.git.code@greghogan.com
* gnu/packages/sync.scm (nextcloud-client)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Move environment setup to 'pre-check and remove 'check
phase.

Change-Id: Ie5f568bbe1153291f53e429afb0026a96e8dbcc5
---
gnu/packages/sync.scm | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index af736d0c28..5055c9c698 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -143,6 +143,7 @@ (define-public nextcloud-client
(((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 @@ (define-public nextcloud-client
(("@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))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 36/65] gnu: pdal: Use :#test-exclude and disable parallel tests.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
8d897e96bc7ac9aa6bfddf13e27ffca90cfb2935.1729619913.git.code@greghogan.com
* gnu/packages/geo.scm (pdal)[arguments]
<#:parallel-tests?>: Disable.
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: Ib148edc5e5c5f251797360cacda1dfb5de71d664
---
gnu/packages/geo.scm | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

Toggle diff (22 lines)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 5d120b3c98..3e2a22bbb9 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -1307,13 +1307,8 @@ (define-public pdal
(base32 "0gg5lcshlmn3wwak42xr0b8a8gdr4572d7hrcvxn2291kp2c3096"))))
(build-system cmake-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "ctest" "-E" ;; This test hangs.
- "pdal_io_stac_reader_test")))))))
+ (list #:parallel-tests? #f
+ #:test-exclude "pdal_io_stac_reader_test"))
(native-inputs (list python))
(inputs (list gdal
h3
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 37/65] gnu: qxmpp: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
1be2cf65ad52ec18a15808a4767857c6c042d066.1729619913.git.code@greghogan.com
* gnu/packages/messaging.scm (qxmpp)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: I8116db30d3bbbeecc2e166f9d72329142bf4a26c
---
gnu/packages/messaging.scm | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

Toggle diff (30 lines)
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index c482cd469e..2b7ceabe36 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -410,17 +410,12 @@ (define-public qxmpp
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 38/65] gnu: simgear: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
3bd1658908b98bc2e041276da982a0b903209103.1729619913.git.code@greghogan.com
* gnu/packages/games.scm (simgear)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: I3ac389580949f8edafca5768335d491a2ea86650
---
gnu/packages/games.scm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c594b8ac2a..d0dcc64289 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9801,13 +9801,7 @@ (define simgear
(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)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 41/65] gnu: conan: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
ba2f2f3547e8b3a0117f2b04bb13aaee7b4c70a3.1729619913.git.code@greghogan.com
* gnu/packages/package-management.scm (conan)[native-inputs]: Change
cmake to cmake-minimal.

Change-Id: I0d321cf175c91b564eb627ee7d612a5ea8cacd4e
---
gnu/packages/package-management.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 1763d2d59f..f68834663b 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1436,7 +1436,7 @@ (define-public conan
(native-inputs
(list autoconf-wrapper
automake
- cmake
+ cmake-minimal
git-minimal
libtool
meson
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 40/65] gnu: asymptote: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
38861855497aa48fcdd11ca91f553d859dc8472e.1729619913.git.code@greghogan.com
* gnu/packages/plotutils.scm (asymptote)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I6ce8b737d9a21f83caad7b79b591e68a86f45fd0
---
gnu/packages/plotutils.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm
index d5b2f0d9fa..030b1cf121 100644
--- a/gnu/packages/plotutils.scm
+++ b/gnu/packages/plotutils.scm
@@ -89,7 +89,7 @@ (define-public asymptote
automake
bison
boost
- cmake
+ cmake-minimal
emacs-minimal
flex
ghostscript ;for tests
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 39/65] gnu: cmake: Update to 3.30.5.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
54a3d4a9e9465fbe389f0c6d3a59d05f68f0bbf0.1729619913.git.code@greghogan.com
* gnu/packages/cmake.scm (cmake-bootstrap): Update to 3.30.5.
[source]: Remove the cmake-curl-certificates-3.24 patch.
[arguments]<#:configure-flags>: Disable debugger.
(cmake-minimal)[arguments]
<#:configure-flags>: Disable debugger.
<#:phases>: Output on failure in 'check phase.
(cmake): Update to 3.30.5.
[source]: Remove the cmake-curl-certificates-3.24 patch.
[inputs]: Add cppdap.
(cmake-3.30): Remove.
(cmake-3.24): New variable.
(%common-build-phases): Substitute for Ninja build.
---
gnu/packages/cmake.scm | 40 ++++++++++++++++++++++------------------
1 file changed, 22 insertions(+), 18 deletions(-)

Toggle diff (132 lines)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 8310dc55fa..199e0182c6 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -15,6 +15,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.
;;;
@@ -126,6 +127,7 @@ (define (%common-build-phases)
'("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"
@@ -171,7 +173,7 @@ (define %preserved-third-party-files
(define-public cmake-bootstrap
(package
(name "cmake-bootstrap")
- (version "3.24.2")
+ (version "3.30.5")
(source (origin
(method url-fetch)
(uri (string-append "https://cmake.org/files/v"
@@ -179,8 +181,7 @@ (define-public cmake-bootstrap
"/cmake-" version ".tar.gz"))
(sha256
(base32
- "1ny8y2dzc6fww9gzb1ml0vjpx4kclphjihkxagxigprxdzq2140d"))
- (patches (search-patches "cmake-curl-certificates-3.24.patch"))))
+ "0vd8ambs4r7yzwwshba0l0pl0b7q566a0pq6gsdz5wh80njf2mcz"))))
(build-system gnu-build-system)
(arguments
(list
@@ -203,7 +204,10 @@ (define-public cmake-bootstrap
;; 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
@@ -310,6 +314,8 @@ (define-public cmake-minimal
(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))))
@@ -341,6 +347,7 @@ (define-public cmake-minimal
(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~%"))))))
@@ -353,7 +360,7 @@ (define-public cmake
(package
(inherit cmake-minimal)
(name "cmake")
- (version "3.25.1")
+ (version "3.30.5")
(source (origin
(inherit (package-source cmake-minimal))
(method url-fetch)
@@ -368,8 +375,7 @@ (define-public cmake
,@rest))))
(sha256
(base32
- "1n4inb3fvk70sni5gmkljqw3cyllalyg3fnr9rlr7x3aa44isl8w"))
- (patches (search-patches "cmake-curl-certificates-3.24.patch"))))
+ "0vd8ambs4r7yzwwshba0l0pl0b7q566a0pq6gsdz5wh80njf2mcz"))))
(outputs '("out" "doc"))
(arguments
(substitute-keyword-arguments (package-arguments cmake-minimal)
@@ -406,7 +412,10 @@ (define-public cmake
(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)
@@ -414,10 +423,10 @@ (define-public cmake
texinfo)))
(properties (alist-delete 'hidden? (package-properties cmake-minimal)))))
-(define-public cmake-3.30
+(define-public cmake-3.24
(package
(inherit cmake)
- (version "3.30.3")
+ (version "3.24.4")
(source (origin
(method url-fetch)
(uri (string-append "https://cmake.org/files/v"
@@ -425,14 +434,9 @@ (define-public cmake-3.30
"/cmake-" version ".tar.gz"))
(sha256
(base32
- "1r48zym4dy4mvwzk704zh1vx9gb4a910f424ypvis28mcxdy2pbd"))))
- (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))))))
+ "15i2zbxlksqv4czajpwcc1c21smgw2mzpbghsdq71zqfa6cy9j9j"))
+ (patches (search-patches "cmake-curl-certificates-3.24.patch"))))
+ (properties '((hidden? . #t)))))
(define-public cmake-minimal-cross
(package
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 42/65] gnu: entangle: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
d2551736470572f249ae3a4b67333f7e8c3bf35d.1729619913.git.code@greghogan.com
* gnu/packages/photo.scm (entangle)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: Idd528f9c83f61eec3a7ab29468361bfc667aa441
---
gnu/packages/photo.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index c9cf877085..91f6c911f8 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -720,7 +720,7 @@ (define-public entangle
`("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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 43/65] gnu: go-mvdan-cc-editorconfig: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
0766762b5d11078211ef355040bbfc957cb12721.1729619913.git.code@greghogan.com
* gnu/packages/golang-xyz.scm (go-mvdan-cc-editorconfig)[native-inputs]:
Change cmake to cmake-minimal.

Change-Id: I847a6ad3225e22a918971d327b00377fa9b68208
---
gnu/packages/golang-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e8b7f7ee9f..0d276f7898 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7391,7 +7391,7 @@ (define-public go-mvdan-cc-editorconfig
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 44/65] gnu: libdecor: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
90a21bff76e54a13a447f05f3f90b66e6455a50f.1729619914.git.code@greghogan.com
* gnu/packages/freedesktop.scm (libdecor)[native-inputs]: Change cmake
to cmake-minimal.

Change-Id: I91c23b13c83a1e4bbd5cbe3e63a79cd05a4bbaf2
---
gnu/packages/freedesktop.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 0ab0bb5104..9022fc086f 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -3327,7 +3327,7 @@ (define-public libdecor
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 45/65] gnu: liblxi: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
6fe2fdf93fcabca58486ce61a24b1e0852fe11f5.1729619914.git.code@greghogan.com
* gnu/packages/hardware.scm (liblxi)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I7945be811d71e6b55942a040557b577a4d7f9349
---
gnu/packages/hardware.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 2922b14a42..4cf4d44782 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -1510,7 +1510,7 @@ (define-public liblxi
(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/")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 46/65] gnu: lxi-tools: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
ba74c1a65418f4c3b49407d684b49e359e4bb9ae.1729619914.git.code@greghogan.com
* gnu/packages/hardware.scm (lxi-tools)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I399241f4dcd71395ce3756bfca385809a42e38ef
---
gnu/packages/hardware.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 4cf4d44782..102c5862fd 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -1550,7 +1550,7 @@ (define-public lxi-tools
(("update-desktop-database") (which "true"))))))))
(native-inputs
(list bash-completion
- cmake
+ cmake-minimal
(list glib "bin")
pkg-config
python
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 47/65] gnu: pantheon-calculator: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
9cf5d0673bc35022f199ef266eac5a44ed5084a5.1729619914.git.code@greghogan.com
* gnu/packages/pantheon.scm (pantheon-calculator)[native-inputs]: Change
cmake to cmake-minimal.

Change-Id: I1f4283ca371ec18c1882dc03960c3f268b31d8bd
---
gnu/packages/pantheon.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/pantheon.scm b/gnu/packages/pantheon.scm
index 9268aff292..8fa8c3db2a 100644
--- a/gnu/packages/pantheon.scm
+++ b/gnu/packages/pantheon.scm
@@ -126,7 +126,7 @@ (define-public pantheon-calculator
libgee
libhandy))
(native-inputs
- (list cmake
+ (list cmake-minimal
`(,glib "bin") ; for glib-compile-schemas
gettext-minimal
pkg-config
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 48/65] gnu: pantheon-calendar: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
6a77905afa0f5e62b937feb1ce9ebec2b464289b.1729619914.git.code@greghogan.com
* gnu/packages/pantheon.scm (pantheon-calendar)[native-inputs]: Change
cmake to cmake-minimal.

Change-Id: Ib6537bf8c2909a2c0acf5e6fb7fa46d5bd47fbaa
---
gnu/packages/pantheon.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/pantheon.scm b/gnu/packages/pantheon.scm
index 8fa8c3db2a..16a3516ddf 100644
--- a/gnu/packages/pantheon.scm
+++ b/gnu/packages/pantheon.scm
@@ -185,7 +185,7 @@ (define-public pantheon-calendar
libical
libportal))
(native-inputs
- (list cmake
+ (list cmake-minimal
`(,glib "bin") ; for glib-compile-schemas
gettext-minimal
pkg-config
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 49/65] gnu: python-awkward-cpp: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
27503aaac1f1429568e480809b1a525ece0b79fe.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-awkward-cpp)[native-inputs]:
Change cmake to cmake-minimal.

Change-Id: I611327a62f8655269dd89fbb9f885adef01c70a5
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8849096026..4d28b8ca1e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -417,7 +417,7 @@ (define-public python-awkward-cpp
(build-system pyproject-build-system)
(propagated-inputs (list python-importlib-resources 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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 50/65] gnu: python-contourpy: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
1cdcdca8721ab0f834b10cdd22b36b0824a70586.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-contourpy)[native-inputs]: Change
cmake to cmake-3.24.
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4d28b8ca1e..1f7fdd6edc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1300,7 +1300,7 @@ (define-public python-contourpy
(propagated-inputs
(list python-numpy))
(native-inputs
- (list cmake
+ (list cmake-3.24
meson-python
pkg-config
pybind11
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 52/65] gnu: python-lief: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
34b9a9f8c5d0a590e95576180e7cfc4dfcbcc0a3.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-lief)[native-inputs]: Change cmake
to cmake-3.24.
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1f7fdd6edc..c85b5dc3af 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -37509,7 +37509,7 @@ (define-public python-lief
(base32
"11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661"))))
(build-system python-build-system)
- (native-inputs (list cmake))
+ (native-inputs (list cmake-3.24))
(arguments
(list
#:tests? #f ;needs network
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 51/65] gnu: python-keystone-engine: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
97613257460f5c083173a2f53a37f070d3299843.1729619914.git.code@greghogan.com
* gnu/packages/emulators.scm (python-keystone-engine)[native-inputs]:
Change cmake to cmake-minimal.

Change-Id: Ieb60e5feac0d65098d9b7dc3021a4bba1685d21b
---
gnu/packages/emulators.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index f0a60c0b49..0fa59598e6 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -3883,7 +3883,7 @@ (define-public python-keystone-engine
(uri (pypi-uri "keystone-engine" version))
(sha256
(base32 "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig"))))
- (native-inputs (list cmake))
+ (native-inputs (list cmake-minimal))
(build-system pyproject-build-system)
(home-page "https://www.keystone-engine.org")
(synopsis
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 53/65] gnu: python-optree: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
74e8fa3d417dcdb56a670f4f00c5ae91081b0b4b.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-optree)[native-inputs]: Change
cmake to cmake-minimal.

Change-Id: I2a1f99c5be79b897a957af354bf27bbcdfd8cf52
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c85b5dc3af..8a835fda64 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12368,7 +12368,7 @@ (define-public python-optree
(list python-pytest
python-pytest-cov
python-pytest-xdist
- cmake
+ cmake-minimal
pybind11))
(home-page "https://github.com/metaopt/optree")
(synopsis "Optimized PyTree Utilities")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 32/65] gnu: dbus-cxx: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
7e71a3eed73f419aa6d4b9e1a225cf4a55fcebf0.1729619913.git.code@greghogan.com
* gnu/packages/glib.scm (dbus-cxx)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: I6d2b17be9c2d1575dbebc28baf91990c7a903211
---
gnu/packages/glib.scm | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index a15a7ce58a..9454420a41 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1266,14 +1266,8 @@ (define-public dbus-cxx
"-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++))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 33/65] gnu: hotspot: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
cfe88b0653ba45086c99f5f03493a289934843c0.1729619913.git.code@greghogan.com
* gnu/packages/linux.scm (hotspot)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: Iae9c98693a30c94c472a2f4056dfaa53b988c20c
---
gnu/packages/linux.scm | 41 +++++++++++++++++++----------------------
1 file changed, 19 insertions(+), 22 deletions(-)

Toggle diff (61 lines)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2391a79a2a..15b5ab1bed 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7356,6 +7356,24 @@ (define-public hotspot
#: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
@@ -7391,28 +7409,7 @@ (define-public hotspot
(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))
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 34/65] gnu: kconfig-5: Use #:test-exclude.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
56e29a119e812e71fa66f04aed77c286bcfc0b9e.1729619913.git.code@greghogan.com
* gnu/packages/kde-frameworks.scm (kconfig-5)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Move environment setup to 'pre-check and remove 'check
phase.

Change-Id: I923e18b0b1a89aa4ccdedb8f79b2efc5c9bdadf6
---
gnu/packages/kde-frameworks.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Toggle diff (27 lines)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 56e067fcd8..143dac5f85 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -790,15 +790,15 @@ (define-public kconfig-5
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 54/65] gnu: python-pivy: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
4dfd080b20590353b0d66db030af0300b0bb1af1.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-pivy)[native-inputs]: Change cmake
to cmake-minimal.

Change-Id: I0cb8afef2c291d48bd14cc3485c11dbf267c34fe
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8a835fda64..0d1c055994 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33487,7 +33487,7 @@ (define-public python-pivy
(("\\$\\{SoQt_INCLUDE_DIRS}")
"${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}")))))))
(native-inputs
- (list cmake swig))
+ (list cmake-minimal swig))
(inputs
(list python-wrapper
qtbase-5
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 55/65] gnu: python-pytorch: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
6f45ae7054237bdec4bfcae12fed7a19a8d6e9c6.1729619914.git.code@greghogan.com
* gnu/packages/machine-learning.scm (python-pytorch)[native-inputs]:
Change cmake to cmake-minimal.

Change-Id: Ice5ad31fe9864a3f09411c74313570885c1a6593
---
gnu/packages/machine-learning.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 988fac3b63..41ffcaeba8 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4761,7 +4761,7 @@ (define-public python-pytorch
;; Even only the core tests take a very long time to run.
#:tests? #f))
(native-inputs
- (list cmake
+ (list cmake-minimal
doxygen
ideep-pytorch
ninja
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 56/65] gnu: python-symengine: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e0dcc85e5f5aeeb76f01b9010b9f5e87313a0967.1729619914.git.code@greghogan.com
* gnu/packages/python-xyz.scm (python-symengine)[native-inputs]: Change
cmake to cmake-minimal.

Change-Id: Ibe96156b9fe7ba16c9fe1b136e153bf5ad765fd9
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0d1c055994..a708c6171d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19017,7 +19017,7 @@ (define-public python-symengine
(invoke "nosetests" "-v" "symengine.tests"))
(format #t "test suite not run~%")))))))
(native-inputs
- (list cmake python-cython-3 python-nose))
+ (list cmake-minimal python-cython-3 python-nose))
(inputs
(list symengine))
(home-page "https://github.com/symengine/symengine.py")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 57/65] gnu: raider: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
97000adae93f8773f69fc4571cc1f90735c0685d.1729619914.git.code@greghogan.com
* gnu/packages/gnome.scm (raider)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I75ca5a9ec8382fc893fe82f5d99ae1a274f5bc15
---
gnu/packages/gnome.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 088a60279d..7e5e1064cc 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4976,7 +4976,7 @@ (define-public raider
(native-inputs
(list gettext-minimal
pkg-config
- cmake
+ cmake-minimal
`(,glib "bin")
desktop-file-utils
itstool
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 58/65] gnu: siril: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
e6bb6a26e72fa5d8a9b78660f1f5da3b5c696352.1729619914.git.code@greghogan.com
* gnu/packages/astronomy.scm (siril)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: Ia9e6d97acbc46f074bad759c8a6f29b56ae1eada
---
gnu/packages/astronomy.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 106f524a73..71fb526f67 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2469,7 +2469,7 @@ (define-public siril
`("GDK_PIXBUF_MODULE_FILE" =
(,(getenv "GDK_PIXBUF_MODULE_FILE")))))))))
(native-inputs
- (list cmake git libconfig pkg-config))
+ (list cmake-minimal git libconfig pkg-config))
(inputs
(list cfitsio
(librsvg-for-system)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 59/65] gnu: soqt: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
5cc58bf3fe34dd2c521b111736f2e842695fba10.1729619914.git.code@greghogan.com
* gnu/packages/qt.scm (soqt)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I92f5c51743dc31513e57d9b864bf4b9d33c4f070
---
gnu/packages/qt.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 687c20cd90..f0f88e99b1 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -5174,7 +5174,7 @@ (define-public soqt
(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")
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 60/65] gnu: syndication-domination: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
767c18c8400429186924b343a0378bc809d872d2.1729619914.git.code@greghogan.com
* gnu/packages/syndication.scm (syndication-domination)[native-inputs]:
Change cmake to cmake-3.24.
---
gnu/packages/syndication.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm
index ed284be26b..1b4779473e 100644
--- a/gnu/packages/syndication.scm
+++ b/gnu/packages/syndication.scm
@@ -530,7 +530,7 @@ (define-public syndication-domination
(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-3.24 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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 61/65] gnu: tigervnc-server: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
6d1139da19fc40c49d85cf093f218bfe4bf1f27c.1729619914.git.code@greghogan.com
* gnu/packages/vnc.scm (tigervnc-server)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I8def88520d76e8c7ca216535d7316dc17cc0e14c
---
gnu/packages/vnc.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm
index 4f780a55dd..14ea390ed3 100644
--- a/gnu/packages/vnc.scm
+++ b/gnu/packages/vnc.scm
@@ -372,7 +372,7 @@ (define-public tigervnc-server
libtool
gettext-minimal
font-util
- cmake
+ cmake-minimal
perl)))
(inputs
(modify-inputs (append (package-inputs xorg-server)
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 62/65] gnu: trinityrnaseq: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
0e91eae6b1f135d22db97c4d603d8493d9a25089.1729619914.git.code@greghogan.com
* gnu/packages/bioinformatics.scm (trinityrnaseq)
[native-inputs]: Change cmake to cmake-minimal.
[arguments]<#:phases>[install]: Remove deletion of uncreated files.
---
gnu/packages/bioinformatics.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index d167a11ba1..c7a3517e0c 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -6067,8 +6067,6 @@ (define-public trinityrnaseq
(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")))
@@ -6122,7 +6120,7 @@ (define-public trinityrnaseq
(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
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 63/65] gnu: unicorn: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
4fd0aa1d489e90d83558d37b64a2d9465d6ad39e.1729619914.git.code@greghogan.com
* gnu/packages/emulators.scm (unicorn)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: If51ffa3a05407828fe252620ce6ba067c008f9ad
---
gnu/packages/emulators.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 0fa59598e6..dc85b7e2a8 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -3516,7 +3516,7 @@ (define-public unicorn
(sha256
(base32 "0mlfs8qfi0clyncfkbxp6in0cpl747510i6bqymwid43xcirbikz"))))
(build-system pyproject-build-system)
- (native-inputs (list cmake pkg-config))
+ (native-inputs (list cmake-minimal pkg-config))
(home-page "https://www.unicorn-engine.org")
(synopsis "Generic CPU emulator framework")
(description
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 64/65] gnu: wavbreaker: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
825caec605dd87ca741ccc17c9cfe799dfc39f8a.1729619914.git.code@greghogan.com
* gnu/packages/mp3.scm (wavbreaker)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I42bd5c70f099ae587c42629339a99e65765e29f9
---
gnu/packages/mp3.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 32a1ddea27..888a7f8508 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -811,7 +811,7 @@ (define-public wavbreaker
(,(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+
--
2.46.1
G
G
Greg Hogan wrote on 22 Oct 20:09 +0200
[PATCH v2 65/65] gnu: xffm+: Pin CMake dependency.
(address . 70031@debbugs.gnu.org)(name . Greg Hogan)(address . code@greghogan.com)
28f346dc65259d283f04cb16682ca3041101a2bb.1729619914.git.code@greghogan.com
* gnu/packages/gnome.scm (xffm+)[native-inputs]: Change cmake to
cmake-minimal.

Change-Id: I0cf4fc3bdaa29674b7b9814df94bd12f8303d6bb
---
gnu/packages/gnome.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 7e5e1064cc..7fef821b4b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -13889,7 +13889,7 @@ (define-public xffm+
;; This is done so we can override.
(("`set.PREFIX_BIN") "set(QPREFIX_BIN")))))))
(native-inputs
- (list cmake pkg-config intltool gnu-gettext))
+ (list cmake-minimal pkg-config intltool gnu-gettext))
(inputs
(list glib gtk+ libx11 libsm libxv libxaw libxcb libxkbfile
shared-mime-info))
--
2.46.1
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 70031@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70031
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch