GNOME Bugzilla – Bug 792102
meson: Installed pkg-config version info reports 2.54.2 as 2.54.0
Last modified: 2018-01-01 22:25:12 UTC
The meson.build file included with the tarballs for version 2.54.2 begins with: project('glib', 'c', 'cpp', version : '2.54.0', meson_version : '>= 0.38.1', default_options : [ 'warning_level=1', 'c_std=gnu89' ] ) Note that meson.build has the wrong version number (2.54.0). This causes the installed pkgconfig files to also report the wrong version. The obvious fix to this is to bump the version number appropriately. I don't know if there's a checklist for what needs to be done at each glib version bump, but if there is, perhaps an item should be added so this is not forgotten in the future.
The pkg-config files generated with the Meson build have far more issues than just a version mismatch; see bug 788773. The Meson build is still not functional enough to be used from tarballs, unless you're using GLib as a sub-project for an ad hoc build. I've updated the version in the glib-2-54 branch, but it's strongly recommended you use Autotools until we announce that the Meson build has achieved feature parity.
ebassi: That's fair. The reason I noticed this is because archlinux is already shipping glib built with meson. I'll try to contact the package maintainers to make sure they're aware of the state of the meson build.
I filed an archlinux bug: https://bugs.archlinux.org/task/56920