* [bug#55931] [PATCH] gnu: java-commons-lang3: Update to 3.12.0
@ 2022-06-12 19:40 Artyom V. Poptsov
2022-06-12 20:50 ` Julien Lepiller
0 siblings, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2022-06-12 19:40 UTC (permalink / raw)
To: 55931
[-- Attachment #1.1: Type: text/plain, Size: 139 bytes --]
Hello,
this patch updates 'java-commons-lang3' to 3.12.0.
The update is required to add 'java-commons-text' package.
Thanks,
- Artyom
[-- Attachment #1.2: 0001-gnu-java-commons-lang3-Update-to-3.12.0.patch --]
[-- Type: text/x-diff, Size: 1496 bytes --]
From 2d17e4bc1728db8536374b2ddfd97e61b8aed470 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 12 Jun 2022 22:34:28 +0300
Subject: [PATCH] gnu: java-commons-lang3: Update to 3.12.0
* gnu/packages/java.scm (java-commons-lang3): Update to 3.12.0.
---
gnu/packages/java.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fcac0c2367..2e28b28e4e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2021 Mike Gerwitz <mtg@gnu.org>
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6206,14 +6207,14 @@ included:
(define-public java-commons-lang3
(package
(name "java-commons-lang3")
- (version "3.9")
+ (version "3.12.0")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://apache/commons/lang/source/"
"commons-lang3-" version "-src.tar.gz"))
(sha256
- (base32 "0s4ffbvsyl16c90l45ximsg4dwd8hmz7wsza3p308fw43h6mwhb6"))))
+ (base32 "09dcv1pkdx3hpf06py8p9511f1wkin6jpacdll0c8vxpbi3yfwzv"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "commons-lang3.jar"
--
2.25.1
[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#55931] [PATCH] gnu: java-commons-lang3: Update to 3.12.0
2022-06-12 19:40 [bug#55931] [PATCH] gnu: java-commons-lang3: Update to 3.12.0 Artyom V. Poptsov
@ 2022-06-12 20:50 ` Julien Lepiller
2022-06-13 7:26 ` Artyom V. Poptsov
0 siblings, 1 reply; 4+ messages in thread
From: Julien Lepiller @ 2022-06-12 20:50 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 55931
Le Sun, 12 Jun 2022 22:40:35 +0300,
"Artyom V. Poptsov" <poptsov.artyom@gmail.com> a écrit :
> Hello,
>
> this patch updates 'java-commons-lang3' to 3.12.0.
>
> The update is required to add 'java-commons-text' package.
>
> Thanks,
>
> - Artyom
>
Hi!
The patch looks good and almost works. Unfortunately, the pom file
makes java-jmh fail eventually:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce
(enforce-maven) on project jmh-parent: Execution enforce-maven of goal
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce failed:
Plugin org.apache.maven.plugins:maven-enforcer-plugin:3.0.0 or one of
its dependencies could not be resolved: Failed to collect dependencies
at org.apache.maven.plugins:maven-enforcer-plugin:jar:3.0.0 ->
org.apache.maven:maven-artifact:jar:3.8.5 ->
org.apache.commons:commons-lang3:jar:3.12.0: Failed to read artifact
descriptor for org.apache.commons:commons-lang3:jar:3.12.0: Cannot
access central (https://repo.maven.apache.org/maven2) in offline mode
and the artifact org.junit:junit-bom:pom:5.7.1 has not been downloaded
from it before. -> [Help 1]
From what I understand, maven tries to get org.junit:junit-bom because
it is referenced in commons-lang3's pom file, but we don't have it. This
is the only reference to junit-bom though:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.7.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
I don't know maven well enough, so I'm not sure what that means, but is
junit-bom really needed? Do you think you could add a phase to remove
this dependencyManagement part of the pom file? It wouldn't be the
first time we modify a pom file to make maven happy later in the
dependency chain.
Otherwise, all packages build fine with this update :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#55931] [PATCH] gnu: java-commons-lang3: Update to 3.12.0
2022-06-12 20:50 ` Julien Lepiller
@ 2022-06-13 7:26 ` Artyom V. Poptsov
2022-06-13 20:50 ` bug#55931: " Julien Lepiller
0 siblings, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2022-06-13 7:26 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 55931
[-- Attachment #1.1: Type: text/plain, Size: 219 bytes --]
Hello Julien,
I've added a patch that removes 'junit-bom' from 'pom.xml' and tried to
build 'java-jmh' as you did; it seems that everything now builds without
errors.
Please find the updated patch attached.
- Artyom
[-- Attachment #1.2: 0001-gnu-java-commons-lang3-Update-to-3.12.0.patch --]
[-- Type: text/x-diff, Size: 3061 bytes --]
From 39c8cc2a9e057e606cb21dea2584794f8f1d2bec Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 12 Jun 2022 22:34:28 +0300
Subject: [PATCH] gnu: java-commons-lang3: Update to 3.12.0
* gnu/packages/java.scm (java-commons-lang3): Update to 3.12.0.
* gnu/packages/patches/java-commons-lang-fix-dependency.patch: Add to the
repository.
---
gnu/packages/java.scm | 7 ++--
.../java-commons-lang-fix-dependency.patch | 35 +++++++++++++++++++
2 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 gnu/packages/patches/java-commons-lang-fix-dependency.patch
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fcac0c2367..d2fbf840a0 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2021 Mike Gerwitz <mtg@gnu.org>
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6206,14 +6207,16 @@ included:
(define-public java-commons-lang3
(package
(name "java-commons-lang3")
- (version "3.9")
+ (version "3.12.0")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://apache/commons/lang/source/"
"commons-lang3-" version "-src.tar.gz"))
(sha256
- (base32 "0s4ffbvsyl16c90l45ximsg4dwd8hmz7wsza3p308fw43h6mwhb6"))))
+ (base32 "09dcv1pkdx3hpf06py8p9511f1wkin6jpacdll0c8vxpbi3yfwzv"))
+ (patches
+ (search-patches "java-commons-lang-fix-dependency.patch"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "commons-lang3.jar"
diff --git a/gnu/packages/patches/java-commons-lang-fix-dependency.patch b/gnu/packages/patches/java-commons-lang-fix-dependency.patch
new file mode 100644
index 0000000000..50e0e94c6b
--- /dev/null
+++ b/gnu/packages/patches/java-commons-lang-fix-dependency.patch
@@ -0,0 +1,35 @@
+From 5c15b04ff9d05235460ea58f303fcf3502a943f2 Mon Sep 17 00:00:00 2001
+From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
+Date: Mon, 13 Jun 2022 09:25:42 +0300
+Subject: [PATCH] pom.xml: Remove dependency on 'junit-bom'
+
+---
+ pom.xml | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 167a85a47..6cd9be57b 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -513,18 +513,6 @@
+ </contributor>
+ </contributors>
+
+- <dependencyManagement>
+- <dependencies>
+- <dependency>
+- <groupId>org.junit</groupId>
+- <artifactId>junit-bom</artifactId>
+- <version>5.7.1</version>
+- <type>pom</type>
+- <scope>import</scope>
+- </dependency>
+- </dependencies>
+- </dependencyManagement>
+-
+ <!-- Lang should depend on very little -->
+ <dependencies>
+ <!-- testing -->
+--
+2.25.1
+
--
2.25.1
[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#55931: [PATCH] gnu: java-commons-lang3: Update to 3.12.0
2022-06-13 7:26 ` Artyom V. Poptsov
@ 2022-06-13 20:50 ` Julien Lepiller
0 siblings, 0 replies; 4+ messages in thread
From: Julien Lepiller @ 2022-06-13 20:50 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 55931-done
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
Le Mon, 13 Jun 2022 10:26:19 +0300,
"Artyom V. Poptsov" <poptsov.artyom@gmail.com> a écrit :
> Hello Julien,
>
> I've added a patch that removes 'junit-bom' from 'pom.xml' and tried
> to build 'java-jmh' as you did; it seems that everything now builds
> without errors.
>
> Please find the updated patch attached.
>
> - Artyom
Great! Pushed to master as 4ff9f1689d0d8f3c7555c472ce67aaa928af564d.
Before pushing, I applied a few changes. First, when you add a patch,
don't forget to add it to gnu/local.mk. This ensures "make dist" will
generate a complete tarball. Otherwise, the tarball won't contain the
patch. Second, I added a short comment in the patch to explain its
purpose. Finally, I slightly reworded the changelog text about the
patch, in the commit message.
Thanks!
[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-13 20:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-12 19:40 [bug#55931] [PATCH] gnu: java-commons-lang3: Update to 3.12.0 Artyom V. Poptsov
2022-06-12 20:50 ` Julien Lepiller
2022-06-13 7:26 ` Artyom V. Poptsov
2022-06-13 20:50 ` bug#55931: " Julien Lepiller
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.