summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorSarah Morgensen <iskarian@mgsn.dev>2021-07-24 23:12:04 -0700
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-10 11:44:47 -0500
commit0f71f55a60c94efe5c109233db6c92dbfba2bf82 (patch)
treecfa8068f20e268c2f125effc76a75bb236884f1f /guix/build
parentc61e742854c4c81b25bf6c249dd748477a1ffed8 (diff)
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 <maxim.cournoyer@gmail.com>
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/gnu-build-system.scm2
1 files changed, 2 insertions, 0 deletions
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 @@ and 'man/'. This phase moves directories to the right place if needed."
(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