audio/cmt: Added patch to avoid double-free aborts.
This commit is contained in:
parent
2bcc79b2d7
commit
b935c77f30
|
@ -6,15 +6,13 @@
|
||||||
|
|
||||||
PRGNAM=cmt
|
PRGNAM=cmt
|
||||||
VERSION=${VERSION:-1.16}
|
VERSION=${VERSION:-1.16}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -38,8 +36,6 @@ else
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FORCE_SLACK_CFLAGS=${FORCE_SLACK_CFLAGS:-no}
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
@ -56,10 +52,16 @@ find . \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
chmod 644 doc/*
|
chmod 644 doc/*
|
||||||
|
|
||||||
if [ "$FORCE_SLACK_CFLAGS" = "yes" ]; then
|
if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then
|
||||||
sed -i 's/-O3/'"$SLKCFLAGS"'/' src/makefile
|
sed -i 's/-O3/'"$SLKCFLAGS"'/' src/makefile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix glibc double-free errors when cmt's sine and ladspa_sdk's sine
|
||||||
|
# both get loaded into the same ladspa host. Sent patch upstream, but
|
||||||
|
# cmt is "legacy", there hasn't been a release since 2007, so not holding
|
||||||
|
# my breath.
|
||||||
|
patch -p1 < $CWD/fix_sine.diff
|
||||||
|
|
||||||
make -C src
|
make -C src
|
||||||
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ladspa
|
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ladspa
|
||||||
make -C src install INSTALL_PLUGINS_DIR=$PKG/usr/lib$LIBDIRSUFFIX/ladspa
|
make -C src install INSTALL_PLUGINS_DIR=$PKG/usr/lib$LIBDIRSUFFIX/ladspa
|
||||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="B. Watson"
|
MAINTAINER="B. Watson"
|
||||||
EMAIL="yalhcru@gmail.com"
|
EMAIL="yalhcru@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="Niels Horn"
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
diff -Naur cmt/src/sine.cpp cmt.patched//src/sine.cpp
|
||||||
|
--- cmt/src/sine.cpp 2002-08-07 17:42:41.000000000 -0400
|
||||||
|
+++ cmt.patched//src/sine.cpp 2011-06-21 12:07:36.000000000 -0400
|
||||||
|
@@ -36,8 +36,8 @@
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
-LADSPA_Data * g_pfSineTable = NULL;
|
||||||
|
-LADSPA_Data g_fPhaseStepBase = 0;
|
||||||
|
+static LADSPA_Data * g_pfSineTable = NULL;
|
||||||
|
+static LADSPA_Data g_fPhaseStepBase = 0;
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue