[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/160: gnu: Add m4-boot.
From: |
Jan Nieuwenhuizen |
Subject: |
61/160: gnu: Add m4-boot. |
Date: |
Tue, 28 Aug 2018 15:56:16 -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
- 60/160: gnu: tinycc-boot: Update for mes 0.15., (continued)
- 60/160: gnu: tinycc-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/08/28
- 46/160: gnu: mes-boot: Update to 0.13., Jan Nieuwenhuizen, 2018/08/28
- 70/160: gnu: linux-libre-headers-boot0: Export., Jan Nieuwenhuizen, 2018/08/28
- 59/160: gnu: %tinycc-seed: Update for mes 0.15., Jan Nieuwenhuizen, 2018/08/28
- 49/160: gnu: %mes-seed: Update for mes 0.14., Jan Nieuwenhuizen, 2018/08/28
- 48/160: gnu: tcc-boot: Build with mes-boot., Jan Nieuwenhuizen, 2018/08/28
- 51/160: gnu: %tinycc-seed: Update for mes 0.14., Jan Nieuwenhuizen, 2018/08/28
- 53/160: gnu: %mescc-tools-seed: Update for 0.4., Jan Nieuwenhuizen, 2018/08/28
- 56/160: gnu: mescc-tools-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/08/28
- 42/160: gnu: mescc-tools-boot: Remove stage0 dependency., Jan Nieuwenhuizen, 2018/08/28
- 61/160: gnu: Add m4-boot.,
Jan Nieuwenhuizen <=
- 72/160: gnu: gcc-boot: Update to 3.0., Jan Nieuwenhuizen, 2018/08/28
- 66/160: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/08/28
- 44/160: gnu: nyacc-boot: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/08/28
- 54/160: gnu: mescc-tools-boot: Update to 0.4., Jan Nieuwenhuizen, 2018/08/28
- 71/160: gnu: gcc-boot: Update to 2.95.3., Jan Nieuwenhuizen, 2018/08/28
- 34/160: gnu: Update tcc-boot: qsort., Jan Nieuwenhuizen, 2018/08/28
- 41/160: gnu: %mescc-tools-seed: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/08/28
- 40/160: gnu: tinycc-boot: Update for mes-0.12., Jan Nieuwenhuizen, 2018/08/28
- 39/160: gnu: %tinycc-seed: Update for mes-0.12., Jan Nieuwenhuizen, 2018/08/28
- 80/160: gnu: Add gcc-core-boot 2.95.3., Jan Nieuwenhuizen, 2018/08/28