pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/py-zstandard/patches py-zstandard: add missi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b313637e8698
branches:  trunk
changeset: 324520:b313637e8698
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 22 15:32:01 2018 +0000

description:
py-zstandard: add missing patch

diffstat:

 archivers/py-zstandard/patches/patch-zstd.c |  24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r a77868694a9f -r b313637e8698 archivers/py-zstandard/patches/patch-zstd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/py-zstandard/patches/patch-zstd.c       Mon Oct 22 15:32:01 2018 +0000
@@ -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
++}



Home | Main Index | Thread Index | Old Index