From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WPofBuQoS2PS9AAAbAwnHQ (envelope-from ) for ; Sat, 15 Oct 2022 23:40:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2GZCBuQoS2PFEwAA9RJhRA (envelope-from ) for ; Sat, 15 Oct 2022 23:40:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D797C2F3EE for ; Sat, 15 Oct 2022 23:40:51 +0200 (CEST) Received: from localhost ([::1]:35298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojotn-0004FQ-37 for larch@yhetil.org; Sat, 15 Oct 2022 17:40:51 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665870052; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QyZII+jhWTpJ3UnPR/TnxsQyHizPFimQp/G4OIVCZmY=; b=nOQKxQb94bCZWDIzn0f6rP+LpYJzs8eNX+fbCENYtpvJW6J0Asp8n8sQiYD49cm/0tF6fx cq5njcuhfHmAaLGH2eO1Ye2hfPS+UQIa9vjHwyhFejLfWV5z7USm9yB3VIb/HuOhHuZLKY ClYHcQ/sVVc6RrGrZpRrAUOee7bye7ftauqotyUHotyOLgcuznNq/TIbcrPR1xAj110EBN JpXzqH8LOYb/sLF93LucjTH6ZMgOYILWHgP187z53I6jtdl74UEMkXIgTo2eNmYzyxJLLj yJEt3rVDsB1ryoO5JMSzXf5RBzI+2o6nTc1ztwX9OlrgHIyCGhWjdyI8tSZEww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665870052; a=rsa-sha256; cv=none; b=n9mEtGGzzI4BdOisJRuaZlKOpnylppyqSbfYfXGdiV4SUeQoc+muyGofE1kj3C90jcgH5k Mdvc99OWnERBkVw+KvPzFyjVRGqZfk1Gp62J3TphT8r0ehUcCHqBmHQKWcuExTVtb1pAOk PB2jAPvSvL0h/UCikpDoJZaRD2dD/tnEYRErtNdqKREvRLJk2N3o0JVy+5tN+dIIPp5Cjj HzB4b8K/3PojOO1tG2cLSOOiDR54lSflX015NDMNnX/BF+B06HuY4zuAXnggxdVLegVjaF mz7mkZHd53JrxKdWdxlR2xw1wpe+wU6+rAfaArEmIz3G82sc3V7EC+yrJh36vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=ePNKLlvZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=ePNKLlvZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D797C2F3EE X-Spam-Score: 7.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: hquhMyTWpwxF * 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 -- 2.38.0