diff --git a/audio/clam/clam.SlackBuild b/audio/clam/clam.SlackBuild index 34c3980e71..44f7436870 100644 --- a/audio/clam/clam.SlackBuild +++ b/audio/clam/clam.SlackBuild @@ -66,6 +66,18 @@ if [ "$LIBDIRSUFFIX" != "" ]; then sed -i "s,/lib\>,/lib$LIBDIRSUFFIX," scons/libs/clam_build_helpers.py 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" \ CPPFLAGS="$SLKCFLAGS" \ scons configure \