Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915132 - media-libs/mlt[python] does not respect PYTHON_SINGLE_TARGET
Summary: media-libs/mlt[python] does not respect PYTHON_SINGLE_TARGET
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kde-gear-23.08.3-stable
  Show dependency tree
 
Reported: 2023-10-03 19:17 UTC by Christopher Byrne
Modified: 2023-11-13 22:08 UTC (History)
1 user (show)

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


Attachments
Fix build when PYTHON_SINGLE_TARGET isn't the latest installed (0001-media-libs-mlt-Respect-PYTHON_SINGLE_TARGET.patch,874 bytes, patch)
2023-10-03 20:35 UTC, Christopher Byrne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Byrne 2023-10-03 19:17:39 UTC
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 .
Comment 1 Christopher Byrne 2023-10-03 20:35:52 UTC
Created attachment 872107 [details, diff]
Fix build when PYTHON_SINGLE_TARGET isn't the latest installed

This patch should fix it.
Comment 2 N. Andrew Walsh 2023-11-02 18:38:29 UTC
same problem now in mlt-7.20.
Comment 3 N. Andrew Walsh 2023-11-02 18:47:56 UTC
(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.
Comment 4 Christopher Byrne 2023-11-02 22:28:35 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2023-11-13 22:08:17 UTC
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(+)