qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Building qemu with old python issue
@ 2015-09-08 16:49 Steve Ellcey 
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Ellcey  @ 2015-09-08 16:49 UTC (permalink / raw)
  To: qemu-devel

I am building qemu on an old system with python 2.4.3.  The latest checkin:

  commit 9d34158a5af734e8de0b42b0a7228200c426a8d0
  Merge: 8f1ed5f bd80a8a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   Mon Sep 7 16:07:47 2015 +0100

    Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150907' into staging

caused my qemu build to fail with:

  File "/scratch/gcc/nightly/src/qemu/scripts/qapi.py", line 947, in cgen
    raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
    raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
TypeError: subn() : subn() takes at most 4 arguments (5 given)

Now the recent patch did not introduce the use of subn, it just seems
to have changed something so that I call it now whereas before I did not.
The actual use of subn was introduced with this qemu patch:

  commit 77e703b861d34bb2879f3e845482d5cf0a3a0ad1
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   Wed Jun 24 19:27:32 2015 +0200

    qapi: Clean up cgen() and mcgen()

It looks like the 5th (optional) argument to subn in python was added
with python 2.7 and I am using python 2.4.3.

Is the use of the 5th argument on subn needed?  And is it intentional
that qemu cannot be built without a python 2.7 or later?

Steve Ellcey
sellcey@imgtec.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] Building qemu with old python issue
@ 2015-09-08 19:34 Steve Ellcey 
  2015-09-09 13:17 ` Daniel P. Berrange
  2015-09-09 14:29 ` Eric Blake
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Ellcey  @ 2015-09-08 19:34 UTC (permalink / raw)
  To: qemu-devel

I am building qemu on an old system with python 2.4.3.  The latest checkin:

  commit 9d34158a5af734e8de0b42b0a7228200c426a8d0
  Merge: 8f1ed5f bd80a8a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   Mon Sep 7 16:07:47 2015 +0100

    Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150907' into staging

caused my qemu build to fail with:

  File "/scratch/gcc/nightly/src/qemu/scripts/qapi.py", line 947, in cgen
    raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
    raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
TypeError: subn() : subn() takes at most 4 arguments (5 given)

Now the recent patch did not introduce the use of subn, it just seems
to have changed something so that I call it now whereas before I did not.
The actual use of subn was introduced with this qemu patch:

  commit 77e703b861d34bb2879f3e845482d5cf0a3a0ad1
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   Wed Jun 24 19:27:32 2015 +0200

    qapi: Clean up cgen() and mcgen()

It looks like the 5th (optional) argument to subn in python was added
with python 2.7 and I am using python 2.4.3.

Is the use of the 5th argument on subn needed?  And is it intentional
that qemu cannot be built without a python 2.7 or later?

Steve Ellcey
sellcey@imgtec.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Building qemu with old python issue
  2015-09-08 19:34 [Qemu-devel] Building qemu with old python issue Steve Ellcey 
@ 2015-09-09 13:17 ` Daniel P. Berrange
  2015-09-09 14:29 ` Eric Blake
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel P. Berrange @ 2015-09-09 13:17 UTC (permalink / raw)
  To: Steve Ellcey; +Cc: qemu-devel

On Tue, Sep 08, 2015 at 12:34:05PM -0700, Steve Ellcey  wrote:
> I am building qemu on an old system with python 2.4.3.  The latest checkin:
> 
>   commit 9d34158a5af734e8de0b42b0a7228200c426a8d0
>   Merge: 8f1ed5f bd80a8a
>   Author: Peter Maydell <peter.maydell@linaro.org>
>   Date:   Mon Sep 7 16:07:47 2015 +0100
> 
>     Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150907' into staging
> 
> caused my qemu build to fail with:
> 
>   File "/scratch/gcc/nightly/src/qemu/scripts/qapi.py", line 947, in cgen
>     raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
>     raw = re.subn("^.", indent + r'\g<0>', raw, 0, re.MULTILINE)
> TypeError: subn() : subn() takes at most 4 arguments (5 given)
> 
> Now the recent patch did not introduce the use of subn, it just seems
> to have changed something so that I call it now whereas before I did not.
> The actual use of subn was introduced with this qemu patch:
> 
>   commit 77e703b861d34bb2879f3e845482d5cf0a3a0ad1
>   Author: Markus Armbruster <armbru@redhat.com>
>   Date:   Wed Jun 24 19:27:32 2015 +0200
> 
>     qapi: Clean up cgen() and mcgen()
> 
> It looks like the 5th (optional) argument to subn in python was added
> with python 2.7 and I am using python 2.4.3.
> 
> Is the use of the 5th argument on subn needed?  And is it intentional
> that qemu cannot be built without a python 2.7 or later?

No, that is a bug. The current intention is for QEMU to be buildable
with Python >= 2.6.0, in order to spport RHEL6 as a min OS version


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Building qemu with old python issue
  2015-09-08 19:34 [Qemu-devel] Building qemu with old python issue Steve Ellcey 
  2015-09-09 13:17 ` Daniel P. Berrange
@ 2015-09-09 14:29 ` Eric Blake
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Blake @ 2015-09-09 14:29 UTC (permalink / raw)
  To: Steve Ellcey, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

On 09/08/2015 01:34 PM, Steve Ellcey  wrote:

> 
>   commit 77e703b861d34bb2879f3e845482d5cf0a3a0ad1
>   Author: Markus Armbruster <armbru@redhat.com>
>   Date:   Wed Jun 24 19:27:32 2015 +0200
> 
>     qapi: Clean up cgen() and mcgen()
> 
> It looks like the 5th (optional) argument to subn in python was added
> with python 2.7 and I am using python 2.4.3.

Known issue, with a pending fix; see:
https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg02329.html

However, you also need to chime in on the discussion at:
https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg01277.html

as we are considering bumping the minimum to 2.6 (not your ancient
2.4.3); so you'll need to provide more details about your platform.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-09 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-08 19:34 [Qemu-devel] Building qemu with old python issue Steve Ellcey 
2015-09-09 13:17 ` Daniel P. Berrange
2015-09-09 14:29 ` Eric Blake
  -- strict thread matches above, loose matches on Subject: below --
2015-09-08 16:49 Steve Ellcey 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).