diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-12-11 17:59:44 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:42:49 +0200 |
commit | b089f95f144d2b75ebfb603b6f508915db10c601 (patch) | |
tree | faa8ba961be7f3bdb9fba0c8ac638239daded636 | |
parent | 949ee85019b242d29a1065cde27c491af57b657b (diff) | |
download | guix-b089f95f144d2b75ebfb603b6f508915db10c601.tar guix-b089f95f144d2b75ebfb603b6f508915db10c601.tar.gz |
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 0966b4a9de..d260a48767 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -1055,6 +1055,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) |