From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMZB8-00047F-Cl for qemu-devel@nongnu.org; Wed, 27 Aug 2014 05:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMZB0-0002wS-N3 for qemu-devel@nongnu.org; Wed, 27 Aug 2014 05:06:06 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:49102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMZB0-0002vv-Fy for qemu-devel@nongnu.org; Wed, 27 Aug 2014 05:05:58 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so75541wib.4 for ; Wed, 27 Aug 2014 02:05:57 -0700 (PDT) Date: Wed, 27 Aug 2014 10:05:52 +0100 From: Stefan Hajnoczi Message-ID: <20140827090552.GC8280@stefanha-thinkpad.redhat.com> References: <1407847054-672-1-git-send-email-stefanha@redhat.com> <1407847054-672-2-git-send-email-stefanha@redhat.com> <20140815074324.GA17962@afflict.kos.to> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IpbVkmxF4tDyP/Kb" Content-Disposition: inline In-Reply-To: <20140815074324.GA17962@afflict.kos.to> Subject: Re: [Qemu-devel] [PATCH 1/2] qapi.py: avoid Python 2.5+ any() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: Markus Armbruster , qemu-devel@nongnu.org, Stefan Hajnoczi , Andreas Faerber --IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 15, 2014 at 10:43:24AM +0300, Riku Voipio wrote: > On Tue, Aug 12, 2014 at 01:37:33PM +0100, Stefan Hajnoczi wrote: > > There is one instance of any() in qapi.py that breaks builds on older > > distros that ship Python 2.4 (like RHEL5): > >=20 > > GEN qmp-commands.h > > Traceback (most recent call last): > > File "build/scripts/qapi-commands.py", line 445, in ? > > exprs =3D parse_schema(input_file) > > File "build/scripts/qapi.py", line 329, in parse_schema > > schema =3D QAPISchema(open(input_file, "r")) > > File "build/scripts/qapi.py", line 110, in __init__ > > if any(include_path =3D=3D elem[1] > > NameError: global name 'any' is not defined >=20 > I tried building on RHEL5, and this patch gets a bit more forward. > However further down the build I get a similar error: >=20 > Traceback (most recent call last): > File "/build/qemu/scripts/tracetool.py", line 139, in ? > main(sys.argv) > File "/build/qemu/scripts/tracetool.py", line 134, in main > binary=3Dbinary, probe_prefix=3Dprobe_prefix) > File "/build/qemu/scripts/tracetool/__init__.py", line 267, in generate > backend =3D tracetool.backend.Wrapper(backends, format) > File "/build/qemu/scripts/tracetool/backend/__init__.py", line 105, in = __init__ > assert all(exists(backend) for backend in self._backends) >=20 > semi-related - since I'm building --disable-system --disable-tools --enab= le-user, > is there any benefit of tracetool for this build config? Tracetool is part of the build process, there is no way to skip it. Stefan --IpbVkmxF4tDyP/Kb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJT/Z9wAAoJEJykq7OBq3PIyMgH/3vfuzwN6qv3l2iVUBk+/wT0 0zo7LCKP3Rp0Gso33SLgl7xTlYg21cpFlxbJ4LuIZUyXc9omMRH7VCm7UTEIlntO 0ngiZSA5RKovtH4HB4/VLEcpkZuNCKii/maW0KQVSyYFVHfz6jzqP+U0KeLTuKUL pmF4cdteeF+pZupkgsTbHgviHNznnA1+QHrzXDJoyGZ8QRFwGbuppjgRsjVPVeVj YtTMInTrU0eIY8opJvCawYy26kKfgK1Mrncdz5RhAQctO/JeND/8TtYkV+4/kgsi x5q9WfjdJu41XyxbmIPWf1TlN3qYiWq111Nrg/RVk4KA2d8vuBrj/5drmDNQr6Y= =FcZ0 -----END PGP SIGNATURE----- --IpbVkmxF4tDyP/Kb--