aboutsummaryrefslogtreecommitdiff
path: root/textproc/libxml2
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2018-10-25 19:26:44 +0000
committerKoop Mast <kwm@FreeBSD.org>2018-10-25 19:26:44 +0000
commit815b85b6704bc3c6b47197455bd7fc39d17901d6 (patch)
treee47f67634bb135606d542d9edd1ba203632c4275 /textproc/libxml2
parent77a52f9d83e7814c34abc592e19503333affc6e0 (diff)
downloadports-815b85b6704bc3c6b47197455bd7fc39d17901d6.tar.gz
ports-815b85b6704bc3c6b47197455bd7fc39d17901d6.zip
Remove usage of _PyVerify_fd().
This function appears to be removed in python 3.5.0. Instead of adding a version check like the submitter proposed. Grab the upstream patch instead that just removes the function usage. PR: 224902 Submitted by: Michael Zhilin <mizhka@gmail.com> Obtained from: libxml2 upstream
Notes
Notes: svn path=/head/; revision=482978
Diffstat (limited to 'textproc/libxml2')
-rw-r--r--textproc/libxml2/files/patch-python_types.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-python_types.c b/textproc/libxml2/files/patch-python_types.c
new file mode 100644
index 000000000000..3c7761dfa856
--- /dev/null
+++ b/textproc/libxml2/files/patch-python_types.c
@@ -0,0 +1,30 @@
+From d910e99c322a0895955038c700471e9b1fd91fa6 Mon Sep 17 00:00:00 2001
+From: Patrick Welche <prlw1@cam.ac.uk>
+Date: Mon, 6 Nov 2017 16:20:25 +0000
+Subject: [PATCH] python: remove single use of _PyVerify_fd
+
+_PyVerify_fd disappeared from python with:
+
+ https://hg.python.org/cpython/rev/e88e2049b793
+
+https://bugzilla.gnome.org/show_bug.cgi?id=776815
+---
+ python/types.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/python/types.c b/python/types.c
+index f2376776..124af565 100644
+--- python/types.c
++++ python/types.c
+@@ -31,8 +31,6 @@ libxml_PyFileGet(PyObject *f) {
+ const char *mode;
+
+ fd = PyObject_AsFileDescriptor(f);
+- if (!_PyVerify_fd(fd))
+- return(NULL);
+ /*
+ * Get the flags on the fd to understand how it was opened
+ */
+--
+2.18.1
+