Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672950 - >=app-emulation/qemu-2.12.1 should not depend on dev-lang/python:2
Summary: >=app-emulation/qemu-2.12.1 should not depend on dev-lang/python:2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-11 21:22 UTC by Michael Morak
Modified: 2019-01-05 20:07 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 Michael Morak 2018-12-11 21:22:12 UTC
app-emulation/qemu ebuilds (all current versions) have a dependency on "=dev-lang/python-2*" hard-coded, instead of just the usual PYTHON_DEPS However, since at least 2.12.1, python2 is no longer needed to build (see [1]; I have verified this by building it on a python3-only machine by patching the ebuild and removing python2 from DEPEND -- it works fine).

Since I have gotten rid of python2 a while ago, I'd like to see this dependency removed, so that emerge does not try to pull it in on every update.

Steps to Reproduce:
1) emerge -1av qemu
2) watch python2 get pulled in, even though PYTHON_TARGETS="python3_6"
3) have python2 on your system

Expected result: not to have python2 installed
Comment 1 Michael Morak 2018-12-11 21:23:57 UTC
Sorry, forgot the reference, here it is:

[1] https://bugs.launchpad.net/qemu/+bug/1708462
Comment 2 Matthias Maier gentoo-dev 2018-12-19 20:54:37 UTC
Resolved with:

commit 98e96a88cc3ae138c8dd0ae914abfbfa8e0274b3
Author: Jonathan Callen <jcallen@gentoo.org>
Date:   Sun Dec 2 00:44:37 2018 -0500

    app-emulation/qemu: add python3_7
    
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Jonathan Callen <jcallen@gentoo.org>
Comment 3 Michael Morak 2018-12-19 21:25:57 UTC
Just had a look, and unfortunately it seems that the dependency on dev-lang/python:2 is still there in all three versions of the ebuild (didn't check the -9999 version). In particular, on line 199 in each of the three ebuilds, the atom

=dev-lang/python-2*

is added to DEPEND (right after ${PYTHON_DEPS} and dev-lang/perl). Having checked the diff of commit 98e96a88cc3ae138c8dd0ae914abfbfa8e0274b3, it seems that this line was not removed, so the problem still exists for me. Did I miss something?
Comment 4 Larry the Git Cow gentoo-dev 2019-01-05 20:07:25 UTC
The bug has been closed via the following commit(s):

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

commit d47d895855bfefa4fb94006ab92f0ce94f3bc887
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-01-05 20:06:19 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-01-05 20:07:16 +0000

    app-emulation/qemu: fix python dependencies
    
    Closes: https://bugs.gentoo.org/672950
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/qemu/qemu-2.12.1.ebuild | 3 +--
 app-emulation/qemu/qemu-3.1.0.ebuild  | 3 +--
 app-emulation/qemu/qemu-9999.ebuild   | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)
Comment 5 Matthias Maier gentoo-dev 2019-01-05 20:07:45 UTC
Good point.