gnu: git: Fix for cross-compiling to the Hurd.
* gnu/packages/version-control.scm (git)[arguments]: When cross-compiling, fix `config.mak.uname' kludge to use the host system configuration.
This commit is contained in:
parent
fc17900583
commit
457ded48c5
@ -253,9 +253,17 @@ as well as the classic centralized workflow.")
|
|||||||
,@%gnu-build-system-modules)
|
,@%gnu-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; We do not have bash-for-tests when cross-compiling.
|
|
||||||
,@(if (%current-target-system)
|
,@(if (%current-target-system)
|
||||||
'()
|
;; The git build system assumes build == host
|
||||||
|
`((add-after 'unpack 'use-host-uname_S
|
||||||
|
(lambda _
|
||||||
|
(substitute* "config.mak.uname"
|
||||||
|
(("uname_S := .*" all)
|
||||||
|
(if (equal? ,(%current-target-system) "i586-pc-gnu")
|
||||||
|
"uname_S := GNU\n"
|
||||||
|
all)))
|
||||||
|
#t)))
|
||||||
|
;; We do not have bash-for-tests when cross-compiling.
|
||||||
`((add-after 'unpack 'modify-PATH
|
`((add-after 'unpack 'modify-PATH
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((path (string-split (getenv "PATH") #\:))
|
(let ((path (string-split (getenv "PATH") #\:))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user