From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqhZN-0000OO-Lv for qemu-devel@nongnu.org; Tue, 27 Feb 2018 10:53:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqhZJ-0004VO-Qq for qemu-devel@nongnu.org; Tue, 27 Feb 2018 10:53:33 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33962 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eqhZJ-0004Rt-Mg for qemu-devel@nongnu.org; Tue, 27 Feb 2018 10:53:29 -0500 References: <20180211093607.27351-1-armbru@redhat.com> <20180211093607.27351-8-armbru@redhat.com> From: Eric Blake Message-ID: Date: Tue, 27 Feb 2018 09:53:22 -0600 MIME-Version: 1.0 In-Reply-To: <20180211093607.27351-8-armbru@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 07/29] qapi: Turn generators into modules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, marcandre.lureau@redhat.com On 02/11/2018 03:35 AM, Markus Armbruster wrote: > The next commit will introduce a common driver program for all > generators. The generators need to be modules for that. qapi2texi.py > already is. Make the other generators follow suit. >=20 > The changes are actually trivial. Obvious in the diffs once you view > them with whitespace changes ignored. >=20 > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > Reviewed-by: Marc-Andr=C3=A9 Lureau > --- > scripts/qapi-commands.py | 43 ++++++++++++++++++-------------- > scripts/qapi-event.py | 43 ++++++++++++++++++-------------- > scripts/qapi-introspect.py | 54 ++++++++++++++++++++++---------------= --- > scripts/qapi-types.py | 56 ++++++++++++++++++++++---------------= ---- > scripts/qapi-visit.py | 62 +++++++++++++++++++++++++------------= --------- > 5 files changed, 143 insertions(+), 115 deletions(-) Urgh. One annoyance of this patch is that if you switch to another=20 branch without the patch, leftover .pyc files in the source tree can=20 cause weird errors until you 'rm -f scripts/qapi/*.pyc': $ make -j3 GEN config-host.h GEN qmp-commands.h GEN qapi-types.h Traceback (most recent call last): File "/home/eblake/qemu/scripts/qapi-commands.py", line 225, in class QAPISchemaGenCommandVisitor(QAPISchemaVisitor): NameError: name 'QAPISchemaVisitor' is not defined Traceback (most recent call last): File "/home/eblake/qemu/scripts/qapi-types.py", line 168, in class QAPISchemaGenTypeVisitor(QAPISchemaVisitor): NameError: name 'QAPISchemaVisitor' is not defined make: *** [Makefile:522: qapi-types.h] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:537: qmp-commands.h] Error 1 Not a show-stopper, but annoying when toggling between branches. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org