[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/20: commencement: Add make-mesboot0-next.
From: |
guix-commits |
Subject: |
17/20: commencement: Add make-mesboot0-next. |
Date: |
Sun, 20 Dec 2020 04:03:19 -0500 (EST) |
janneke pushed a commit to branch wip-arm-bootstrap
in repository guix.
commit 0417c94165801877605def24f1c52c200eca5d11
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Dec 20 09:52:51 2020 +0100
commencement: Add make-mesboot0-next.
---
gnu/packages/commencement.scm | 61 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index b373306..65d0335 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -925,6 +925,67 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(bin (string-append out "/bin")))
(install-file "make" bin)))))))))
+(define-public gnu-make-mesboot0-next
+ ;; The initial make
+ (package
+ (inherit gnu-make)
+ (name "make-mesboot0-next")
+ (version "3.80")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/make/make-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1pb7fb7fqf9wz9najm85qdma1xhxzf1rhj5gwrlzdsz2zm0hpcv4"))))
+ (supported-systems '("armhf-linux" "aarch64-linux"
+ "i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("tcc" ,tcc-boot0-next)
+ ,@(%boot-gash-inputs)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:configure-flags '("CC=tcc"
+ "CPP=tcc -E"
+ "LD=tcc"
+ ,@(match (%current-system)
+ ((or "armhf-linux" "aarch64-linux")
+ '("--build=arm-linux"
+ "--host=arm-linux"))
+ ((or "i686-linux" "x86_64-linux")
+ `("--build=i686-unknown-linux-gnu"
+ "--host=i686-linux-gnu")))
+ "--disable-nls")
+ #:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (srfi srfi-1))
+ #:strip-binaries? #f ; no strip yet
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "build.sh.in"
+ (("@LIBOBJS@") "getloadavg.o")
+ (("@REMOTE@") "stub"))
+ #t))
+ (add-after 'configure 'configure-fixup
+ (lambda _
+ (substitute* "make.h"
+ (("^extern long int lseek.*" all) (string-append "// " all)))
+ #t))
+ (replace 'build
+ (lambda _
+ (invoke "sh" "./build.sh")))
+ (replace 'check ; proper check needs awk
+ (lambda _
+ (invoke "./make" "--version")))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "make" bin)))))))))
+
(define (%boot-tcc0-inputs)
`(("make" ,gnu-make-mesboot0)
("tcc" ,tcc-boot0)
- 01/20: gnu: mescc-tools: Update to 0.7.0., (continued)
- 01/20: gnu: mescc-tools: Update to 0.7.0., guix-commits, 2020/12/20
- 02/20: gnu: Add nyacc-1.00.2., guix-commits, 2020/12/20
- 05/20: bootstrap: mescc-tools: Support ARM, update to 0.7.0., guix-commits, 2020/12/20
- 06/20: bootstrap: mes-minimal: Support ARM, update to mes-0.22.115., guix-commits, 2020/12/20
- 07/20: bootstrap: %bootstrap-mescc-tools: Support ARM., guix-commits, 2020/12/20
- 08/20: bootstrap: %bootstrap-mes: Support ARM., guix-commits, 2020/12/20
- 10/20: commencement: Add bootstrap-mes-rewired-next., guix-commits, 2020/12/20
- 13/20: REMOVEME Use %bootstrap-guile for tcc-boot0-next., guix-commits, 2020/12/20
- 15/20: REMOVEME Use mes-next for tcc-boot0-next., guix-commits, 2020/12/20
- 16/20: REMOVEME: Use coreutils&co, bash instead of gash., guix-commits, 2020/12/20
- 17/20: commencement: Add make-mesboot0-next.,
guix-commits <=
- 03/20: gnu: mes: Update to nyacc-1.00.2., guix-commits, 2020/12/20
- 09/20: commencement: gash-boot: Build fix for ARM., guix-commits, 2020/12/20
- 20/20: Revert "tcc-boot0-next: stop for aarch comparison", guix-commits, 2020/12/20
- 12/20: commencement: Add tcc-boot0-next., guix-commits, 2020/12/20
- 04/20: gnu: Add mes-next., guix-commits, 2020/12/20
- 11/20: commencement: Add mes-boot-next., guix-commits, 2020/12/20
- 14/20: commencement: Add tcc-boot-next., guix-commits, 2020/12/20
- 18/20: tcc-boot0-next: stop for aarch comparison, guix-commits, 2020/12/20
- 19/20: tcc-boot-next, guix-commits, 2020/12/20