pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/libxml2 py-libxml2: _PyVerify_fd no longer ex...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76ffcac5c4bd
branches:  trunk
changeset: 371186:76ffcac5c4bd
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Mon Nov 06 16:12:11 2017 +0000

description:
py-libxml2: _PyVerify_fd no longer exists

https://bugzilla.gnome.org/show_bug.cgi?id=776815

diffstat:

 textproc/libxml2/distinfo                     |   3 ++-
 textproc/libxml2/patches/patch-python_types.c |  21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r c27b6d4dcf11 -r 76ffcac5c4bd textproc/libxml2/distinfo
--- a/textproc/libxml2/distinfo Mon Nov 06 16:01:59 2017 +0000
+++ b/textproc/libxml2/distinfo Mon Nov 06 16:12:11 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.120 2017/11/06 16:01:59 prlw1 Exp $
+$NetBSD: distinfo,v 1.121 2017/11/06 16:12:11 prlw1 Exp $
 
 SHA1 (libxml2-2.9.6.tar.gz) = 4ab4605fce0f82a004c3b2aeb368efc8f356e020
 RMD160 (libxml2-2.9.6.tar.gz) = 99616c77b5991a00e83abca708338cfa09beef29
@@ -12,3 +12,4 @@
 SHA1 (patch-encoding.c) = 6cf0a7d421828b9f40a4079ee85adb791c54d096
 SHA1 (patch-python_libxml.py) = 869a72ae5ba2e27e6d46552878890acb22337675
 SHA1 (patch-python_setup.py) = 7771fd02ee6779463f1d3321f099d7e6d19cd1b1
+SHA1 (patch-python_types.c) = e8d73ddc4ee249e62359a517dd7cedc3da0a829c
diff -r c27b6d4dcf11 -r 76ffcac5c4bd textproc/libxml2/patches/patch-python_types.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxml2/patches/patch-python_types.c     Mon Nov 06 16:12:11 2017 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-python_types.c,v 1.1 2017/11/06 16:12:11 prlw1 Exp $
+
+_PyVerify_fd disappeared from python with:
+
+  https://hg.python.org/cpython/rev/e88e2049b793
+
+Upstream bug:
+
+  https://bugzilla.gnome.org/show_bug.cgi?id=776815
+
+--- python/types.c.orig        2016-06-07 10:04:14.000000000 +0000
++++ 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
+      */



Home | Main Index | Thread Index | Old Index