From c254ac32004a4407d73ab254bc1c44eed0220355 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 24 Nov 2016 09:11:39 +0100 Subject: [PATCH] build-system/gnu: Make libraries writable before stripping. * guix/build/gnu-build-system.scm (strip)[strip-dir]: Change mode of files before running strip-command. --- 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 1dfd85450c..59394c2cac 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -393,6 +393,8 @@ makefiles." (or (elf-file? file) (ar-file? file)) (or (not debug-output) (make-debug-file file)) + ;; Ensure libraries are writable. + (chmod file #o755) (zero? (apply system* strip-command (append strip-flags (list file)))) (or (not debug-output)