GTK4 build fails on Windows: SourceForge certificates are outdated in Python's certifi, fixes don't appear to work
When configuring GTK 4.0.5 (or latest master, both behave identically) for build on Windows with a command like meson setup builddir --prefix=Some/custom/folder/that/should/not/matter -Dbuild-tests=false -Dmedia-gstreamer=disabled
, the following error occurs after some initial configuration:
glib| Using subprojects\glib\subprojects\pcre.wrap
glib| Downloading pcre source from https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.bz2
glib| <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)>
glib| A fallback URL could be specified using source_fallback_url key in the wrap file
subprojects\glib\meson.build:2043:2: ERROR: could not get https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.bz2 is the internet available?
It appears that certifi's SSL certificates are outdated. However, I both placed the SourceForge certificate into its cacert.pam, replaced that PAM by Mozilla's latest Root CA file, and updated certifi multiple times, including from latest master. Can I either circumvent the verification, specify a PCRE source dir manually (of course I can download that tarball in Chrome, Firefox and with curl), or is there another solution?
Python 3.10.2, CMake 3.22.2, Meson 0.61.2, MSVC from VS 2019, Windows 10 21H2 build 19044.1586