TVAM / winetricks

Automatically exported from code.google.com/p/winetricks
0 stars 0 forks source link

Winetricks fails on debian to get wines version number #421

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My system (uname -a):
Linux Pythagoras 3.13-1-amd64 #1 SMP Debian 3.13.5-1 (2014-03-04) x86_64 
GNU/Linux

winetricks --version:
20140302

dpkg -l wine-unstable (words on german removed):
ii  wine-unstable  1.7.16-2     i386         Windows API implementation - 
standard suite

wine-unstable --version:
debian/1.7.16-1

This setting gives me this error message:
Executing w_do_call dotnet30
dotnet30 already installed, skipping
Executing w_do_call dotnet20sp1
Executing load_dotnet20sp1
/usr/bin/winetricks: 1720: test: Illegal number: debian/1.7.16-1
------------------------------------------------------
Wine-Fehler 16956 wird umgegangen -- wine version too old
------------------------------------------------------

Thanks for your attention
Joerg

Original issue reported on code.google.com by Joerg.Schiermeier@gmail.com on 4 May 2014 at 8:56

GoogleCodeExporter commented 8 years ago
...and new Debian package wine-Unstable showed:

joerg [9]:~$ dpkg -l wine-unstable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version          Architecture     Description
+++-======================-================-================-===================
==============================
ii  wine-unstable          1.7.18-1         amd64            Windows API 
implementation - standard suite

joerg [10]:~$ wine-unstable --version
wine-1.7.18-1615-gff569f2

Original comment by Joerg.Schiermeier@gmail.com on 7 May 2014 at 7:42

GoogleCodeExporter commented 8 years ago
IMHO we should definitely handle those kinds of version numbers, they're 
fairly common.  (I mean, we could yell at the distro maintainers, but that's
not likely to be productive.) 
I'll try to put the fix together.

Original comment by daniel.r...@gmail.com on 7 May 2014 at 7:56

GoogleCodeExporter commented 8 years ago
Also the executabel in Debian changed to wine-unstable so the actuacl version 
of wine didn't interfere with stable wine. The unstable wine executable is 
named: wine-unstable.

Here is some code I use to get the version number:

test -x '/usr/bin/wine-unstable' && \
    WINE32_BIN="/usr/bin/wine-unstable"

test -x ${WINE32_BIN} && WINE_VER=$(${WINE32_BIN} --version | \
    sed -e 's/^.*\([0-9]\{1\}\.[0-9]\{1,2\}\.[0-9]\{1,3\}\).*$/\1/')

Hopefully this will help.

Thanks for your attention
Joerg

Original comment by Joerg.Schiermeier@gmail.com on 7 May 2014 at 9:11