[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: packages: Output and error ports are line-buffered in ‘patch-and-
From: |
guix-commits |
Subject: |
05/09: packages: Output and error ports are line-buffered in ‘patch-and-repack’. |
Date: |
Tue, 19 Dec 2023 17:53:18 -0500 (EST) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 8d88ef1ac72a36010f23e4e3a158c44f4eb50132
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Dec 11 17:59:44 2023 +0100
packages: Output and error ports are line-buffered in ‘patch-and-repack’.
* guix/packages.scm (patch-and-repack): Add ‘setvbuf’ calls.
Change-Id: I039bb6407263d5172bf0bc716bda6860dc2615fb
---
guix/packages.scm | 5 +++++
1 file changed, 5 insertions(+)
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)
- branch core-updates updated (8161a086ea -> 62e67aa799), guix-commits, 2023/12/19
- 02/09: build-system/gnu: Change default locale to C.UTF-8., guix-commits, 2023/12/19
- 04/09: profiles: Use C.UTF-8 instead of ‘glibc-utf8-locales’ where possible., guix-commits, 2023/12/19
- 05/09: packages: Output and error ports are line-buffered in ‘patch-and-repack’.,
guix-commits <=
- 01/09: packages: Remove reference to ‘glibc-utf8-locales’ in ‘patch-and-repack’., guix-commits, 2023/12/19
- 03/09: gnu: commencement: Remove ‘glibc-utf8-locales’ from ‘%final-inputs’., guix-commits, 2023/12/19
- 06/09: gnu: glibc-utf8-locales: Add the C.UTF-8 locale., guix-commits, 2023/12/19
- 07/09: gnu: glibc: Add patch for ‘ucontext’ on x86_64-gnu (GNU/Hurd)., guix-commits, 2023/12/19
- 08/09: build-system/gnu: Turn PID 1 into an “init”-style process by default., guix-commits, 2023/12/19
- 09/09: gnu: glib: Skip test that fails with glibc 2.38., guix-commits, 2023/12/19