Mon Nov 6 16:12:11 2017 UTC ()
py-libxml2: _PyVerify_fd no longer exists

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


(prlw1)
diff -r1.120 -r1.121 pkgsrc/textproc/libxml2/distinfo
diff -r0 -r1.1 pkgsrc/textproc/libxml2/patches/patch-python_types.c

cvs diff -r1.120 -r1.121 pkgsrc/textproc/libxml2/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/libxml2/distinfo 2017/11/06 16:01:59 1.120
+++ pkgsrc/textproc/libxml2/distinfo 2017/11/06 16:12:11 1.121
@@ -1,14 +1,15 @@ @@ -1,14 +1,15 @@
1$NetBSD: distinfo,v 1.120 2017/11/06 16:01:59 prlw1 Exp $ 1$NetBSD: distinfo,v 1.121 2017/11/06 16:12:11 prlw1 Exp $
2 2
3SHA1 (libxml2-2.9.6.tar.gz) = 4ab4605fce0f82a004c3b2aeb368efc8f356e020 3SHA1 (libxml2-2.9.6.tar.gz) = 4ab4605fce0f82a004c3b2aeb368efc8f356e020
4RMD160 (libxml2-2.9.6.tar.gz) = 99616c77b5991a00e83abca708338cfa09beef29 4RMD160 (libxml2-2.9.6.tar.gz) = 99616c77b5991a00e83abca708338cfa09beef29
5SHA512 (libxml2-2.9.6.tar.gz) = 5ef80f895374bd5dd3bcd5f00c715795f026bf45d998f8f762c0cdb739b8755e01de40cf853d98a3826eacef95c4adebe4777db11020e8d98d0bda921f55a0ed 5SHA512 (libxml2-2.9.6.tar.gz) = 5ef80f895374bd5dd3bcd5f00c715795f026bf45d998f8f762c0cdb739b8755e01de40cf853d98a3826eacef95c4adebe4777db11020e8d98d0bda921f55a0ed
6Size (libxml2-2.9.6.tar.gz) = 5469624 bytes 6Size (libxml2-2.9.6.tar.gz) = 5469624 bytes
7SHA1 (patch-aa) = e687eaa9805b855b0c8a944ec5c597bd34954472 7SHA1 (patch-aa) = e687eaa9805b855b0c8a944ec5c597bd34954472
8SHA1 (patch-ab) = d6d6e9a91307da0c7f334b5b9ad432878babd1ac 8SHA1 (patch-ab) = d6d6e9a91307da0c7f334b5b9ad432878babd1ac
9SHA1 (patch-ac) = 34afe787f6012b460a85be993048e133907a1621 9SHA1 (patch-ac) = 34afe787f6012b460a85be993048e133907a1621
10SHA1 (patch-ad) = d65b7e3be9694147e96ce4bb70a1739e2279ba81 10SHA1 (patch-ad) = d65b7e3be9694147e96ce4bb70a1739e2279ba81
11SHA1 (patch-ae) = 4eede9719724f94402e850ee6d6043a74aaf62b2 11SHA1 (patch-ae) = 4eede9719724f94402e850ee6d6043a74aaf62b2
12SHA1 (patch-encoding.c) = 6cf0a7d421828b9f40a4079ee85adb791c54d096 12SHA1 (patch-encoding.c) = 6cf0a7d421828b9f40a4079ee85adb791c54d096
13SHA1 (patch-python_libxml.py) = 869a72ae5ba2e27e6d46552878890acb22337675 13SHA1 (patch-python_libxml.py) = 869a72ae5ba2e27e6d46552878890acb22337675
14SHA1 (patch-python_setup.py) = 7771fd02ee6779463f1d3321f099d7e6d19cd1b1 14SHA1 (patch-python_setup.py) = 7771fd02ee6779463f1d3321f099d7e6d19cd1b1
 15SHA1 (patch-python_types.c) = e8d73ddc4ee249e62359a517dd7cedc3da0a829c

File Added: pkgsrc/textproc/libxml2/patches/Attic/patch-python_types.c
$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
      */