diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-09-26 21:55:34 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-09-27 10:05:54 -0400 |
commit | c5fb7bb7f71343b5eaf760c5e36063bec8c9e996 (patch) | |
tree | 2a8064808bf702f89638eca80f71180be3d6c9b5 /gnu/packages | |
parent | 216a7d8197f280eccd76aac3734686278334a6a6 (diff) |
gnu: openjdk16: Define with make-openjdk.
* gnu/packages/java.scm (openjdk16): Define with make-openjdk.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/java.scm | 86 |
1 files changed, 45 insertions, 41 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 951663ff5c..44266fe107 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2150,41 +2150,8 @@ blacklisted.certs.pem" (append `(,openjdk14 "jdk")))))) (define-public openjdk16 - (package - (inherit openjdk15) - (name "openjdk") - (version "16.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/openjdk/jdk16u") - (commit (string-append "jdk-" version "-ga")))) - (file-name (git-file-name name version)) - (sha256 - (base32 + (make-openjdk openjdk15 "16.0.1" "1ggddsbsar4dj2fycfqqqagqil7prhb30afvq6933rz7pa9apm2f")) - (patches - (search-patches "openjdk-15-xcursor-no-dynamic.patch")))) - (native-inputs - `(("autoconf" ,autoconf) - ("openjdk15:jdk" ,openjdk15 "jdk") - ("pkg-config" ,pkg-config) - ("unzip" ,unzip) - ("which" ,which) - ("zip" ,zip))) - (arguments - (substitute-keyword-arguments (package-arguments openjdk15) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'unpack 'make-templates-writable - (lambda _ - ;; 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 make-file-writable - (find-files "src/java.base/share/classes/jdk/internal/misc/" - "\\.template$")))))))) - (home-page "https://openjdk.java.net/projects/jdk/16"))) (define-public openjdk17 (package @@ -2192,6 +2159,7 @@ blacklisted.certs.pem" (name "openjdk") (version "17.0.3") (source (origin + (inherit (package-source openjdk16)) (method git-fetch) (uri (git-reference (url "https://github.com/openjdk/jdk17u") @@ -2212,15 +2180,51 @@ blacklisted.certs.pem" (arguments (substitute-keyword-arguments (package-arguments openjdk16) ((#:phases phases) - `(modify-phases ,phases - (replace 'fix-java-shebangs - (lambda _ - ;; This file was "fixed" by patch-source-shebangs, but it requires - ;; this exact first line. - (substitute* "make/data/blockedcertsconverter/blocked.certs.pem" - (("^#!.*") "#! java BlockedCertsConverter SHA-256\n")))))))) + #~(modify-phases #$phases + (replace 'fix-java-shebangs + (lambda _ + ;; This file was "fixed" by patch-source-shebangs, but it + ;; requires this exact first line. + (substitute* "make/data/blockedcertsconverter/blocked.certs.pem" + (("^#!.*") "#! java BlockedCertsConverter SHA-256\n")))))))) + (native-inputs + (modify-inputs (package-native-inputs openjdk16) + (replace "openjdk" openjdk16))) (home-page "https://openjdk.java.net/projects/jdk/17"))) +;; (define-public openjdk18 +;; (package +;; (inherit openjdk17) +;; (name "openjdk") +;; (version "18") +;; (source (origin +;; (method git-fetch) +;; (uri (git-reference +;; (url "https://github.com/openjdk/jdk18u") +;; (commit (string-append "jdk-" version "-ga")))) +;; (file-name (git-file-name name version)) +;; (sha256 +;; (base32 +;; "1bv6bdhkmwvn10l0xy8yi9xibds640hs5zsvx0jp7wrxa3qw4qy8")))) +;; (native-inputs +;; `(("autoconf" ,autoconf) +;; ("openjdk17:jdk" ,openjdk17 "jdk") +;; ("pkg-config" ,pkg-config) +;; ("unzip" ,unzip) +;; ("which" ,which) +;; ("zip" ,zip))) +;; (arguments +;; (substitute-keyword-arguments (package-arguments openjdk16) +;; ((#:phases phases) +;; `(modify-phases ,phases +;; (replace 'fix-java-shebangs +;; (lambda _ +;; ;; This file was "fixed" by patch-source-shebangs, but it requires +;; ;; this exact first line. +;; (substitute* "make/data/blockedcertsconverter/blocked.certs.pem" +;; (("^#!.*") "#! java BlockedCertsConverter SHA-256\n")))))))) +;; (home-page "https://openjdk.java.net/projects/jdk/18"))) + ;;; Convenience alias to point to the latest version of OpenJDK. (define-public openjdk openjdk17) |