From patchwork Sat Oct 15 21:39:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 43435 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0A3EF27BBEA; Sat, 15 Oct 2022 22:40:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6D57D27BBE9 for ; Sat, 15 Oct 2022 22:40:54 +0100 (BST) Received: from localhost ([::1]:35298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojotp-0004FQ-Js for patchwork@mira.cbaines.net; Sat, 15 Oct 2022 17:40:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojot2-0003hW-2x for guix-patches@gnu.org; Sat, 15 Oct 2022 17:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojot1-0004vL-R2 for guix-patches@gnu.org; Sat, 15 Oct 2022 17:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojot1-0008Ka-Lp for guix-patches@gnu.org; Sat, 15 Oct 2022 17:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58553] [PATCH 4/7] gnu: java-commons-compress: Update to 1.21. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Oct 2022 21:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58553@debbugs.gnu.org Received: via spool by 58553-submit@debbugs.gnu.org id=B58553.166586998631947 (code B ref 58553); Sat, 15 Oct 2022 21:40:03 +0000 Received: (at 58553) by debbugs.gnu.org; 15 Oct 2022 21:39:46 +0000 Received: from localhost ([127.0.0.1]:42731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojosk-0008J7-Bl for submit@debbugs.gnu.org; Sat, 15 Oct 2022 17:39:46 -0400 Received: from lepiller.eu ([89.234.186.109]:40378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojosh-0008IS-8J for 58553@debbugs.gnu.org; Sat, 15 Oct 2022 17:39:44 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e570b3d7 for <58553@debbugs.gnu.org>; Sat, 15 Oct 2022 21:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=4rP/71zR+HtxwYMyRhwbnOeoQ WULwN5jxL/ySUGsgzI=; b=ePNKLlvZCHEnh4bKLmxqs2njfdQIig6l0Bd+NQ4XN yHykbxoSJPmykjaASH9ijS7rPTy1Z/8qXnh3FzSk5UAIJSvrqHtqgTb4vqHfAqCj pI1rcjpTMILna0vrTG1cRtF+/K/vCXucPTivcxdx5AvsAl80onDURZXBS3uAeWNs bVm9ObdLMhNw2AiavukNuyk/2fzeWvUzl568z1fPVA8GF3lcVWIa9N+AtLyHkQq2 rDua/3OLeY19+1Gy+hGSbcdqiPmA7OimkmUfx5X05A8L4r/2ViIeJaM0GDQj8gdg afZdfeH4xnDKhKVoNV5LfhYWQVnYExyFXRIFn6yjKCCdA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 52c7ab3f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <58553@debbugs.gnu.org>; Sat, 15 Oct 2022 21:39:36 +0000 (UTC) From: Julien Lepiller Date: Sat, 15 Oct 2022 23:39:22 +0200 Message-Id: <20221015213925.6447-4-julien@lepiller.eu> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221015213925.6447-1-julien@lepiller.eu> References: <20221015233630.4da3d935@sybil.lepiller.eu> <20221015213925.6447-1-julien@lepiller.eu> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/java.scm (java-commons-compress): Update to 1.21. (java-osgi-annotation, java-osgi-core): Create pom file and install from it. * gnu/packages/maven.scm (java-surefire-parent-pom): Fix pom fixing. --- gnu/packages/java.scm | 44 ++++++++++++++++++++---------------------- gnu/packages/maven.scm | 3 +-- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index a433281ce3..236a910ece 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6790,41 +6790,29 @@ (define-public java-jsch (define-public java-commons-compress (package (name "java-commons-compress") - (version "1.13") + (version "1.21") (source (origin (method url-fetch) (uri (string-append "mirror://apache/commons/compress/source/" "commons-compress-" version "-src.tar.gz")) (sha256 (base32 - "1vjqvavrn0babffn1kciz6v52ibwq2vwhzlb95hazis3lgllnxc8")))) + "1rkpb6xcyly1wnbx4q6iq6p5hrr0h1d0ppb5r07psc75cbmizjry")))) (build-system ant-build-system) (arguments `(#:jar-name "commons-compress.jar" #:source-dir "src/main/java" + #:tests? #f; requires java-mockito-3 #:phases (modify-phases %standard-phases - (add-after 'unpack 'delete-bad-tests - (lambda _ - (with-directory-excursion "src/test/java/org/apache/commons/compress/" - ;; FIXME: These tests really should not fail. Maybe they are - ;; indicative of problems with our Java packaging work. - - ;; This test fails with a null pointer exception. - (delete-file "archivers/sevenz/SevenZOutputFileTest.java") - ;; This test fails to open test resources. - (delete-file "archivers/zip/ExplodeSupportTest.java") - - ;; FIXME: This test adds a dependency on powermock, which is hard to - ;; package at this point. - ;; https://github.com/powermock/powermock - (delete-file "archivers/sevenz/SevenZNativeHeapTest.java")) - #t)) (replace 'install (install-from-pom "pom.xml"))))) (propagated-inputs - (list java-asm-3 java-brotli java-xz java-zstd apache-commons-parent-pom-52)) - (native-inputs - (list java-junit java-mockito-1)) + (list java-asm-3 + java-brotli + java-osgi-core + java-xz + java-zstd + apache-commons-parent-pom-52)) (home-page "https://commons.apache.org/proper/commons-compress/") (synopsis "Java library for working with compressed files") (description "The Apache Commons Compress library defines an API for @@ -6886,7 +6874,12 @@ (define-public java-osgi-annotation (build-system ant-build-system) (arguments `(#:tests? #f ; no tests - #:jar-name "osgi-annotation.jar")) + #:jar-name "osgi-annotation.jar" + #:phases + (modify-phases %standard-phases + (add-before 'install 'create-pom + (generate-pom.xml "pom.xml" "osgi" "osgi-annotation" ,version)) + (replace 'install (install-from-pom "pom.xml"))))) (home-page "https://www.osgi.org") (synopsis "Annotation module of OSGi framework") (description @@ -6911,7 +6904,12 @@ (define-public java-osgi-core (build-system ant-build-system) (arguments `(#:tests? #f ; no tests - #:jar-name "osgi-core.jar")) + #:jar-name "osgi-core.jar" + #:phases + (modify-phases %standard-phases + (add-before 'install 'create-pom + (generate-pom.xml "pom.xml" "org.osgi" "org.osgi.core" ,version)) + (replace 'install (install-from-pom "pom.xml"))))) (inputs (list java-osgi-annotation)) (home-page "https://www.osgi.org") diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index b7794c4e89..d3e5677669 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -3462,8 +3462,7 @@ (define-public java-surefire-parent-pom (add-before 'install 'fix-pom-dependency-versions (lambda _ (substitute* "pom.xml" - (("1.11") ,(package-version java-commons-compress)) - (("1.13") ,(package-version java-commons-codec))) + (("1.11") ,(package-version java-commons-codec))) (substitute* "pom.xml" (("commonsLang3Version>.*") (string-append