summaryrefslogtreecommitdiff
path: root/tools/linux_packaging
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-19 21:11:55 +0100
committerRobin Gareus <robin@gareus.org>2016-02-19 21:11:55 +0100
commit02aa1be06c133f7829a95d0f8d73c10283761bb1 (patch)
tree3d706054a076fba966d19d8fbfbd60383dd22145 /tools/linux_packaging
parentd84a8222f2b6dab5028b2586f798535a8766670e (diff)
possible fix for AVLinux VST bundles.
Diffstat (limited to 'tools/linux_packaging')
-rwxr-xr-xtools/linux_packaging/stage2.run.in8
1 files changed, 8 insertions, 0 deletions
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