From b2bd4431c6f7a55beb625149d6de15754ee9b0e7 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Sat, 30 Mar 2024 12:10:42 +1100 Subject: [PATCH] python3-zstandard: update to 0.22.0. --- .../patches/fix-hardcoded-version-number.patch | 11 +++++++++++ srcpkgs/python3-zstandard/template | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/python3-zstandard/patches/fix-hardcoded-version-number.patch diff --git a/srcpkgs/python3-zstandard/patches/fix-hardcoded-version-number.patch b/srcpkgs/python3-zstandard/patches/fix-hardcoded-version-number.patch new file mode 100644 index 00000000000000..3b72fa20c73a9e --- /dev/null +++ b/srcpkgs/python3-zstandard/patches/fix-hardcoded-version-number.patch @@ -0,0 +1,11 @@ +--- a/c-ext/backend_c.c 2023-11-01 02:58:34.000000000 -0300 ++++ b/c-ext/backend_c.c 2024-03-29 21:32:40.694372789 -0300 +@@ -152,7 +152,7 @@ + PyObject *features = NULL; + PyObject *feature = NULL; + unsigned zstd_ver_no = ZSTD_versionNumber(); +- unsigned our_hardcoded_version = 10505; ++ unsigned our_hardcoded_version = ZSTD_VERSION_NUMBER; + if (ZSTD_VERSION_NUMBER != our_hardcoded_version || + zstd_ver_no != our_hardcoded_version) { + PyErr_Format( diff --git a/srcpkgs/python3-zstandard/template b/srcpkgs/python3-zstandard/template index d59cbb09b965fc..36907f76c111c1 100644 --- a/srcpkgs/python3-zstandard/template +++ b/srcpkgs/python3-zstandard/template @@ -1,7 +1,7 @@ # Template file for 'python3-zstandard' pkgname=python3-zstandard -version=0.21.0 -revision=3 +version=0.22.0 +revision=1 build_style=python3-module make_build_args="--system-zstd" hostmakedepends="python3-setuptools" @@ -14,7 +14,7 @@ license="BSD-3-Clause" homepage="https://github.com/indygreg/python-zstandard" changelog="https://raw.githubusercontent.com/indygreg/python-zstandard/main/docs/news.rst" distfiles="https://github.com/indygreg/python-zstandard/archive/${version}.tar.gz" -checksum=15adc6bfa629d48b0bb658e9eae94c484adb66a28738fa780478eebeb41599a5 +checksum=34ce7ef020afca1344c538a778e2a2e30dc43b11509aa4cb5cf076228d959ca7 pre_check() { # The skipped test ignored due to failure, see: