gnu: guile-ssh: Support cross-compilation.

Cross-compilation broke with the update to 0.15.1 in
eabc6af9b8.  'guile-snarf' would invoke
cpp instead of TRIPLET-cpp, which would thus fail to find libssh
headers.

* gnu/packages/ssh.scm (guile-ssh)[arguments]: Add
'support-cross-compilation' phase.
This commit is contained in:
Ludovic Courtès 2022-03-07 00:26:51 +01:00
parent afb9f27523
commit 3ac1366648
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -328,6 +328,13 @@ (define-public guile-ssh
#:configure-flags '("--disable-static")
#:phases (modify-phases %standard-phases
(add-before 'bootstrap 'support-cross-compilation
(lambda _
;; Support cross-compilation:
;; <https://github.com/artyom-poptsov/guile-ssh/issues/30>.
(substitute* "libguile-ssh/Makefile.am"
(("\\$\\(guile_snarf\\)")
"CPP=\"$(CPP)\" $(guile_snarf)"))))
(add-before 'build 'fix-libguile-ssh-file-name
(lambda* (#:key outputs #:allow-other-keys)
;; Build and install libguile-ssh.so so that we can use