diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-12-11 17:59:44 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-12-19 23:51:11 +0100 |
commit | 8d88ef1ac72a36010f23e4e3a158c44f4eb50132 (patch) | |
tree | 1aa9fbd2d4ebde6f0d2d703cd9109bcfa4e37869 | |
parent | 10ed3f0c7b5c4e706bb4e7e5a81caa60abdfee3a (diff) |
packages: Output and error ports are line-buffered in ‘patch-and-repack’.
* guix/packages.scm (patch-and-repack): Add ‘setvbuf’ calls.
Change-Id: I039bb6407263d5172bf0bc716bda6860dc2615fb
-rw-r--r-- | guix/packages.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index 4b0c478ff4..cb8db925f8 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -1007,6 +1007,11 @@ specifies modules in scope when evaluating SNIPPET." '("--no-recursion" "--files-from=.file_list")))) + (let ((line (cond-expand (guile-2.0 _IOLBF) + (else 'line)))) + (setvbuf (current-output-port) line) + (setvbuf (current-error-port) line)) + ;; Encoding/decoding errors shouldn't be silent. (fluid-set! %default-port-conversion-strategy 'error) |