Skip to content

Commit

Permalink
package/log4cxx: bump to version 1.1.0
Browse files Browse the repository at this point in the history
- Drop patch (already in version)
- Drop LOG4CXX_IGNORE_CVES as CVE-2023-31038 has been fixed in 1.1.0
- Add unixodbc optional dependency

https://logging.apache.org/log4cxx/latest_stable/changelog.html#1.1.0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
  • Loading branch information
ffontaine authored and arnout committed Mar 27, 2024
1 parent 9ff9d5f commit c4878d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 81 deletions.
73 changes: 0 additions & 73 deletions package/log4cxx/0001-Make-ODBC-and-SMTP-opt-in-191.patch

This file was deleted.

4 changes: 2 additions & 2 deletions package/log4cxx/log4cxx.hash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From https://www.apache.org/dist/logging/log4cxx/0.13.0/apache-log4cxx-0.13.0.tar.gz.sha512
sha512 2a5f4fecc0415d942658c588774f0666082c497b6fd49bf64ab3328a997775206788c9b10a8c89208896c57da52fcc12c18d5d11ca1d3bf699e4633b8fcea6e5 apache-log4cxx-0.13.0.tar.gz
# From https://www.apache.org/dist/logging/log4cxx/1.1.0/apache-log4cxx-1.1.0.tar.gz.sha512
sha512 66a66eab933a6afd0779e3f73f65afa4fb82481208b591fd7c7c86ded805f50abcd9cdf954bdb49e1e7f5198e6c1c4fff8a7e180ff5fff9491f1946e9ba6fe2b apache-log4cxx-1.1.0.tar.gz
# Locally computed
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
15 changes: 9 additions & 6 deletions package/log4cxx/log4cxx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
#
################################################################################

LOG4CXX_VERSION = 0.13.0
LOG4CXX_VERSION = 1.1.0
LOG4CXX_SITE = https://archive.apache.org/dist/logging/log4cxx/$(LOG4CXX_VERSION)
LOG4CXX_SOURCE = apache-log4cxx-$(LOG4CXX_VERSION).tar.gz
LOG4CXX_INSTALL_STAGING = YES
LOG4CXX_LICENSE = Apache-2.0
LOG4CXX_LICENSE_FILES = LICENSE
LOG4CXX_CPE_ID_VENDOR = apache
# We do not support ODBC functionality
LOG4CXX_IGNORE_CVES = CVE-2023-31038

# Note: if you want to support odbc, make sure CVE-2023-31038 is fixed
LOG4CXX_CONF_OPTS = \
-DAPR_CONFIG_EXECUTABLE=$(STAGING_DIR)/usr/bin/apr-1-config \
-DAPR_UTIL_CONFIG_EXECUTABLE=$(STAGING_DIR)/usr/bin/apu-1-config \
-DLOG4CXX_ENABLE_ODBC=OFF
-DAPR_UTIL_CONFIG_EXECUTABLE=$(STAGING_DIR)/usr/bin/apu-1-config

LOG4CXX_DEPENDENCIES = apr apr-util

Expand All @@ -33,6 +29,13 @@ else
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_LIBESMTP=OFF
endif

ifeq ($(BR2_PACKAGE_UNIXODBC),y)
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ODBC=ON
LOG4CXX_DEPENDENCIES += unixodbc
else
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ODBC=OFF
endif

ifeq ($(BR2_USE_WCHAR),y)
LOG4CXX_CONF_OPTS += -DLOG4CXX_WCHAR_T=ON
else
Expand Down

0 comments on commit c4878d5

Please sign in to comment.