commit: 125e7231eb603c2751d9adcd3c06e021703104aa Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Mar 13 20:24:45 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 13 20:26:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=125e7231
dev-libs/libwacom: fix python-any-r1 usage When upgrading an old system, there's a period where Python may not be usable at all, so either undeclared deps on Python or excessive checks will cause failures. In this case, Python is only BDEPENDed on for tests, and python_check_deps tries to reflect that, but python-any-r1 is still going to check for the interpreter. Switch back to the way the ebuild used to do things by guarding the python-any-r1_pkg_setup call, like in the Python Guide. This stops us checking for Python even when we're not going to use it. Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/libwacom/libwacom-2.6.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-libs/libwacom/libwacom-2.6.0.ebuild b/dev-libs/libwacom/libwacom-2.6.0.ebuild index d59625aaee58..62173377ae27 100644 --- a/dev-libs/libwacom/libwacom-2.6.0.ebuild +++ b/dev-libs/libwacom/libwacom-2.6.0.ebuild @@ -35,12 +35,17 @@ BDEPEND=" " python_check_deps() { - use test || return 0 python_has_version "dev-python/python-libevdev[${PYTHON_USEDEP}]" && python_has_version "dev-python/pyudev[${PYTHON_USEDEP}]" && python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" } +pkg_setup() { + if use test; then + python-any-r1_pkg_setup + fi +} + src_prepare() { default