You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that if a package (fontconfig) depends on another package (meson), and both packages require the same dependency (python), xmake prompts to install python even if it's already available.
checking for fontconfig ... nonote: install or modify (m) these packages (pass -y to skip confirm)?in myrepo: -> python 3.13.2 [host, binary, from:meson,fontconfig, license:PSF] -> fontconfig latestplease input: y (y/n/m)
If I remove the direct python dependency from fontconfig, the prompt becomes
checking for fontconfig ... nonote: install or modify (m) these packages (pass -y to skip confirm)? -> fontconfig latestplease input: y (y/n/m)
My question is: Is this the intended behavior? Should a package author avoid declaring a dependency if they know it will be satisfied transitively? Or is this a case where the resolver could potentially de-duplicate the check?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed that if a package (
fontconfig
) depends on another package (meson
), and both packages require the same dependency (python
), xmake prompts to installpython
even if it's already available.Here's a simplified example:
meson
requirespython
:add_deps("python 3.x", {kind = "binary"})
fontconfig
requiresmeson
and alsopython
:When installing
fontconfig
, I get this prompt:If I remove the direct
python
dependency fromfontconfig
, the prompt becomesMy question is: Is this the intended behavior? Should a package author avoid declaring a dependency if they know it will be satisfied transitively? Or is this a case where the resolver could potentially de-duplicate the check?
Beta Was this translation helpful? Give feedback.
All reactions