Update to zstd-1.5.1
Maintenance release, changelog can be found at https://github.com/facebook/zstd/blob/v1.5.1/CHANGELOG. Bump minor of libzstd because of some additions. Feedback and OK from kn@
This commit is contained in:
parent
a76422629a
commit
31ac88fc89
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.37 2021/06/06 16:11:29 bket Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2021/12/25 13:28:13 bket Exp $
|
||||
|
||||
COMMENT = zstandard fast real-time compression algorithm
|
||||
|
||||
V = 1.5.0
|
||||
V = 1.5.1
|
||||
DISTNAME = zstd-${V}
|
||||
|
||||
SHARED_LIBS = zstd 6.0 # 1.5.0
|
||||
SHARED_LIBS = zstd 6.1 # 1.5.1
|
||||
|
||||
CATEGORIES = archivers
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (zstd-1.5.0.tar.gz) = UZT7+ngfz0W5jF6EllGqezsKAIxrctSg23YPMAIpHpQ=
|
||||
SIZE (zstd-1.5.0.tar.gz) = 1851389
|
||||
SHA256 (zstd-1.5.1.tar.gz) = 4osvLtVxDqDToeysP2qUegFrlyud0wJCNpAQ5fU9cAI=
|
||||
SIZE (zstd-1.5.1.tar.gz) = 1934669
|
||||
|
@ -1,36 +0,0 @@
|
||||
$OpenBSD: patch-lib_Makefile,v 1.12 2021/06/06 16:11:29 bket Exp $
|
||||
|
||||
- Some compilers don't have -Wvla
|
||||
- Don't set compiler optimisation level
|
||||
- Don't create symbolic links to SHARED_LIB
|
||||
|
||||
Index: lib/Makefile
|
||||
--- lib/Makefile.orig
|
||||
+++ lib/Makefile
|
||||
@@ -55,7 +55,7 @@ endif
|
||||
CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \
|
||||
-DDYNAMIC_BMI2=0 -DNDEBUG
|
||||
else
|
||||
- CFLAGS += -O3
|
||||
+ CFLAGS +=
|
||||
endif
|
||||
|
||||
DEBUGLEVEL ?= 0
|
||||
@@ -66,7 +66,7 @@ endif
|
||||
DEBUGFLAGS= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
|
||||
-Wstrict-prototypes -Wundef -Wpointer-arith \
|
||||
- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
+ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
-Wredundant-decls -Wmissing-prototypes -Wc++-compat
|
||||
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
|
||||
FLAGS = $(CPPFLAGS) $(CFLAGS)
|
||||
@@ -456,8 +456,6 @@ install-shared:
|
||||
[ -e $(DESTDIR)$(LIBDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
|
||||
@echo Installing shared library
|
||||
$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
|
||||
- ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
|
||||
- ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
|
||||
|
||||
.PHONY: install-includes
|
||||
install-includes:
|
26
archivers/zstd/patches/patch-lib_libzstd_mk
Normal file
26
archivers/zstd/patches/patch-lib_libzstd_mk
Normal file
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-lib_libzstd_mk,v 1.1 2021/12/25 13:28:13 bket Exp $
|
||||
|
||||
Don't set compiler optimisation level.
|
||||
Some compilers don't have -Wvla.
|
||||
|
||||
Index: lib/libzstd.mk
|
||||
--- lib/libzstd.mk.orig
|
||||
+++ lib/libzstd.mk
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \
|
||||
-DDYNAMIC_BMI2=0 -DNDEBUG
|
||||
else
|
||||
- CFLAGS += -O3
|
||||
+ CFLAGS +=
|
||||
endif
|
||||
|
||||
DEBUGLEVEL ?= 0
|
||||
@@ -90,7 +90,7 @@ endif
|
||||
DEBUGFLAGS= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
|
||||
-Wstrict-prototypes -Wundef -Wpointer-arith \
|
||||
- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
+ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
-Wredundant-decls -Wmissing-prototypes -Wc++-compat
|
||||
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
|
||||
LDFLAGS += $(MOREFLAGS)
|
@ -1,16 +0,0 @@
|
||||
$OpenBSD: patch-programs_Makefile,v 1.7 2021/03/06 19:31:22 bket Exp $
|
||||
|
||||
Some compilers don't have -Wvla
|
||||
|
||||
Index: programs/Makefile
|
||||
--- programs/Makefile.orig
|
||||
+++ programs/Makefile
|
||||
@@ -59,7 +59,7 @@ CFLAGS ?= -O3
|
||||
DEBUGFLAGS+=-Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
|
||||
-Wstrict-prototypes -Wundef -Wpointer-arith \
|
||||
- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
+ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
-Wredundant-decls -Wmissing-prototypes -Wc++-compat
|
||||
CFLAGS += $(DEBUGFLAGS)
|
||||
CPPFLAGS += $(MOREFLAGS)
|
@ -1,16 +0,0 @@
|
||||
$OpenBSD: patch-tests_Makefile,v 1.4 2021/06/06 16:11:29 bket Exp $
|
||||
|
||||
Some compilers don't have -Wvla
|
||||
|
||||
Index: tests/Makefile
|
||||
--- tests/Makefile.orig
|
||||
+++ tests/Makefile
|
||||
@@ -37,7 +37,7 @@ CFLAGS ?= -O3
|
||||
CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
|
||||
-Wstrict-prototypes -Wundef \
|
||||
- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
+ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
|
||||
-Wredundant-decls -Wmissing-prototypes -Wno-deprecated-declarations
|
||||
CFLAGS += $(DEBUGFLAGS)
|
||||
CPPFLAGS += $(MOREFLAGS)
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.7 2020/12/29 20:40:31 bket Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.8 2021/12/25 13:28:13 bket Exp $
|
||||
bin/unzstd
|
||||
@bin bin/zstd
|
||||
bin/zstdcat
|
||||
@ -9,6 +9,8 @@ include/zdict.h
|
||||
include/zstd.h
|
||||
include/zstd_errors.h
|
||||
@static-lib lib/libzstd.a
|
||||
@comment @so lib/libzstd.so
|
||||
@comment lib/libzstd.so.1
|
||||
@lib lib/libzstd.so.${LIBzstd_VERSION}
|
||||
lib/pkgconfig/libzstd.pc
|
||||
@man man/man1/unzstd.1
|
||||
|
Loading…
Reference in New Issue
Block a user