Your message dated Tue, 04 Jul 2023 07:19:05 +0000
with message-id <[email protected]>
and subject line Bug#1040264: fixed in ant 1.10.13-2
has caused the Debian Bug report #1040264,
regarding ant: Please support Java 21
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1040264: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040264
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ant
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: [email protected]
Dear Maintainer,
Java 21 no longer supports release level 7 and requires a minimul level of 8.
The attached patch updates debian/patches/0013-auto-adjust-target.patch to
automatically select release 8 when Java 21 is in use.
Changes:
* d/p/0013-auto-adjust-target.patch: Use release level 8 for Java 21.
Thanks for considering the patch.
-- System Information:
Debian Release: bookworm/sid
APT prefers lunar-updates
APT policy: (500, 'lunar-updates'), (500, 'lunar-security'), (500, 'lunar'),
(100, 'lunar-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.2.0-24-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru ant-1.10.13/debian/patches/0013-auto-adjust-target.patch
ant-1.10.13/debian/patches/0013-auto-adjust-target.patch
--- ant-1.10.13/debian/patches/0013-auto-adjust-target.patch 2023-02-06
23:51:41.000000000 +1300
+++ ant-1.10.13/debian/patches/0013-auto-adjust-target.patch 2023-05-04
00:37:36.000000000 +1200
@@ -55,7 +55,7 @@
--- /dev/null
+++ b/src/main/org/apache/tools/ant/taskdefs/LanguageLevel.java
-@@ -0,0 +1,76 @@
+@@ -0,0 +1,82 @@
+package org.apache.tools.ant.taskdefs;
+
+import java.util.ArrayList;
@@ -88,6 +88,10 @@
+ unsupportedLevels.add("1.6");
+ unsupportedLevels.add("6");
+ }
++ if (JavaEnvUtils.isAtLeastJavaVersion("21")) {
++ unsupportedLevels.add("1.7");
++ unsupportedLevels.add("7");
++ }
+
+ return !unsupportedLevels.contains(level);
+ }
@@ -96,11 +100,13 @@
+ * Returns the minimum language level supported by the current javac.
+ */
+ static String getMinimumLevel() {
-+ if (JavaEnvUtils.isAtLeastJavaVersion("12")) {
++ if (JavaEnvUtils.isAtLeastJavaVersion("21")) {
++ return "8";
++ } else if (JavaEnvUtils.isAtLeastJavaVersion("12")) {
+ return "7";
++ } else {
++ return "6";
+ }
-+
-+ return "6";
+ }
+
+ /**
--- End Message ---
--- Begin Message ---
Source: ant
Source-Version: 1.10.13-2
Done: Emmanuel Bourg <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ant, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Emmanuel Bourg <[email protected]> (supplier of updated ant package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 04 Jul 2023 08:53:40 +0200
Source: ant
Architecture: source
Version: 1.10.13-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers
<[email protected]>
Changed-By: Emmanuel Bourg <[email protected]>
Closes: 1040264
Changes:
ant (1.10.13-2) unstable; urgency=medium
.
[ Vladimir Petko ]
* Adjust the source/target level to 8 when using Java 21 or later
(Closes: #1040264)
Checksums-Sha1:
286f144fc342290e7339e5e5b8f0e8a274e0eb8f 2432 ant_1.10.13-2.dsc
6f014558dc527c6a671bf3c1dd12eb0a3648758e 20704 ant_1.10.13-2.debian.tar.xz
3516698f4e5e8cff725c38c75e8aad09e406b58c 11702 ant_1.10.13-2_source.buildinfo
Checksums-Sha256:
244eb5bfe45fbccd8b6dc757ab59d36ed57a1af4e4dafa3bddee9a8f9f38ece3 2432
ant_1.10.13-2.dsc
e4308a1b0768a90386e2b614f2fd4442192da0114b2256d5be657a644c57d2c3 20704
ant_1.10.13-2.debian.tar.xz
29706003ebe6d966415503b1b5dc001c2c5a2bde0dbc0330d0c41874fb5a34e3 11702
ant_1.10.13-2_source.buildinfo
Files:
a5f27f070502eab0431d885251b30d5f 2432 java optional ant_1.10.13-2.dsc
f97562f222cca6a168e2fb25606c448d 20704 java optional
ant_1.10.13-2.debian.tar.xz
e256e63a172e84fbaef3b3fb63f00f4b 11702 java optional
ant_1.10.13-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmSjwwASHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsSFYP/j7+K3NlFXEEqtcrm94TsdtPBJI7wdXb
JMksCO+OCuA6F8kU8sbYi/tkydLw7myWGO6qmQaDpM1P3o8ET7zt2/J8y9Mmgyvp
ncV2GCVlo+7alsbRYoorC6idMlL/MpUjvBS20L8CQITc2jL+uewVyqfJhnISC1pX
QaDUuMPDOZuqIdU/lVW9o4aqMUAjyllJr8JNQE6cXoutKT2PR3Ep4XRjX714J8QK
bMtikgQ1UH4dt4dwQQpuiOTBh0vZY3oB8VHkmE/IJTtDBLxmYVblClQAjhrfR8hS
nSXVprQOrWXqhzKzC0z7mxeEVgNhtxjpz/YXqmbuE29EXSbrXBOZ8wPRbyROoQZj
3tIkDd1/h8PjR1WsfqccLwmxx1j32N2Z5eG62jJZwSSaBN/9+jbsVxPvDQqzW56s
yOguaCdyqHIfHbcj9j3GIhK79GCjhhIUT1Vrn1YyBlrYpczzPHTx1xM9LUNhHX2x
2yE59qqU3dSq/Y+0w5QHPD+ED+RmpcwVD9yfCmTO1Ax+j/7gLSvbGVi//ro/VZu/
6J3r4p1G3wLkW1lordVbiAgXLcjb3Cb/UDCOfH2BU3dURYfWO1bXabhZqBww/oKU
LB+yDgRs3YP4x7QSThvMJxwCjQh0AgCwR6s6/CRUnqUmuv2bel13quXKvCk1qwVn
eC694tGI/jFZ
=iVGG
-----END PGP SIGNATURE-----
--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
Please use
[email protected] for discussions and questions.