We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71dbfb5 commit 97e738aCopy full SHA for 97e738a
1 file changed
cmake/linux/package_linux.sh.in
@@ -175,10 +175,16 @@ rm -f "${APPDIR}/usr/lib/libwine.so.1"
175
# Use system-provided carla
176
rm -f "${APPDIR}usr/lib/"libcarla*.so
177
178
-# Move jack out of LD_LIBRARY_PATH
+# Remove bundled jack in LD_LIBRARY_PATH if exists
179
if [ -e "${APPDIR}/usr/lib/libjack.so.0" ]; then
180
+ rm "${APPDIR}/usr/lib/libjack.so.0"
181
+fi
182
+
183
+# Bundle jack out of LD_LIBRARY_PATH
184
+JACK_LIB=$(ldd "${APPDIR}/usr/bin/lmms" | sed -n 's/\tlibjack\.so\.0 => \(.\+\) (0x[0-9a-f]\+)/\1/p')
185
+if [ -e "$JACK_LIB" ]; then
186
mkdir -p "${APPDIR}usr/lib/lmms/optional/"
- mv "${APPDIR}/usr/lib/libjack.so.0" "${APPDIR}usr/lib/lmms/optional/"
187
+ cp "$JACK_LIB" "${APPDIR}usr/lib/lmms/optional/"
188
fi
189
190
# Point the AppRun to the shim launcher
0 commit comments