After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792102 - meson: Installed pkg-config version info reports 2.54.2 as 2.54.0
meson: Installed pkg-config version info reports 2.54.2 as 2.54.0
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
2.54.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-01-01 19:52 UTC by Mike Henning (drawoc)
Modified: 2018-01-01 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Henning (drawoc) 2018-01-01 19:52:47 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.
Comment 1 Emmanuele Bassi (:ebassi) 2018-01-01 21:29:27 UTC
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.
Comment 2 Mike Henning (drawoc) 2018-01-01 22:07:36 UTC
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.
Comment 3 Mike Henning (drawoc) 2018-01-01 22:25:12 UTC
I filed an archlinux bug: https://bugs.archlinux.org/task/56920