gnu: libssh2: Fix build on MIPS systems.
* gnu/packages/ssh.scm (libssh2)[arguments]: When building for MIPS, replace the existing bootstrap phase instead of adding a new 'autoreconf' phase (in the wrong place).
This commit is contained in:
parent
073cc31313
commit
fe365a3d0e
1 changed files with 18 additions and 5 deletions
|
@ -116,11 +116,24 @@ remote applications.")
|
||||||
;; zlib libraries, so we need to propagate the inputs.
|
;; zlib libraries, so we need to propagate the inputs.
|
||||||
(propagated-inputs `(("libgcrypt" ,libgcrypt)
|
(propagated-inputs `(("libgcrypt" ,libgcrypt)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(arguments '(#:configure-flags `("--with-libgcrypt")
|
(arguments `(#:configure-flags `("--with-libgcrypt")
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
(add-before 'configure 'autoreconf
|
;; FIXME: In the next core-updates cycle, replace the entire
|
||||||
(lambda _
|
;; following ,(...) form with its first 'modify-phases'
|
||||||
(invoke "autoreconf" "-v"))))))
|
;; subform. The change made here is only strictly needed on
|
||||||
|
;; MIPS, but should work on any system. For now, we apply it
|
||||||
|
;; only to MIPS to avoid forcing thousands of rebuilds on
|
||||||
|
;; other systems.
|
||||||
|
,(if (string-prefix? "mips" (or (%current-target-system)
|
||||||
|
(%current-system)))
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
(replace 'bootstrap
|
||||||
|
(lambda _
|
||||||
|
(invoke "autoreconf" "-v"))))
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
(add-before 'configure 'autoreconf
|
||||||
|
(lambda _
|
||||||
|
(invoke "autoreconf" "-v")))))))
|
||||||
(native-inputs `(("autoconf" ,autoconf)
|
(native-inputs `(("autoconf" ,autoconf)
|
||||||
("automake" ,automake)))
|
("automake" ,automake)))
|
||||||
(synopsis "Client-side C library implementing the SSH2 protocol")
|
(synopsis "Client-side C library implementing the SSH2 protocol")
|
||||||
|
|
Reference in a new issue