[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.
From: |
Ludovic Courtès |
Subject: |
[bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation. |
Date: |
Wed, 04 Sep 2019 15:00:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Mathieu Othacehe <address@hidden> skribis:
> * gnu/packages/cmake.scm (cmake-minimal-cross): New package.
> * guix/build-system/cmake.scm (default-cmake): Add new target argument and use
> it to select cmake-minimal or cmake-minimal-cross.
> (lower): Pass target to default-cmake.
> ---
> gnu/packages/cmake.scm | 8 ++++++++
> guix/build-system/cmake.scm | 9 ++++++---
> 2 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
> index 1d8d829ec5..9bf0273f00 100644
> --- a/gnu/packages/cmake.scm
> +++ b/gnu/packages/cmake.scm
> @@ -207,6 +207,14 @@ and workspaces that can be used in the compiler
> environment of your choice.")
> (outputs '("out" "doc"))
> (properties (alist-delete 'hidden? (package-properties cmake-minimal)))))
>
> +(define-public cmake-minimal-cross
> + (package
> + (inherit cmake-minimal)
> + (name "cmake-minimal-cross")
> + (native-search-paths '())
> + (search-paths
> + (package-native-search-paths cmake-minimal))))
It seems to be enough to just add ‘search-paths’ to ‘cmake’:
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 7186cf98df..9f517238a0 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -151,6 +151,7 @@
(list (search-path-specification
(variable "CMAKE_PREFIX_PATH")
(files '("")))))
+ (search-paths native-search-paths)
(home-page "https://cmake.org/")
(synopsis "Cross-platform build system")
(description
… and it doesn’t trigger a full rebuild.
Please push that to ‘master’ if it works for you!
Ludo’.
- [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation., (continued)
- [bug#36477] [PATCH v3 05/48] gnu: libpaper: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 09/48] gnu: indent: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 10/48] gnu: libsamplerate: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 12/48] gnu: mkfontdir: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 02/48] gnu: openssl: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 07/48] gnu: texinfo-5: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 06/48] gnu: groff: Fix cross compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.,
Ludovic Courtès <=
- [bug#36477] [PATCH v3 14/48] gnu: glibc-utf8-locales: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 11/48] gnu: cyrus-sasl: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 13/48] gnu: icu4c: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 19/48] gnu: bdb: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 17/48] gnu: lvm2: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 20/48] gnu: openldap: Fix cross-compilation., Mathieu Othacehe, 2019/09/02