Hi! The patch looks great, but I wonder why you need to change che phases to tomething that looks like openjdk 17's phases? Am I missing something? Wouldn't it work without any change to the arguments? I can't build and test because of my limited bandwidth. Hopefully another maintainer can rur the tests and maybe push if my issues aren't solved soon… On April 11, 2022 2:53:35 PM GMT+02:00, Rostislav Svoboda wrote: >--- > 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) > > > >-- >2.35.1 > > > >