[Git][java-team/libcommons-logging-java][master] 2 commits: Disabled the SLF4J log factory (Closes: #1060960)

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Tue Jun 10 12:15:58 BST 2025



Emmanuel Bourg pushed to branch master at Debian Java Maintainers / libcommons-logging-java


Commits:
7657ffc1 by Emmanuel Bourg at 2025-06-10T13:09:46+02:00
Disabled the SLF4J log factory (Closes: #1060960)

- - - - -
a245e438 by Emmanuel Bourg at 2025-06-10T13:11:22+02:00
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/10-disable-slf4j-factory.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,12 @@
-libcommons-logging-java (1.3.0-2) UNRELEASED; urgency=medium
+libcommons-logging-java (1.3.0-2) unstable; urgency=medium
 
-  * Team upload.
+  [ Andreas Tille ]
   * Build-Depends: s/default-jdk/default-jdk-headless/
 
- -- Andreas Tille <tille at debian.org>  Thu, 10 Apr 2025 22:31:11 +0200
+  [ Emmanuel Bourg ]
+  * Disabled the SLF4J log factory (Closes: #1060960)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Tue, 10 Jun 2025 13:09:51 +0200
 
 libcommons-logging-java (1.3.0-1) unstable; urgency=medium
 


=====================================
debian/patches/10-disable-slf4j-factory.patch
=====================================
@@ -0,0 +1,19 @@
+Description: Disables the SLF4J log factory
+Author: Emmanuel Bourg <ebourg at apache.org>
+Bug: https://issues.apache.org/jira/browse/LOGGING-197
+Bug-Debian: https://bugs.debian.org/1060960
+--- a/src/main/java/org/apache/commons/logging/LogFactory.java
++++ b/src/main/java/org/apache/commons/logging/LogFactory.java
+@@ -929,10 +929,12 @@
+                 }
+             }
+ 
++/*
+             if (factory == null && isClassAvailable(SLF4J_API_LOGGER, baseClassLoader)) {
+                 logDiagnostic("[LOOKUP] SLF4J detected. Loading the SLF4J LogFactory implementation '" + FACTORY_SLF4J + "'.");
+                 factory = newFactory(FACTORY_SLF4J, baseClassLoader, contextClassLoader);
+             }
++*/
+         } catch (final Exception e) {
+             logDiagnostic("[LOOKUP] An exception occurred while creating LogFactory: " + e.getMessage());
+         }


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 03_disable_securityallow_test.patch
 07_disable_log4j2_tests.patch
 08_logback_compatibility.patch
+10-disable-slf4j-factory.patch



View it on GitLab: https://salsa.debian.org/java-team/libcommons-logging-java/-/compare/e22696cdb687a66eb84f8332a46fd7571cb052d8...a245e43880c6b016fb71b8dd87e3bf0d07e9135d

-- 
View it on GitLab: https://salsa.debian.org/java-team/libcommons-logging-java/-/compare/e22696cdb687a66eb84f8332a46fd7571cb052d8...a245e43880c6b016fb71b8dd87e3bf0d07e9135d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20250610/ffa1c78f/attachment.htm>


More information about the pkg-java-commits mailing list