Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659090 - app-emulation/qemu-2.12.0-r3 fails to compile with python2
Summary: app-emulation/qemu-2.12.0-r3 fails to compile with python2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-25 12:27 UTC by Agostino Sarubbo
Modified: 2018-06-25 15:25 UTC (History)
1 user (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 Agostino Sarubbo gentoo-dev 2018-06-25 12:27:33 UTC
if python2 is the default, then qemu fails to build.

The failure is here:
/usr/bin/python2.7 -B /tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0/scripts/qapi-gen.py -o "qapi" -b /tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0/qapi/qapi-schema.json
/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0/qapi/qapi-schema.json:56: Pragma returns-whitelist must be a list of strings

I'm in touch with upstream to understand what to do.
Comment 1 Matthias Maier gentoo-dev 2018-06-25 15:17:57 UTC
(In reply to Agostino Sarubbo from comment #0)

> I'm in touch with upstream to understand what to do.

The problem is on our side. I accidentally included two old versions of the patches in commit 6d9fc64ae023874e50e9feed87a797120515d95a (patches-r4).

We had been in contact with upstream to fix the locale issue, bug #657766. I will push a new patch tarball revision with the backported upstream patches (that are python-2 compatible).

No need to contact upstream ;-)
Comment 2 Larry the Git Cow gentoo-dev 2018-06-25 15:25:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3765899ec565d27b7bd76fb02171fcf7256c5b97

commit 3765899ec565d27b7bd76fb02171fcf7256c5b97
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-06-25 15:14:05 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-06-25 15:24:26 +0000

    app-emulation/qemu: update patches, fix compilation with python-2
    
    Closes: https://bugs.gentoo.org/659090
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-emulation/qemu/Manifest              | 2 +-
 app-emulation/qemu/qemu-2.12.0-r3.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)