[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/58: gnu: commencement: Add bzip2-mesboot.
From: |
guix-commits |
Subject: |
11/58: gnu: commencement: Add bzip2-mesboot. |
Date: |
Thu, 6 Feb 2020 17:52:13 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit b9f0e4b434dc665e09cdac96be49c4f853573b4d
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sat Sep 21 22:32:18 2019 +0200
gnu: commencement: Add bzip2-mesboot.
* gnu/packages/commencement.scm (bzip2-mesboot): New variable.
---
gnu/packages/commencement.scm | 50 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 36aae71..333e8be 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -788,6 +788,56 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
("tcc" ,tcc-boot0)
,@(%boot-gash-inputs)))
+(define bzip2-mesboot
+ ;; The initial bzip2
+ (package
+ (inherit bzip2)
+ (name "bzip2-mesboot")
+ (version (package-version bzip2))
+ (source (bootstrap-origin (package-source bzip2)))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs (%boot-tcc0-inputs))
+ (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-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)
- branch wip-bootstrap created (now d86b17e), guix-commits, 2020/02/06
- 01/58: gnu: Add gash-core-utils., guix-commits, 2020/02/06
- 06/58: gnu: commencement: Add %bootstrap-mes-rewired., guix-commits, 2020/02/06
- 03/58: gnu: commencement: Add %bootstrap-guile+guild., guix-commits, 2020/02/06
- 09/58: gnu: commencement: Add gzip-mesboot., guix-commits, 2020/02/06
- 20/58: gnu: commencement: mesboot-headers: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 02/58: gnu: bootstrap: Add janneke's guix package url., guix-commits, 2020/02/06
- 04/58: gnu: commencement: Add gash-boot., guix-commits, 2020/02/06
- 16/58: gnu: commencement: Add sed-mesboot0., guix-commits, 2020/02/06
- 08/58: gnu: commencement: tcc-boot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 11/58: gnu: commencement: Add bzip2-mesboot.,
guix-commits <=
- 05/58: gnu: commencement: Add gash-core-utils-boot., guix-commits, 2020/02/06
- 10/58: gnu: commencement: make-mesboot0: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 28/58: gnu: commencement: Add gawk-mesboot., guix-commits, 2020/02/06
- 29/58: gnu: commencement: Add sed-mesboot., guix-commits, 2020/02/06
- 12/58: gnu: commencement: Add bash-mesboot0., guix-commits, 2020/02/06
- 19/58: gnu: commencement: Add gawk-mesboot0., guix-commits, 2020/02/06
- 07/58: gnu: commencement: mes-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/06
- 40/58: gnu: commencement: gcc-mesboot-wrapper: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 39/58: gnu: commencement: gcc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/06
- 49/58: gnu: commencement: Add coreutils-boot0., guix-commits, 2020/02/06