#7 disable unused log4j12 module
Merged 3 years ago by decathorpe. Opened 3 years ago by decathorpe.
Unknown source master  into  master

file modified
+8 -9
@@ -30,7 +30,7 @@

  

  Name:           slf4j

  Version:        1.7.30

- Release:        6%{?dist}

+ Release:        7%{?dist}

  Epoch:          0

  Summary:        Simple Logging Facade for Java

  # the log4j-over-slf4j and jcl-over-slf4j submodules are ASL 2.0, rest is MIT
@@ -44,12 +44,14 @@

  BuildRequires:  mvn(ch.qos.cal10n:cal10n-api)

  BuildRequires:  mvn(commons-logging:commons-logging)

  BuildRequires:  mvn(javassist:javassist)

- BuildRequires:  mvn(log4j:log4j:1.2.17)

  BuildRequires:  mvn(org.apache.commons:commons-lang3)

  BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

  BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

  BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

  

+ # -log4j12 subpackage removed in fedora 34

+ Obsoletes:      slf4j-log4j12 < 0:1.7.30-7

+ 

  %description

  The Simple Logging Facade for Java or (SLF4J) is intended to serve

  as a simple facade for various logging APIs allowing to the end-user
@@ -80,12 +82,6 @@

  %description jdk14

  SLF4J JDK14 Binding.

  

- %package log4j12

- Summary:        SLF4J LOG4J-12 Binding

- 

- %description log4j12

- SLF4J LOG4J-12 Binding.

- 

  %package jcl

  Summary:        SLF4J JCL Binding

  
@@ -130,6 +126,7 @@

  %pom_disable_module integration

  %pom_disable_module osgi-over-slf4j

  %pom_disable_module slf4j-android

+ %pom_disable_module slf4j-log4j12

  %pom_disable_module slf4j-migrator

  

  # Because of a non-ASCII comment in slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
@@ -202,7 +199,6 @@

  %license LICENSE.txt APACHE-LICENSE

  

  %files jdk14 -f .mfiles-%{name}-jdk14

- %files log4j12 -f .mfiles-%{name}-log4j12

  %files jcl -f .mfiles-%{name}-jcl

  %files ext -f .mfiles-%{name}-ext

  %files -n jcl-over-slf4j -f .mfiles-jcl-over-slf4j
@@ -220,6 +216,9 @@

  %{_defaultdocdir}/%{name}-manual

  

  %changelog

+ * Wed Sep 09 2020 Fabio Valentini <decathorpe@gmail.com> - 0:1.7.30-7

+ - Disable unused log4j12 module.

+ 

  * Thu Jul 30 2020 Fabio Valentini <decathorpe@gmail.com> - 0:1.7.30-6

  - Port to commons-lang3.

  

log4j12 is old and gross and has open security bugs. I want to get rid of it.
The slf4j-log4j12 subpackage is unused in rawhide an can be dropped.

Test builds in COPR:
https://copr.fedorainfracloud.org/coprs/decathorpe/slf4j-log4j-pr/monitor/

All build failures are unrelated to this change.

Pull-Request has been merged by decathorpe

3 years ago