[packages/mlt] - rel 4; tiny fixes from debian

arekm arekm at pld-linux.org
Sun Apr 13 20:35:32 CEST 2014


commit 4917f665f4c89f6c8c207cda55d013b83f54c6a0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Apr 13 20:35:29 2014 +0200

    - rel 4; tiny fixes from debian

 02-crash-empty-ladspa-path.diff | 18 ++++++++++++++++++
 03-freetype-ftbfs.diff          | 26 ++++++++++++++++++++++++++
 mlt.spec                        |  6 +++++-
 3 files changed, 49 insertions(+), 1 deletion(-)
---
diff --git a/mlt.spec b/mlt.spec
index b9f3c47..0195b01 100644
--- a/mlt.spec
+++ b/mlt.spec
@@ -8,11 +8,13 @@ Summary:	MLT - open source multimedia framework
 Summary(pl.UTF-8):	MLT - szkielet multimedialny o otwartych źródłach
 Name:		mlt
 Version:	0.9.0
-Release:	3
+Release:	4
 License:	GPL
 Group:		X11/Applications/Multimedia
 Source0:	http://downloads.sourceforge.net/mlt/%{name}-%{version}.tar.gz
 # Source0-md5:	1cd2d73f3ffe77a43980e99aaa4ea06c
+Patch0:		02-crash-empty-ladspa-path.diff
+Patch1:		03-freetype-ftbfs.diff
 URL:		http://www.mltframework.org/
 BuildRequires:	QtGui-devel
 BuildRequires:	QtSvg-devel
@@ -79,6 +81,8 @@ Ten pakiet zawiera pliki nagłówkowe dla MLT.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 # current
 sed -i -e 's#/usr/lib/libvdpau.so#%{_libdir}/libvdpau.so.1#g' ./src/modules/avformat/vdpau.c
diff --git a/02-crash-empty-ladspa-path.diff b/02-crash-empty-ladspa-path.diff
new file mode 100644
index 0000000..1b8f80d
--- /dev/null
+++ b/02-crash-empty-ladspa-path.diff
@@ -0,0 +1,18 @@
+# Upstream patch to fix crash if LADSPA_PATH is empty.
+# Closes: #726197
+
+diff -Naur mlt-0.9.0.orig/src/modules/jackrack/plugin_mgr.c mlt-0.9.0/src/modules/jackrack/plugin_mgr.c
+--- mlt-0.9.0.orig/src/modules/jackrack/plugin_mgr.c	2013-06-03 05:34:35.000000000 +0200
++++ mlt-0.9.0/src/modules/jackrack/plugin_mgr.c	2013-10-17 14:49:57.147889337 +0200
+@@ -237,10 +237,8 @@
+     ladspa_path = g_strdup ("/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/lib64/ladspa");
+ #endif
+   
+-  dir = strtok (ladspa_path, ":");
+-  do
++  for (dir = strtok (ladspa_path, ":"); dir; dir = strtok (NULL, ":"))
+     plugin_mgr_get_dir_plugins (plugin_mgr, dir);
+-  while ((dir = strtok (NULL, ":")));
+ 
+   g_free (ladspa_path);
+ }
diff --git a/03-freetype-ftbfs.diff b/03-freetype-ftbfs.diff
new file mode 100644
index 0000000..ad051b5
--- /dev/null
+++ b/03-freetype-ftbfs.diff
@@ -0,0 +1,26 @@
+# Upstream patch to fix FTBFS with newer freetype versions.
+# Closes: #733375
+
+diff -Naur mlt-0.9.0.orig/src/modules/gtk2/Makefile mlt-0.9.0/src/modules/gtk2/Makefile
+--- mlt-0.9.0.orig/src/modules/gtk2/Makefile	2013-06-03 05:34:35.000000000 +0200
++++ mlt-0.9.0/src/modules/gtk2/Makefile	2014-01-03 11:43:13.518109987 +0100
+@@ -37,6 +37,7 @@
+ OBJS += producer_count.o
+ OBJS += filter_dynamictext.o
+ CFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --cflags pangoft2`
++CFLAGS += `pkg-config --cflags-only-I freetype2 | sed 's/ *$$//g'`/freetype
+ LDFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --libs pangoft2`
+ ifeq ($(targetos),Darwin)
+ LDFLAGS += -liconv
+diff -Naur mlt-0.9.0.orig/src/modules/gtk2/producer_pango.c mlt-0.9.0/src/modules/gtk2/producer_pango.c
+--- mlt-0.9.0.orig/src/modules/gtk2/producer_pango.c	2013-06-03 05:34:35.000000000 +0200
++++ mlt-0.9.0/src/modules/gtk2/producer_pango.c	2014-01-03 11:41:10.270113314 +0100
+@@ -25,7 +25,7 @@
+ #include <string.h>
+ #include <gdk-pixbuf/gdk-pixbuf.h>
+ #include <pango/pangoft2.h>
+-#include <freetype/freetype.h>
++#include <freetype.h>
+ #include <iconv.h>
+ #include <pthread.h>
+ #include <ctype.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mlt.git/commitdiff/4917f665f4c89f6c8c207cda55d013b83f54c6a0



More information about the pld-cvs-commit mailing list