[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/13: gnu: openjdk16: Define with make-openjdk.
From: |
guix-commits |
Subject: |
09/13: gnu: openjdk16: Define with make-openjdk. |
Date: |
Tue, 27 Sep 2022 10:10:58 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit c5fb7bb7f71343b5eaf760c5e36063bec8c9e996
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Sep 26 21:55:34 2022 -0400
gnu: openjdk16: Define with make-openjdk.
* gnu/packages/java.scm (openjdk16): Define with make-openjdk.
---
gnu/packages/java.scm | 86 +++++++++++++++++++++++++++------------------------
1 file 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)
- branch master updated (79b8e52e64 -> 052c1b0643), guix-commits, 2022/09/27
- 12/13: gnu: docbook-xsl-ns: Rename to docbook-xsl-1.79.1 and use gexps., guix-commits, 2022/09/27
- 11/13: gnu: openjdk: Update to 18., guix-commits, 2022/09/27
- 06/13: gnu: openjdk13: Define with make-openjdk., guix-commits, 2022/09/27
- 10/13: gnu: openjdk17: Define with make-openjdk., guix-commits, 2022/09/27
- 09/13: gnu: openjdk16: Define with make-openjdk.,
guix-commits <=
- 03/13: gnu: opendjk11: Improve regular expressions., guix-commits, 2022/09/27
- 01/13: gnu: opendjk11: Remove trailing #t and use gexps., guix-commits, 2022/09/27
- 02/13: gnu: opendjk11: Remove input labels., guix-commits, 2022/09/27
- 04/13: gnu: opendjk11: Reduce size by removing extraneous files., guix-commits, 2022/09/27
- 07/13: gnu: openjdk14: Define with make-openjdk., guix-commits, 2022/09/27
- 05/13: gnu: openjdk12: Introduce 'make-openjdk' syntax and use it., guix-commits, 2022/09/27
- 13/13: gnu: colord: Update to 1.4.6., guix-commits, 2022/09/27
- 08/13: gnu: openjdk15: Define with make-openjdk., guix-commits, 2022/09/27