commit: a2c1d8920c449b80f88fa2c54455db52ca0102a3 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sat Dec 21 08:56:52 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Dec 21 16:23:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c1d892
dev-libs/glib: dev-python/packaging is required for >=2.79.0 Requirement removed again in >=2.81.1, setuptools still needed for gobject-introspection via USE="introspection". https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3740 https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4133 Closes: https://bugs.gentoo.org/946727 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/39804 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/glib/glib-2.80.5-r1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-libs/glib/glib-2.80.5-r1.ebuild b/dev-libs/glib/glib-2.80.5-r1.ebuild index c45723504164..e4c137d3b568 100644 --- a/dev-libs/glib/glib-2.80.5-r1.ebuild +++ b/dev-libs/glib/glib-2.80.5-r1.ebuild @@ -61,6 +61,9 @@ BDEPEND=" doc? ( >=dev-util/gi-docgen-2023.1 ) dev-python/docutils systemtap? ( >=dev-debug/systemtap-1.3 ) + $(python_gen_any_dep ' + dev-python/packaging[${PYTHON_USEDEP}] + ') ${PYTHON_DEPS} test? ( >=sys-apps/dbus-1.2.14 ) virtual/pkgconfig @@ -94,7 +97,10 @@ PATCHES=( python_check_deps() { if use introspection ; then + python_has_version "dev-python/packaging[${PYTHON_USEDEP}]" && python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]" + else + python_has_version "dev-python/packaging[${PYTHON_USEDEP}]" fi }
