View | Details | Raw Unified | Return to bug 224902
Collapse All | Expand All

(-)textproc/libxml2/files/patch-python_types.c (+13 lines)
Line 0 Link Here
1
--- python/types.c.orig	2018-01-04 07:57:37 UTC
2
+++ python/types.c
3
@@ -31,8 +31,10 @@ libxml_PyFileGet(PyObject *f) {
4
     const char *mode;
5
 
6
     fd = PyObject_AsFileDescriptor(f);
7
+#if PY_MAJOR_VERSION < 3
8
     if (!_PyVerify_fd(fd))
9
         return(NULL);
10
+#endif 
11
     /*
12
      * Get the flags on the fd to understand how it was opened
13
      */
(-)textproc/py-libxml2/Makefile (-1 / +1 lines)
Lines 1-7 Link Here
1
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
1
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTREVISION=	0
4
PORTREVISION=	1
5
CATEGORIES=	textproc gnome python
5
CATEGORIES=	textproc gnome python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
7

Return to bug 224902