public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/mlt] epel9-next: Fix build on rawhide with Python 3.8
Date: Mon, 20 Jul 2026 18:17:27 GMT [thread overview]
Message-ID: <178457144726.1.15346574147214292221.rpms-mlt-e9e9c8ea4b1f@fedoraproject.org> (raw)
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
reply other threads:[~2026-07-20 18:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178457144726.1.15346574147214292221.rpms-mlt-e9e9c8ea4b1f@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox