[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/63: bootstrap: Add bzip2-mesboot0.
From: |
guix-commits |
Subject: |
19/63: bootstrap: Add bzip2-mesboot0. |
Date: |
Sun, 24 Nov 2019 05:54:40 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit f064220a91bae07954db6f17341982c57e3d54c3
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sat Sep 21 22:32:18 2019 +0200
bootstrap: Add bzip2-mesboot0.
* gnu/packages/commencement.scm (bzip2-mesboot0): New variable.
---
gnu/packages/commencement.scm | 65 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3326bbb..511380c 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -457,6 +457,71 @@
(bin (string-append out "/bin")))
(install-file "make" bin)))))))))
+(define bzip2-mesboot0
+ (package
+ (inherit bzip2)
+ (name "bzip2-mesboot0")
+ (version (package-version bzip2))
+ (source (bootstrap-origin (package-source bzip2)))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("bash" ,%bootstrap-gash)
+ ("guile" ,%bootstrap-guile)
+ ("gzip" ,gzip-mesboot0)
+ ("make" ,make-mesboot0)
+ ("mes" ,mes-boot)
+ ("tcc" ,tcc-boot0)))
+ (outputs '("out"))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:parallel-build? #f
+ #:tests? #f ; check is naive, also checks non-built PROGRAMS
+ #:strip-binaries? #f ; no strip yet
+ #:make-flags (list "CC=tcc -I ." "AR=tcc -ar" "bzip2"
+ (string-append "PREFIX="
+ (assoc-ref %outputs "out")))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'unpack 'set-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref %outputs "out"))
+ (gash (assoc-ref %build-inputs "bash"))
+ (gzip (assoc-ref %build-inputs "gzip")))
+ (setenv "PATH" (string-append
+ gash "/bin"
+ ":" gzip "/bin"
+ (if (getenv "PATH") ":" "")
+ (getenv "PATH")))
+ (format (current-error-port) "PATH=~s\n" (getenv "PATH")))))
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "Makefile"
+ (("\tln " all)
+ (string-append "\t#" all)))
+ (substitute* "bzip2.c"
+ (("struct utimbuf uTimBuf;" all)
+ (string-append "// " all))
+ (("uTimBuf[.]" all)
+ (string-append "// " all))
+ (("retVal = utime [(] dstName, &uTimBuf [)];" all)
+ (string-append "retVal = 0; // " all)))
+ #t))
+ (replace 'configure
+ (lambda _
+ (with-output-to-file "utime.h"
+ (lambda _ (display "
+#define fchown(filedes, owner, group) 0
+#define fchmod(filedes, mode) 0
+")))
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "./bzip2" "--help")))
+ ;; FIXME: no compressing gzip yet
+ (delete 'compress-documentation))))))
+
(define tcc-boot
(package
(inherit tcc-boot0)
- 09/63: bootstrap: Add gash-boot., (continued)
- 09/63: bootstrap: Add gash-boot., guix-commits, 2019/11/24
- 10/63: bootstrap: Add gash-core-utils-boot., guix-commits, 2019/11/24
- 11/63: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-tarball., guix-commits, 2019/11/24
- 13/63: bootstrap: nyacc-boot. WIP, guix-commits, 2019/11/24
- 12/63: bootstrap: Add %bootstrap-gash. WIP, guix-commits, 2019/11/24
- 14/63: bootstrap: Add %bootstrap-gash-rewired.., guix-commits, 2019/11/24
- 15/63: bootstrap: mes-boot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 16/63: bootstrap: tcc-boot0: Scheme-only bootstrap. WIP, guix-commits, 2019/11/24
- 17/63: bootstrap: Add gzip-mesboot0., guix-commits, 2019/11/24
- 18/63: bootstrap: make-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 19/63: bootstrap: Add bzip2-mesboot0.,
guix-commits <=
- 20/63: bootstrap: Add bash-mesboot0., guix-commits, 2019/11/24
- 21/63: bootstrap: tcc-boot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 22/63: bootstrap: diffuils-mesboot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 24/63: bootstrap: Add sed-mesboot0., guix-commits, 2019/11/24
- 23/63: bootstrap: Add patch-mesboot0., guix-commits, 2019/11/24
- 25/63: bootstrap: binutils-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 26/63: bootstrap: gcc-core-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 28/63: bootstrap: Add bash-mesboot1., guix-commits, 2019/11/24
- 27/63: bootstrap: Add gawk-mesboot0., guix-commits, 2019/11/24
- 29/63: Revert "bootstrap: Add bash-mesboot1.", guix-commits, 2019/11/24