summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-10-22 15:32:01 +0000
committeradam <adam@pkgsrc.org>2018-10-22 15:32:01 +0000
commit795470ead8b0d1d62c1e5c8578d4e835bea354be (patch)
tree525d22db73eac2c506b46e11b58f84917bb57c6e /archivers
parenta33d46b7551cdfc5f69c413f5d8fc048ba6e455a (diff)
downloadpkgsrc-795470ead8b0d1d62c1e5c8578d4e835bea354be.tar.gz
py-zstandard: add missing patch
Diffstat (limited to 'archivers')
-rw-r--r--archivers/py-zstandard/patches/patch-zstd.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/archivers/py-zstandard/patches/patch-zstd.c b/archivers/py-zstandard/patches/patch-zstd.c
new file mode 100644
index 00000000000..1f1605b4b26
--- /dev/null
+++ b/archivers/py-zstandard/patches/patch-zstd.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-zstd.c,v 1.1 2018/10/22 15:32:01 adam Exp $
+
+Allow newer zstd.
+
+--- zstd.c.orig 2018-10-22 15:14:29.000000000 +0000
++++ zstd.c
+@@ -210,10 +210,6 @@ void zstd_module_init(PyObject* m) {
+ We detect this mismatch here and refuse to load the module if this
+ scenario is detected.
+ */
+- if (ZSTD_VERSION_NUMBER != 10306 || ZSTD_versionNumber() != 10306) {
+- PyErr_SetString(PyExc_ImportError, "zstd C API mismatch; Python bindings not compiled against expected zstd version");
+- return;
+- }
+
+ bufferutil_module_init(m);
+ compressionparams_module_init(m);
+@@ -341,4 +337,4 @@ int safe_pybytes_resize(PyObject** obj,
+ *obj = tmp;
+
+ return 0;
+-}
+\ No newline at end of file
++}