[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/70: bootstrap: Add gzip-mesboot.
From: |
guix-commits |
Subject: |
22/70: bootstrap: Add gzip-mesboot. |
Date: |
Wed, 11 Dec 2019 13:04:42 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit b63a651e935e5c39a398d87f740a61a9f01d15ac
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sat Sep 21 22:03:44 2019 +0200
bootstrap: Add gzip-mesboot.
* gnu/packages/commencement.scm (gzip-mesboot): New variable.
---
gnu/packages/commencement.scm | 56 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index a9c6e9e..3f88e34 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -689,6 +689,62 @@ $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 (bootstrap-origin
+ (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)
- 62/70: gnu: Add ed-1.4., (continued)
- 62/70: gnu: Add ed-1.4., guix-commits, 2019/12/11
- 65/70: bootstrap: Add bzip2-boot0., guix-commits, 2019/12/11
- 68/70: bootstrap: Add coreutils-boot0., guix-commits, 2019/12/11
- 32/70: bootstrap: Add gawk-mesboot0., guix-commits, 2019/12/11
- 38/70: bootstrap: Add binutils-mesboot1., guix-commits, 2019/12/11
- 42/70: bootstrap: Add sed-mesboot., guix-commits, 2019/12/11
- 46/70: bootstrap: Add gcc-mesboot1: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 52/70: bootstrap: glibc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 56/70: bootstrap: Add coreutils-mesboot., guix-commits, 2019/12/11
- 60/70: bootstrap: Add sed-boot0., guix-commits, 2019/12/11
- 22/70: bootstrap: Add gzip-mesboot.,
guix-commits <=
- 16/70: bootstrap: Add gash-boot., guix-commits, 2019/12/11
- 27/70: bootstrap: diffuils-mesboot: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 47/70: bootstrap: Add xz-mesboot., guix-commits, 2019/12/11
- 59/70: bootstrap: Add gawk-boot0., guix-commits, 2019/12/11
- 58/70: bootstrap: %bootstrap-inputs+toolchain: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 70/70: bootstrap: patch-boot0: Remove ed dependency., guix-commits, 2019/12/11
- 63/70: bootstrap: Add ed-boot0., guix-commits, 2019/12/11
- 67/70: bootstrap: Typo., guix-commits, 2019/12/11
- 69/70: bootstrap: coreutils-final: Inherit from coreutils-minimal., guix-commits, 2019/12/11
- 66/70: bootstrap: Add tar-boot0., guix-commits, 2019/12/11