[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/33: gnu: libgit2: Fix cross compilation.
From: |
guix-commits |
Subject: |
09/33: gnu: libgit2: Fix cross compilation. |
Date: |
Tue, 24 Sep 2019 02:17:47 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit bc5ae287b75ea76ce4dfef2867ddb3dbf30735e5
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 | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 573fa6f..192fa66 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,13 @@ 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* (#:key (tests? #t) #:allow-other-keys)
+ (if tests?
+ (invoke "./libgit2_clar" "-v" "-Q")
+ ;; Tests may be disabled if cross-compiling.
+ (format #t "Test suite not run.~%")))))))
(inputs
`(("libssh2" ,libssh2)
("http-parser" ,http-parser)))
- branch core-updates-next updated (567cca2 -> 647cfcf), guix-commits, 2019/09/24
- 01/33: gnu: perl: Fix cross-compilation., guix-commits, 2019/09/24
- 03/33: gnu: tcl: Fix cross-compilation., guix-commits, 2019/09/24
- 04/33: gnu: tk: Fix cross-compilation., guix-commits, 2019/09/24
- 02/33: gnu: python: Fix cross compilation., guix-commits, 2019/09/24
- 06/33: gnu: xorg: Fix cross-compilation of multiple packages., guix-commits, 2019/09/24
- 05/33: gnu: libxslt: Fix cross-compilation., guix-commits, 2019/09/24
- 08/33: gnu: http-parser: Fix cross-compilation., guix-commits, 2019/09/24
- 09/33: gnu: libgit2: Fix cross compilation.,
guix-commits <=
- 13/33: gnu: xmlto: Fix cross-compilation., guix-commits, 2019/09/24
- 10/33: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/09/24
- 12/33: gnu: help2man: Fix cross-compilation., guix-commits, 2019/09/24
- 24/33: gnu: indent: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 23/33: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 27/33: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/09/24
- 07/33: gnu: python: Further cross-compilation fixes., guix-commits, 2019/09/24
- 33/33: gnu: libtool: Fix cross-compilation., guix-commits, 2019/09/24
- 21/33: gnu: guile-xcb: Fix cross-compilation., guix-commits, 2019/09/24
- 30/33: gnu: console-setup: Fix cross-compilation., guix-commits, 2019/09/24