When searching for gstreamer and related libraries, WebKitGTK's build system appends an extra space to the library name before passing it into pkg-config. So for instance: when looking for `gstreamer-1.0`, it will invoke `pkg-config --modversion "gstreamer-1.0 "`. Strangely, some gstreamer-related libraries (example: gstreamer-full-1.0 and gstreamer-mpegts-1.0) do not get an extra space appended to them. In versions of pkgconf older than 2.0.3, the extra space would just get ignored and everything would continue as normal. Since pkgconf 2.0.3, this is NOT the case anymore, and instead pkgconf prints nothing (unclear if this is a bug on their part... I've opened an issue here: https://github.com/pkgconf/pkgconf/issues/317) In effect, this means that since pkgconf 2.0.3, I cannot compile webkitgtk, because it fails to find the version numbers for most gstreamer-related libraries. Version info: WebkitGTK 2.40.5 Gstreamer 1.22.5 carbonOS
Fixed by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8789