gnu: make-linux-libre-source: Set output port buffering to line mode.
* gnu/packages/linux.scm (make-linux-libre-source): Set output port buffering to line mode via setvbuf. Remove the ad-hoc calls to force-output.
This commit is contained in:
parent
49bf16b6b1
commit
8b41fdaf3f
|
@ -279,6 +279,9 @@ (define (make-linux-libre-source version
|
|||
(srfi srfi-1)
|
||||
(ice-9 match)
|
||||
(ice-9 ftw))
|
||||
|
||||
(setvbuf (current-output-port) 'line)
|
||||
|
||||
(let ((dir (string-append "linux-" #$version)))
|
||||
|
||||
(mkdir "/tmp/bin")
|
||||
|
@ -315,12 +318,10 @@ (define (make-linux-libre-source version
|
|||
(if (file-is-directory? #+upstream-source)
|
||||
(begin
|
||||
(format #t "Copying upstream linux source...~%")
|
||||
(force-output)
|
||||
(invoke "cp" "--archive" #+upstream-source dir)
|
||||
(invoke "chmod" "--recursive" "u+w" dir))
|
||||
(begin
|
||||
(format #t "Unpacking upstream linux tarball...~%")
|
||||
(force-output)
|
||||
(invoke "tar" "xf" #$upstream-source)
|
||||
(match (scandir "."
|
||||
(lambda (name)
|
||||
|
@ -334,11 +335,9 @@ (define (make-linux-libre-source version
|
|||
|
||||
(with-directory-excursion dir
|
||||
(format #t "Running deblob script...~%")
|
||||
(force-output)
|
||||
(invoke "/tmp/bin/deblob"))
|
||||
|
||||
(format #t "~%Packing new Linux-libre tarball...~%")
|
||||
(force-output)
|
||||
(invoke "tar" "cvfa" #$output
|
||||
;; Avoid non-determinism in the archive.
|
||||
"--mtime=@0"
|
||||
|
|
Loading…
Reference in a new issue