https://bugs.winehq.org/show_bug.cgi?id=53418
Bug ID: 53418 Summary: Msys2 pacman fails inside _alpm_makepath_mode Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: joel@airwebreathe.org.uk Distribution: ---
Run:
$ mkdir /home/user/pacman-test/var/lib/pacman -p $ wine64 /path/to/msys64/usr/bin/pacman.exe -Sy --config pacman.conf --debug
With pacman.conf
-------------------------------------- [options] RootDir = /z/home/user/pacman-test/ CacheDir = /z/home/user/pacman-test/var/cache/pacman/pkg/ GPGDir = /z/home/user/pacman-test/etc/pacman.d/gnupg/ HoldPkg = pacman Architecture = auto Color CheckSpace ParallelDownloads = 5
[mingw32] Include = /etc/pacman.d/mirrorlist.mingw SigLevel = Required
[mingw64] Include = /etc/pacman.d/mirrorlist.mingw SigLevel = Required
[ucrt64] Include = /etc/pacman.d/mirrorlist.mingw SigLevel = Required
[clang32] Include = /etc/pacman.d/mirrorlist.mingw SigLevel = Required
[clang64] Include = /etc/pacman.d/mirrorlist.mingw SigLevel = Required
[msys] Include = /etc/pacman.d/mirrorlist.msys SigLevel = Required --------------------------------------
Produces the following error in the log:
-------------------------------------- :: Synchronising package databases... debug: database dir '/z/home/user/pacman-test/var/lib/pacman/sync/' does not exist, creating it debug: returning error 2 from get_sync_dir (../lib/libalpm/be_sync.c: 58) : unexpected system error error: failed to synchronize all databases (unexpected system error) --------------------------------------
Note that Wine needs to be patched with these hacks first, or it will crash due to stack overflow issues:
* https://bugs.winehq.org/show_bug.cgi?id=47808#c12 * https://bugs.winehq.org/show_bug.cgi?id=47808#c13