me
/
guix
Archived
1
0
Fork 0

profiles: 'profile-derivation' uses _IOLBF on Guile 2.0 only.

* guix/profiles.scm (profile-derivation)[builder]: Use _IOLBF on Guile
2.0 only.
master
Ludovic Courtès 2020-03-17 16:10:58 +01:00
parent b03753d8cc
commit 39569dbb5f
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2016 Alex Kost <alezost@gmail.com>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
@ -1511,8 +1511,10 @@ are cross-built for TARGET."
(guix search-paths)
(srfi srfi-1))
(setvbuf (current-output-port) _IOLBF)
(setvbuf (current-error-port) _IOLBF)
(let ((line (cond-expand (guile-2.2 'line)
(else _IOLBF)))) ;Guile 2.0
(setvbuf (current-output-port) line)
(setvbuf (current-error-port) line))
#+(if locales? set-utf8-locale #t)