public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mlt] epel9-next: Fix build on rawhide with Python 3.8
@ 2026-07-20 18:17
0 siblings, 0 replies; only message in thread
From: @ 2026-07-20 18:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mlt
Branch : epel9-next
Commit : e9e9c8ea4b1f4e1abc2226c6e1200cd154e13c3a
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2019-11-03T22:19:23+00:00
Stats : +16/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mlt/c/e9e9c8ea4b1f4e1abc2226c6e1200cd154e13c3a?branch=epel9-next
Log:
Fix build on rawhide with Python 3.8
---
diff --git a/mlt-python_includes.patch b/mlt-python_includes.patch
new file mode 100644
index 0000000..8d0ce83
--- /dev/null
+++ b/mlt-python_includes.patch
@@ -0,0 +1,11 @@
+--- ./src/swig/python/build.orig 2019-11-03 21:51:29.151089755 +0000
++++ ./src/swig/python/build 2019-11-03 21:51:22.859014218 +0000
+@@ -13,7 +13,7 @@ path=`which python 2> /dev/null`
+ if [ $? = 0 ]
+ then
+ # Change this as needed
+- export PYTHON_INCLUDE=`python -c "import sys;print(\"{}/include/python{}.{}\".format(sys.prefix,*sys.version_info))"`
++ export PYTHON_INCLUDE=`python -c "from sysconfig import get_paths; print(get_paths()['include'])"`
+
+ [ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1
+
diff --git a/mlt.spec b/mlt.spec
index 35b7410..07e9ccd 100644
--- a/mlt.spec
+++ b/mlt.spec
@@ -23,7 +23,7 @@
Name: mlt
Version: 6.16.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Toolkit for broadcasters, video editors, media players, transcoders
# mlt/src/win32/fnmatch.{c,h} are BSD-licensed.
@@ -33,6 +33,7 @@ URL: http://www.mltframework.org/
Source0: https://github.com/mltframework/mlt/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: https://github.com/mltframework/mlt/commit/434dbcf62048cc1220c425c2adc77697b4d40ffb.diff
Patch1: https://github.com/mltframework/mlt/commit/690d3ed55f98d8e31affb1b5dbc84c6948248099.diff
+Patch2: mlt-python_includes.patch
BuildRequires: frei0r-devel
BuildRequires: opencv-devel
@@ -175,7 +176,6 @@ find src/swig/python3 -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%
sed -i -e 's|which python|which python3|' src/swig/python3/build
sed -i -e 's|python -c|python3 -c|' src/swig/python3/build
sed -i -e 's|python-config|python3-config|' src/swig/python3/build
-sed -i -e 's|python{}.{}|python{}.{}m|' src/swig/python3/build
%endif
%if %{with python2}
find src/swig/python -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|'
@@ -288,6 +288,9 @@ test "$(pkg-config --modversion mlt++)" = "%{version}"
%changelog
+* Sun Nov 03 2019 Sérgio Basto <sergio@serjux.com> - 6.16.0-4
+- Fix build on rawhide with Python 3.8
+
* Tue Oct 22 2019 Sérgio Basto <sergio@serjux.com> - 6.16.0-3
- Couple of fixes from upstream for kdenlive
- Add python3-mlt in addition to python2-mlt, document Python 2 exception
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 18:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 18:17 [rpms/mlt] epel9-next: Fix build on rawhide with Python 3.8
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox