[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: bootstrap: Force i686-linux for bootstrap-tarballs.
From: |
guix-commits |
Subject: |
01/06: bootstrap: Force i686-linux for bootstrap-tarballs. |
Date: |
Sat, 24 Nov 2018 02:20:26 -0500 (EST) |
janneke pushed a commit to branch core-updates-next
in repository guix.
commit da91723cc5bba433f59ac40ee669d97e4cbc0e45
Author: Jan Nieuwenhuizen <address@hidden>
Date: Tue Nov 20 08:12:09 2018 +0100
bootstrap: Force i686-linux for bootstrap-tarballs.
* gnu/packages/make-bootstrap.scm (%mescc-tools-static): Force i686-linux
for
bootstrap-tarballs.
(%mes-minimal): Likewise. Remove i686-linux cross-compiler dependency.
* gnu/packages/commencement.scm (mes-boot): Support strict i686-linux build
on
x86_64.
---
gnu/packages/commencement.scm | 2 ++
gnu/packages/make-bootstrap.scm | 19 +++++++------------
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index ed8a429..3d3f8e6 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -174,6 +174,8 @@
(symlink (string-append "../nyacc-source/module") "nyacc")
(setenv "GUILE_LOAD_PATH" "nyacc")
(setenv "GUILE_TOOLS" "true") ; no tools in bootstrap-guile
+ (substitute* "configure.sh"
+ (("^arch=.*") "arch=i686\n"))
(invoke "bash" "configure.sh"
(string-append "--prefix=" out))
(setenv "MES" "src/mes")
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index fa3914c..761420a 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -542,9 +542,10 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
(inherit mescc-tools)
(name "mescc-tools-static")
(arguments
- (substitute-keyword-arguments (package-arguments mescc-tools)
- ((#:make-flags flags)
- `(cons "CC=gcc -static" ,flags))))))
+ `(#:system "i686-linux"
+ ,@(substitute-keyword-arguments (package-arguments mescc-tools)
+ ((#:make-flags flags)
+ `(cons "CC=gcc -static" ,flags)))))))
(define %mes-minimal
;; A minimal Mes without documentation dependencies, for bootstrap.
@@ -553,16 +554,10 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
(inherit mes)
(name "mes-minimal")
(native-inputs
- `(("guile" ,guile-2.2)
- ,@(if (not (string-prefix? "i686-linux" (or (%current-target-system)
- (%current-system))))
- ;; Use cross-compiler rather than #:system "i686-linux" to get
- ;; MesCC 64 bit .go files installed ready for use with Guile.
- `(("i686-linux-binutils" ,(cross-binutils triplet))
- ("i686-linux-gcc" ,(cross-gcc triplet)))
- '())))
+ `(("guile" ,guile-2.2)))
(arguments
- `(#:strip-binaries? #f
+ `(#:system "i686-linux"
+ #:strip-binaries? #f
#:phases
(modify-phases %standard-phases
(add-before 'configure 'optional-dot
- branch core-updates-next updated (d9ed0a4 -> 4ae7dc7), guix-commits, 2018/11/24
- 06/06: gnu: Remove duplicate linux-libre-headers package from bootstrap inputs., guix-commits, 2018/11/24
- 05/06: gnu: gcc-boot0: Improve gcc-wrapper workarounds., guix-commits, 2018/11/24
- 03/06: gnu: Remove gcc-for-libstdc++., guix-commits, 2018/11/24
- 02/06: doc: Update for bootstrap-mescc-tools change., guix-commits, 2018/11/24
- 01/06: bootstrap: Force i686-linux for bootstrap-tarballs.,
guix-commits <=
- 04/06: gnu: libstdc++-boot0: Improve gcc-wrapper workaround., guix-commits, 2018/11/24