audio/clam: Fix jack2 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2020-01-18 02:43:32 -05:00 committed by Willy Sudiarto Raharjo
parent 68c5ea2fc3
commit 173b69c30b
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -66,6 +66,18 @@ if [ "$LIBDIRSUFFIX" != "" ]; then
sed -i "s,/lib\>,/lib$LIBDIRSUFFIX," scons/libs/clam_build_helpers.py sed -i "s,/lib\>,/lib$LIBDIRSUFFIX," scons/libs/clam_build_helpers.py
fi fi
# 20200118 bkw: as part of its configure process, scons compiles and runs
# a sample jack program. With jack2, if jackd isn't already running,
# this creates root-owned files in /dev/shm/jack_db that don't get
# deleted afterwards. No problem, except that the next time the user
# tries to start jackd, it will be unable to write to jack_db. Which
# makes jackd segfault. Even if it didn't segfault, it would presumably
# still not start (with an error message). The workaround is to NOT
# compile/run the jack test program (just assume the test succeeds).
# Whew. The explanation is *way* more complex than the fix.
sed -i '/CheckLibrarySample.*jack_test_code/,+1d' \
scons/libs/clam_dependent_libs_checks.py
CCFLAGS="$SLKCFLAGS" \ CCFLAGS="$SLKCFLAGS" \
CPPFLAGS="$SLKCFLAGS" \ CPPFLAGS="$SLKCFLAGS" \
scons configure \ scons configure \