The ebuild for media-libs/lilv-0.24.10 installs python bindings for that library. Specifically, it installs files in /usr/lib/pythonX.Y/site-packages. But this is not reflected in its USE flags: there is no PYTHON_TARGETS or PYTHON_SINGLE_TARGET. As a result, the package does not behave nicely with respect to python upgrades: When this package was first installed in my system, python 3.6 was the default, so it installed files for python 3.6. When my profile's PYTHON_TARGETS & PYTHON_SINGLE_TARGET were updated, that didn't cause a rebuild of the package, so it was stuck in python 3.6. I think the solution is to update the ebuild so that it uses the machinery from the python-single-r1/python-r1 eclasses.
Created attachment 678535 [details] lilv-0.24.10-r1.ebuild Here's my attempt to modify this ebuild to use python-single-r1. It could probably rewritten to use python-r1, but this is not as straightforward and using python-single-r1 is already an improvement. As a side bonus, it also enables support for python-3.9 (I tested it against that version and it seems to work).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ea41321c34da5721c6106170e63682706b2870 commit e8ea41321c34da5721c6106170e63682706b2870 Author: Marios Titas <redneb@gmx.com> AuthorDate: 2020-12-17 01:02:16 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2020-12-27 10:42:02 +0000 media-libs/lilv: rewrite to use the python-single-r1 eclass Closes: https://bugs.gentoo.org/760402 Signed-off-by: Marios Titas <redneb@gmx.com> Closes: https://github.com/gentoo/gentoo/pull/18689 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> media-libs/lilv/lilv-0.24.10-r1.ebuild | 81 ++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+)