all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#54852] [PATCH] gnu: Add openjdk18.
@ 2022-04-11 12:53 Rostislav Svoboda
  2022-04-11 13:43 ` Maxime Devos
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Rostislav Svoboda @ 2022-04-11 12:53 UTC (permalink / raw)
  To: 54852; +Cc: Rostislav Svoboda

---
 gnu/packages/java.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 6738b5dc35..10c84d2973 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2263,6 +2263,39 @@ (define-public openjdk17
                  (("^#!.*") "#! java BlockedCertsConverter SHA-256\n"))))))))
     (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")))
+
 (define-public icedtea icedtea-8)
 
 \f
-- 
2.35.1





^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-09-27 16:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 12:53 [bug#54852] [PATCH] gnu: Add openjdk18 Rostislav Svoboda
2022-04-11 13:43 ` Maxime Devos
2022-04-12 13:03   ` Rostislav Svoboda
2022-04-11 13:44 ` Maxime Devos
2022-04-12 13:24   ` Rostislav Svoboda
2022-04-21 10:27     ` Rostislav Svoboda
2022-04-21 16:38       ` Maxime Devos
2022-04-22 10:59         ` Rostislav Svoboda
2022-04-23 14:38           ` Maxime Devos
2022-04-23 15:11             ` Rostislav Svoboda
2022-04-23 16:10               ` Maxime Devos
2022-04-11 14:15 ` Julien Lepiller
2022-04-13  7:51   ` Björn Höfling
2022-05-08 16:41 ` Maxime Devos
2022-05-09 19:11 ` Maxime Devos
2022-05-09 22:20   ` Rostislav Svoboda
2022-05-10  6:59     ` Maxime Devos
2022-05-11 15:37       ` Rostislav Svoboda
2022-05-11 18:13         ` Maxime Devos
2022-05-11 18:22         ` Maxime Devos
2022-05-11 18:30         ` Maxime Devos
2022-09-27 14:17         ` bug#54852: " Maxim Cournoyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.