Browse Source

zstd: update to 1.5.0

Remove uClibc hack. uClibc is not in the tree anymore.

Update configure options. Change legacy_level to 7. This gets rid of
backwards compatibility with version 0.1 and bumps it to 0.7.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 3 years ago
parent
commit
8a42b541d4
2 changed files with 6 additions and 18 deletions
  1. +6
    -7
      utils/zstd/Makefile
  2. +0
    -11
      utils/zstd/patches/001-fix-meson.patch

+ 6
- 7
utils/zstd/Makefile View File

@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=zstd
PKG_VERSION:=1.4.9
PKG_RELEASE:=1
PKG_VERSION:=1.5.0
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.zst
PKG_SOURCE_URL:=https://github.com/facebook/zstd/releases/download/v$(PKG_VERSION)
PKG_HASH:=61dce0e9a5036d7fb9b5709ee6567c2c8a1b4ba48a8e43afe9ae355cc37bb494
PKG_HASH:=9aa8dfc1ca17f358b28988ca1f6e00ffe1c6f3198853f8d2022799e6f0669180
PKG_MAINTAINER:=
PKG_LICENSE:=GPL-2.0-or-later
@ -63,16 +63,15 @@ ifeq ($(CONFIG_ZSTD_OPTIMIZE_O3),y)
TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS)) -O3
endif
TARGET_CFLAGS += $(if $(CONFIG_USE_UCLIBC),-D_BSD_SOURCE)
MESON_ARGS += \
-Dlegacy_level=1 \
-Dlegacy_level=7 \
-Ddebug_level=0 \
-Dbacktrace=false \
-Dstatic_runtime=false \
-Dbin_programs=true \
-Dbin_tests=false \
-Dbin_control=false \
-Dbin_contrib=false \
-Dmulti_thread=enabled \
-Dzlib=disabled \
-Dlzma=disabled \
-Dlz4=disabled \


+ 0
- 11
utils/zstd/patches/001-fix-meson.patch View File

@ -1,11 +0,0 @@
Fixes build issue https://github.com/facebook/zstd/issues/2519
--- a/build/meson/lib/meson.build
+++ b/build/meson/lib/meson.build
@@ -22,6 +22,7 @@ libzstd_sources = [join_paths(zstd_rootd
join_paths(zstd_rootdir, 'lib/common/threading.c'),
join_paths(zstd_rootdir, 'lib/common/pool.c'),
join_paths(zstd_rootdir, 'lib/common/zstd_common.c'),
+ join_paths(zstd_rootdir, 'lib/common/zstd_trace.c'),
join_paths(zstd_rootdir, 'lib/common/error_private.c'),
join_paths(zstd_rootdir, 'lib/common/xxhash.c'),
join_paths(zstd_rootdir, 'lib/compress/hist.c'),

Loading…
Cancel
Save