From 579e3712b0d7341804d76cc212c9edc28f64817c Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Dec 2021 11:50:22 +0100 Subject: gnu: commencement: gash-boot: Build fix for ARM. * gnu/packages/commencement.scm (gash-boot)[arguments]: Add 'patch-compat stage. --- gnu/packages/commencement.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 9d6ed5fd08..5222d9e88a 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -157,6 +157,19 @@ (define gash-boot (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 -- cgit v1.2.3