mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: commencement: Add bzip2-mesboot.
* gnu/packages/commencement.scm (bzip2-mesboot): New variable.
This commit is contained in:
parent
19be1dc65b
commit
0bf3466372
1 changed files with 50 additions and 0 deletions
|
@ -789,6 +789,56 @@ (define (%boot-tcc0-inputs)
|
||||||
("tcc" ,tcc-boot0)
|
("tcc" ,tcc-boot0)
|
||||||
,@(%boot-gash-inputs)))
|
,@(%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
|
(define tcc-boot
|
||||||
(package
|
(package
|
||||||
(inherit tcc-boot0)
|
(inherit tcc-boot0)
|
||||||
|
|
Loading…
Reference in a new issue