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

Bug 792159

Summary: moving to phython 3.9 from python 3.8 leads to unsolvable dependency conflict
Product: Gentoo Linux Reporter: Thomas <tschweikle>
Component: StabilizationAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas 2021-05-26 05:44:15 UTC
Move to python 3.9 from 3.8:

make.conf:
PYTHON_TARGETS="python3_8 python3_9 python3_10"
PYTHON_SINGLE_TARGET="python3_8"

# emerge --depclean
# emerge --color=y --update --deep --with-bdeps=y --newuse @world
# emerge --depclean

change make.conf:
PYTHON_TARGETS="python3_8 python3_9 python3_10"
PYTHON_SINGLE_TARGET="python3_9"

# emerge --depclean
# emerge --color=y --update --deep --with-bdeps=y --newuse @world
# emerge --depclean

change make.conf:
PYTHON_TARGETS="python3_9 python3_10"
PYTHON_SINGLE_TARGET="python3_9"

# emerge --depclean
# emerge --color=y --update --deep --with-bdeps=y --newuse @world
# emerge --depclean

Now you'll have a conflict:
Calculating dependencies... done!

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-libs/libxml2:2

  (dev-libs/libxml2-2.9.12:2/2::gentoo, ebuild scheduled for merge) USE="ipv6 python readline -debug -examples -icu -lzma -static-libs -test -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_7 -python3_8" conflicts with
    <dev-libs/libxml2-2.9.12 required by (dev-python/lxml-4.6.3:0/0::gentoo, installed) USE="threads -doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_7 -python3_8"
    ^                 ^^^^^^

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

# emerge --unmerge dev-libs/libxml2:2 dev-python/lxml-4.6.3:0
# emerge @preserved-rebuild

Builds dev-libs/libxml2-2.9.12:2 and recompiles all dependencies as expected.

afterwards:
# emerge --color=y --update --deep --with-bdeps=y --newuse @world

recompiles dev-libs/libxml2 replacing dev-libs/libxml2-2.9.12:2 with dev-libs/libxml2-2.9.10-r5 and installing dev-python/lxml-4.6.3 again. Bringing up the conflict again:
Calculating dependencies... done!

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-libs/libxml2:2

  (dev-libs/libxml2-2.9.12:2/2::gentoo, ebuild scheduled for merge) USE="ipv6 python readline -debug -examples -icu -lzma -static-libs -test -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_7 -python3_8" conflicts with
    <dev-libs/libxml2-2.9.12 required by (dev-python/lxml-4.6.3:0/0::gentoo, installed) USE="threads -doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_7 -python3_8"
    ^                 ^^^^^^

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

package.use:
>=dev-libs/openssl-1.0.2l -bindist
>=media-libs/libglvnd-1.3.1 X
>=sys-apps/util-linux-2.36.2:0 caps tty-helpers static-libs
>=sys-block/open-iscsi-0.0.0 infiniband rdma systemd tcp
>=sys-boot/grub-0.0.0 device-mapper doc efiemu fonts libzfs mount nls sdl
>=sys-fs/quota-0.0.0 rpc
>=sys-libs/ntdb-0.0.0 python
>=sys-libs/tdb-1.3.8 python
>=sys-libs/tevent-0.9.28 python
>=x11-libs/cairo-1.14.2 X
>=x11-libs/gdk-pixbuf-2.32.3 X
>=x11-libs/libdrm-2.4.104 libkms video_cards_vmware video_cards_amdgpu

package.accept_keywords:
>=app-benchmarks/bootchart2-0.14.8 ~amd64
>=app-emulation/open-vm-tools-10.1.15 ~amd64
>=app-portage/unsymlink-lib-9 ~amd64
>=dev-libs/xerces-c-3.2.2 ~amd64
>=dev-libs/xml-security-c-1.7.3 ~amd64
>=media-libs/mesa-20.1.0 ~amd64
>=net-fs/nfs-utils-2.4.3 ~amd64
>=sys-apps/iproute2-5.7.0 ~amd64
>=sys-devel/gcc-6.4.0 ~amd64
>=sys-fs/ufsutils-8.2_p3 ~amd64
>=sys-fs/zfs-0.7.7 ~amd64
>=sys-fs/zfs-kmod-0.7.7 ~amd64
>=sys-kernel/genkernel-4.0.0 ~amd64
>=sys-kernel/git-sources-4.6_rc4 ~amd64
>=sys-kernel/spl-0.7.7 ~amd64
>=sys-kernel/vanilla-sources-4.5.2 ~amd64
>=x11-libs/libdrm-2.4.105 ~amd64
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-26 08:36:12 UTC
This isn't related to Python 3.8 or Python 3.9 and is the result of an incompatibility between lxml and the new libxml2. Just ignore the message for now.

*** This bug has been marked as a duplicate of bug 790737 ***