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
Sorry, forgot the reference, here it is: [1] https://bugs.launchpad.net/qemu/+bug/1708462
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>
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?
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(-)
Good point.