head 1.13; access; symbols pkgsrc-2026Q1:1.12.0.2 pkgsrc-2026Q1-base:1.12 pkgsrc-2025Q4:1.11.0.2 pkgsrc-2025Q4-base:1.11 pkgsrc-2025Q3:1.9.0.2 pkgsrc-2025Q3-base:1.9 pkgsrc-2025Q2:1.8.0.4 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.8.0.2 pkgsrc-2025Q1-base:1.8 pkgsrc-2024Q4:1.6.0.4 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.2 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.4.0.2 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.3.0.2 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.2.0.6 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.4 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.2 pkgsrc-2023Q2-base:1.2; locks; strict; comment @# @; 1.13 date 2026.04.14.11.43.30; author jperkin; state Exp; branches; next 1.12; commitid Dtfjr2Ajer0g7VBG; 1.12 date 2026.02.04.11.33.15; author adam; state Exp; branches; next 1.11; commitid CsGWmqJGDrBbh3tG; 1.11 date 2025.12.03.08.22.59; author adam; state Exp; branches; next 1.10; commitid Qf4LG5dvNewufWkG; 1.10 date 2025.11.28.15.47.35; author wiz; state Exp; branches; next 1.9; commitid PpBZpUksihM2SkkG; 1.9 date 2025.08.08.09.18.06; author adam; state Exp; branches; next 1.8; commitid aNZjeZMeWF6yjU5G; 1.8 date 2025.02.11.09.29.34; author adam; state Exp; branches; next 1.7; commitid Lg0xVyfcF5Zc62JF; 1.7 date 2025.01.02.08.00.33; author adam; state Exp; branches; next 1.6; commitid ydVxoO0k1H5kTSDF; 1.6 date 2024.09.18.10.46.42; author adam; state Exp; branches; next 1.5; commitid aO1dY6ZuTXdDdhqF; 1.5 date 2024.07.04.10.56.37; author adam; state Exp; branches; next 1.4; commitid ovLxnOvctLtvIvgF; 1.4 date 2024.06.19.15.19.05; author adam; state Exp; branches; next 1.3; commitid nlP8xAQzQiPiEBeF; 1.3 date 2024.02.08.21.45.25; author adam; state Exp; branches; next 1.2; commitid HLlaV09iZDiM1GXE; 1.2 date 2023.06.26.08.23.28; author jperkin; state Exp; branches; next 1.1; commitid AixiCtrVxpMnTquE; 1.1 date 2023.04.29.12.39.30; author wiz; state Exp; branches; next ; commitid E3DP7I1wNFJPa0nE; desc @@ 1.13 log @zlib-ng: Fix BUILDLINK_TRANSFORM. @ text @# $NetBSD: Makefile,v 1.12 2026/02/04 11:33:15 adam Exp $ DISTNAME= zlib-ng-2.3.3 CATEGORIES= archivers MASTER_SITES= ${MASTER_SITE_GITHUB:=zlib-ng/} GITHUB_TAG= ${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/zlib-ng/zlib-ng COMMENT= Replacement for zlib with optimizations for "next generation" systems LICENSE= zlib USE_CC_FEATURES= c11 USE_LANGUAGES= c c++ CMAKE_CONFIGURE_ARGS+= -DWITH_GTEST=OFF BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,${WRKSRC}/${CMAKE_BUILD_DIR}/zlib-ng.map TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR} # For Darwin TEST_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR} TEST_TARGET= test PKGCONFIG_OVERRIDE+= zlib.pc.cmakein .include "../../devel/cmake/build.mk" .include "../../mk/bsd.pkg.mk" @ 1.12 log @zlib-ng: updated to 2.3.3 2.3.3 Bug fixes Make deflate output deterministic if stream is reused after deflateReset minigzip: Fix integer overflow in gz_compress_mmap Use GCC's may_alias attribute for access to buffers in crc32_chorba Fix false-positive infinite loop warning detected by GCC-14 static analyzer Fix warning for potentially uninitialized local variable ft used. Tests Fixed casting warning in benchmark_uncompress on MSVC @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2025/12/03 08:22:59 adam Exp $ d18 1 a18 1 BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,${WRKSRC}/zlib-ng.map @ 1.11 log @zlib-ng: updated to 2.3.2 2.3.2 This hotfix release fixes bug. This bug caused CRC32 failures for data that ended on certain byte counts above 256KB. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2025/11/28 15:47:35 wiz Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.3.2 @ 1.10 log @zlib-ng: update to 2.3.1. First stable release of the 2.3.x branch. This is a feature release that introduces several optimizations and improvements. For some benchmarks and graphs, please see #2022. For recommended os/cmake/compiler versions, please see Wiki. The biggest addition is the Chorba CRC32 code, this is a major improvement to crc32 calculation speed for pre-PCLMUL (or equivalent) cpus. For now, we have 3 variants of Chorba: Generic, SSE2 and SSE4.1. We have also removed our detection and usage of the various aligned alloc functions, because we have to support an application-provided alloc function, and thus we have to check and fix buffer alignments anyway, so now we just use malloc() if none is provided. The gzopen-related init code has been rewritten to clean up and unify the gzread and gzwrite behavior. Several malloc calls removed, places in the gz* code with malloc calls is down from 7 to 4 places (using gzopen will now only result in 2-3 calls to malloc total). The reason for releasing 2.3.x instead of another 2.2 release is the introduction of Chorba CRC32, rewritten gzopen init code, the increased CMake version requirement, and the removal of NMake project files. There should not be any API/ABI changes (other than on the previously failing platforms fixed by #1980). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2025/08/08 09:18:06 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.3.1 @ 1.9 log @zlib-ng: updated to 2.2.5 2.2.5 Important fixes RiscV: chunkset_rvv: fix SIGSEGV in CHUNKCOPY MSVC: Disable optimizations for AVX512 GET_CHUNK_MAG causing inflate failure Fix building with runtime CPU detection disabled (native) Also check for ZMM support when detecting VPCLMULQDQ support Revert "Clean up insert_match() in deflate_medium" due to performance regression Buildsystem Pass POSIX_C_SOURCE for std::alligned_alloc try_compile checks X86_AVX512VNNI: check for _mm256_dpbusd_epi32 too CMake: Fix incorrect declaration of FORCE_SSE2 CMake: Fix CXXFLAGS when coverage enabled CMake: Remove late enable_language calls CMake: [FreeBSD] Define _XOPEN_SOURCE for gtest_zlib CMake: Add bindir into zlib.pc.in for compatibility with Cygwin and Msys2 Configure: riscv: add bash configure script support for riscv 1904 Tests/Benchmarks Test: Fix pointer type mismatch Test: Add large 1mb buffer test for crc32 hashing Changes to running benchmark during tests @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2025/02/11 09:29:34 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.2.5 @ 1.8 log @zlib-ng: updated to 2.2.4 2.2.4 Important fixes Fix potential shift overflow problems reported by static checkers VS2015: Fix an unfortunate bug RVV: Workaround error G6E97C40B s390x: Disable CRC32-VX Extensions for some broken Clang versions Buildsystem Improve include directory usage CMake: disable LTO for some configure checks Tests/Benchmarks Add uncompress benchmark @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2025/01/02 08:00:33 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.2.4 @ 1.7 log @zlib-ng: updated to 2.2.3 2.2.3 Fixes for potentially unsafe access Compute the "safe" distance properly Fix unaligned access in ACLE based crc32 Optimizations / Cleanups Allow the compiler to inline chunkcopy_safe more readily Misc inflate cleanup Reorder variables in inflate functions to reduce padding holes Improve chunkset_avx2 performance Simplify inflate fast by dispatching to chunkmemset for all chunkcopy cases Make an AVX512 inflate fast with low cost masked writes Enable AVX2 functions to be built with BMI2 instructions Improve pipeling for AVX512 chunking Risc-V: adler32_rvv: Fix two overflow problems Remove UNALIGNED_OK checks Use GCC's may_alias attribute for unaligned memory access Big Endian Make big endians first class citizens again Fix "RLE" compression with big endian architectures Buildsys fixes / minor fixes Fix build on aarch64 android. Allow overridde CMAKE_CXX_* variables and fix overridde CMAKE_C_* Use target include instead of raw include Replace non-ascii characters to fix MSVC warning Force Visual C++ to treat source files as UTF-8. Explicitly set CMake policy 0169 to silence warning configure: Fix linker flags for Haiku. configure: add --mandir to override $mandir on command line. Force use of latest Windows SDK with 32-bit ARM support Fix casting warning/error in test_compress_bound.cc Remove unused HAVE_CHUNKMEMSET_1 define Fix native detection of ARM CRC instruction Address deprecated cmake version warning. Add a fallback to ALIGNED_ macro for other compilers added in-tree build artifacts to .gitignore Fix typos CI Don't try to use macOS 11 as it's no longer supported. Bump codecov/codecov-action from 4 to 5 Update s390x actions-runner docker @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2024/09/18 10:46:42 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.2.3 @ 1.6 log @zlib-ng: updated to 2.2.2 2.2.2 This release fixes a corruption bug with the inflateback implementation, this was detected by Docker using pigz w/zlib-ng to decompress a 25GB image file and failing CRC. Since this is so far the only known way to trigger the bug, it seems to be hard to hit. Most of the rest are minor changes to avoid triggering warnings in MSVC or optional warnings in other compilers, as well as a few minor fixes to the buildsystem and CI. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2024/07/04 10:56:37 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.2.2 @ 1.5 log @zlib-ng: updated to 2.2.1 2.2.1 This is the first stable release of the 2.2.x branch Please read the changelog for the 2.2.0 Release Candidate if you didn't already, especially if your software gives zlib-ng a custom allocator. No bugreports came in during 2.2.0 RC testing, so the only change in 2.2.1 is a small fix for Configure that was already in the pipe: Configure: Don't use zlib-ng's -Wl,--version-script in tests @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2024/06/19 15:19:05 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.2.1 @ 1.4 log @zlib-ng: updated to 2.1.7 2.1.7 Buildsystem Generate CMake package configuration files Relocate CMake target export definitions Fix xsave intrinsic test for clang, and gcc 8.2 or newer, and icc Disable Intel Compiler diagnostic message 10441 Add missing checks for 64bit arm/intel with msvc compiler Don't export git/github-related files in tar/zip archives Add more result variables to the cmake package configuration Fix building with NVHPC CMake: Replace ; by $ in generator-expression Bump max CMake policy version to 3.29.0 make darwin cross compilation possible CI/Test Improve code coverage handling Add VPCLMULQDQ crc32 tests to Google benchmarks Add small compress() benchmark Add back-and-forth inflateCopy() test Enable orphaned unit tests for compare256_rle family of functions Fix MSAN error in test_dict CI workflows Add dependabot for github actions Upgrade ilammy/msvc-dev-cmd to v1.13.0 Upgrade codecov/codecov-action to v4. Upgrade github/codeql-action from 2 to 3 Upgrade actions/upload-artifact from 3 to 4 Upgrade mymindstorm/setup-emsdk to v14. Update dependencies for 32-bit MinGW CI run Use windows-2019 for build with toolset v141 Fix macOS Github Actions Cleanup Removing some outdated comments Remove obsolete TARGET_OS_MAC check Refactoring and Optimizations Remove unneeded pointer for functable.longest_match in deflate_slow ARM Add test for checking if -march=native needs -mfpu=neon for 32-bit ARM. Override Clang x4 NEON intrinsics for Android Add AArch64 feature detection support for OpenBSD Power Fix regression in Power8/9 detection RVV arch/riscv/riscv_features.c: fix uclibc build Disable CodeCov for RISC-V as the toolchain doesn't support generating code coverage S390x IBM zSystems DFLTCC: Extend sanitizer checks Update s390x dockerfile x86 Fix PCLMULQDQ, AVX512VNNI and VPCLMULQDQ feature tests for Intel LLVM compiler (icx) Fix invalid instruction usage in Xeon Phi x200 processors Misc free_aligned: validate passed in pointer Sync changes with zlib 1.3.1 (LIT_MEM changes not included) Improve Z_NULL compatibility with zlib .gitattributes: Enforce LF line-endings on all non-binary files @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2024/02/08 21:45:25 adam Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.1.7 @ 1.3 log @zlib-ng: updated to 2.1.6 2.1.6 This is a stable release, with several minor improvements and one corruption fix for inflateCopy(). This release also improves on the functable implementation, and also moves its initialization to happen in deflateInit() and inflateInit(). We also have some optimizations for RVV and ARM. 2.1.5 This is a hotfix release, fixing an issue where certain applications would fail with a checksum error during inflate (decompression). 2.1.4 This is a stable release, with several minor improvements and one fix for a possible buffer overrun while using inflateCopy(). Zlib-ng's zlib-compat mode is now targeting zlib 1.3 compatibility. Of note, we have new optimizations for ARM and Risc-V RVV, and a lot of fixes and improvements to the buildsystem. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2023/06/26 08:23:28 jperkin Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.1.6 d9 1 a9 1 HOMEPAGE= https://github.com/zlib-ng/zlib-ng/ @ 1.2 log @zlib-ng: Remove --version-script on SunOS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2023/04/29 12:39:30 wiz Exp $ d3 1 a3 1 DISTNAME= zlib-ng-2.0.7 d13 4 d21 2 @ 1.1 log @archivers/zlib-ng: import zlib-ng-2.0.7 zlib data compression library for the next generation systems Features: * Zlib compatible API with support for dual-linking * Modernized native API based on zlib API for ease of porting * Modern C11 syntax and a clean code layout * Deflate medium and quick algorithms based on Intel's zlib fork * Support for CPU intrinsics when available * Unaligned memory read/writes and large bit buffer improvements * Includes improvements from Cloudflare and Intel forks @ text @d1 1 a1 1 # $NetBSD$ d13 3 @