Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 942518

Summary: app-emulation/qemu fails to configure missing ensurepip
Product: Gentoo Linux Reporter: Cedric Sodhi <manday>
Component: Current packagesAssignee: Virtualization Team <virtualization>
Status: RESOLVED FIXED    
Severity: normal CC: dilfridge, manday, miso.privoznik
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=913084
https://github.com/gentoo/gentoo/pull/39562
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Cedric Sodhi 2024-10-30 12:18:55 UTC
I get a recurrence of bug 913084, qemu (tried stable and unstable) does not configure unless `pip` is installed.
Comment 1 Cedric Sodhi 2024-10-30 12:19:40 UTC
Created attachment 907324 [details]
build.log
Comment 2 Cedric Sodhi 2024-10-30 13:05:16 UTC
Correction to above: dev-python/ensurepip-pip is enough for the configure to succeed.
Comment 3 Cedric Sodhi 2024-10-30 13:06:11 UTC
Created attachment 907327 [details]
emerge --info
Comment 4 Michal Privoznik 2024-12-02 12:08:29 UTC
I suspect it's because while we have PYTHON_REQ_USE="ensurepip" we aren't passing --python=${PYTHON} to configure script and thus it is free to chose another version whithout ensurepip enabled.
Comment 5 Larry the Git Cow gentoo-dev 2024-12-02 14:50:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=041d616da19f824cb11898ed3a65c4c8bb603f9b

commit 041d616da19f824cb11898ed3a65c4c8bb603f9b
Author:     Michal Privoznik <michal.privoznik@gmail.com>
AuthorDate: 2024-12-02 11:16:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-02 14:47:53 +0000

    app-emulation/qemu: Pass --python=${PYTHON} to configure
    
    QEMU expects python during compilation (plenty of build scripts
    are written in python). And up until upstream commit [1] it
    wasn't much of a problem. But starting from that commit, the
    configure script creates a venv unconditionally and installs
    various packages there. At the same time, the configure script is
    free to chose whatever python version it deems usable (in
    practice it finds python3 first). Well, it may chose python
    without ensurepip USE flag.
    
    Tell the configure script which python to use explicitly by
    passing --python=${PYTHON}.
    
    1: https://gitlab.com/qemu-project/qemu/-/commit/81e2b198a8cb4ee5fdf108bd438f44b193ee3a36
    Closes: https://bugs.gentoo.org/942518
    Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/39562
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/qemu/qemu-8.2.3.ebuild | 1 +
 app-emulation/qemu/qemu-8.2.7.ebuild | 1 +
 app-emulation/qemu/qemu-8.2.8.ebuild | 1 +
 app-emulation/qemu/qemu-9.0.4.ebuild | 1 +
 app-emulation/qemu/qemu-9.1.2.ebuild | 1 +
 app-emulation/qemu/qemu-9999.ebuild  | 1 +
 6 files changed, 6 insertions(+)