[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/58: gnu: commencement: diffutils-mesboot: Use Gash instead of coretut
From: |
guix-commits |
Subject: |
14/58: gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co. |
Date: |
Thu, 6 Feb 2020 17:52:14 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 24a305cc9da188e12ea0c78787c9e7e5bd35cae3
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sun Sep 22 00:56:46 2019 +0200
gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co.
* gnu/packages/commencement.scm (diffutils-mesboot): Use Gash instead of
coretutils&co.
---
gnu/packages/commencement.scm | 39 ++++++++++++++++++++++-----------------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 2bfb951..9b3d68c 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1048,6 +1048,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
#t)))))))))
(define diffutils-mesboot
+ ;; The initial diffutils.
(package
(inherit diffutils)
(name "diffutils-mesboot")
@@ -1062,12 +1063,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(supported-systems '("i686-linux" "x86_64-linux"))
(inputs '())
(propagated-inputs '())
- (native-inputs `(("mes" ,mes-boot)
- ("tcc" ,tcc-boot)
-
- ("bash" ,%bootstrap-coreutils&co)
- ("coreutils" ,%bootstrap-coreutils&co)
- ("make" ,make-mesboot0)))
+ (native-inputs (%boot-tcc0-inputs))
(arguments
`(#:implicit-inputs? #f
#:guile ,%bootstrap-guile
@@ -1076,20 +1072,29 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
#:strip-binaries? #f ; no strip yet
#:phases
(modify-phases %standard-phases
- ;; diffutils-2.7 needs more traditional configure
- (replace 'configure
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (bash (assoc-ref %build-inputs "bash")))
- (setenv "CONFIG_SHELL" (string-append bash "/bin/sh"))
- (setenv "CC" "tcc")
- (setenv "LD" "tcc")
- (invoke "./configure" (string-append "--prefix=" out)))))
(add-before 'configure 'remove-diff3-sdiff
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "Makefile.in"
- (("PROGRAMS = .*" all) "PROGRAMS = cmp diff"))
- #t)))))))
+ (("PROGRAMS = .*" all) "PROGRAMS = cmp diff"))))
+ (replace 'configure ; needs classic invocation of configure
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (let* ((out (assoc-ref %outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (shell (string-append bash "/bin/bash")))
+ (setenv "CONFIG_SHELL" shell)
+ (setenv "CC" "tcc")
+ (setenv "LD" "tcc")
+ (format (current-error-port)
+ "running ./configure ~a\n" (string-join
configure-flags))
+ (apply invoke (cons "./configure" configure-flags)))))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (mkdir-p bin)
+ (install-file "cmp" bin)
+ (install-file "diff" bin)
+ #t))))))))
(define binutils-mesboot0
(package
- 28/58: gnu: commencement: Add gawk-mesboot., (continued)
- 28/58: gnu: commencement: Add gawk-mesboot., guix-commits, 2020/02/06
- 29/58: gnu: commencement: Add sed-mesboot., guix-commits, 2020/02/06
- 12/58: gnu: commencement: Add bash-mesboot0., guix-commits, 2020/02/06
- 19/58: gnu: commencement: Add gawk-mesboot0., guix-commits, 2020/02/06
- 07/58: gnu: commencement: mes-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 40/58: gnu: commencement: gcc-mesboot-wrapper: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 39/58: gnu: commencement: gcc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 49/58: gnu: commencement: Add coreutils-boot0., guix-commits, 2020/02/06
- 27/58: gnu: commencement: Add make-mesboot., guix-commits, 2020/02/06
- 13/58: gnu: commencement: tcc-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 14/58: gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co.,
guix-commits <=
- 22/58: gnu: commencement: gcc-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 35/58: gnu: commencement: binutils-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 41/58: gnu: commencement: Add coreutils-mesboot., guix-commits, 2020/02/06
- 53/58: gnu: commencement: gnu-make-mesboot0: Rename from make-mesboot0., guix-commits, 2020/02/06
- 57/58: gnu: commencement: mes-boot: Update to 0.22., guix-commits, 2020/02/06
- 17/58: gnu: commencement: binutils-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 23/58: gnu: commencement: Add tar-mesboot., guix-commits, 2020/02/06
- 26/58: gnu: commencement: Add coreutils-mesboot0., guix-commits, 2020/02/06
- 25/58: gnu: commencement: Add binutils-mesboot1., guix-commits, 2020/02/06
- 15/58: gnu: commencement: Add patch-mesboot., guix-commits, 2020/02/06