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

Bug 933109

Summary: dev-libs/libxmlb: python_check_deps checks for setuptools but the ebuild doesn't properly depend on it
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joonas Niilola gentoo-dev 2024-05-29 07:19:44 UTC
Hey,

libxmlb has this check:

python_check_deps() {
	python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
}

but setuptools is only a dependency with "introspection" use flag:

BDEPEND="
	${PYTHON_DEPS}
	introspection? (
		$(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
	)
"

causing a situation where setuptools may not be installed at all, but the ebuild still checks for it.

 * Checking whether python3_12 is suitable ...
 *   dev-lang/python:3.12 ...
 [ ok ]
 *   python_check_deps ...
 *     dev-python/setuptools[python_targets_python3_12(-)] ...
 [ !! ]
 [ !! ]
...
...
...
 * No Python implementation found for the build. This is usually
 * a bug in the ebuild. Please report it to bugs.gentoo.org
 * along with the build log.

 * ERROR: dev-libs/libxmlb-0.3.14::gentoo failed (setup phase):
 *   No supported Python implementation installed.