diff --git a/archivers/liblz4/Makefile b/archivers/liblz4/Makefile index 679868ef0d64..70758b4c7668 100644 --- a/archivers/liblz4/Makefile +++ b/archivers/liblz4/Makefile @@ -1,41 +1,48 @@ PORTNAME= lz4 PORTVERSION= 1.10.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= archivers MASTER_SITES= https://github.com/lz4/lz4/releases/download/v${PORTVERSION}/ PKGNAMEPREFIX= lib MAINTAINER= sunpoet@FreeBSD.org COMMENT= LZ4 compression library, lossless and very fast WWW= https://lz4.org/ \ https://github.com/lz4/lz4 LICENSE= BSD2CLAUSE GPLv2 LICENSE_COMB= multi LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/lib/LICENSE LICENSE_FILE_GPLv2= ${WRKSRC}/programs/COPYING # Note this port is in the dependency chain of lang/python314 # via archivers/zstd and cannot use meson or python to build USES= cpe gmake pkgconfig CPE_VENDOR= lz4_project USE_LDCONFIG= yes MAKE_ARGS= PREFIX="${PREFIX}" \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ MANDIR="${PREFIX}/share/man" MAKE_ENV+= TARGET_ARCH= - TEST_TARGET= check +CFLAGS+= -DLZ4IO_MULTITHREAD -pthread +LDFLAGS+= -pthread + +BINARY_ALIAS= make=${GMAKE} + PORTSCOUT= limit:^[0-9]*\. PLIST_SUB= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= TEST -TEST_DESC= Run complete tests +TEST_DESC= Run extensive tests +# we need to do something else when python 3.14 is +# the oldest version in the tree (~ October 2029). +TEST_USES= python:-3.13,build TEST_TEST_TARGET=test .include diff --git a/archivers/liblz4/files/patch-tests_test-lz4-dict.sh b/archivers/liblz4/files/patch-tests_test-lz4-dict.sh new file mode 100644 index 000000000000..58929a65936e --- /dev/null +++ b/archivers/liblz4/files/patch-tests_test-lz4-dict.sh @@ -0,0 +1,15 @@ +--- tests/test-lz4-dict.sh.orig 2024-07-21 17:29:49 UTC ++++ tests/test-lz4-dict.sh +@@ -39,8 +39,8 @@ for l in 0 1 4 128 32767 32768 32769 65535 65536 65537 + datagen -g128KB > $FPREFIX-data-128KB + set -e; \ + for l in 0 1 4 128 32767 32768 32769 65535 65536 65537 98303 98304 98305 131071 131072 131073; do \ +- datagen -g$$l > $FPREFIX-$$l; \ +- dd if=$FPREFIX-$$l of=$FPREFIX-$$l-tail bs=1 count=65536 skip=$((l > 65536 ? l - 65536 : 0)); \ +- < $FPREFIX-$$l lz4 -D stdin $FPREFIX-data-128KB -c | lz4 -dD $FPREFIX-$$l-tail | diff - $FPREFIX-data-128KB; \ +- < $FPREFIX-$$l-tail lz4 -D stdin $FPREFIX-data-128KB -c | lz4 -dD $FPREFIX-$$l | diff - $FPREFIX-data-128KB; \ ++ datagen -g$l > $FPREFIX-$l; \ ++ dd if=$FPREFIX-$l of=$FPREFIX-$l-tail bs=1 count=65536 skip=$((l > 65536 ? l - 65536 : 0)); \ ++ < $FPREFIX-$l lz4 -D stdin $FPREFIX-data-128KB -c | lz4 -dD $FPREFIX-$l-tail | diff - $FPREFIX-data-128KB; \ ++ < $FPREFIX-$l-tail lz4 -D stdin $FPREFIX-data-128KB -c | lz4 -dD $FPREFIX-$l | diff - $FPREFIX-data-128KB; \ + done