[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: libgit2: Fix cross compilation.
From: |
guix-commits |
Subject: |
05/08: gnu: libgit2: Fix cross compilation. |
Date: |
Tue, 2 Jul 2019 11:19:14 -0400 (EDT) |
mothacehe pushed a commit to branch wip-cross-system
in repository guix.
commit e956a223e5c135aee0cd6bb6bec4c225d9bdbaf1
Author: Mathieu Othacehe <address@hidden>
Date: Mon Jul 1 16:58:53 2019 +0200
gnu: libgit2: Fix cross compilation.
* gnu/packages/version-control.scm (libgit2)[arguments]: Set
PKG_CONFIG_EXECUTABLE variable when cross-compiling.
Also do not run test suite if cross-compiling.
---
gnu/packages/version-control.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 8effe1d..ca5a019 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -545,7 +545,14 @@ everything from small to very large projects with speed
and efficiency.")
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments
- `(#:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
+ `(#:configure-flags
+ (list "-DUSE_SHA1DC=ON" ; SHA-1 collision detection
+ ,@(if (%current-target-system)
+ `((string-append
+ "-DPKG_CONFIG_EXECUTABLE="
+ (assoc-ref %build-inputs "pkg-config")
+ "/bin/" ,(%current-target-system) "-pkg-config"))
+ '()))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-hardcoded-paths
@@ -560,9 +567,12 @@ everything from small to very large projects with speed
and efficiency.")
(lambda _
(for-each make-file-writable (find-files "."))
#t))
- ;; Run checks more verbosely.
+ ;; Run checks more verbosely, unless we are cross-compiling.
(replace 'check
- (lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
+ (lambda _
+ ,@(if (%current-target-system)
+ '(#t)
+ '((invoke "./libgit2_clar" "-v" "-Q"))))))))
(inputs
`(("libssh2" ,libssh2)
("http-parser" ,http-parser)))
- branch wip-cross-system updated (6e59bb8 -> c68d23b), guix-commits, 2019/07/02
- 04/08: gnu: cmake: Extend CMAKE_PREFIX_PATH to non-native inputs., guix-commits, 2019/07/02
- 06/08: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/07/02
- 01/08: gnu: http-parser: Fix cross-compilation., guix-commits, 2019/07/02
- 08/08: gnu: groff: Fix cross compilation., guix-commits, 2019/07/02
- 05/08: gnu: libgit2: Fix cross compilation.,
guix-commits <=
- 07/08: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/07/02
- 03/08: wip: Fix texinfo cross-compilation., guix-commits, 2019/07/02
- 02/08: gnu: openssl: Fix cross-compilation., guix-commits, 2019/07/02