[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/163: gnu: Add m4-boot.
From: |
Jan Nieuwenhuizen |
Subject: |
61/163: gnu: Add m4-boot. |
Date: |
Thu, 30 Aug 2018 01:03:22 -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
- 81/163: REMOVEME: %fake-bootstrap => #t., (continued)
- 81/163: REMOVEME: %fake-bootstrap => #t., Jan Nieuwenhuizen, 2018/08/30
- 75/163: Revert "gnu: gcc-boot: Update to 3.4.0.", Jan Nieuwenhuizen, 2018/08/30
- 85/163: gnu: mes-boot: Update for linux-4.17 elf32-header fix., Jan Nieuwenhuizen, 2018/08/30
- 89/163: gnu: %tinycc-seed: Update for mes 0.16., Jan Nieuwenhuizen, 2018/08/30
- 77/163: Revert "gnu: gcc-boot: Update to 3.0.", Jan Nieuwenhuizen, 2018/08/30
- 94/163: gnu: tcc-boot0: Update for mes 0.16., Jan Nieuwenhuizen, 2018/08/30
- 24/163: gnu: Update mescc-tools-boot, mes-boot, tcc-boot for blood-elf., Jan Nieuwenhuizen, 2018/08/30
- 26/163: gnu: Update mescc-tools-boot, mes-boot, tcc-boot., Jan Nieuwenhuizen, 2018/08/30
- 39/163: gnu: %tinycc-seed: Update for mes-0.12., Jan Nieuwenhuizen, 2018/08/30
- 50/163: gnu: mes-boot: Update to 0.14., Jan Nieuwenhuizen, 2018/08/30
- 61/163: gnu: Add m4-boot.,
Jan Nieuwenhuizen <=
- 74/163: gnu: gcc-boot: Update to 3.4.0., Jan Nieuwenhuizen, 2018/08/30
- 66/163: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/08/30
- 76/163: Revert "gnu: gcc-boot: Update to 3.2.", Jan Nieuwenhuizen, 2018/08/30
- 88/163: gnu: mes-boot: Update to 0.16., Jan Nieuwenhuizen, 2018/08/30
- 87/163: gnu: %mes-seed: Update for mes 0.16., Jan Nieuwenhuizen, 2018/08/30
- 93/163: gnu: Add tcc-boot 0.9.27., Jan Nieuwenhuizen, 2018/08/30
- 98/163: gnu: binutils-boot0: Inject AR, LD from bootstrap-binaries., Jan Nieuwenhuizen, 2018/08/30
- 73/163: gnu: gcc-boot: Update to 3.2., Jan Nieuwenhuizen, 2018/08/30
- 80/163: gnu: Add gcc-core-boot 2.95.3., Jan Nieuwenhuizen, 2018/08/30
- 69/163: gnu: gcc-boot: Update to 2.6.3., Jan Nieuwenhuizen, 2018/08/30