From 345b341919304505c11494724c526e559db3eb68 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 2 Dec 2021 23:00:23 +0100 Subject: [PATCH] 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 8306dbf868..36424ee8b1 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2573,12 +2573,9 @@ (define-public openjdk16 ;; 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