From owner-svn-ports-all@freebsd.org Thu Oct 25 19:26:45 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91C0510856B7; Thu, 25 Oct 2018 19:26:45 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 447476EC75; Thu, 25 Oct 2018 19:26:45 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 243C1163C5; Thu, 25 Oct 2018 19:26:45 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9PJQjSN097447; Thu, 25 Oct 2018 19:26:45 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9PJQihk097445; Thu, 25 Oct 2018 19:26:44 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201810251926.w9PJQihk097445@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Thu, 25 Oct 2018 19:26:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482978 - in head/textproc: libxml2/files py-libxml2 X-SVN-Group: ports-head X-SVN-Commit-Author: kwm X-SVN-Commit-Paths: in head/textproc: libxml2/files py-libxml2 X-SVN-Commit-Revision: 482978 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 19:26:45 -0000 Author: kwm Date: Thu Oct 25 19:26:44 2018 New Revision: 482978 URL: https://svnweb.freebsd.org/changeset/ports/482978 Log: 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 Obtained from: libxml2 upstream Added: head/textproc/libxml2/files/patch-python_types.c (contents, props changed) Modified: head/textproc/py-libxml2/Makefile Added: head/textproc/libxml2/files/patch-python_types.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/libxml2/files/patch-python_types.c Thu Oct 25 19:26:44 2018 (r482978) @@ -0,0 +1,30 @@ +From d910e99c322a0895955038c700471e9b1fd91fa6 Mon Sep 17 00:00:00 2001 +From: Patrick Welche +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 + Modified: head/textproc/py-libxml2/Makefile ============================================================================== --- head/textproc/py-libxml2/Makefile Thu Oct 25 18:48:23 2018 (r482977) +++ head/textproc/py-libxml2/Makefile Thu Oct 25 19:26:44 2018 (r482978) @@ -1,7 +1,7 @@ # Created by: Alexander Nedotsukov # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= textproc gnome python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}