pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/archivers/py-zstandard/patches
Module Name: pkgsrc
Committed By: adam
Date: Mon Oct 22 15:32:01 UTC 2018
Added Files:
pkgsrc/archivers/py-zstandard/patches: patch-zstd.c
Log Message:
py-zstandard: add missing patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/py-zstandard/patches/patch-zstd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/archivers/py-zstandard/patches/patch-zstd.c
diff -u /dev/null pkgsrc/archivers/py-zstandard/patches/patch-zstd.c:1.1
--- /dev/null Mon Oct 22 15:32:01 2018
+++ pkgsrc/archivers/py-zstandard/patches/patch-zstd.c Mon Oct 22 15:32:01 2018
@@ -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