#6 switch from log4j 1.2 compat package to log4j 1.2 API shim
Merged 3 years ago by decathorpe. Opened 3 years ago by decathorpe.
Unknown source master  into  master

file modified
+8 -2
@@ -4,7 +4,7 @@

  Name:           xbean

  Summary:        Java plugin based web server

  Version:        4.15

- Release:        5%{?dist}

+ Release:        6%{?dist}

  License:        ASL 2.0

  

  URL:            http://geronimo.apache.org/xbean/
@@ -19,8 +19,8 @@

  BuildRequires:  maven-local

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

  BuildRequires:  mvn(junit:junit)

- BuildRequires:  mvn(log4j:log4j:1.2.12)

  BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

+ BuildRequires:  mvn(org.apache.logging.log4j:log4j-1.2-api)

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

  BuildRequires:  mvn(org.osgi:osgi.core)

  BuildRequires:  mvn(org.ow2.asm:asm)
@@ -68,6 +68,9 @@

  # use osgi-core instead of felix-osgi-core

  %pom_change_dep -r :org.osgi.core org.osgi:osgi.core

  

+ # switch from log4j 1.2 compat package to log4j 1.2 API shim

+ %pom_change_dep -r log4j:log4j org.apache.logging.log4j:log4j-1.2-api

+ 

  # Unshade ASM

  %pom_remove_dep -r :xbean-asm7-shaded

  %pom_remove_dep -r :xbean-finder-shaded
@@ -128,6 +131,9 @@

  

  

  %changelog

+ * Wed Sep 09 2020 Fabio Valentini <decathorpe@gmail.com> - 4.15-6

+ - Switch from log4j 1.2 compat package to log4j 1.2 API shim.

+ 

  * Wed Jul 29 2020 Mat Booth <mat.booth@redhat.com> - 4.15-5

  - Remove springframework conditionals, the deps are a long time removed from

    Fedora and this simplifies the spec a bit

log4j12 is old and gross and has open security bugs. I want to get rid of it.
Serendipitously, log4j 2 actually provides a 1.2 API shim that requires no code changes.

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

All build failures are pre-existing in rawhide.

Pull-Request has been merged by decathorpe

3 years ago
Metadata