mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
packages: Set the port conversion strategy to 'error'.
Suggested by Mark H Weaver. * guix/build/gnu-build-system.scm (gnu-build): Set %DEFAULT-PORT-CONVERSION-STRATEGY to 'error. * guix/packages.scm (patch-and-repack)[builder]: Likewise.
This commit is contained in:
parent
ca1e3ad2fa
commit
4db87162e6
2 changed files with 6 additions and 0 deletions
|
@ -499,6 +499,9 @@ (define* (gnu-build #:key (source #f) (outputs #f) (inputs #f)
|
||||||
(setvbuf (current-output-port) _IOLBF)
|
(setvbuf (current-output-port) _IOLBF)
|
||||||
(setvbuf (current-error-port) _IOLBF)
|
(setvbuf (current-error-port) _IOLBF)
|
||||||
|
|
||||||
|
;; Encoding/decoding errors shouldn't be silent.
|
||||||
|
(fluid-set! %default-port-conversion-strategy 'error)
|
||||||
|
|
||||||
;; The trick is to #:allow-other-keys everywhere, so that each procedure in
|
;; The trick is to #:allow-other-keys everywhere, so that each procedure in
|
||||||
;; PHASES can pick the keyword arguments it's interested in.
|
;; PHASES can pick the keyword arguments it's interested in.
|
||||||
(every (match-lambda
|
(every (match-lambda
|
||||||
|
|
|
@ -412,6 +412,9 @@ (define builder
|
||||||
(srfi srfi-1)
|
(srfi srfi-1)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
|
|
||||||
|
;; Encoding/decoding errors shouldn't be silent.
|
||||||
|
(fluid-set! %default-port-conversion-strategy 'error)
|
||||||
|
|
||||||
(let ((locales (assoc-ref %build-inputs "locales"))
|
(let ((locales (assoc-ref %build-inputs "locales"))
|
||||||
(out (assoc-ref %outputs "out"))
|
(out (assoc-ref %outputs "out"))
|
||||||
(xz (assoc-ref %build-inputs "xz"))
|
(xz (assoc-ref %build-inputs "xz"))
|
||||||
|
|
Loading…
Reference in a new issue