audio/zynjacku: Fix lockups when guitarix installed.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-12-10 14:39:17 -05:00 committed by Willy Sudiarto Raharjo
parent 1e7521defb
commit e8bcc6848f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff -Naur zynjacku-6/zynworld/lv2.py zynjacku-6.patched/zynworld/lv2.py
--- zynjacku-6/zynworld/lv2.py 2011-03-17 23:32:37.000000000 -0400
+++ zynjacku-6.patched/zynworld/lv2.py 2021-12-10 14:33:43.946341107 -0500
@@ -119,8 +119,6 @@
return list(result)
if single:
if len(anyprops) > 0:
- if len(anyprops) > 1:
- raise Exception, "More than one value of " + prop
return list(anyprops)[0]
else:
return None

View file

@ -6,11 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20211210 bkw: BUILD=2
# - Fix lockups that occur when guitarix is installed.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zynjacku
VERSION=${VERSION:-6}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -66,6 +69,13 @@ if [ "$LIBDIRSUFFIX" != "" ]; then
sed -i "s,/usr/lib/lv2,/usr/lib$LIBDIRSUFFIX/lv2,g" zynworld/lv2.py
fi
# Stops zynjacku and lv2rack from freezing when they're scanning the
# lv2 plugin dir(s) and hit the Guitarix tuner (and maybe others).
# The tuner plugin still won't load ("Failed to construct") if
# you select it, but at least the application doesn't crash and is
# otherwise useful.
patch -p1 < $CWD/fix_scan_lockup.diff
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \