Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379015 - app-emulation/qemu-kvm-0.15.0 does not compile with default python3 system
Summary: app-emulation/qemu-kvm-0.15.0 does not compile with default python3 system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 08:24 UTC by Alon Bar-Lev
Modified: 2012-03-16 14:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev 2011-08-13 08:24:18 UTC
scripts/qapi-visit.py requires python2:

try:
    opts, args = getopt.gnu_getopt(sys.argv[1:], "p:o:", ["prefix=", "output-dir="])
except getopt.GetoptError: e: # <---- : should be as in python3
    print str(e)
    sys.exit(1)

Not sure how you want to solve it, can be patch or force python2.

Workaround:
PYTHON=python2 emerge ....
Comment 1 Chris Mayo 2011-08-13 14:56:15 UTC
Adding python to inherit and then to pkg_setup():
	python_set_active_version 2

fixes this for me.

But N.B. qemu-0.15 was released knowing that there were problems with bios.bin anv vga qxl:
http://comments.gmane.org/gmane.comp.emulators.qemu/112294

As mentioned in that thread installing bios.bin-2011-07-13 from:
http://spice-space.org/download/seabios/
gets it working for me.
Comment 2 Anthony Basile gentoo-dev 2011-08-23 17:24:44 UTC
Just hit his one.  I'm bumping it to CONFIRMED.
Comment 3 Olliver Schinagl 2011-09-18 19:46:21 UTC
Same, using eselect to switch to python2 wroked around it.
Comment 4 Alon Bar-Lev 2011-10-22 18:42:25 UTC
Same for 0.15.1, simple to fix, why not deal with this?
There is python eclass for this.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2011-10-22 22:56:19 UTC
Slipped through the cracks. Fixed in 0.15.1.
Comment 6 Alon Bar-Lev 2011-10-22 23:32:37 UTC
0.15.1 has also bug#388137 of seabios which is similar.
Comment 7 anm.nov 2012-03-16 14:36:37 UTC
Hello,
this bug is apparently present also in app-emulation/qemu-1.0.1.
Pls fix thx :)