From owner-svn-ports-all@FreeBSD.ORG Fri Feb 1 01:24:10 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CAEBEB18; Fri, 1 Feb 2013 01:24:10 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 991D028; Fri, 1 Feb 2013 01:24:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r111OAgU006099; Fri, 1 Feb 2013 01:24:10 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r111OASX006097; Fri, 1 Feb 2013 01:24:10 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201302010124.r111OASX006097@svn.freebsd.org> From: Jason Helfman Date: Fri, 1 Feb 2013 01:24:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311344 - in head/devel/libvirt: . files X-SVN-Group: ports-head 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.14 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: Fri, 01 Feb 2013 01:24:10 -0000 Author: jgh Date: Fri Feb 1 01:24:09 2013 New Revision: 311344 URL: http://svnweb.freebsd.org/changeset/ports/311344 Log: - fix python bindings - upstream git commit a6b8bae5a6a4752926eba409202ec061d81c6c8a Added: head/devel/libvirt/files/ head/devel/libvirt/files/patch-python__generator.py (contents, props changed) Modified: head/devel/libvirt/Makefile Modified: head/devel/libvirt/Makefile ============================================================================== --- head/devel/libvirt/Makefile Fri Feb 1 01:15:38 2013 (r311343) +++ head/devel/libvirt/Makefile Fri Feb 1 01:24:09 2013 (r311344) @@ -3,6 +3,7 @@ PORTNAME= libvirt PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://libvirt.org/sources/ Added: head/devel/libvirt/files/patch-python__generator.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libvirt/files/patch-python__generator.py Fri Feb 1 01:24:09 2013 (r311344) @@ -0,0 +1,35 @@ +commit a6b8bae5a6a4752926eba409202ec061d81c6c8a +Author: Serge Hallyn +Date: Wed Jan 30 21:05:45 2013 -0600 + + complete virterror->virerror name change + + Without these two string changes in generator.py, the + virGetLastError wrapper does not get created in + /usr/share/pyshared/libvirt.py. Noticed when running + tests with virt-install. + + Signed-off-by: Serge Hallyn + +diff --git a/python/generator.py b/python/generator.py +index 5d27f66..71ca883 100755 +--- ./python/generator.py ++++ ./python/generator.py +@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler): + self.function_return_field = attrs['field'] + elif tag == 'enum': + if (attrs['file'] == "libvirt" or +- attrs['file'] == "virterror"): ++ attrs['file'] == "virerror"): + enum(attrs['type'],attrs['name'],attrs['value']) + elif attrs['file'] == "libvirt-lxc": + lxc_enum(attrs['type'],attrs['name'],attrs['value']) +@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler): + if self.function != None: + if (self.function_module == "libvirt" or + self.function_module == "virevent" or +- self.function_module == "virterror"): ++ self.function_module == "virerror"): + function(self.function, self.function_descr, + self.function_return, self.function_args, + self.function_file, self.function_module,