Bug#770813: /usr/bin/wine script insufficiently clever

2014-11-24 Thread Erik de Castro Lopo
Package: wine Version: 1.6.2-16 Severity: normal I have a number of project written in C that I cross compile from Linux to Windows. These projects often have test programs also written in C and these I run under Wine. This all works fine when I'm compiling 32 bit windows binaries but for 64 bit

Bug#770813: /usr/bin/wine script insufficiently clever [patch]

2014-11-24 Thread Erik de Castro Lopo
The following seems to work for me. --- /usr/bin/wine.orig 2014-11-03 05:33:12.0 +1100 +++ /usr/bin/wine 2014-11-24 20:35:10.081487087 +1100 @@ -6,6 +6,16 @@ wine32=$bindir/wine32 wine64=$bindir/wine64 +if test -z ${WINEARCH}${WINEPREFIX} ; then + if test $(file $1 |