Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760402 - media-libs/lilv-0.24.10: use python-single-r1/python-r1 instead of python-any-r1
Summary: media-libs/lilv-0.24.10: use python-single-r1/python-r1 instead of python-any-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-17 00:01 UTC by redneb
Modified: 2020-12-27 10:42 UTC (History)
0 users

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


Attachments
lilv-0.24.10-r1.ebuild (lilv-0.24.10-r1.ebuild,1.75 KB, text/plain)
2020-12-17 00:06 UTC, redneb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description redneb 2020-12-17 00:01:18 UTC
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.
Comment 1 redneb 2020-12-17 00:06:38 UTC
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).
Comment 2 Larry the Git Cow gentoo-dev 2020-12-27 10:42:10 UTC
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(+)