[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/192: gnu: Add m4-boot.
From: |
Jan Nieuwenhuizen |
Subject: |
61/192: gnu: Add m4-boot. |
Date: |
Mon, 3 Sep 2018 16:24:51 -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
- 47/192: gnu: %tinycc-seed: Update for mes 0.13., (continued)
- 47/192: gnu: %tinycc-seed: Update for mes 0.13., Jan Nieuwenhuizen, 2018/09/03
- 60/192: gnu: tinycc-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/09/03
- 43/192: gnu: stage0-boot: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/09/03
- 55/192: gnu: %mescc-tools-seed: Update for 0.15., Jan Nieuwenhuizen, 2018/09/03
- 58/192: gnu: mes-boot: Update to 0.15., Jan Nieuwenhuizen, 2018/09/03
- 64/192: gnu: binutils-boot: Update to 2.14., Jan Nieuwenhuizen, 2018/09/03
- 62/192: gnu: Add binutils-boot 2.5.1., Jan Nieuwenhuizen, 2018/09/03
- 73/192: gnu: gcc-boot: Update to 3.2., Jan Nieuwenhuizen, 2018/09/03
- 82/192: Revert "REMOVEME: %fake-bootstrap => #t.", Jan Nieuwenhuizen, 2018/09/03
- 54/192: gnu: mescc-tools-boot: Update to 0.4., Jan Nieuwenhuizen, 2018/09/03
- 61/192: gnu: Add m4-boot.,
Jan Nieuwenhuizen <=
- 56/192: gnu: mescc-tools-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/09/03
- 70/192: gnu: linux-libre-headers-boot0: Export., Jan Nieuwenhuizen, 2018/09/03
- 81/192: REMOVEME: %fake-bootstrap => #t., Jan Nieuwenhuizen, 2018/09/03
- 74/192: gnu: gcc-boot: Update to 3.4.0., Jan Nieuwenhuizen, 2018/09/03
- 76/192: Revert "gnu: gcc-boot: Update to 3.2.", Jan Nieuwenhuizen, 2018/09/03
- 83/192: gnu: %mescc-tools-seed: Update for linux-4.17 elf32-header fix., Jan Nieuwenhuizen, 2018/09/03
- 66/192: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/09/03
- 88/192: gnu: mes-boot: Update to 0.16., Jan Nieuwenhuizen, 2018/09/03
- 100/192: gnu: m4:mesboot: Rename from m4-boot., Jan Nieuwenhuizen, 2018/09/03
- 92/192: gnu: Add binutils-boot 2.20.1, built with gcc+glibc., Jan Nieuwenhuizen, 2018/09/03