[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/63: gnu: commencement: Add gzip-mesboot.
From: |
guix-commits |
Subject: |
09/63: gnu: commencement: Add gzip-mesboot. |
Date: |
Thu, 13 Feb 2020 10:11:15 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit c98432045a1434cfd512beeb19f9bdb6cc5f6aad
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sat Sep 21 22:03:44 2019 +0200
gnu: commencement: Add gzip-mesboot.
* gnu/packages/commencement.scm (gzip-mesboot): New variable.
---
gnu/packages/commencement.scm | 55 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 677794b..f3ad8f5 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -673,6 +673,61 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(variable "LIBRARY_PATH")
(files '("lib")))))))
+(define gzip-mesboot
+ ;; The initial gzip. We keep this scripted gzip build before building make
+ ;; to soften the dependency on Gash Core Utils gzip.
+ (package
+ (inherit gzip)
+ (version "1.2.4")
+ (name "gzip-mesboot")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gzip/gzip-" version ".tar"))
+ (sha256
+ (base32
+ "1rhgk2vvmdvnn6vygf0dja92ryyng00knl0kz5srb77k2kryjb2d"))))
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("tcc" ,tcc-boot0)
+ ,@(%boot-gash-inputs)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:strip-binaries? #f ; no strip yet
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "util.c"
+ (("^char [*]strlwr" all) (string-append all
"_tcc_cannot_handle_dupe")))
+ #t))
+ (replace 'build
+ (lambda _
+ (let ((files '("bits" "crypt" "deflate" "getopt" "gzip"
+ "inflate" "lzw" "trees" "unlzh" "unlzw"
+ "unpack" "unzip" "util" "zip")))
+ (define (compile x)
+ (invoke "tcc" "-c" "-D NO_UTIME=1" "-D HAVE_UNISTD_H=1"
+ (string-append x ".c")))
+ (for-each compile files)
+ (apply invoke
+ (cons* "tcc" "-o" "gzip"
+ (map (lambda (x) (string-append x ".o")) files)))
+ (link "gzip" "gunzip"))))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "gzip" bin)
+ (install-file "gunzip" bin))))
+ (replace 'check
+ (lambda _
+ (invoke "./gzip" "--version")))
+ ;; no gzip yet
+ (delete 'compress-documentation))))))
+
(define tcc-boot
(package
(inherit tcc-boot0)
- branch wip-bootstrap created (now 2a390f9), guix-commits, 2020/02/13
- 01/63: gnu: Add gash-core-utils., guix-commits, 2020/02/13
- 02/63: gnu: bootstrap: Add janneke's guix package url., guix-commits, 2020/02/13
- 05/63: gnu: commencement: Add gash-core-utils-boot., guix-commits, 2020/02/13
- 10/63: gnu: commencement: make-mesboot0: Use Gash instead of coreutils&co., guix-commits, 2020/02/13
- 08/63: gnu: commencement: tcc-boot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 12/63: gnu: commencement: Add bash-mesboot0., guix-commits, 2020/02/13
- 09/63: gnu: commencement: Add gzip-mesboot.,
guix-commits <=
- 07/63: gnu: commencement: mes-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 15/63: gnu: commencement: Add patch-mesboot., guix-commits, 2020/02/13
- 03/63: gnu: commencement: Add %bootstrap-guile+guild., guix-commits, 2020/02/13
- 16/63: gnu: commencement: Add sed-mesboot0., guix-commits, 2020/02/13
- 14/63: gnu: commencement: diffutils-mesboot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 17/63: gnu: commencement: binutils-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 13/63: gnu: commencement: tcc-boot: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 18/63: gnu: commencement: gcc-core-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 20/63: gnu: commencement: mesboot-headers: Use Gash instead of coretutils&co., guix-commits, 2020/02/13
- 25/63: gnu: commencement: Add binutils-mesboot1., guix-commits, 2020/02/13