← Back to issue list

Meson plugin fails in snapcraft version 7.1.0

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1982761
Type
issue
State
closed
Author
~nuccitheboss
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

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.

Suggested action:

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
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

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1753250 meson version out of date snapcraft (launchpad) open 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.
72%
#1990126 "snapcraft help <plugin>" fails with SC7 and core22 in project directory snapcraft (launchpad) open snapcraft help <plugin> validates snapcraft.yaml unnecessarily, failing when core22 extensions are used. Untriaged, 1445 days old, no maintainer engagement.
71%
#1957766 plugin:meson is not installed during pull stage snapcraft (launchpad) open snapcraft 6.0.1: plugin:meson parts are not cached during the pull stage, so the build stage must fetch meson over the network and the proxy times out. Reported by xnox, open ~4.6 years with no labels, comments, or maintainer response.
71%
#1653128 support the Meson build system snapcraft (launchpad) closed Closed without implementation or discussion, indicating the request was abandoned. Meson support was later integrated natively into Snapcraft.
71%