From 02aa1be06c133f7829a95d0f8d73c10283761bb1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 19 Feb 2016 21:11:55 +0100 Subject: [PATCH] possible fix for AVLinux VST bundles. --- tools/linux_packaging/stage2.run.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/linux_packaging/stage2.run.in b/tools/linux_packaging/stage2.run.in index e22162bee1..2aff98a605 100755 --- a/tools/linux_packaging/stage2.run.in +++ b/tools/linux_packaging/stage2.run.in @@ -410,10 +410,18 @@ if %REPLACE_WINE%; then # if this check were quick and easy.. it should be done in the startup-script, but it's not # so here we go... (updating wine may require re-installing ardour) # + # on recent Ubuntu wine does load both: + # /usr/lib/i386-linux-gnu/libwine.so.1 + # AND + # /usr/lib/x86_64-linux-gnu/libwine.so.1 + # so we need to work around this (thanks). + # (this hack break 64bit LinuxVST builds, but we don't do those anyway) + LIBWINE=$( LD_DEBUG=files wine `pwd`/${BUNDLE_DIR}/lib/ardour-vst-scanner.exe.so 2>&1 \ | grep -e "calling init:.*libwine" \ | sed 's/^.*calling init: //' \ + | grep -v x86_64-linux-gnu | uniq \ ) if ! test -f "$LIBWINE"; then