Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933109 - dev-libs/libxmlb: python_check_deps checks for setuptools but the ebuild doesn't properly depend on it
Summary: dev-libs/libxmlb: python_check_deps checks for setuptools but the ebuild does...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 07:19 UTC by Joonas Niilola
Modified: 2024-06-28 11:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.