The gtk-doc patch taken from the meson tracker didn't handle more than one library path.
I've created an upstream PR with a more complete fix.
This fixes the gtk-doc build for glib.
While at it also udpate the python intepreter lookup patch which made it into meson
and should be in the next release.
meson uses the py.exe to figure out the path of the default python2/3
but msys2 python doesn't install it. This leads to it finding the
system Python and getting the wrong path.
This fixes the gobject-introspection build with meson (not the default yet..)
Newer meson can now detect if the function exists if you pass the
right header and this patch can be dropped.
cc.has_function('stpcpy', prefix : '#include <string.h>')
cc.has_function('posix_memalign', prefix : '#include <stdlib.h>')
See https://bugzilla.gnome.org/show_bug.cgi?id=795876
Previously the prefix was just C:\ which made install work as with autotools, but
was obviously wrong. meson also allows passing absolute install paths which
ignore the prefix and then result in <destdir>/msys64/mingw32/<sub> paths.
To fix this set the right prefix by default and after the install path is computed
strip away the prefix again.
With 1.26 gtk-doc was ported to Python2/3 so we can use it with mingw Python 3.
Regarding the patches:
* Some path replacements for paths leaking from the autotools build system
* Since some other tools like meson expect that the gtkdoc utils are
executables the pyscript2exe script generates a launcher exe for all
utils. This is similar to what setuptools does for console entry points.
* Various Windows fixes, don't depend on the locale encoding when opening
files and don't depend on the shell for executing commands.
I'll try to upstream these changes once this gets more testing.
I've only tested building gexiv2 with this, larger packages might expose
more bugs.
Regarding meson: Remove the hack to invoke gtkdoc through msys perl, it's no
longer needed when mingw gtk-doc is installed. As there are no packages using
meson+gtkdoc right now this shouldn't break anything.
* meson: make has_function fail for posix_memalign and stpcpy; remove the .py suffix of meson scripts
* meson detects posix_memalign and stpcpy but both fails to link in
the end, so force disable them for now. This makes glib2 master build
using the new meson build system.
* remove the script suffixes so the naming is more in line with the
documentation and other tools.
* meson: execute gtk-doc scripts with msys2 perl
And force utf-8 encoding as gtk-doc doesn't use the active codepage.
* meson: fix color terminal detection
* meson: Update to 0.41.2
* python3: Update to 3.6.1
The patches starting with 16 are new to fix the build.
Some no longer relevant patches were dropped, the rest is just refreshed.
* Bump pkgrel of all packages containing Python 3 bytecode/extensions.
The package list was generated using:
pkgfile.exe -R mingw64 -r "cpython.*\\.(py[cod]|dll)"
* lensfun: Add cmake to makedepends
* numpy: Don't hardcode the Python version
* blender: rebuild for new Python
* boost: Don't hardcode Python versions; rebuild
* pillow: Don't hardcode Python version; rebuild
* python-dateutil: Don't hardcode Python versions
* sip: Don't hardcode Python versions
* pyqt4: Don't hardcode Python versions; rebuild
* pyqt5: Don't hardcode Python versions; rebuild
* opencv: Update Python3 version in patch