[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/63: bootstrap: Add bash-mesboot.
From: |
guix-commits |
Subject: |
41/63: bootstrap: Add bash-mesboot. |
Date: |
Sun, 24 Nov 2019 06:05:00 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit af505e30d2257e0bfb4d72ade8698846687cdc28
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 | 84 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 40ba2b5..99e402a 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1775,6 +1775,90 @@ 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 `(("bash" ,bash-mesboot0)
+ ("binutils" ,binutils-mesboot0)
+ ("gawk" ,gawk-mesboot0)
+ ("gcc" ,gcc-mesboot0)
+ ("gzip" ,gzip-mesboot0)
+ ("libc" ,glibc-mesboot0)
+ ("make" ,make-mesboot0)
+ ;; ("patch" ,patch-mesboot0)
+ ;; ("sed" ,sed-mesboot0)
+ ;; ("tar" ,tar-mesboot0)
+
+ ("gash" ,%bootstrap-gash)
+ ("guile" ,%bootstrap-guile)
+ ("kernel-headers" ,%bootstrap-linux-libre-headers)))
+ (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 gmp-boot
(package
(inherit gmp)
- 32/63: bootstrap: gcc-mesboot0: Scheme-only bootstrap., (continued)
- 32/63: bootstrap: gcc-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 31/63: bootstrap: glibc-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 33/63: bootstrap: Add tar-mesboot., guix-commits, 2019/11/24
- 34/63: bootstrap: Add grep-mesboot., guix-commits, 2019/11/24
- 35/63: bootstrap: Add binutils-mesboot1., guix-commits, 2019/11/24
- 36/63: bootstrap: Add coreutils-mesboot0., guix-commits, 2019/11/24
- 37/63: bootstrap: Add make-mesboot., guix-commits, 2019/11/24
- 38/63: bootstrap: Add gawk-mesboot., guix-commits, 2019/11/24
- 39/63: bootstrap: Add sed-mesboot., guix-commits, 2019/11/24
- 40/63: bootstrap: Add gcc-core-mesboot1., guix-commits, 2019/11/24
- 41/63: bootstrap: Add bash-mesboot.,
guix-commits <=
- 42/63: bootstrap: Add gcc-mesboot1: Scheme-only bootstrap., guix-commits, 2019/11/24
- 43/63: bootstrap: Add xz-mesboot., guix-commits, 2019/11/24
- 44/63: bootstrap: Add hello-mesboot., guix-commits, 2019/11/24
- 45/63: bootstrap: binutils-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 46/63: bootstrap: glibc-headers-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 47/63: bootstrap: glibc-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 48/63: bootstrap: gcc-mesboot1-wrapper: Scheme-only bootstrap., guix-commits, 2019/11/24
- 49/63: bootstrap: gcc-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 50/63: bootstrap: gcc-mesboot-wrapper: Scheme-only bootstrap., guix-commits, 2019/11/24
- 52/63: bootstrap: Remove m4-bootstrap., guix-commits, 2019/11/24