From 0f71f55a60c94efe5c109233db6c92dbfba2bf82 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Sat, 24 Jul 2021 23:12:04 -0700 Subject: [PATCH] build-system/gnu: Make gzip files writable before resetting timestamps. guix/build/gnu-build-system.scm (reset-gzip-timestamps): Ensure gzip files are writable before resetting their timestamps. Signed-off-by: Maxim Cournoyer --- guix/build/gnu-build-system.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm index d0f7413268..d84411c090 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -598,6 +598,8 @@ (define (process-directory directory) (string-suffix? ".tgz" file)) (gzip-file? file))) #:stat lstat))) + ;; Ensure the files are writable. + (for-each make-file-writable files) (for-each reset-gzip-timestamp files))) (match outputs