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

Bug 748456

Summary: sys-apps/portage-3.0.44-r1: wrong dependency written in comment by autounmask
Product: Portage Development Reporter: Nikita Zlobin <cook60020tmp>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra, kingjon3377
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=669156
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 376695    
Attachments: log: emerge --info sys-apps/portage
output: emerge -tavuDN1 --verbose-conflicts world

Description Nikita Zlobin 2020-10-13 12:23:45 UTC
I'm in start of standard periodical world rebuild. For now is simple upgrade. I have autounmask on to save time with keywords, and use flag editing.

I got problem with some python packages. Just one example:

# required by dev-python/cffi-1.14.0-r3::gentoo
# required by virtual/python-cffi-1::gentoo[-python_targets_python3_8,python_targets_python3_7,python_targets_python3_6]
# required by dev-python/pycryptodome-3.9.8-r1::gentoo
# required by net-im/gajim-1.2.1::gentoo[python_single_target_python3_7,crypt]
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/custom.cldx:
#virtual/blas::gentoo
#virtual/cblas::gentoo
#virtual/lapack::gentoo
#sci-libs/lapack-reference::gentoo
#sci-libs/gsl::gentoo
#sci-libs/blas-reference::gentoo
#sci-libs/cblas-reference::gentoo
#app-admin/eselect
#dev-java/icedtea-bin:7
#=media-libs/opencolorio-1.0.9-r4
=dev-python/pycparser-2.20-r2

As you look into ebuilds, dev-python/cffi-1.14.0-r3 doesn't specify minimal version for pycparser, yet it has no python3 support (so no reason to want pycparser-2.20-r2 from overlay).

I'm certain that comment itself doesn't lie, because dev-python/cffi is only installed pycparser dependent.

Reproducible: Always




It happened earlier, though I don't see anything about it among my reports.
Comment 1 Nikita Zlobin 2020-10-13 12:27:48 UTC
Created attachment 665041 [details]
log: emerge --info sys-apps/portage
Comment 2 Nikita Zlobin 2020-10-13 12:33:17 UTC
Created attachment 665044 [details]
output: emerge -tavuDN1 --verbose-conflicts world
Comment 3 Nikita Zlobin 2020-10-13 13:21:54 UTC
I was wrong about exact reason, it's indeed wrong comment.
I did not notice =dev-python/cffi-1.14.3 below.

Here is true reason:
dev-python/cffi:0

  (dev-python/cffi-1.14.0-r3:0/1.14.0::gentoo, ebuild scheduled for merge) USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7 -python3_8 (-python3_9)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-python/cffi-1.14.3:0/1.14.3::stefantalpalaru, ebuild scheduled for merge) USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8 (-python3_9)" pulled in by
    >=dev-python/cffi-1.4.1[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)] required by (dev-python/pynacl-1.2.1:0/0::gentoo, installed) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 -python3_7"
                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    >=dev-python/cffi-1.1:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-),python_targets_python3_6(-)?,-python_single_target_python3_6(-),python_targets_python3_7(-)?,-python_single_target_python3_7(-),python_targets_python3_8(-)?,-python_single_target_python3_8(-),python_targets_python3_9(-)?,-python_single_target_python3_9(-)] required by (dev-python/bcrypt-3.1.7-r3:0/0::stefantalpalaru, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8 (-python3_9)"
Comment 4 Nikita Zlobin 2021-05-09 13:08:13 UTC
More exact case, now with linux-headers.
Installed version 5.4-r1, version 5.10 is masked (same as for toolchain, to prevent unexpected toolchain upgrades).

From upgrades still to be done, only pax-utils requires higher version than current (linux-headers-5.8), others are satisfied by version. But report reasoning from autounmask still has misleading requesters:

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by virtual/os-headers-0-r2::gentoo
# required by media-libs/zvbi-0.2.35-r1::gentoo
# required by media-video/ffmpeg-4.3.2::gentoo[zvbi]
# required by media-libs/aubio-0.4.9::gentoo[ffmpeg]
# required by media-sound/ardour-6.6-r1::gentoo
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/00_toolchain:
=sys-kernel/linux-headers-5.10

virtual/os-headers only specified zero slot for headers.
Comment 5 Nikita Zlobin 2023-04-26 14:49:16 UTC
There's even more ridiculous error case:

# emerge -tav1 gimp

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
Dependency resolution took 7.59 s.

[ebuild     U  ] media-gfx/gimp-2.10.34-r1:0/2::gentoo [2.10.32-r4:0/2::gentoo] USE="alsa heif jpeg2k jpegxl mng openexr postscript udev vector-icons webp wmf -aalib (-aqua) -debug -doc -gnome -test -unwind -xpm" CPU_FLAGS_X86="mmx sse" 30670 KiB
[ebuild     U ~]  media-libs/libjxl-0.8.1::gentoo [0.7.0_pre20220825::gentoo] USE="openexr" ABI_X86="(64) -32 (-x32)" 1575 KiB

Total: 2 packages (2 upgrades), Size of downloads: 32244 KiB

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by media-libs/imlib2-1.9.1-r1::gentoo[jpegxl]
# required by media-gfx/feh-3.9.1::gentoo
# required by sys-apps/calculate-utils-3.7.3.2-r1::calculate[desktop]
# required by @selected
# required by @world (argument)
=media-libs/libjxl-0.8.1 ~amd64

Would you like to add these changes to your config files? [Yes/No] no