https://bugs.winehq.org/show_bug.cgi?id=43193
--- Comment #10 from Joel Holdsworth joel@airwebreathe.org.uk --- This issue is caused by at least 3 other bugs: #47808, #52105 and #52105. I have collected together and rebased the hacks and patches from these bug reports here:
https://github.com/jhol/wine/commits/msys2-hacks
If we run the installer in CLI mode:
$ wine64 msys2-x86_64-20220603.exe in com.msys2.root -t 'c:\msys64' --am
...the log contains the following:
---------------------------------------------- [213] Installation space required: "527.19 MB" Temporary space required: "256.00 MB" Local repository size: "0.00 bytes" 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 0058:fixme:mountmgr:harddisk_query_volume Unsupported volume query 3 [285] Cannot determine available space on device. Volume descriptor: "\\?\Volume{00000000-0000-0000-0000-000000000043}\", Mount path: "C:\". Contin ue silently. [353] [356] Do you want to continue? [369] Yes|No ----------------------------------------------
There is a problem querying disk space. We must type "yes" to dismiss the warning.
Now we can see the packages files unpacked correctly, but it gets stuck running the post-install commands - specifically "C:/msys64\usr\bin\bash.exe --login -c exit" gets stuck.
When running bash.exe directly we get a seg-fault. This is a manifestation of #47808, and can be avoided with Bernhard Übelacker's hacks:
* https://github.com/jhol/wine/commit/c9b9fe7d8949fae91b6a5696bf256d0e01c0a17d * https://github.com/jhol/wine/commit/dba30c1c440351a01c5a805a3b7f1babf6236aa2
With these patches applied, bash.exe hangs due to #52105 and can be avoided with these hacks:
* https://github.com/jhol/wine/commit/4bcf28f39f58a0da2e1d7fbf978785ddfeb0d8be * https://github.com/jhol/wine/commit/7fb64f1029d96497b8dfa781253b52cdd7d550cb
The bash commands now runs as intended - it runs through the varous scripts in "C:\msys64\etc\post-install", but just at the point of completion this message is emitted:
0024:fixme:sync:NtQueryDirectoryObject multiple entries not implemented
This is a manifestation of #52105, and causes the installer to get stuck, and can be patched with these patches:
* https://github.com/jhol/wine/commit/fe909e83de89d3e8dcab3b153382c1b5b2d88707 * https://github.com/jhol/wine/commit/13bd80a6d31b51aa236e8844e2e0fe56ae0790f5
The installer now completes both in CLI mode, and we can start using bash.exe interactively.
Unfortunately, there is still a crash bug which prevents GUI mode from installing correctly.