3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: stex-bootstrap: Guard against unsupported systems.

The current implementation of nix-system->chez-machine et al. is rather
brittle and fails in unexpected ways.  In the meantime while a better
replacement is being built, prevent falsy return values from causing errors,
such as a failing “guix pull”.  See <https://issues.guix.gnu.org/54292>.

* gnu/packages/chez.scm (stex-bootstrap)[maybe-compile]: Use and=> to only
call chez-machine->threaded if nix-system->chez-machine returns a truthy
value.
This commit is contained in:
Liliana Marie Prikler 2022-03-08 20:25:20 +01:00
parent 0a7c355e0a
commit b8fc916951
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -604,8 +604,8 @@ Chez Scheme.")))
(define makefile
(string-append (getcwd) "/Makefile"))
(define machine
#$(chez-machine->threaded
(nix-system->chez-machine)))
#$(and=> (nix-system->chez-machine)
chez-machine->threaded))
(with-directory-excursion
(search-input-directory outputs "/lib/stex")
(invoke "make"