summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>2021-12-16 11:50:22 +0100
committerJan (janneke) Nieuwenhuizen <janneke@gnu.org>2022-10-16 10:19:18 +0200
commit34256c83401171a9c9bb2abf6460de6445b6edab (patch)
tree70e40a088cea6bb6324a42032aa972b0523f2d39
parenta84de64a2944b879d55dd388489bba879b212e03 (diff)
gnu: commencement: gash-boot: Build fix for ARM.
* gnu/packages/commencement.scm (gash-boot)[arguments]: Add 'patch-compat stage.
-rw-r--r--gnu/packages/commencement.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 29e081b6d8..e0aaa0388d 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -157,6 +157,19 @@ pure Scheme to Tar and decompression in one easy step.")
(replace 'configure
(bootstrap-configure "Gash" ,(package-version gash)
'("gash") "scripts"))
+ ;; ARM's %bootstrap-guile (2.0.11) does not have EXIT_SUCCESS.
+ (add-after 'unpack 'patch-compat
+ (lambda* _
+ (substitute* "gash/compat.scm"
+ (("exact-integer") "avoid-exact-integer-override-in-2.0.11")
+ (("\\(if-guile-version-below \\(2 0 10\\)")
+"(if-guile-version-below (2 0 10)
+ (begin
+ (define-public (exact-integer? x)
+ (and (integer? x) (exact? x)))))
+
+(if-guile-version-below (2 0 12)
+"))))
(replace 'build (bootstrap-build '("gash")))
(replace 'install (bootstrap-install '("gash") "scripts"))
(add-after 'install 'install-symlinks