[Bug 53574] New: MSYS2 "pacman -Sy" fails key lookup
https://bugs.winehq.org/show_bug.cgi?id=53574 Bug ID: 53574 Summary: MSYS2 "pacman -Sy" fails key lookup Product: Wine Version: 7.15 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: joel(a)airwebreathe.org.uk Distribution: --- Created attachment 72951 --> https://bugs.winehq.org/attachment.cgi?id=72951 Log of console interaction With a fresh Msys2 installation, pacman fails to run, because it keeps producing "key lookup failed" errors. The user is prompted to with the following message: error: mingw32: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown :: Import PGP key 5F944B027F7FE2091985AA2EFA11531AA0AA7F57? [Y/n] Y However, if the user selects "yes", pacman simply asks the same question again after a short delay, in an infinite loop. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=53574 Bernhard Übelacker <bernhardu(a)mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu(a)mailbox.org --- Comment #1 from Bernhard Übelacker <bernhardu(a)mailbox.org> --- I came accross this issue too. If I remember correctly this looks like an issue with the silent failure of the key import at the initial setup. This should be visible afterwards by `pacman-key --populate`. Calling this leaves each time a process dirmngr.exe. It looks like this process dirmngr.exe hangs during startup: (gdb) bt #0 0x0000000100437de0 in assuan_sock_connect_byname () #1 0x0000000100402531 in dirmngr_use_tor () at dirmngr.c:607 #2 0x000000010040256c in set_tor_mode () at dirmngr.c:582 #3 0x00000001004025eb in post_option_parsing () at dirmngr.c:898 #4 0x0000000100403532 in main (argc=<optimized out>, argv=<optimized out>) at dirmngr.c:1211 A workaround for me was to creating this configuration: echo no-use-tor > .wine/drive_c/msys64/etc/pacman.d/gnupg/dirmngr.conf -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=53574 --- Comment #2 from Bernhard Übelacker <bernhardu(a)mailbox.org> --- Created attachment 74546 --> https://bugs.winehq.org/attachment.cgi?id=74546 server: Reset reported_events if socket gets reused. Hello, I took a deeper look and it looks like the issue in dirmngr.exe is caused by it reusing the same socket for multiple failing connection attempts. wineserver stores flags in reported_events, which gets not reset for the second connection attempt. Therefore WSAEnumNetworkEvents returns no events, which causes the function wait_for_events in msys2 to never return. Attached patch resets this reported_events at the second connection attempt and contains a test that should show the issue. There are additional issues about file deletion/renaming, but that deserves maybe another bug report. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=53574 Christopher Degawa <ccom(a)randomderp.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ccom(a)randomderp.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=53574 Bernhard Übelacker <bernhardu(a)mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #74546|0 |1 is obsolete| | --- Comment #3 from Bernhard Übelacker <bernhardu(a)mailbox.org> --- Created attachment 78507 --> http://bugs.winehq.org/attachment.cgi?id=78507 server: Reset reported_events if socket gets reused. (rebased wine-10.7) Still present with wine-10.7. The patch from bug #55138 needs to be applied to reach below issue. The installer msys2-x86_64-20250221.exe hangs at 50% in some post installation step when preparing the pacman configuration. Applying attached patch makes the installer finish successfully. When starting from the installer a MSYS2 shell, the window shows just a blinking cursor (bug #57424). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla