summaryrefslogtreecommitdiff
path: root/gnu/packages/make-bootstrap.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-07-18 16:05:21 +0200
committerLudovic Courtès <ludo@gnu.org>2021-07-18 19:50:01 +0200
commit0e47fcced442d8e7c1b05184fdc1c14f10ed04ec (patch)
tree4ae844bc0ec3c670f8697bdc24362c122fa718ad /gnu/packages/make-bootstrap.scm
parente4b70bc55a538569465bcedee19d1f2607308e65 (diff)
parent8b1bde7bb3936a64244824500ffe60f123704437 (diff)
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/make-bootstrap.scm')
-rw-r--r--gnu/packages/make-bootstrap.scm32
1 files changed, 14 insertions, 18 deletions
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 5c306c145d8..60b6f1b42e3 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> 3;;; Copyright © 2017, 2021 Efraim Flashner <efraim@flashner.co.il>
4;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> 4;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
5;;; Copyright © 2018, 2019 Mark H Weaver <mhw@netris.org> 5;;; Copyright © 2018, 2019 Mark H Weaver <mhw@netris.org>
6;;; Copyright © 2018, 2019, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> 6;;; Copyright © 2018, 2019, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
@@ -56,8 +56,7 @@
56 %mes-bootstrap-tarball 56 %mes-bootstrap-tarball
57 %bootstrap-tarballs 57 %bootstrap-tarballs
58 58
59 %guile-static-stripped 59 %guile-static-stripped))
60 %guile-3.0-static-stripped))
61 60
62;;; Commentary: 61;;; Commentary:
63;;; 62;;;
@@ -95,13 +94,13 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
95 (mlambdaq (glibc) 94 (mlambdaq (glibc)
96 "Return a variant of GCC that uses the bootstrap variant of GLIBC." 95 "Return a variant of GCC that uses the bootstrap variant of GLIBC."
97 (package 96 (package
98 (inherit gcc-5) 97 (inherit gcc-7)
99 (outputs '("out")) ;all in one so libgcc_s is easily found 98 (outputs '("out")) ;all in one so libgcc_s is easily found
100 (inputs 99 (inputs
101 `( ;; Distinguish the name so we can refer to it below. 100 `( ;; Distinguish the name so we can refer to it below.
102 ("bootstrap-libc" ,(glibc-for-bootstrap glibc)) 101 ("bootstrap-libc" ,(glibc-for-bootstrap glibc))
103 ("libc:static" ,(glibc-for-bootstrap glibc) "static") 102 ("libc:static" ,(glibc-for-bootstrap glibc) "static")
104 ,@(package-inputs gcc-5)))))) 103 ,@(package-inputs gcc-7))))))
105 104
106(define (package-with-relocatable-glibc p) 105(define (package-with-relocatable-glibc p)
107 "Return a variant of P that uses the libc as defined by 106 "Return a variant of P that uses the libc as defined by
@@ -140,7 +139,7 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
140 (cons (search-path-specification 139 (cons (search-path-specification
141 (variable "CROSS_CPLUS_INCLUDE_PATH") 140 (variable "CROSS_CPLUS_INCLUDE_PATH")
142 (files '("include"))) 141 (files '("include")))
143 (package-search-paths gcc-5))))) 142 (package-search-paths gcc-7)))))
144 ("cross-binutils" ,(cross-binutils target)) 143 ("cross-binutils" ,(cross-binutils target))
145 ,@(%final-inputs))) 144 ,@(%final-inputs)))
146 `(("libc" ,(glibc-for-bootstrap glibc)) 145 `(("libc" ,(glibc-for-bootstrap glibc))
@@ -458,11 +457,11 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
458(define %gcc-static 457(define %gcc-static
459 ;; A statically-linked GCC, with stripped-down functionality. 458 ;; A statically-linked GCC, with stripped-down functionality.
460 (package-with-relocatable-glibc 459 (package-with-relocatable-glibc
461 (package (inherit gcc-5) 460 (package (inherit gcc-7)
462 (name "gcc-static") 461 (name "gcc-static")
463 (outputs '("out")) ; all in one 462 (outputs '("out")) ; all in one
464 (arguments 463 (arguments
465 (substitute-keyword-arguments (package-arguments gcc-5) 464 (substitute-keyword-arguments (package-arguments gcc-7)
466 ((#:modules modules %gnu-build-system-modules) 465 ((#:modules modules %gnu-build-system-modules)
467 `((srfi srfi-1) 466 `((srfi srfi-1)
468 (srfi srfi-26) 467 (srfi srfi-26)
@@ -512,8 +511,8 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
512 #t)))))) 511 #t))))))
513 (inputs 512 (inputs
514 `(("zlib:static" ,zlib "static") 513 `(("zlib:static" ,zlib "static")
515 ("isl:static" ,isl-0.18 "static") 514 ("isl:static" ,isl "static")
516 ,@(package-inputs gcc-5))) 515 ,@(package-inputs gcc-7)))
517 (native-inputs 516 (native-inputs
518 (if (%current-target-system) 517 (if (%current-target-system)
519 `(;; When doing a Canadian cross, we need GMP/MPFR/MPC both 518 `(;; When doing a Canadian cross, we need GMP/MPFR/MPC both
@@ -526,12 +525,12 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
526 ("gmp-native" ,gmp) 525 ("gmp-native" ,gmp)
527 ("mpfr-native" ,mpfr) 526 ("mpfr-native" ,mpfr)
528 ("mpc-native" ,mpc) 527 ("mpc-native" ,mpc)
529 ,@(package-native-inputs gcc-5)) 528 ,@(package-native-inputs gcc-7))
530 (package-native-inputs gcc-5)))))) 529 (package-native-inputs gcc-7))))))
531 530
532(define %gcc-stripped 531(define %gcc-stripped
533 ;; The subset of GCC files needed for bootstrap. 532 ;; The subset of GCC files needed for bootstrap.
534 (package (inherit gcc-5) 533 (package (inherit gcc-7)
535 (name "gcc-stripped") 534 (name "gcc-stripped")
536 (build-system trivial-build-system) 535 (build-system trivial-build-system)
537 (source #f) 536 (source #f)
@@ -793,11 +792,8 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
793 (synopsis "Minimal statically-linked and relocatable Guile"))) 792 (synopsis "Minimal statically-linked and relocatable Guile")))
794 793
795(define %guile-static-stripped 794(define %guile-static-stripped
796 ;; A stripped static Guile binary, for use during bootstrap. 795 ;; A stripped static Guile 3.0 binary, for use in initrds
797 (make-guile-static-stripped %guile-static)) 796 ;; and during bootstrap.
798
799(define %guile-3.0-static-stripped
800 ;; A stripped static Guile 3.0 binary, for use in initrds.
801 (make-guile-static-stripped 797 (make-guile-static-stripped
802 (make-guile-static guile-3.0 798 (make-guile-static guile-3.0
803 '("guile-2.2-default-utf8.patch" 799 '("guile-2.2-default-utf8.patch"