media-libs/mlt[python] always installs the Python modules in the latest version install, ignoring PYTHON_SINGLE_TARGET. For stable users, USE="python_single_target_python3_10 -python_single_target_python3_11" emerge mlt produces: /usr/lib/python3.11/site-packages/mlt7.py /usr/lib/python3.11/site-packages/_mlt7.so instead of python3.10 .
Created attachment 872107 [details, diff] Fix build when PYTHON_SINGLE_TARGET isn't the latest installed This patch should fix it.
same problem now in mlt-7.20.
(In reply to N. Andrew Walsh from comment #2) > same problem now in mlt-7.20. additionally, when I change the ebuild to match the diff (ie, adding that extra line about the exact version) I get the following error: -- Checking for module 'libebur128' -- Found libebur128, version 1.2.6 -- Checking for module 'samplerate' -- Found samplerate, version 0.2.2 -- Checking for module 'vorbis' -- Found vorbis, version 1.3.7 -- Checking for module 'vorbisfile' -- Found vorbisfile, version 1.3.7 -- Found SWIG: /usr/bin/swig (found version "4.1.1") CMake Error at CMakeLists.txt:463 (find_package): find_package called with invalid argument ".11" and build fails.
It works for me. Rather then editing the ebuild directly, try this: Download the patch to home directory and rename it mlt.patch Run the following: sed -i s/7\.18\.0/7.20.0/g mlt.patch # replace "local" with your overlay's name cd /var/db/repos/local/media-libs/mlt patch -p3 < ~/mlt.patch That should patch the ebuild without damaging any whitespace.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10d7615d687451b01d0f66191ad4178fb0f99ed commit d10d7615d687451b01d0f66191ad4178fb0f99ed Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-11-13 22:06:10 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-11-13 22:07:52 +0000 media-libs/mlt: Make CMake respect PYTHON_SINGLE_TARGET Closes: https://bugs.gentoo.org/915132 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/mlt/mlt-7.20.0-r1.ebuild | 165 ++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+)