Meson plugin fails in snapcraft version 7.1.0
Metadata
Current evaluation
Meson was not auto-installed; no fix was merged, and the report was closed as expired after 60 days of inactivity.
Resolution: closed stale
Reason: A maintainer explained that Meson must already be supplied by the part. The issue was automatically closed by @~janitor on 2022-10-24 after 60 days without activity; no resolving PR or commit was identified.
Evaluated by: mr-cal-bot
No scores available.
Issue body
# Description
Snapcraft builds fail when using the meson plugin in snapcraft version 7.1.0 one core22. Here is an abridged version of the build log when I am trying to build a snap package containing GNOME software using Meson.
```
2022-07-25 10:07:00.132 :: 2022-07-25 13:54:19.936 plugin validation command: 'meson --version'
2022-07-25 10:07:00.132 :: 2022-07-25 13:54:19.942 Launching shell on build environment...
2022-07-25 10:07:00.132 :: 2022-07-25 13:54:19.942 Emitter: Pausing control of the terminal
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.717 Emitter: Resuming control of the terminal
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.718 Environment validation failed for part 'apostrophe': 'meson' not found and part 'apostrophe' does not depend on a part named 'meson-deps' that would satisfy the dependency.
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 Traceback (most recent call last):
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/plugins/validator.py", line 100, in validate_dependency
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 output = self._execute(command).strip()
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/plugins/validator.py", line 143, in _execute
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 proc = subprocess.run(
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/usr/lib/python3.8/subprocess.py", line 516, in run
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 raise CalledProcessError(retcode, process.args,
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 subprocess.CalledProcessError: Command '['/bin/bash', '/tmp/tmp3bup73rl']' returned non-zero exit status 127.
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 The above exception was the direct cause of the following exception:
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 Traceback (most recent call last):
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 165, in run
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 with self._lcm.action_executor() as aex:
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 281, in __enter__
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 self._executor.prologue()
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 90, in prologue
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 self._verify_plugin_environment()
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 267, in _verify_plugin_environment
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 validator.validate_environment(part_dependencies=part.dependencies)
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/plugins/meson_plugin.py", line 70, in validate_environment
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 self.validate_dependency(
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/plugins/validator.py", line 118, in validate_dependency
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 raise errors.PluginEnvironmentValidationError(
2022-07-25 10:07:00.132 :: 2022-07-25 14:06:59.722 craft_parts.errors.PluginEnvironmentValidationError: Environment validation failed for part 'apostrophe': 'meson' not found and part 'apostrophe' does not depend on a part named 'meson-deps' that would satisfy the dependency.
```
Seems that meson is not successfully installed when being invoked via a plugin.
# Steps to reproduce
1. sudo snap refresh --edge snapcraft #=> To get snapcraft 7.1.0
2. snapcraft --use-lxd --debug
# Attachments (inside tar file)
1. meson-plugin-issue-core22.log - build log for the errored build
2. apostrophe-snapcraft.yaml - snapcraft.yaml file (still a work in progress; manually installing meson in the debug shell will allow the build to finish, but the application still needs some work)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Meson was not auto-installed; no fix was merged, and the report was closed as expired after 60 days of inactivity. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after 60 days without activity. Meson was not auto-installed and needed to be supplied through part dependencies, but no snapcraft.yaml fix was reported. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale on 24 Oct 2022 after 60 days without activity; maintainers clarified that the Meson plugin does not auto-install Meson and the project must provide it. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after 60 days; a maintainer clarified that the Meson plugin does not auto-install Meson and the project must provide it. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after 60 days without activity. Maintainers clarified that the Meson plugin does not auto-install Meson; it must be provided by the project. | |
| stealth/space-bunny-alpha | — | closed stale | Snapcraft 7.1.0's core22 Meson validation failure was closed as abandoned after inactivity, with no fix recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned due to inactivity. The meson plugin environment validation failure in snapcraft 7.1.0/core22 was not addressed. Likely superseded by updated plugin dependencies in later releases. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or resolution, the report was likely abandoned or marked stale. The meson plugin environment validation failure in snapcraft 7.1.0 on core22 remains unfixed. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without documented resolution. The meson plugin environment validation failure in snapcraft 7.1.0 received no comments or fixes, indicating the issue was abandoned or resolved externally. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without comments or resolution. The meson plugin environment validation failure in snapcraft 7.1.0 appears abandoned. No fix or merge details were provided. |
Update history
| Date | Change |
|---|---|
| created |
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. | |
| #1753250 meson version out of date | snapcraft (launchpad) | open | 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. |