From bd8faf795abf6d91abdc52bc968829cc2efae4bb Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Sep 2012 00:42:08 -0700 Subject: Thu Sep 27 00:42:07 PDT 2012 --- extra/ladspa/PKGBUILD | 13 ++++++----- extra/ladspa/fallback-ladspa-path.patch | 27 +++++++++++++++++++++++ extra/ladspa/fix-memleak-in-plugin-scanning.patch | 11 +++++++++ 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 extra/ladspa/fallback-ladspa-path.patch create mode 100644 extra/ladspa/fix-memleak-in-plugin-scanning.patch (limited to 'extra/ladspa') diff --git a/extra/ladspa/PKGBUILD b/extra/ladspa/PKGBUILD index 3f0fb5aad..4885aaa34 100644 --- a/extra/ladspa/PKGBUILD +++ b/extra/ladspa/PKGBUILD @@ -1,22 +1,25 @@ -# $Id: PKGBUILD 137623 2011-09-10 08:28:05Z pierre $ +# $Id: PKGBUILD 167138 2012-09-26 05:02:07Z foutrelis $ # Maintainer: damir pkgname=ladspa pkgver=1.13 -pkgrel=3 +pkgrel=4 pkgdesc="Linux Audio Developer's Simple Plugin API (LADSPA)" arch=('i686' 'x86_64') license=('LGPL') url="http://www.ladspa.org/" depends=('gcc-libs') source=("http://www.ladspa.org/download/${pkgname}_sdk_${pkgver}.tgz" - 'hardcode-path.patch') + 'fix-memleak-in-plugin-scanning.patch' + 'fallback-ladspa-path.patch') md5sums=('671be3e1021d0722cadc7fb27054628e' - '27743258232d828575d66940e6de2858') + '478c400e04c9db9cfd6ee1198beec9c5' + '8a0ad7d442662af160381e7302c6ed4c') build() { cd "${srcdir}/${pkgname}_sdk/src" - patch -Np1 -i "${srcdir}/hardcode-path.patch" + patch -Np1 -i "${srcdir}/fix-memleak-in-plugin-scanning.patch" + patch -Np2 -i "${srcdir}/fallback-ladspa-path.patch" sed \ -e 's/mkdirhier/mkdir -p/' \ -e "s#-O3#${CFLAGS} ${LDFLAGS/,--as-needed/}#" \ diff --git a/extra/ladspa/fallback-ladspa-path.patch b/extra/ladspa/fallback-ladspa-path.patch new file mode 100644 index 000000000..7743bf4b4 --- /dev/null +++ b/extra/ladspa/fallback-ladspa-path.patch @@ -0,0 +1,27 @@ +diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c +--- ladspa_sdk.orig/src/load.c 2012-09-26 07:37:24.000000000 +0300 ++++ ladspa_sdk/src/load.c 2012-09-26 07:38:58.000000000 +0300 +@@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, in + to search. */ + + pcLADSPAPath = getenv("LADSPA_PATH"); ++ if (! pcLADSPAPath) ++ pcLADSPAPath = "/usr/lib/ladspa"; + + if (pcLADSPAPath) { + +diff -upr ladspa_sdk.orig/src/search.c ladspa_sdk/src/search.c +--- ladspa_sdk.orig/src/search.c 2012-09-26 07:37:24.000000000 +0300 ++++ ladspa_sdk/src/search.c 2012-09-26 07:38:46.000000000 +0300 +@@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCal + + pcLADSPAPath = getenv("LADSPA_PATH"); + if (!pcLADSPAPath) { +- fprintf(stderr, +- "Warning: You do not have a LADSPA_PATH " +- "environment variable set.\n"); +- return; ++ pcLADSPAPath = "/usr/lib/ladspa"; + } + + pcStart = pcLADSPAPath; diff --git a/extra/ladspa/fix-memleak-in-plugin-scanning.patch b/extra/ladspa/fix-memleak-in-plugin-scanning.patch new file mode 100644 index 000000000..76cb2e864 --- /dev/null +++ b/extra/ladspa/fix-memleak-in-plugin-scanning.patch @@ -0,0 +1,11 @@ +--- src/search.c.orig 2008-11-07 00:38:18.000000000 +0100 ++++ src/search.c 2008-11-07 00:50:51.000000000 +0100 +@@ -83,6 +83,8 @@ + dlclose(pcFilename); + free(pcFilename); + } ++ } else { ++ free(pcFilename); + } + } + } -- cgit v1.2.3-54-g00ecf