[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/57: bootstrap: Add sed-mesboot0.
From: |
guix-commits |
Subject: |
18/57: bootstrap: Add sed-mesboot0. |
Date: |
Mon, 16 Dec 2019 13:20:08 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit a452ebc3434d5316d403b0b2e56dc03904a8e4da
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Oct 6 17:47:24 2019 +0200
bootstrap: 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 9dbccd8..a02a569 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1141,6 +1141,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)
- branch wip-bootstrap created (now 92bc07b), guix-commits, 2019/12/16
- 05/57: bootstrap: Add %bootstrap-guile+guild., guix-commits, 2019/12/16
- 04/57: guile-build-system: Add #:implicit-inputs., guix-commits, 2019/12/16
- 08/57: bootstrap: Add %bootstrap-mes-rewired., guix-commits, 2019/12/16
- 01/57: gnu: gash: Update to 0.2.0., guix-commits, 2019/12/16
- 02/57: gnu: Add gash-core-utils., guix-commits, 2019/12/16
- 07/57: bootstrap: Add gash-core-utils-boot., guix-commits, 2019/12/16
- 10/57: bootstrap: tcc-boot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/16
- 13/57: bootstrap: Add bzip2-mesboot., guix-commits, 2019/12/16
- 15/57: bootstrap: tcc-boot: Use Gash instead of coretutils&co., guix-commits, 2019/12/16
- 18/57: bootstrap: Add sed-mesboot0.,
guix-commits <=
- 03/57: bootstrap: Add janneke's guix package url., guix-commits, 2019/12/16
- 06/57: bootstrap: Add gash-boot., guix-commits, 2019/12/16
- 11/57: bootstrap: Add gzip-mesboot., guix-commits, 2019/12/16
- 17/57: bootstrap: Add patch-mesboot., guix-commits, 2019/12/16
- 14/57: bootstrap: Add bash-mesboot0., guix-commits, 2019/12/16
- 24/57: bootstrap: gcc-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/16
- 23/57: bootstrap: glibc-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/16
- 25/57: bootstrap: Add tar-mesboot., guix-commits, 2019/12/16
- 27/57: bootstrap: Add binutils-mesboot1., guix-commits, 2019/12/16
- 28/57: bootstrap: Add coreutils-mesboot0., guix-commits, 2019/12/16