← Back to issue list

meson version out of date

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1753250
Type
issue
State
open
Author
~bitseater
Labels
gettext i18n meson snap
Created
Updated
Closed
—

Current evaluation

Snapcraft 3.x meson plugin installed meson 0.29, lacking gettext/gschemas/resources support (mesonbuild.modules.i18n ImportError). Current craft-parts MesonPlugin no longer installs/pins meson.

Suggested action: close resolved

Reason: The reported root cause no longer exists in code: the current MesonPlugin (craft_parts/plugins/meson_plugin.py, originally added in commit 228706de "plugins: add meson plugin") installs no meson at all and documents that "The meson plugin requires meson installed on your system. This can be achieved by adding the appropriate meson package to build-packages or build-snaps, or to have it installed or built in a different part" — MesonPluginEnvironmentValidator only checks that a dependency named "meson" and "ninja" exist. The ~arighi comment of 2023-12-08 already showed meson 0.61.2 rather than the pinned 0.29, confirming the bundled 0.29 is gone; version selection is now controlled by the user via build-packages/build-snaps or a part named meson. Remaining uncertainty: no maintainer response or resolution is recorded on the Launchpad ticket, so I am inferring resolution from the plugin's present-day design rather than from an explicit fix commit or release note.

Evaluated by: mr-cal-bot

Impact: 22 Quick Win: 12 Complexity: 18 Confidence: 70 Actionability: 65

Issue body

Snapcraft fails to build a package with meson plug-in and including gettext, gschemas and resources. The error message is "ImportError: No module named ‘mesonbuild.modules.i18n’ ", cause the build environment install meson 0.29 version and support for gettext, gschemas and resources has been updated in 0.30 version and so on. A workaround to solve it is to update meson: parts: mypart: after: [desktop-gtk3, snapcraft-preload] source: https://github.com/xxxxxx/yyyyyyyy.git source-type: git plugin: meson meson-parameters: [--prefix=/usr] prepare: | apt-get install -y python-setuptools pip3 install meson

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 22
Quick Win: 12
Complexity: 18
Confidence: 70
Actionability: 65
close resolved Snapcraft 3.x meson plugin installed meson 0.29, lacking gettext/gschemas/resources support (mesonbuild.modules.i18n ImportError). Current craft-parts MesonPlugin no longer installs/pins meson.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 11
Complexity: 20
Confidence: 66
Actionability: 45
close not a bug Old request to bump snapcraft's bundled meson (0.29, missing i18n module). Plugin moved to craft-parts and no longer installs meson; users supply build-packages/build-snaps/meson-deps. Last 2023 comment: how to select a newer meson?
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 13
Complexity: 30
Confidence: 70
Actionability: 60
needs triage Meson plugin lacks minimum version requirement for gettext/i18n support; build fails with meson 0.29 due to missing mesonbuild.modules.i18n module.
qwen/qwen3.8-27b
Impact: 15
Quick Win: 12
Staleness: 90
Complexity: 20
Confidence: 70
Support Request: 10
close stale 2017-era report that snapcraft's meson plugin build environment pinned meson 0.29, missing the i18n/gettext module added in 0.30. No comments, no maintainer response; the plugin has since been rewritten, so the pinned old meson no longer applies.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 10
close stale Report of Snapcraft build failure due to outdated meson version lacking i18n support, with a pip workaround provided. Issue is over 8 years old with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 10
close stale Snapcraft build environment uses outdated Meson 0.29, causing i18n/gschemas failures. Issue is inactive for over two years and obsolete given current Meson versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 99
Complexity: 10
Confidence: 95
Support Request: 10
close stale Snapcraft build fails due to outdated meson 0.29 lacking gettext/i18n support. Issue is over 8 years old and the reported version mismatch is no longer relevant in current environments.

Update history

Date Change
created

Related work

  • Related To: canonical/craft-parts#1346 (confidence 35%)

    Commit 6b90766d 'fix: add setup command to meson (#1346)' is recent maintenance of the same MesonPlugin; the plugin has since moved to craft-parts with no version pinning.

Related issues

Issue Project State Summary Similarity
#1957766 plugin:meson is not installed during pull stage snapcraft (launchpad) open Snapcraft 6.0.1 Meson-part builds reportedly fetch Meson during build after the proxy expires; the issue remains open with no labels, comments, or triage.
73%
#1982761 Meson plugin fails in snapcraft version 7.1.0 snapcraft (launchpad) closed Meson was not auto-installed; no fix was merged, and the report was closed as expired after 60 days of inactivity.
72%