guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: openjdk16: Use MAKE-FILE-WRITABLE.


From: guix-commits
Subject: 02/02: gnu: openjdk16: Use MAKE-FILE-WRITABLE.
Date: Thu, 2 Dec 2021 17:59:30 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 345b341919304505c11494724c526e559db3eb68
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Dec 2 23:00:23 2021 +0100

    gnu: openjdk16: Use MAKE-FILE-WRITABLE.
    
    * gnu/packages/java.scm (openjdk16)[arguments]: Do not shell out to "chmod".
---
 gnu/packages/java.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8306dbf..36424ee 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2573,12 +2573,9 @@ new Date();"))
                ;; The build system copies a few .template files from the
                ;; source directory into the build directory and then modifies
                ;; them in-place.  So these files have to be writable.
-               (for-each
-                (lambda (file)
-                  (invoke "chmod" "u+w" file))
+               (for-each make-file-writable
                 (find-files "src/java.base/share/classes/jdk/internal/misc/"
-                            "\\.template$"))
-               #t))))))
+                            "\\.template$"))))))))
     (home-page "https://openjdk.java.net/projects/jdk/16";)))
 
 (define-public openjdk17



reply via email to

[Prev in Thread] Current Thread [Next in Thread]