[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/63: gnu: commencement: make-mesboot0: Use Gash instead of coreutils&c
From: |
guix-commits |
Subject: |
10/63: gnu: commencement: make-mesboot0: Use Gash instead of coreutils&co. |
Date: |
Thu, 13 Feb 2020 10:11:15 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 90c64e63c8bf926f1a8fb518c82acf6368b8dc7c
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sat Sep 21 13:34:42 2019 +0200
gnu: commencement: make-mesboot0: Use Gash instead of coreutils&co.
* gnu/packages/commencement.scm (make-mesboot0): Use Gash instead of
coreutils&co.
(%boot-tcc0-inputs): New variable.
---
gnu/packages/commencement.scm | 107 +++++++++++++++++++++++-------------------
1 file changed, 60 insertions(+), 47 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index f3ad8f5..36aae71 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -728,6 +728,66 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
;; no gzip yet
(delete 'compress-documentation))))))
+(define make-mesboot0
+ ;; The initial make
+ (package
+ (inherit gnu-make)
+ (name "make-mesboot0")
+ (version "3.80")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/make/make-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1pb7fb7fqf9wz9najm85qdma1xhxzf1rhj5gwrlzdsz2zm0hpcv4"))))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("tcc" ,tcc-boot0)
+ ,@(%boot-gash-inputs)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:configure-flags '("CC=tcc"
+ "CPP=tcc -E"
+ "LD=tcc"
+ "--build=i686-unknown-linux-gnu"
+ "--host=i686-unknown-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" ,make-mesboot0)
+ ("tcc" ,tcc-boot0)
+ ,@(%boot-gash-inputs)))
+
(define tcc-boot
(package
(inherit tcc-boot0)
@@ -829,53 +889,6 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(copy-file "libtcc1.a" (string-append out "/lib/tcc/libtcc1.a"))
#t))))))))
-(define make-mesboot0
- (package
- (inherit gnu-make)
- (name "make-mesboot0")
- (version "3.80")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/make/make-"
- version ".tar.gz"))
- (sha256
- (base32
- "1pb7fb7fqf9wz9najm85qdma1xhxzf1rhj5gwrlzdsz2zm0hpcv4"))))
- (supported-systems '("i686-linux" "x86_64-linux"))
- (inputs '())
- (propagated-inputs '())
- (native-inputs `(("tcc" ,tcc-boot)
-
- ("bash" ,%bootstrap-coreutils&co)
- ("coreutils" ,%bootstrap-coreutils&co)))
- (arguments
- `(#:implicit-inputs? #f
- #:tests? #f ; check depends on perl
- #:guile ,%bootstrap-guile
- #:configure-flags `("CC=tcc -DO_RDONLY=0"
- "LD=tcc"
- "--disable-nls")
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'configure-fixup
- (lambda _
- (substitute* "build.sh"
- (("^REMOTE=.*") "REMOTE=stub\n")
- (("^extras=.*") "extras=getloadavg.c\n"))
- (substitute* "make.h"
- (("^extern long int lseek.*" all) (string-append "// " all)))
- #t))
- (delete 'patch-generated-file-shebangs) ; no perl
- (replace 'build
- (lambda _
- (invoke "sh" "./build.sh")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin")))
- (install-file "make" bin)
- #t))))))))
-
(define diffutils-mesboot
(package
(inherit diffutils)
- branch wip-bootstrap created (now 2a390f9), guix-commits, 2020/02/13
- 01/63: gnu: Add gash-core-utils., guix-commits, 2020/02/13
- 02/63: gnu: bootstrap: Add janneke's guix package url., guix-commits, 2020/02/13
- 05/63: gnu: commencement: Add gash-core-utils-boot., guix-commits, 2020/02/13
- 10/63: gnu: commencement: make-mesboot0: Use Gash instead of coreutils&co.,
guix-commits <=
- 08/63: gnu: commencement: tcc-boot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 12/63: gnu: commencement: Add bash-mesboot0., guix-commits, 2020/02/13
- 09/63: gnu: commencement: Add gzip-mesboot., guix-commits, 2020/02/13
- 07/63: gnu: commencement: mes-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 15/63: gnu: commencement: Add patch-mesboot., guix-commits, 2020/02/13
- 03/63: gnu: commencement: Add %bootstrap-guile+guild., guix-commits, 2020/02/13
- 16/63: gnu: commencement: Add sed-mesboot0., guix-commits, 2020/02/13
- 14/63: gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 17/63: gnu: commencement: binutils-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 13/63: gnu: commencement: tcc-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13