[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/63: bootstrap: Add gawk-mesboot0.
From: |
guix-commits |
Subject: |
27/63: bootstrap: Add gawk-mesboot0. |
Date: |
Sun, 24 Nov 2019 05:56:28 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 81045e6092a61ff269f66816db666a39f38568f3
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Oct 6 22:08:05 2019 +0200
bootstrap: Add gawk-mesboot0.
* gnu/packages/commencement.scm (gawk-mesboot0): New variable.
---
gnu/packages/commencement.scm | 78 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 6e8510d..a0215a9 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1145,6 +1145,84 @@ ac_cv_c_float_format='IEEE (little-endian)'
(variable "C_INCLUDE_PATH")
(files '("include")))))))
+(define gawk-mesboot0
+ (package
+ (inherit gawk)
+ (name "gawk-mesboot0")
+ (version "3.0.0")
+ (source (bootstrap-origin
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gawk/gawk-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "087s7vpc8zawn3l7bwv9f44bf59rc398hvaiid63klw6fkbvabr3")))))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `( ;;("debug-patch" ,(search-patch "gawk-debug.patch"))
+ ("patch" ,patch-mesboot0)
+ ("bash" ,bash-mesboot0)
+ ("diffutils" ,diffutils-mesboot)
+ ("gzip" ,gzip-mesboot0)
+ ("make" ,make-mesboot0)
+ ("sed" ,sed-mesboot0)
+ ("tcc" ,tcc-boot)
+
+ ("gash" ,%bootstrap-gash)
+ ("guile" ,%bootstrap-guile)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:configure-flags '("--build=i686-unknown-linux-gnu"
+ "--host=i686-unknown-linux-gnu"
+ "--disable-nls")
+ #:make-flags '("gawk")
+ #:parallel-build? #f
+ #:parallel-tests? #f
+ #:strip-binaries? #f ; no strip yet
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "Makefile.in"
+ (("date ") "echo today ")
+ ((" autoheader") "true")
+ ((" -lm ") " "))
+ (substitute* "test/Makefile.in"
+ (("^bigtest:.*") "bigtest: basic\n")
+ (("( |\t)(childin|convfmt|fflush|longwrds|math|negexp)" all
sep) sep))))
+ (add-before 'configure 'setenv
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (shell (string-append bash "/bin/bash")))
+ (setenv "CONFIG_SHELL" shell)
+ (setenv "SHELL" shell)
+ (setenv "CC" "tcc")
+ (setenv "CPP" "tcc -E")
+ (setenv "LD" "tcc")
+ (setenv "ac_cv_func_getpgrp_void" "yes")
+ (setenv "ac_cv_func_tzset" "yes"))
+ #t))
+ (replace 'configure ; needs classic invocation of configure
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (let* ((out (assoc-ref %outputs "out"))
+ (configure-flags
+ `(,@configure-flags
+ ,(string-append "--prefix=" out))))
+ (format (current-error-port) "running ./configure ~a\n"
(string-join configure-flags))
+ (system* "touch" "configure") ; aclocal.m4 is newer than
configure
+ (apply invoke (cons "./configure" configure-flags)))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "gawk" bin)
+ (symlink "gawk" (string-append bin "/awk"))
+ #t))))))))
+
(define glibc-mesboot0
;; GNU C Library 2.2.5 is the most recent glibc that we managed to build
;; using gcc-2.95.3. Newer versions (2.3.x, 2.6, 2.1x) seem to need a newer
- 18/63: bootstrap: make-mesboot0: Scheme-only bootstrap., (continued)
- 18/63: bootstrap: make-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 19/63: bootstrap: Add bzip2-mesboot0., guix-commits, 2019/11/24
- 20/63: bootstrap: Add bash-mesboot0., guix-commits, 2019/11/24
- 21/63: bootstrap: tcc-boot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 22/63: bootstrap: diffuils-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 24/63: bootstrap: Add sed-mesboot0., guix-commits, 2019/11/24
- 23/63: bootstrap: Add patch-mesboot0., guix-commits, 2019/11/24
- 25/63: bootstrap: binutils-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 26/63: bootstrap: gcc-core-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 28/63: bootstrap: Add bash-mesboot1., guix-commits, 2019/11/24
- 27/63: bootstrap: Add gawk-mesboot0.,
guix-commits <=
- 29/63: Revert "bootstrap: Add bash-mesboot1.", guix-commits, 2019/11/24
- 30/63: bootstrap: mesboot-headers: Scheme-only bootstrap., guix-commits, 2019/11/24
- 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