Skip to content

Commit

Permalink
zlog: update to 1.2.17
Browse files Browse the repository at this point in the history
Rework to use local tarballs. Smaller and more stable.

Build with cmake. Faster and simpler. Needs a small patch though.

License was updated.

Fixes CVE-2021-43521

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Feb 12, 2024
1 parent 45897d0 commit fa69fdc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
22 changes: 9 additions & 13 deletions libs/zlog/Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=zlog
PKG_VERSION:=1.2.15
PKG_RELEASE:=2
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/HardySimpson/zlog
PKG_SOURCE_VERSION:=1.2.17
PKG_MIRROR_HASH:=fcad107b91aa251c61b7409dfbae0421662154c4dc158c7a34ee2f69cde8f9a2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/HardySimpson/$(PKG_NAME)/archive/refs/tags/$(PKG_VERSION).tar.gz?
PKG_HASH:=00037ab8d52772a95d645f1dcfd2c292b7cea326b54e63e219a5b7fdcb7e6508
PKG_MAINTAINER:=Marko Ratkaj <[email protected]>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:zlog_project:zlog

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/zlog
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Pure C logging library
URL:=http://hardysimpson.github.io/zlog/
LICENSE:=LGPL-2.1-or-later
LICENSE_FILES:=COPYING
endef

MAKE_FLAGS+= \
PREFIX="$(PKG_INSTALL_DIR)/usr"

define Package/zlog/description
zlog is a reliable, high-performance, thread safe, flexible, clear-model, pure C logging library.
endef
Expand Down
10 changes: 10 additions & 0 deletions libs/zlog/patches/010-cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,6 @@ SET(zlog_so_ver ${CPACK_PACKAGE_VERSION_
message(STATUS "plateform : ${CMAKE_SYSTEM}")

add_definitions("-g -Wall -Wstrict-prototypes")
-set(CMAKE_C_FLAGS "-std=c99 -pedantic -D_DEFAULT_SOURCE")
set(CMAKE_C_FLAGS_DEBUG "-ggdb3 -DDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O2")

0 comments on commit fa69fdc

Please sign in to comment.