gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co.
* gnu/packages/commencement.scm (diffutils-mesboot): Use Gash instead of coretutils&co.master
parent
1be3efb397
commit
aa196f1f02
|
@ -1049,6 +1049,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
|
||||||
#t)))))))))
|
#t)))))))))
|
||||||
|
|
||||||
(define diffutils-mesboot
|
(define diffutils-mesboot
|
||||||
|
;; The initial diffutils.
|
||||||
(package
|
(package
|
||||||
(inherit diffutils)
|
(inherit diffutils)
|
||||||
(name "diffutils-mesboot")
|
(name "diffutils-mesboot")
|
||||||
|
@ -1063,12 +1064,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
|
||||||
(supported-systems '("i686-linux" "x86_64-linux"))
|
(supported-systems '("i686-linux" "x86_64-linux"))
|
||||||
(inputs '())
|
(inputs '())
|
||||||
(propagated-inputs '())
|
(propagated-inputs '())
|
||||||
(native-inputs `(("mes" ,mes-boot)
|
(native-inputs (%boot-tcc0-inputs))
|
||||||
("tcc" ,tcc-boot)
|
|
||||||
|
|
||||||
("bash" ,%bootstrap-coreutils&co)
|
|
||||||
("coreutils" ,%bootstrap-coreutils&co)
|
|
||||||
("make" ,make-mesboot0)))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:implicit-inputs? #f
|
`(#:implicit-inputs? #f
|
||||||
#:guile ,%bootstrap-guile
|
#:guile ,%bootstrap-guile
|
||||||
|
@ -1077,20 +1073,29 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
|
||||||
#:strip-binaries? #f ; no strip yet
|
#:strip-binaries? #f ; no strip yet
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-before 'configure 'remove-diff3-sdiff
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "Makefile.in"
|
(substitute* "Makefile.in"
|
||||||
(("PROGRAMS = .*" all) "PROGRAMS = cmp diff"))
|
(("PROGRAMS = .*" all) "PROGRAMS = cmp diff"))))
|
||||||
#t)))))))
|
(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
|
(define binutils-mesboot0
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue