aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-11-22 09:21:01 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-11-22 09:21:01 +0000
commita7cac42c868ca5722777ccee944217410812e72c (patch)
tree7bff7ce2a3ade72f6f15dfc634490d13628066ee /contrib/tools/cython
parenta18f18d81996ca8e681bb6cabd441b52833d99bf (diff)
parent9478cfdab4217d3710b96329466825bf47111d7d (diff)
downloadydb-a7cac42c868ca5722777ccee944217410812e72c.tar.gz
Merge branch 'rightlib' into mergelibs-241122-0919
Diffstat (limited to 'contrib/tools/cython')
-rw-r--r--contrib/tools/cython/patches/DEVTOOLSSUPPORT-52386.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/contrib/tools/cython/patches/DEVTOOLSSUPPORT-52386.patch b/contrib/tools/cython/patches/DEVTOOLSSUPPORT-52386.patch
new file mode 100644
index 0000000000..51509ebc7d
--- /dev/null
+++ b/contrib/tools/cython/patches/DEVTOOLSSUPPORT-52386.patch
@@ -0,0 +1,47 @@
+commit 3bb34c7656f9f425d9f9dbe140340f1d5b57586f
+merge: 78a88b4da152acc232b549f8a7415d3f8a67bd31 b694ac6e026f3dd205118ad0f939efc45e985a69
+author: pg
+date: 2024-10-11T10:22:30+03:00
+revision: 15073732
+
+ DEVTOOLSSUPPORT-52386
+
+ REVIEW: 6974995
+
+--- contrib/tools/cython/Cython/Utility/ImportExport.c (78a88b4da152acc232b549f8a7415d3f8a67bd31)
++++ contrib/tools/cython/Cython/Utility/ImportExport.c (3bb34c7656f9f425d9f9dbe140340f1d5b57586f)
+@@ -331,7 +331,7 @@ static PyTypeObject *__Pyx_ImportType_$cyversion(PyObject *module, const char *m
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_$cyversion check_size)
+ {
+ PyObject *result = 0;
+- char warning[200];
++ //char warning[200];
+ Py_ssize_t basicsize;
+ Py_ssize_t itemsize;
+ #ifdef Py_LIMITED_API
+@@ -382,25 +382,10 @@ static PyTypeObject *__Pyx_ImportType_$cyversion(PyObject *module, const char *m
+ itemsize = (Py_ssize_t)alignment;
+ }
+ if ((size_t)(basicsize + itemsize) < size) {
+- PyErr_Format(PyExc_ValueError,
+- "%.200s.%.200s size changed, may indicate binary incompatibility. "
+- "Expected %zd from C header, got %zd from PyObject",
+- module_name, class_name, size, basicsize);
+- goto bad;
+ }
+ if (check_size == __Pyx_ImportType_CheckSize_Error_$cyversion && (size_t)basicsize != size) {
+- PyErr_Format(PyExc_ValueError,
+- "%.200s.%.200s size changed, may indicate binary incompatibility. "
+- "Expected %zd from C header, got %zd from PyObject",
+- module_name, class_name, size, basicsize);
+- goto bad;
+ }
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_$cyversion && (size_t)basicsize > size) {
+- PyOS_snprintf(warning, sizeof(warning),
+- "%s.%s size changed, may indicate binary incompatibility. "
+- "Expected %zd from C header, got %zd from PyObject",
+- module_name, class_name, size, basicsize);
+- if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
+ }
+ /* check_size == __Pyx_ImportType_CheckSize_Ignore does not warn nor error */
+ return (PyTypeObject *)result;