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

Bug 782526

Summary: app-portage/gentoolkit "equery d ..." shows deps from overlay instead of ::gentoo
Product: Portage Development Reporter: jospezial <jospezial>
Component: UnclassifiedAssignee: Portage Tools Team <tools-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: bkohler, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jospezial 2021-04-12 14:17:51 UTC
equery  d lua
 * These packages depend on lua:
app-text/podofo-0.9.6_p20190928-r100 (lua_single_target_lua5-1 ? dev-lang/lua:5.1)
                                     (lua_single_target_lua5-2 ? dev-lang/lua:5.2)
                                     (lua_single_target_lua5-3 ? dev-lang/lua:5.3)
                                     (lua_single_target_lua5-4 ? dev-lang/lua:5.4)
media-video/mpv-9999 (lua_single_target_lua5-2 ? dev-lang/lua:5.2)
                     (lua_single_target_lua5-3 ? dev-lang/lua:5.3)
net-irc/hexchat-2.14.3-r100 (lua_single_target_lua5-1 ? dev-lang/lua:5.1)
                            (lua_single_target_lua5-2 ? dev-lang/lua:5.2)
                            (lua_single_target_lua5-3 ? dev-lang/lua:5.3)
                            (lua_single_target_lua5-4 ? dev-lang/lua:5.4)

So I thought I could update to lua-5.3.

/etc/portage/make.conf:
LUA_TARGETS="lua5-2 lua5-3 lua5-4 luajit"
LUA_SINGLE_TARGET="lua5-2" changed to LUA_SINGLE_TARGET="lua5-3"

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

Calculating dependencies /

!!! Problem resolving dependencies for media-video/mpv from @selected
... done!

!!! The ebuild selected to satisfy "media-video/mpv" has unmet requirements.
- media-video/mpv-9999::gentoo USE="X alsa archive bluray cdda cli drm dvb dvd egl iconv jack jpeg lcms libmpv lua openal opengl pulseaudio rubberband sdl uchardet vaapi vdpau vulkan wayland xv zlib (-aqua) (-coreaudio) -cplugins -cuda -debug -doc -gamepad -gbm -javascript -libcaca (-raspberry-pi) (-selinux) -test -tools -zimg" ABI_X86="(64)" LUA_SINGLE_TARGET="-lua5-1 -lua5-2 -luajit" PYTHON_TARGETS="python3_8 python3_9 -python3_7"

  The following REQUIRED_USE flag constraints are unsatisfied:
    lua? ( exactly-one-of ( lua_single_target_luajit lua_single_target_lua5-1 lua_single_target_lua5-2 ) )

  The above constraints are a subset of the following complete expression:
    any-of ( cli libmpv ) aqua? ( opengl ) cuda? ( opengl ) egl? ( any-of ( gbm X wayland ) ) gamepad? ( sdl ) gbm? ( drm egl opengl ) lcms? ( opengl ) lua? ( exactly-one-of ( lua_single_target_luajit lua_single_target_lua5-1 lua_single_target_lua5-2 ) ) opengl? ( any-of ( aqua egl X raspberry-pi !cli ) ) raspberry-pi? ( opengl ) test? ( opengl ) tools? ( cli ) uchardet? ( iconv ) vaapi? ( any-of ( gbm X wayland ) ) vdpau? ( X ) vulkan? ( any-of ( X wayland ) ) wayland? ( egl ) X? ( egl? ( opengl ) ) xv? ( X ) any-of ( python_targets_python3_7 python_targets_python3_8 python_targets_python3_9 )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

mpv-9999.ebuild:
LUA_COMPAT=( lua5-{1..2} luajit )

=================================================================
                        Package Settings
=================================================================

media-video/mpv-9999::gentoo was built with the following:
USE="X alsa archive bluray cdda cli drm dvb dvd egl iconv jack jpeg lcms libmpv lua openal opengl pulseaudio rubberband sdl uchardet vaapi vdpau vulkan wayland xv zlib (-aqua) (-coreaudio) -cplugins -cuda -debug -doc -gamepad -gbm -javascript -libcaca (-raspberry-pi) (-selinux) -test -tools -zimg" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-2 -lua5-1 -luajit" PYTHON_TARGETS="python3_8 python3_9 -python3_7"
FEATURES="ipc-sandbox unknown-features-warn preserve-libs unmerge-logs protect-owned userpriv fixlafiles usersync binpkg-logs config-protect-if-modified userfetch xattr distlocks merge-sync sfperms usersandbox ebuild-locks assume-digests parallel-fetch pid-sandbox qa-unresolved-soname-deps sandbox binpkg-dostrip binpkg-multi-instance strict network-sandbox multilib-strict unmerge-orphans binpkg-docompress news ccache"
Comment 1 Ben Kohler gentoo-dev 2021-04-12 14:25:42 UTC
Do you have pg_overlay added? It might be seeing that repository's mpv version.
Comment 2 Ionen Wolkens gentoo-dev 2021-04-12 14:43:10 UTC
Yeah, with no overlay here I only get:
media-video/mpv-9999 (lua_single_target_lua5-1 ? dev-lang/lua:5.1)
                     (lua_single_target_lua5-2 ? dev-lang/lua:5.2)

But if I add pg_overlay:
media-video/mpv-9999 (lua_single_target_lua5-2 ? dev-lang/lua:5.2)
                     (lua_single_target_lua5-3 ? dev-lang/lua:5.3)

And it's not wrong given overlays have higher priority.
Comment 3 jospezial 2021-04-12 17:25:51 UTC
equery sucks without showing the ::repo. It should show the used package repo dependencies in this case.

Yes, pg_overlay is enabled but masked.
/etc/portage/package.mask/package.mask
*/*::pg_overlay

I looked at the mpv sources and there I see it would reject >=lua-5.3 since 2015.
https://github.com/mpv-player/mpv/commit/9b59c175e389e0a0561312139c0861eba37e4719
Comment 4 jospezial 2021-04-12 17:28:14 UTC
/etc/portage/package.accept_keywords 
=media-video/mpv-9999::gentoo **
Comment 5 jospezial 2021-04-12 17:52:24 UTC
-a, --all-packages      include dependencies that are not installed (slow)

But "equery d -a lua" does not show all packages (mpv and hexchat missing).


OT:
!!! Invalid atom: 'dev-python/pygobject:3[%PYTHON_USEDEP-NEEDS-TO-BE-USED-IN-PYTHON_GEN_COND_DEP%]'
dev-libs/efl-1.25.1-r11 (lua_single_target_lua5-1 ? dev-lang/lua:5.1[deprecated(+)])
                        (lua_single_target_lua5-2 ? dev-lang/lua:5.2[deprecated(+)])
                        (lua_single_target_lua5-3 ? dev-lang/lua:5.3[deprecated(+)])

Can be in ::gentoo or in other repo. You never know.
"equery d -a lua" should show all fitting packages from all repos.
Comment 6 jospezial 2021-04-12 18:00:50 UTC
This could possibly be a duplicate of the 74 equery bugs.