[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/63: gnu: commencement: Add sed-mesboot0.
From: |
guix-commits |
Subject: |
16/63: gnu: commencement: Add sed-mesboot0. |
Date: |
Thu, 13 Feb 2020 10:11:17 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 60d629d9126f111e25968f0a11284afff5bb3498
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sun Oct 6 17:47:24 2019 +0200
gnu: commencement: Add sed-mesboot0.
* gnu/packages/commencement.scm (sed-mesboot0): New variable.
* gnu/packages/commencement.scm (%boot-tcc-inputs): New variable.
---
gnu/packages/commencement.scm | 54 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3590923..2fc2f06 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1132,6 +1132,60 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
;; FIXME: no compressing gzip yet
(delete 'compress-documentation))))))
+(define sed-mesboot0
+ ;; The initial sed.
+ (package
+ (inherit sed)
+ (name "sed-mesboot0")
+ (version "1.18")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/sed/sed-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1hyv7i82jd0q18xcql51ylc8jwadp3gb3irgcqlis3v61p35jsv2"))))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs (%boot-tcc0-inputs))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:parallel-build? #f
+ #:configure-flags '("CC=tcc")
+ #:make-flags '("CC=tcc" "extra_objs=" "DEFS=-D HAVE_BCOPY")
+ #:strip-binaries? #f ; no strip yet
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (shell (string-append bash "/bin/bash")))
+ (substitute* "configure"
+ (("/bin/sh") shell))
+ #t)))
+ (replace 'check
+ (lambda _
+ (invoke "./sed" "--version")))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "sed" bin)
+ #t))))))))
+
+(define (%boot-tcc-inputs)
+ `(("bash" ,bash-mesboot0)
+ ("bzip2" ,bzip2-mesboot)
+ ("diffutils" ,diffutils-mesboot)
+ ("gzip" ,gzip-mesboot)
+ ("patch" ,patch-mesboot)
+ ("sed" ,sed-mesboot0)
+ ("tcc" ,tcc-boot)
+ ,@(alist-delete "tcc" (%boot-tcc0-inputs))))
+
(define binutils-mesboot0
(package
(inherit binutils)
- 01/63: gnu: Add gash-core-utils., (continued)
- 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, 2020/02/13
- 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 <=
- 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
- 18/63: gnu: commencement: gcc-core-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 20/63: gnu: commencement: mesboot-headers: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 25/63: gnu: commencement: Add binutils-mesboot1., guix-commits, 2020/02/13
- 26/63: gnu: commencement: Add coreutils-mesboot0., guix-commits, 2020/02/13
- 32/63: gnu: commencement: Add gcc-mesboot1: Use Gash instead of coreutils&co., guix-commits, 2020/02/13
- 36/63: gnu: commencement: glibc-headers-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/13
- 41/63: gnu: commencement: Add coreutils-mesboot., guix-commits, 2020/02/13