Your message dated Wed, 11 Oct 2023 13:09:33 +0000
with message-id <e1qqyxx-00fmwj...@fasolo.debian.org>
and subject line Bug#1053198: fixed in libcommons-logging-java 1.2-4
has caused the Debian Bug report #1053198,
regarding libcommons-logging-java fails to build with OpenJDK 21 due to 
SecurtyManager exception
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 ow...@bugs.debian.org
immediately.)


-- 
1053198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053198
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libcommons-logging-java
Version: 1.2-3
Severity: important
Tags: ftbfs
X-Debbugs-Cc: vladimir.pe...@canonical.com

Dear Maintainer,

Java 21 requires java.security.manager property to be set in order to set
SecurityManager. Otherwise it throws UnsupportedOperationException.

This causes build to fail with the following error:
----
    [junit] java.lang.UnsupportedOperationException: The Security Manager is
deprecated and will be removed in a future release
    [junit]     at
java.base/java.lang.System.setSecurityManager(System.java:429)
    [junit]     at
org.apache.commons.logging.security.SecurityForbiddenTestCase.testContextClassLoader(SecurityForbiddenTestCase.java:153)
    [junit]     at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    [junit]     at
org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:141)
----

The attached patch set the property and allows the build to succeed.


-- 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-33-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_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

Versions of packages libcommons-logging-java depends on:
ii  libcommons-parent-java  56-1

libcommons-logging-java recommends no packages.

Versions of packages libcommons-logging-java suggests:
pn  libavalon-framework-java     <none>
pn  libcommons-logging-java-doc  <none>
pn  libexcalibur-logkit-java     <none>
ii  liblog4j1.2-java             1.2.17-11

-- no debconf information
Description: Allow security manager in unit tests
 Java 21 will print warning/unsupported operation exception if security manager
 is not explicitly allowed.
Forwarded: not-needed
Last-Update: 2023-09-29
---
--- a/build.xml
+++ b/build.xml
@@ -743,7 +743,7 @@
         -->
       <syspropertyset refid="test-lib-props"/>
       <classpath refid="test.classpath"/>
-
+      <jvmarg value="-Djava.security.manager=allow"/>
       <!--
         - Uncomment this to enable logging diagnostics for tests
         - <jvmarg 
value="-Dorg.apache.commons.logging.diagnostics.dest=STDERR"/>

--- End Message ---
--- Begin Message ---
Source: libcommons-logging-java
Source-Version: 1.2-4
Done: Emmanuel Bourg <ebo...@apache.org>

We believe that the bug you reported is fixed in the latest version of
libcommons-logging-java, 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 1053...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebo...@apache.org> (supplier of updated libcommons-logging-java 
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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 Oct 2023 14:42:11 +0200
Source: libcommons-logging-java
Architecture: source
Version: 1.2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<pkg-java-maintain...@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebo...@apache.org>
Closes: 1053198
Changes:
 libcommons-logging-java (1.2-4) unstable; urgency=medium
 .
   * Fixed the build failure with Java 21 (Closes: #1053198)
   * Standards-Version updated to 4.6.2
Checksums-Sha1:
 dd85dc07a0734b37511947db0f5df095ac65526f 2425 libcommons-logging-java_1.2-4.dsc
 f6b0d5f816b57157e59fa6e57a17abc4a6a23b44 7980 
libcommons-logging-java_1.2-4.debian.tar.xz
 5cad5f024ec75116bc1c50bd4dadc40e1bf658f9 11362 
libcommons-logging-java_1.2-4_source.buildinfo
Checksums-Sha256:
 510dc9a8bcf816d2736cf34995c95ad6445a53c8882ec33ef912513247d94215 2425 
libcommons-logging-java_1.2-4.dsc
 f88b581d9122f11a5b376613f1976253319b2c0e58c72f89238d9aff73f6b30e 7980 
libcommons-logging-java_1.2-4.debian.tar.xz
 49dcc5171496d822b90f9c9124c78809aee0c3d6a3324066e70409a4a475e1b9 11362 
libcommons-logging-java_1.2-4_source.buildinfo
Files:
 76a9c787db33b81eaa0bcb5952c8951b 2425 java optional 
libcommons-logging-java_1.2-4.dsc
 f3635b3bc0c915b4cfe890ae1b490f15 7980 java optional 
libcommons-logging-java_1.2-4.debian.tar.xz
 cd88fb81abf55f8b24f816abb128febf 11362 java optional 
libcommons-logging-java_1.2-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmUmmJESHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCs0loQAJ8Fhztpcw4/fGx7zbUeWVEjMau2zW4T
g8MGBrlI4RVi2nuz/HssfAlmV9J1w5M2kmzIQUGThHbqZN1JwAAOYE8kC2Incn3u
uW8ACQj6g1V/0R7bmbojmvNk4LG7kNE/iTi6+OkUKMqPiuQyaMPogj3mej/d/mdU
EQnxLaaT5HfuGxt+rGGNIF5laonc2pUd2/OQbHsJw+VZck69UQ8o8VXXV8tucWse
KZHVRBavmc6PCM57DnDJKRqJg+ZS+0vOqmkVj7XIqOs6/lmbc1jn1/CJlhpQfE+O
zUWup4njF1J6PyrDqZYwaFOfU0SrRvDMYnnly1bpTC2AF6LAPcQUQNtJfW+5qvAr
RKy5yCQkhLILbN7sg+4YCt3P0/il5dgc2MQMT0v0lvYRwkjk6b9gjQ1YBNVCYWCb
9kb8GGAPDLFWtuiJqfRcNaDaTW3Ovd7G1OjCtBxjGc2PzPz1X8xRRPXS/qcvD03N
IaIyM2SSm56w2EHYRkqNB/fUP0mSk06U0x7nwtWJSgaowZ9YPNjfu9hGgeHXJ38Q
gSN55jqWTrHskk0PTji8nS5Fz/oXZA1ArF0/zDttifowyIpxrnGm3RVNi1yeZanb
F9N6/MTLtDvuWJy6lLvT6m5HAIyvQYbBvtqS85HOuesCZKmSHZtGXBJ7wLbgN1c4
7UcVqX4KT2ZS
=/APV
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to