[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/54: bootstrap: diffuils-mesboot: Scheme-only bootstrap.
From: |
guix-commits |
Subject: |
21/54: bootstrap: diffuils-mesboot: Scheme-only bootstrap. |
Date: |
Fri, 22 Nov 2019 18:17:51 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 3ce0cead4b8f2d7e4f495528e68c3836808ff440
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Sep 22 00:56:46 2019 +0200
bootstrap: diffuils-mesboot: Scheme-only bootstrap.
* gnu/packages/commencement.scm (diffutils-mesboot): Scheme-only bootstrap.
---
gnu/packages/commencement.scm | 55 ++++++++++++++++++++++++++-----------------
1 file changed, 33 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 6a3b11c..ba1d6f2 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -765,22 +765,24 @@
(inherit diffutils)
(name "diffutils-mesboot")
(version "2.7")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/diffutils/diffutils-"
- version ".tar.gz"))
- (sha256
- (base32
- "1mirn5i825bn5w7rh6mgn0r8aj9xqanav95dwcl1b8sn82f4iwnm"))))
+ (source (bootstrap-origin
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/diffutils/diffutils-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1mirn5i825bn5w7rh6mgn0r8aj9xqanav95dwcl1b8sn82f4iwnm")))))
(supported-systems '("i686-linux" "x86_64-linux"))
(inputs '())
(propagated-inputs '())
- (native-inputs `(("mes" ,mes-boot)
+ (native-inputs `(("gzip" ,gzip-mesboot0)
+ ("make" ,make-mesboot0)
("tcc" ,tcc-boot)
- ("bash" ,%bootstrap-coreutils&co)
- ("coreutils" ,%bootstrap-coreutils&co)
- ("make" ,make-mesboot0)))
+ ("bash" ,%bootstrap-gash)
+ ("gash" ,%bootstrap-gash)
+ ("guile" ,%bootstrap-guile)))
(arguments
`(#:implicit-inputs? #f
#:guile ,%bootstrap-guile
@@ -789,20 +791,29 @@
#: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
- 15/54: bootstrap: tcc-boot0: Scheme-only bootstrap. WIP, (continued)
- 15/54: bootstrap: tcc-boot0: Scheme-only bootstrap. WIP, guix-commits, 2019/11/22
- 14/54: bootstrap: mes-boot: Scheme-only bootstrap. WIP, guix-commits, 2019/11/22
- 11/54: bootstrap: bootstrap-mes: Update for mes-0.21. WIP, guix-commits, 2019/11/22
- 16/54: bootstrap: Add gzip-mesboot0., guix-commits, 2019/11/22
- 19/54: bootstrap: Add bash-mesboot0., guix-commits, 2019/11/22
- 17/54: bootstrap: make-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/22
- 22/54: bootstrap: Add patch-mesboot0., guix-commits, 2019/11/22
- 24/54: bootstrap: binutils-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/22
- 31/54: bootstrap: gcc-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/22
- 23/54: bootstrap: Add sed-mesboot0., guix-commits, 2019/11/22
- 21/54: bootstrap: diffuils-mesboot: Scheme-only bootstrap.,
guix-commits <=
- 18/54: bootstrap: Add bzip2-mesboot0., guix-commits, 2019/11/22
- 28/54: Revert "bootstrap: Add bash-mesboot1.", guix-commits, 2019/11/22
- 32/54: bootstrap: Add tar-mesboot., guix-commits, 2019/11/22
- 30/54: bootstrap: glibc-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/22
- 27/54: bootstrap: Add bash-mesboot1., guix-commits, 2019/11/22
- 33/54: bootstrap: Add grep-mesboot., guix-commits, 2019/11/22
- 26/54: bootstrap: Add gawk-mesboot0., guix-commits, 2019/11/22
- 40/54: bootstrap: Add bash-mesboot., guix-commits, 2019/11/22
- 38/54: bootstrap: Add sed-mesboot., guix-commits, 2019/11/22
- 49/54: bootstrap: gcc-mesboot-wrapper: Scheme-only bootstrap., guix-commits, 2019/11/22