[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/66: gnu: cmake-bootstrap: Fix build for the Hurd.
From: |
guix-commits |
Subject: |
41/66: gnu: cmake-bootstrap: Fix build for the Hurd. |
Date: |
Fri, 14 Jul 2023 17:56:42 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f03d9d8d943ffaabd6d7b1b8579358841a0074e4
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Jun 12 16:46:37 2023 +0200
gnu: cmake-bootstrap: Fix build for the Hurd.
* gnu/packages/cmake.scm (%common-disabled-tests/hurd): New variable.
(cmake-bootstrap) [inputs]: Include libuv for the Hurd too.
[arguments]: Add %common-disabled-tests/hurd to #:make-flags for the Hurd.
Also add a 'patch-hurd' phase to fix the build.
---
gnu/packages/cmake.scm | 43 ++++++++++++++++++++++++++++---------------
1 file changed, 28 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 821b8808f7..9064ca3822 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -10,7 +10,7 @@
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2020, 2021, 2022 Maxim Cournoyer
<maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@gmail.com>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2021 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
@@ -136,6 +136,19 @@ using the CMake build system.")
;; This test fails for unknown reason.
"RunCMake.file-GET_RUNTIME_DEPENDENCIES"))
+(define %common-disabled-tests/hurd
+ '("CTestTestTimeout"
+ "CTestTestRerunFailed"
+ "RunCMake.CompilerChange"
+ "RunCMake.ctest_test"
+ "RunCMake.file"
+ "RunCMake.BundleUtilities"
+ "RunCMake.configure_file"
+ "RunCMake.CTestTimeout"
+ "RunCMake.CTestTimeoutAfterMatch"
+ "RunCMake.CommandLine"
+ "RunCMake.CTestCommandLine"))
+
(define %preserved-third-party-files
'(;; 'Source/cm_getdate.c' includes archive_getdate.c wholesale, so it must
;; be available along with the required headers.
@@ -190,7 +203,10 @@ using the CMake build system.")
"CTestTestSubdir" ; This test fails to build 2 of the 3
tests.
;; This test fails when ARGS (below) is in use, see
;; <https://gitlab.kitware.com/cmake/cmake/issues/17165>.
- "CTestCoverageCollectGCOV")))
+ "CTestCoverageCollectGCOV"
+ #$@(if (target-hurd?)
+ %common-disabled-tests/hurd
+ #~()))))
(list
(string-append
;; These arguments apply for the tests only.
@@ -210,20 +226,17 @@ using the CMake build system.")
;; CMake uses its own configure script.
(replace 'configure
(lambda* (#:key (configure-flags '()) #:allow-other-keys)
- (apply invoke "./configure" configure-flags))))))
+ (apply invoke "./configure" configure-flags)))
+ #$@(if (target-hurd?)
+ #~((add-after 'unpack 'patch-hurd
+ (lambda _
+ ;; Version 3.25.0 has a similar fix.
+ (substitute* "Utilities/cmlibuv/src/unix/udp.c"
+ (("!defined\\(__QNX__\\)")
+ "!defined(__GNU__)")))))
+ #~()))))
(inputs
- (append
- (if (target-hurd?)
- '()
- (list libuv)) ;not supported on the Hurd
- (list bzip2
- curl
- expat
- file
- jsoncpp
- libarchive
- rhash
- zlib)))
+ (list libuv bzip2 curl expat file jsoncpp libarchive rhash zlib))
(native-search-paths
(list (search-path-specification
(variable "CMAKE_PREFIX_PATH")
- 34/66: gnu: libpaper: Disable tests for the Hurd., (continued)
- 34/66: gnu: libpaper: Disable tests for the Hurd., guix-commits, 2023/07/14
- 19/66: gnu: openssl: Build fix for the Hurd., guix-commits, 2023/07/14
- 20/66: gnu: python: Support native build on the Hurd., guix-commits, 2023/07/14
- 22/66: gnu: elfutils: Skip failing tests on the Hurd., guix-commits, 2023/07/14
- 25/66: gnu: libgpg-error: Skip failing test on the Hurd., guix-commits, 2023/07/14
- 26/66: gnu: libgcrypt: Skip hanging benchmark tests on the Hurd., guix-commits, 2023/07/14
- 27/66: gnu: tcl: Remove failing tests on the Hurd.., guix-commits, 2023/07/14
- 29/66: gnu: git: Skip failing test on the Hurd., guix-commits, 2023/07/14
- 30/66: gnu: emacs: Depend on libc-for-target., guix-commits, 2023/07/14
- 40/66: gnu: zstd: Skip tests when building for the Hurd., guix-commits, 2023/07/14
- 41/66: gnu: cmake-bootstrap: Fix build for the Hurd.,
guix-commits <=
- 42/66: gnu: cmake-minimal: Skip tests on the Hurd., guix-commits, 2023/07/14
- 45/66: gnu: guile-git: Skip http proxy test on the Hurd., guix-commits, 2023/07/14
- 53/66: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/07/14
- 51/66: gnu: po4a: Skip failing test on the Hurd., guix-commits, 2023/07/14
- 59/66: gnu: guix: Disable some tests on the Hurd., guix-commits, 2023/07/14
- 56/66: build: Build gnu/packages/*.go in five steps., guix-commits, 2023/07/14
- 52/66: gnu: guile-2.0: Skip failing tests on the Hurd., guix-commits, 2023/07/14
- 58/66: gnu: guix: Disable some test on 32bit., guix-commits, 2023/07/14
- 57/66: self: Build gnu/packages/*.go in 26 steps on the Hurd., guix-commits, 2023/07/14
- 54/66: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2023/07/14