[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
44/70: bootstrap: Add bash-mesboot.
From: |
guix-commits |
Subject: |
44/70: bootstrap: Add bash-mesboot. |
Date: |
Wed, 11 Dec 2019 13:03:24 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit f02c7f1e1af2e1cf166ea03dc1dded0d97fce5e4
Author: Jan Nieuwenhuizen <address@hidden>
Date: Fri Nov 22 21:22:14 2019 +0100
bootstrap: Add bash-mesboot.
* gnu/packages/commencement.scm (bash-mesboot): New variable.
---
gnu/packages/commencement.scm | 85 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 7eea29d..7d026cd 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1964,6 +1964,91 @@ ac_cv_c_float_format='IEEE (little-endian)'
(string-append "SHELL = " shell)))
#t))))))))
+(define bash-mesboot
+ (package-with-bootstrap-guile
+ (package
+ (inherit bash-mesboot0)
+ (version "4.4")
+ (name "bash-mesboot")
+ (source (bootstrap-origin
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/bash/bash-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1jyz6snd63xjn6skk7za6psgidsd53k05cr3lksqybi0q6936syq")))))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs (%boot-mesboot0-inputs))
+ (outputs '("out"))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:parallel-build? #f
+ #:configure-flags
+ '("--build=i686-unknown-linux-gnu"
+ "--host=i686-unknown-linux-gnu"
+
+ "--without-bash-malloc"
+ "--disable-readline"
+ "--disable-history"
+ "--disable-help-builtin"
+ "--disable-progcomp"
+ "--disable-net-redirections"
+ "--disable-nls"
+
+ ;; Pretend 'dlopen' is missing so we don't build loadable
+ ;; modules and related code.
+ "ac_cv_func_dlopen=no")
+ #:make-flags '("bash")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "shell.c"
+ ((";;") ";"))
+ #t))
+ (add-before 'configure 'setenv
+ (lambda _
+ (setenv "AWK" "gawk")
+ (setenv "LIBS" "-lc -lnss_files -lnss_dns -lresolv")
+ (setenv "gl_cv_func_rename_dest_works" "yes")
+ #t))
+ (add-after 'configure 'configure-fixups
+ (lambda _
+ (let ((config.h (open-file "config.h" "a")))
+ (display (string-append "
+#define enable_hostname_completion(on_or_off) 0
+")
+ config.h)
+ (close config.h))
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "./bash" "--version")))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (mkdir-p bin)
+ (copy-file "bash" (string-append bin "/bash"))
+ (copy-file "bash" (string-append bin "/sh"))
+ #t)))))))))
+
+(define (%boot-mesboot1-inputs)
+ `(("bash" ,bash-mesboot)
+ ("binutils" ,binutils-mesboot1)
+ ("coreutils" ,coreutils-mesboot0)
+ ("gawk" ,gawk-mesboot)
+ ("grep" ,grep-mesboot)
+ ("make" ,make-mesboot)
+ ("sed" ,sed-mesboot)
+ ("tar" ,tar-mesboot)
+ ,@(fold alist-delete (%boot-mesboot0-inputs)
+ '("bash" "bash" "binutils" "coreutils" "gash" "gawk" "grep "
"guile"
+ "make" "sed" "tar"))))
+
(define gmp-boot
(package
(inherit gmp)
- 25/70: bootstrap: Add bash-mesboot0., (continued)
- 25/70: bootstrap: Add bash-mesboot0., guix-commits, 2019/12/11
- 30/70: bootstrap: binutils-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 37/70: bootstrap: Add grep-mesboot., guix-commits, 2019/12/11
- 33/70: bootstrap: mesboot-headers: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 36/70: bootstrap: Add tar-mesboot., guix-commits, 2019/12/11
- 38/70: bootstrap: Add binutils-mesboot1., guix-commits, 2019/12/11
- 40/70: bootstrap: Add make-mesboot., guix-commits, 2019/12/11
- 47/70: bootstrap: Add xz-mesboot., guix-commits, 2019/12/11
- 42/70: bootstrap: Add sed-mesboot., guix-commits, 2019/12/11
- 45/70: bootstrap: Add gcc-mesboot1: Scheme-only bootstrap., guix-commits, 2019/12/11
- 44/70: bootstrap: Add bash-mesboot.,
guix-commits <=
- 48/70: bootstrap: Add hello-mesboot., guix-commits, 2019/12/11
- 53/70: bootstrap: gcc-mesboot1-wrapper: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 50/70: bootstrap: glibc-headers-mesboot: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 65/70: bootstrap: Add bzip2-boot0., guix-commits, 2019/12/11
- 57/70: bootstrap: Remove m4-mesboot., guix-commits, 2019/12/11
- 58/70: bootstrap: %bootstrap-inputs+toolchain: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 55/70: bootstrap: gcc-mesboot-wrapper: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 54/70: bootstrap: gcc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 61/70: bootstrap: Remove %bootstrap-coreutils&co, %bootstrap-bash., guix-commits, 2019/12/11
- 51/70: bootstrap: glibc-mesboot: Scheme-only bootstrap., guix-commits, 2019/12/11