When doing a 'g_file_get_contents' call on windows, it fails with 'Invalid Argument'. This happend when I build virt-viewer on Fedora Rawhide. After some troubleshooting, I found out that rebuilding mingw-glib2 without the '0001-Use-CreateFile-on-Win32-to-make-sure-g_unlink-always.patch' fixes the issue. Seems like the patch is already quite old, and most likely broke something in more recent glib2 versions. Reproducible: Always
I agree. The patch was added in 2012, and the upstream bug was "RESOLVED OBSOLETE" in 2018. If there is still an upstream bug that this patch is supposed to be fixing, let's get upstream to fix it. But it seems unlikely that is the case now.
Scratch build without the patch: https://koji.fedoraproject.org/koji/taskinfo?taskID=141343540
FEDORA-2026-69ecceae52 (mingw-glib2-2.87.1-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-69ecceae52
FEDORA-2026-69ecceae52 (mingw-glib2-2.87.1-2.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report.