From 173b69c30be7039dd6b0eaa2868ab4b5d7f4cde4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 18 Jan 2020 02:43:32 -0500 Subject: [PATCH] audio/clam: Fix jack2 build. Signed-off-by: B. Watson --- audio/clam/clam.SlackBuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 \