diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-09-29 11:41:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-09-29 11:41:20 +0200 |
commit | c4886c0cb608e1b36969f195eb2f7ea25a37ac89 (patch) | |
tree | 9db657787928fc13bfac2104cf520acd8b8e3fc2 /gnu | |
parent | 1b0ec97bce2db93ec4159a13fb0a184f012df4fe (diff) |
gnu: guix: Fix cross-compilation.
Fixes a regression introduced in
59587e2fda76c19b424fda9a987ff90d52ef217e where ./configure would fail
when cross-compiling with “Git is missing”.
Reported by gabber on #guix.
* gnu/packages/package-management.scm (guix)[arguments]: Add
‘ac_cv_path_GIT’ to #:configure-flags.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/package-management.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 044da9290c..de987b1b7f 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -215,6 +215,13 @@ ;; system installation image.) "ac_cv_path_DOT_USER_PROGRAM=dot" + ;; When cross-compiling, 'git' is not in $PATH + ;; (because it's not a native input). Thus, + ;; always explicitly pass its file name. + (string-append "ac_cv_path_GIT=" + (search-input-file %build-inputs + "/bin/git")) + ;; To avoid problems with the length of shebangs, ;; choose a fixed-width and short directory name ;; for tests. |