[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
48/63: bootstrap: gcc-mesboot1-wrapper: Scheme-only bootstrap.
From: |
guix-commits |
Subject: |
48/63: bootstrap: gcc-mesboot1-wrapper: Scheme-only bootstrap. |
Date: |
Sun, 24 Nov 2019 06:07:19 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 43b70b8a959db61de0d63955f9bd2d7f48fb1f5d
Author: Jan Nieuwenhuizen <address@hidden>
Date: Fri Nov 22 22:27:22 2019 +0100
bootstrap: gcc-mesboot1-wrapper: Scheme-only bootstrap.
* gnu/packages/commencement.scm (gcc-mesboot1-wrapper): Scheme-only
bootstrap.
---
gnu/packages/commencement.scm | 115 +++++++++++++++++++++---------------------
1 file changed, 58 insertions(+), 57 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 99d7598..a9c0381 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2249,63 +2249,6 @@ ac_cv_c_float_format='IEEE (little-endian)'
(("^SUBDIRS = po") "SUBDIRS ="))
#t))))))))
-(define gcc-mesboot1-wrapper
- ;; We need this so gcc-mesboot1 can be used to create shared binaries that
- ;; have the correct interpreter, otherwise configuring gcc-mesboot using
- ;; --enable-shared will fail.
- (package
- (inherit gcc-mesboot1)
- (name "gcc-mesboot1-wrapper")
- (source #f)
- (inputs '())
- (native-inputs `(("bash" ,%bootstrap-coreutils&co)
- ("libc" ,glibc-mesboot)
- ("gcc" ,gcc-mesboot1)))
- (arguments
- `(#:implicit-inputs? #f
- #:guile ,%bootstrap-guile
- #:phases
- (modify-phases %standard-phases
- (delete 'unpack)
- (delete 'configure)
- (delete 'install)
- (replace 'build
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bash (assoc-ref %build-inputs "bash"))
- (libc (assoc-ref %build-inputs "libc"))
- (gcc (assoc-ref %build-inputs "gcc"))
- (bin (string-append out "/bin")))
- (mkdir-p bin)
- (for-each
- (lambda (program)
- (let ((wrapper (string-append bin "/" program)))
- (with-output-to-file wrapper
- (lambda _
- (display (string-append "#! " bash "/bin/bash
-exec " gcc "/bin/" program
-" -Wl,--dynamic-linker"
-;; also for x86_64-linux, we are still on i686-linux
-" -Wl," libc ,(glibc-dynamic-linker "i686-linux")
-" -Wl,--rpath"
-" -Wl," libc "/lib"
-" \"$@\"
-"))
- (chmod wrapper #o555)))))
- '(
- "gcc"
- "g++"
- "i686-unknown-linux-gnu-gcc"
- "i686-unknown-linux-gnu-g++"
- ))
- #t)))
- (replace 'check
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (program (string-append bin "/gcc")))
- (invoke program "--help")))))))))
-
(define glibc-headers-mesboot
(package
(inherit glibc-mesboot0)
@@ -2488,6 +2431,64 @@ SHELL := " shell "
(variable "LIBRARY_PATH")
(files '("lib")))))))
+(define gcc-mesboot1-wrapper
+ ;; We need this so gcc-mesboot1 can be used to create shared binaries that
+ ;; have the correct interpreter, otherwise configuring gcc-mesboot using
+ ;; --enable-shared will fail.
+ (package
+ (inherit gcc-mesboot1)
+ (name "gcc-mesboot1-wrapper")
+ (source #f)
+ (inputs '())
+ (native-inputs `(("bash" ,bash-mesboot)
+ ("coreutils" ,coreutils-mesboot0)
+ ("libc" ,glibc-mesboot)
+ ("gcc" ,gcc-mesboot1)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'unpack)
+ (delete 'configure)
+ (delete 'install)
+ (replace 'build
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (libc (assoc-ref %build-inputs "libc"))
+ (gcc (assoc-ref %build-inputs "gcc"))
+ (bin (string-append out "/bin")))
+ (mkdir-p bin)
+ (for-each
+ (lambda (program)
+ (let ((wrapper (string-append bin "/" program)))
+ (with-output-to-file wrapper
+ (lambda _
+ (display (string-append "#! " bash "/bin/bash
+exec " gcc "/bin/" program
+" -Wl,--dynamic-linker"
+;; also for x86_64-linux, we are still on i686-linux
+" -Wl," libc ,(glibc-dynamic-linker "i686-linux")
+" -Wl,--rpath"
+" -Wl," libc "/lib"
+" \"$@\"
+"))
+ (chmod wrapper #o555)))))
+ '("cpp"
+ "gcc"
+ "g++"
+ "i686-unknown-linux-gnu-cpp"
+ "i686-unknown-linux-gnu-gcc"
+ "i686-unknown-linux-gnu-g++"))
+ #t)))
+ (replace 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (program (string-append bin "/gcc")))
+ (invoke program "--help")))))))))
+
(define gcc-mesboot
(package
(inherit gcc-mesboot1)
- 38/63: bootstrap: Add gawk-mesboot., (continued)
- 38/63: bootstrap: Add gawk-mesboot., guix-commits, 2019/11/24
- 39/63: bootstrap: Add sed-mesboot., guix-commits, 2019/11/24
- 40/63: bootstrap: Add gcc-core-mesboot1., guix-commits, 2019/11/24
- 41/63: bootstrap: Add bash-mesboot., guix-commits, 2019/11/24
- 42/63: bootstrap: Add gcc-mesboot1: Scheme-only bootstrap., guix-commits, 2019/11/24
- 43/63: bootstrap: Add xz-mesboot., guix-commits, 2019/11/24
- 44/63: bootstrap: Add hello-mesboot., guix-commits, 2019/11/24
- 45/63: bootstrap: binutils-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 46/63: bootstrap: glibc-headers-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 47/63: bootstrap: glibc-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 48/63: bootstrap: gcc-mesboot1-wrapper: Scheme-only bootstrap.,
guix-commits <=
- 49/63: bootstrap: gcc-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 50/63: bootstrap: gcc-mesboot-wrapper: Scheme-only bootstrap., guix-commits, 2019/11/24
- 52/63: bootstrap: Remove m4-bootstrap., guix-commits, 2019/11/24
- 51/63: bootstrap: Add coreutils-mesboot., guix-commits, 2019/11/24
- 53/63: bootstrap: %bootstrap-inputs+toolchain: Scheme-only bootstrap., guix-commits, 2019/11/24
- 54/63: bootstrap: Add sed-boot0., guix-commits, 2019/11/24
- 55/63: bootstrap: Remove %bootstrap-coreutils&co, %bootstrap-bash., guix-commits, 2019/11/24
- 56/63: gnu: Add ed-1.4., guix-commits, 2019/11/24
- 57/63: bootstrap: Add ed-boot0., guix-commits, 2019/11/24
- 58/63: bootstrap: Add patch-boot0., guix-commits, 2019/11/24