Summary: | util-linux/util-linux: PYTHON_SINGLE_TARGET is not respected unless USE=python is enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Zac Medico <zmedico> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | chutzpah, pacho, python |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Zac Medico
![]() This looks to affect to also current stable version. I am unsure if that ebuilds shouldn't then depend on util-linux[python] instead of needing to add (and update) the python_single_target_python2_7? ( python ) logic in ebuild :/ That doesn't make sense at all. Why would you require any specific implementation choice when you don't use Python at all? (In reply to Michał Górny from comment #2) > That doesn't make sense at all. Why would you require any specific > implementation choice when you don't use Python at all? The python_single_target_* flags are meaningless unless USE=python is enabled, and REQUIRED_USE will allow you to encapsulate this logic in the util-linux ebuild, so that ebuilds which depend on the python_single_target_* flags aren't forced to be aware that util-linux happens to have a python flag. This makes dependency specifications more uniform, since ebuilds that have python_single_target_* flags may or may not have a python flag. (In reply to Zac Medico from comment #3) > (In reply to Michał Górny from comment #2) > > That doesn't make sense at all. Why would you require any specific > > implementation choice when you don't use Python at all? > > The python_single_target_* flags are meaningless unless USE=python is > enabled, and REQUIRED_USE will allow you to encapsulate this logic in the > util-linux ebuild, so that ebuilds which depend on the > python_single_target_* flags aren't forced to be aware that util-linux > happens to have a python flag. This makes dependency specifications more > uniform, since ebuilds that have python_single_target_* flags may or may not > have a python flag. No, this will only force most of the Gentoo users to enable USE=python on util-linux. If ebuild doesn't have IUSE=python, then it should depend on util-linux[python,${PYTHON_USEDEP}]... what's the problem, again? (In reply to Michał Górny from comment #4) > No, this will only force most of the Gentoo users to enable USE=python on > util-linux. Oh, because they have a global PYTHON_SINGLE_TARGET setting. So, it's actually a feature that python_single_target_* flags are meaningless without USE=python. I get it. > If ebuild doesn't have IUSE=python, then it should depend on > util-linux[python,${PYTHON_USEDEP}]... what's the problem, again? Okay, that works for me. Thanks! |