After the stabilization of dev-python/pygments-2.6.1 (see bug 720558) we have a dependency conflict because the stable version of docutils (dev-python/docutils-0.16:0/0::gentoo) which depends on dev-python/pygments still supports Python 2.7 but pygments doesn't. I guess the proper way forward would be to drop Python 2.7 support from docutils? Reproducible: Always
I have the same problem please change the status from UNCONFIRMED to CONFIRMED :) thanks for your work
I could fixed it adding this line to package.use dev-python/docutils PYTHON_TARGETS: -python2_7 python3_6 python3_7
I ran into the same problem. A slightly simplified version of mercuriete's fix worked for me: dev-python/docutils PYTHON_TARGETS: -python2_7 in a suitable package.use file
>=sys-devel/llvm-10.0.1_rc1 is going to pull in that combination, propably giving everyone a headache as soon as llvm-10 hits stable
I added the line: dev-python/docutils PYTHON_TARGETS: -python2_7 to /etc/portage/package.use/docutils and I still have the same warning: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: dev-python/pygments:0 (dev-python/pygments-2.6.1:0/0::gentoo, ebuild scheduled for merge) USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 (-python3_8) (-python3_9)" conflicts with dev-python/pygments[python_targets_python2_7(-),python_targets_python3_7(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)] required by (dev-python/docutils-0.16:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 (-pypy3) -python3_6 (-python3_8) (-python3_9)" note: gentoo-xps ~ # equery uses docutils [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for dev-python/docutils-0.16: U I - + python_targets_python2_7 : Build with Python 2.7 - - python_targets_python3_6 : Build with Python 3.6 + + python_targets_python3_7 : Build with Python 3.7
This is not really a bug. Portage is merely informing you why it is skipping this update.
(In reply to Andreas Sturmlechner from comment #6) > This is not really a bug. Portage is merely informing you why it is skipping > this update. Isn't it a bug when the default config (which still has Python 2.7 in PYTHON_TARGETS) caused a dependency conflict for stable packages?
It might be an inconvenience for not being able to get the latest version, but it is no blocker.
As a result of the workaround in comment 3 which disables python 2.7 for docutils, this ripples through to other packages that depend on docutils and may cause problems on world updates. In such case, portage will complain and suggest: The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by dev-python/m2r-0.2.1::gentoo[-test] # required by dev-python/automat-20.2.0::gentoo # required by dev-python/twisted-20.3.0::gentoo # required by www-servers/tornado-6.0.4::gentoo # required by dev-python/matplotlib-3.2.1::gentoo[-test] # required by @selected # required by @world (argument) >=dev-python/docutils-0.16 python_targets_python2_7 I had to extend the workaround to m2r and automat to solve this issue: dev-python/docutils PYTHON_TARGETS: -python2_7 dev-python/automat PYTHON_TARGETS: -python2_7 dev-python/m2r PYTHON_TARGETS: -python2_7 Other people may experience the same problem where package X depends on docutils (possibly via an intermediate dependency chain Y -> Z -> docutils) and they will have to find out which of the packages in the mentioned chain still try to build against Python 2.7, then disable it similarly as above.
I'm sorry about this but this is an inevitable problem with supporting Python 2. I'm slowly working towards removing dev-python/sphinx py2 revdeps (bug #730060), and once that's done I'll focus on dev-python/docutils.
The only real blocker here is trac -- I don't think we can remove docutils from it without harming some of the installations. Ofc, the generic question is how many people are actually still using this whole webapps infra rather than virtualenv or docker.
Empty docutils revbump w/o py27 to push down the skipped update to users of those slacker packages?
I suppose that could work.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=458b1724bf54155f49ee4a729a30a2904109efd0 commit 458b1724bf54155f49ee4a729a30a2904109efd0 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-08-09 09:02:16 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-08-09 09:02:39 +0000 dev-python/docutils: Revbump to drop py2.7 Closes: https://bugs.gentoo.org/722762 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/docutils/docutils-0.16-r1.ebuild | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+)
*** Bug 729372 has been marked as a duplicate of this bug. ***