Subject: [bug#49521] [PATCH] gnu: java-xz: Update to 1.9.

From: Julien Lepiller <[email-masked]>
Date: Sun, 11 Jul 2021 12:08:35 -0400

Le 11 juillet 2021 07:48:22 GMT-04:00, Efraim Flashner <[email-masked]> a écrit :
>* gnu/packages/java-compression.scm (java-xz): Update to 1.9.
>[arguments]: Build with openjdk9.
>---
> gnu/packages/java-compression.scm | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
>diff --git a/gnu/packages/java-compression.scm
>b/gnu/packages/java-compression.scm
>index 19b11954c1..033b55c988 100644
>--- a/gnu/packages/java-compression.scm
>+++ b/gnu/packages/java-compression.scm
>@@ -4,6 +4,7 @@
> ;;; Copyright © 2018 Marius Bakke <[email-masked]>
> ;;; Copyright © 2018 Mark H Weaver <[email-masked]>
> ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <[email-masked]>
>+;;; Copyright © 2021 Efraim Flashner <[email-masked]>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
>@@ -289,16 +290,17 @@ It can be used as a replacement for the Apache
>@code{CBZip2InputStream} /
> (define-public java-xz
>   (package
>     (name "java-xz")
>-    (version "1.6")
>+    (version "1.9")
>     (source (origin
>               (method url-fetch/zipbomb)
> (uri (string-append "https://tukaani.org/xz/xz-java-" version ".zip"))
>               (sha256
>                (base32
>-               
>"1z3p1ri1gvl07inxn0agx44ck8n7wrzfmvkz8nbq3njn8r9wba8x"))))
>+               
>"007d9f83277qn70swz9inqhyf0qxq6ygajpq5rqg0xgsyh1sdndi"))))
>     (build-system ant-build-system)
>     (arguments
>      `(#:tests? #f; no tests
>+       #:jdk ,openjdk9
>        #:phases
>        (modify-phases %standard-phases
>          (add-before 'install 'generate-pom
>
>base-commit: 7760d28920a920791645c4485f1345af45ee7787

Looks good, but building dependents will likely cause issues if they still use openjdk8. At the very least, we'll see a warning.