guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/18: gnu: commencement: mes-boot: Update to 0.24.1, support ARM.


From: guix-commits
Subject: 08/18: gnu: commencement: mes-boot: Update to 0.24.1, support ARM.
Date: Wed, 19 Oct 2022 01:38:51 -0400 (EDT)

janneke pushed a commit to branch wip-aarch64-bootstrap
in repository guix.

commit 8da5022ed7c47de1c1395ae98c14ca0e4dd987de
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Oct 15 11:52:49 2022 +0200

    gnu: commencement: mes-boot: Update to 0.24.1, support ARM.
    
    * gnu/packages/commencement.scm (mes-boot)[source]: Update to 0.24.1.
    [supported-systems]: Add
    armhf-linux, aarch64-linux.
    [arguments]: Use actual cpu in --host argument to configure.sh.
    Set stage0_cpu in environment to work around bootstrap.sh bug.
---
 gnu/packages/commencement.scm | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index babd749dc6..e8e4de9ffe 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -443,17 +443,18 @@ MesCC-Tools), and finally M2-Planet.")
   (package
     (inherit mes)
     (name "mes-boot")
-    (version "0.24")
+    (version "0.24.1")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnu/mes/"
                                   "mes-" version ".tar.gz"))
               (sha256
                (base32
-                "00lrpm4x5qg0l840zhbf9mr67mqhp8gljcl24j5dy0y109gf32w2"))))
+                "0d855agwawjjzwbjmvb5xlbwg77zdpwbjm9kjxc2wqvn0vmhq4im"))))
     (inputs '())
     (propagated-inputs '())
-    (supported-systems '("i686-linux" "x86_64-linux"))
+    (supported-systems '("armhf-linux" "aarch64-linux"
+                         "i686-linux" "x86_64-linux"))
     (native-inputs
      `(("m2-planet" ,stage0-posix)
        ("nyacc-source" ,(bootstrap-origin
@@ -468,7 +469,7 @@ MesCC-Tools), and finally M2-Planet.")
       #:strip-binaries? #f              ;no strip yet
       #:phases
       #~(modify-phases %standard-phases
-          (add-after 'unpack 'unpack-seeds
+          (add-after 'unpack 'unpack-extra-sources
             (lambda _
               (let ((nyacc-source #$(this-package-native-input 
"nyacc-source")))
                 (with-directory-excursion ".."
@@ -477,12 +478,22 @@ MesCC-Tools), and finally M2-Planet.")
             (lambda* (#:key inputs outputs #:allow-other-keys)
               (let ((out #$output)
                     (gash #$(this-package-native-input "bash"))
-                    (dir (with-directory-excursion ".." (getcwd))))
+                    (dir (with-directory-excursion ".." (getcwd)))
+                    (target (or #$(%current-target-system)
+                                #$(%current-system)))
+                    (cpu
+                     (cond
+                      ((or #$(target-x86-64?) #$(target-x86-32?))
+                       "x86")
+                      (#$(target-arm?)
+                       "arm")
+                      (else
+                       (error "mes-boot: system not supported" target)))))
                 (setenv "GUILE_LOAD_PATH" (string-append
                                            dir "/nyacc-1.00.2/module"))
                 (invoke "gash" "configure.sh"
                         (string-append "--prefix=" out)
-                        "--host=i686-linux-gnu"))))
+                        (string-append "--host=" cpu "-linux-gnu")))))
           (replace 'build
             (lambda _
               (invoke "gash" "bootstrap.sh")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]