#1034052 winetricks: winetrick searches for 32 bit wine as wine32, not wine

Package:
winetricks
Source:
winetricks
Submitter:
Thomas Dorner
Date:
2023-04-12 09:06:04 UTC
Severity:
normal
Tags:
#1034052#5
Date:
2023-04-07 13:49:07 UTC
From:
To:
Dear Maintainer,

I have the following wine multiarch installation in Sid:

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             8.0~repack-4 all          Windows API implementation - standard suite
ii  wine32:i386      8.0~repack-4 i386         Windows API implementation - 32-bit binary loader
ii  wine64           8.0~repack-4 amd64        Windows API implementation - 64-bit binary loader
ii  winetricks       20230212-2   all          simple tool to work around common problems in Wine

While setting up a new Wine environment winetricks aborted with the
following error:
------------------------------------------------------
Using winetricks 20230212 - sha256sum: 14afe10e8858e47f95fc6f02015003a6ffd8cd438249b25b85e1078e8e326949 with wine-8.0 (Debian 8.0~repack-4) and WINEARCH=win64
Executing w_do_call vcrun2019
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2019
Using native,builtin override for following DLLs: api-ms-win-crt-private-l1-1-0 api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcp140_1 msvcp140_2 msvcp140_atomic_wait msvcp140_codecvt_ids vcamp140 vccorlib140 vcomp140 vcruntime140
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\override-dll.reg
it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32:i386"
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe C:\windows\Temp\override-dll.reg returned status 53. Aborting.
------------------------------------------------------


After simply creating a hard-link between /usr/lib/wine/wine and
/usr/lib/wine/wine32 it worked.  I guess this is either a bug in the
winetricks or the wine (32 bit) package, at least it looks like
something not consistent.  The fix should be easy in each of them.  (I
did not try a soft-link, but that probably works as well.)

Best regards, Thomas

PS: Classified as "normal" as it has a very easy work-around.

#1034052#10
Date:
2023-04-11 14:01:27 UTC
From:
To:
control: tags -1 moreinfo

Hi,

I can't reproduce this issue.  What steps exactly did you issue that failed?

With the same packages installed I successfully did the following tests:

rm -rf .wine
wineboot
winetricks vcrun2019

rm -rf .wine
winetricks vcrun2019

rm -rf .wine
regedit

This is an error message from Wine. Winetricks doesn't look for "wine32".

Please remove the hardlink again and report the output of "wine --version".

You may also reinstall wine (apt purge wine wine32 wine64 && apt install
wine wine32 wine64) and check again.


Thanks and greets
jre

#1034052#17
Date:
2023-04-12 08:04:10 UTC
From:
To:
Hello Jens!

Hmm, I tried it again today (after removing my hard-link), and I
couldn't reproduce it either.  I did some other changes / updates in
the meantime though (esp. installing winbind and some Samba packages,
which I did not have installed last week).  So I guess we can close
this as a glitch specific to my environment.  Should I encounter it
again, I'll reopen with a more through analysis.

wine-8.0 (Debian 8.0~repack-4)

Thanks for your efforts and best regards,
Thomas

#1034052#22
Date:
2023-04-12 09:03:08 UTC
From:
To:
Hi Thomas

Thanks for your quick response, closing.

ftr, winbind/samba are most probably not relevant for whatever went wrong.

Yes, please!

Greets
jre