[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
38/58: gnu: commencement: gcc-mesboot1-wrapper: Use Gash instead of core
From: |
guix-commits |
Subject: |
38/58: gnu: commencement: gcc-mesboot1-wrapper: Use Gash instead of coreutils&co. |
Date: |
Thu, 6 Feb 2020 17:52:22 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 920b53935100281f94d9ba555b3fb66033232f10
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Fri Nov 22 22:27:22 2019 +0100
gnu: commencement: gcc-mesboot1-wrapper: Use Gash instead of coreutils&co.
* gnu/packages/commencement.scm (gcc-mesboot1-wrapper): Use Gash instead of
coreutils&co.
---
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 bf41969..2152b14 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2315,63 +2315,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 (%boot-mesboot3-inputs)
`(("binutils" ,binutils-mesboot)
("xz" ,xz-mesboot)
@@ -2512,6 +2455,64 @@ SHELL := " shell "
`(("libc" ,glibc-mesboot)
,@(alist-delete "libc" (%boot-mesboot3-inputs))))
+(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)
- 51/58: gnu: commencement: %bootstrap-tarballs: Remove %bootstrap-binaries-tarball., (continued)
- 51/58: gnu: commencement: %bootstrap-tarballs: Remove %bootstrap-binaries-tarball., guix-commits, 2020/02/06
- 44/58: gnu: commencement: Add gawk-boot0., guix-commits, 2020/02/06
- 31/58: gnu: commencement: Add bash-mesboot., guix-commits, 2020/02/06
- 30/58: gnu: commencement: Add gcc-core-mesboot1., guix-commits, 2020/02/06
- 36/58: gnu: commencement: glibc-headers-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 37/58: gnu: commencement: glibc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 18/58: gnu: commencement: gcc-core-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 24/58: gnu: commencement: Add grep-mesboot., guix-commits, 2020/02/06
- 32/58: gnu: commencement: Add gcc-mesboot1: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 34/58: gnu: commencement: Add hello-mesboot., guix-commits, 2020/02/06
- 38/58: gnu: commencement: gcc-mesboot1-wrapper: Use Gash instead of coreutils&co.,
guix-commits <=
- 33/58: gnu: commencement: Add xz-mesboot., guix-commits, 2020/02/06
- 43/58: gnu: commencement: %bootstrap-inputs+toolchain: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 42/58: gnu: commencement: Remove m4-mesboot., guix-commits, 2020/02/06
- 55/58: gnu: commencement: gash-core-utils-boot: Update to 0.0.214-fc1b., guix-commits, 2020/02/06
- 50/58: gnu: commencement: coreutils-final: Inherit from coreutils-minimal., guix-commits, 2020/02/06
- 48/58: gnu: commencement: Add tar-boot0., guix-commits, 2020/02/06
- 46/58: gnu: commencement: Add patch-boot0., guix-commits, 2020/02/06
- 54/58: gnu: commencement: gnu-make-mesboot: Rename from make-mesboot., guix-commits, 2020/02/06
- 45/58: gnu: commencement: Add sed-boot0., guix-commits, 2020/02/06
- 47/58: gnu: commencement: Add bzip2-boot0., guix-commits, 2020/02/06