packages: Apply patches with "patch --force".
Fixes <http://bugs.gnu.org/19402>. Reported by Mark H Weaver <mhw@netris.org>. * guix/packages.scm (patch-and-repack): Change "--batch" to "--force".
This commit is contained in:
parent
c4a1b6c2ba
commit
9426440781
|
@ -398,7 +398,10 @@ IMPORTED-MODULES specify modules to use/import for use by SNIPPET."
|
||||||
(define (apply-patch input)
|
(define (apply-patch input)
|
||||||
(let ((patch* (assoc-ref %build-inputs input)))
|
(let ((patch* (assoc-ref %build-inputs input)))
|
||||||
(format (current-error-port) "applying '~a'...~%" patch*)
|
(format (current-error-port) "applying '~a'...~%" patch*)
|
||||||
(zero? (system* patch "--batch" ,@flags "--input" patch*))))
|
|
||||||
|
;; Use '--force' so that patches that do not apply perfectly are
|
||||||
|
;; rejected.
|
||||||
|
(zero? (system* patch "--force" ,@flags "--input" patch*))))
|
||||||
|
|
||||||
(define (first-file directory)
|
(define (first-file directory)
|
||||||
;; Return the name of the first file in DIRECTORY.
|
;; Return the name of the first file in DIRECTORY.
|
||||||
|
|
Loading…
Reference in New Issue