[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/211: gnu: Add m4-boot.
From: |
Jan Nieuwenhuizen |
Subject: |
61/211: gnu: Add m4-boot. |
Date: |
Sat, 8 Sep 2018 11:09:26 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit e1eef46b9cb1cd7328065e9448460071c03bdae5
Author: Jan Nieuwenhuizen <address@hidden>
Date: Mon May 28 19:13:38 2018 +0200
gnu: Add m4-boot.
* gnu/packages/mes.scm (m4-boot): New variable.
---
gnu/packages/mes.scm | 38 ++++++++++++++++++++++++++++++++------
1 file changed, 32 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index d4e7320..0c5aea7 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages gcc)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages guile)
+ #:use-module (gnu packages m4)
#:use-module (gnu packages make-bootstrap)
#:use-module (gnu packages man)
#:use-module (gnu packages package-management)
@@ -37,7 +38,8 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix licenses)
- #:use-module (guix packages))
+ #:use-module (guix packages)
+ #:use-module (guix utils))
(define %fake-bootstrap? #f) ; cheat using Guile instead of Mes for speed-up?
@@ -508,11 +510,35 @@ standard.")
(home-page "http://www.tinycc.org/")
(license lgpl2.1+)))))
-;; gcc-boot
-;; <rain1> what I did was just this [19:11]
-;; <rain1> MAKEINFO=missing CC=tcc $HOME/gcc-4.7.4/configure
-;; --prefix=$HOME/gcc-out --enable-languages=c --disable-multilib
-;; <rain1> with tcc built and installed in $PATH
+(define-public m4-boot
+ (package
+ (inherit m4)
+ (name "m4-boot")
+ (version "1.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/m4/m4-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1f9bxj176kf3pvs350w2dfs8jgwhminywri5pyn01b11yc4yhsjw"))))
+ (supported-systems '("i686-linux"))
+ (native-inputs `(("mes" ,mes-boot)
+ ("tcc" ,tcc-boot)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "CONFIG_SHELL" (string-append
+ (assoc-ref %build-inputs "bash")
+ "/bin/sh"))
+ (setenv "CC" "tcc -static")
+ (setenv "CPP" "tcc -E")
+ (zero?
+ (system* "./configure"
+ (string-append "--prefix=" out)))))))))))
(define-public gcc-boot
(package
- 92/211: gnu: Add binutils-boot 2.20.1, built with gcc+glibc., (continued)
- 92/211: gnu: Add binutils-boot 2.20.1, built with gcc+glibc., Jan Nieuwenhuizen, 2018/09/08
- 80/211: gnu: Add gcc-core-boot 2.95.3., Jan Nieuwenhuizen, 2018/09/08
- 89/211: gnu: %tinycc-seed: Update for mes 0.16., Jan Nieuwenhuizen, 2018/09/08
- 87/211: gnu: %mes-seed: Update for mes 0.16., Jan Nieuwenhuizen, 2018/09/08
- 73/211: gnu: gcc-boot: Update to 3.2., Jan Nieuwenhuizen, 2018/09/08
- 82/211: Revert "REMOVEME: %fake-bootstrap => #t.", Jan Nieuwenhuizen, 2018/09/08
- 74/211: gnu: gcc-boot: Update to 3.4.0., Jan Nieuwenhuizen, 2018/09/08
- 65/211: gnu: binutils-boot: Update to 2.25., Jan Nieuwenhuizen, 2018/09/08
- 71/211: gnu: gcc-boot: Update to 2.95.3., Jan Nieuwenhuizen, 2018/09/08
- 81/211: REMOVEME: %fake-bootstrap => #t., Jan Nieuwenhuizen, 2018/09/08
- 61/211: gnu: Add m4-boot.,
Jan Nieuwenhuizen <=
- 55/211: gnu: %mescc-tools-seed: Update for 0.15., Jan Nieuwenhuizen, 2018/09/08
- 64/211: gnu: binutils-boot: Update to 2.14., Jan Nieuwenhuizen, 2018/09/08
- 54/211: gnu: mescc-tools-boot: Update to 0.4., Jan Nieuwenhuizen, 2018/09/08
- 53/211: gnu: %mescc-tools-seed: Update for 0.4., Jan Nieuwenhuizen, 2018/09/08
- 59/211: gnu: %tinycc-seed: Update for mes 0.15., Jan Nieuwenhuizen, 2018/09/08
- 58/211: gnu: mes-boot: Update to 0.15., Jan Nieuwenhuizen, 2018/09/08
- 51/211: gnu: %tinycc-seed: Update for mes 0.14., Jan Nieuwenhuizen, 2018/09/08
- 67/211: Revert "gnu: binutils-boot: Update to 2.30.", Jan Nieuwenhuizen, 2018/09/08
- 46/211: gnu: mes-boot: Update to 0.13., Jan Nieuwenhuizen, 2018/09/08
- 48/211: gnu: tcc-boot: Build with mes-boot., Jan Nieuwenhuizen, 2018/09/08