← Back to issue list

Meson Plugin with python or gjs based app

View original Github issue

Metadata

Project
craft-parts
Number
#561
Type
issue
State
open
Author
soumyaDghosh
Labels
—
Created
Updated
Closed
—

Current evaluation

Meson-built Python/GJS apps retain invalid build-time shebangs and fail to launch; a reproducer is linked, but the unlabelled issue has no maintainer triage or fix.

Suggested action: needs triage

Reason: The current MesonPlugin only runs Meson, Ninja, and DESTDIR install, with no shebang-rewrite step, so the reported failure is consistent with the code and the linked Graphs reproducer. However, #561 has no labels, assignee, or maintainer response—the sole comment is an automated Jira notice—and it does not define the expected Python/GJS replacement paths, so maintainers must scope and prioritize it.

Evaluated by: mr-cal-bot

Impact: 58 Quick Win: 15 Complexity: 62 Confidence: 91 Actionability: 67

Issue body

### Bug Description Same as the python plugin, when the meson plugin installs the files of a python or gjs based app, it cannot find the proper interpreter for them. To fix it, we have to manually fix the first line of those files. ### To Reproduce https://github.com/Sjoerd1993/Graphs/blob/main/snap/snapcraft.yaml#L88 This is an example snap, just remove this line and see the error. ### part yaml ```shell graphs: after: [ blueprint-compiler, numpy ] plugin: meson source: https://github.com/Sjoerd1993/Graphs.git meson-parameters: - --prefix=/snap/graphs/current/usr - --buildtype=release build-environment: - PYTHONPATH: $CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH - GI_TYPELIB_PATH: /snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:/snap/gnome-42-2204-sdk/current/usr/lib/girepository-1.0 organize: snap/graphs/current/usr: usr parse-info: [usr/share/appdata/se.sjoerd.Graphs.appdata.xml] ``` ### Relevant log output ```shell Logs can be found by installing the snap that'll build from the above given yaml. It'll fail to find the correct python interpreter. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 58
Quick Win: 15
Complexity: 62
Confidence: 91
Actionability: 67
needs triage Meson-built Python/GJS apps retain invalid build-time shebangs and fail to launch; a reproducer is linked, but the unlabelled issue has no maintainer triage or fix.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 15
Complexity: 45
Confidence: 75
Actionability: 60
needs triage Meson plugin does not rewrite shebangs of Python/GJS scripts it installs, so built snaps fail to find the interpreter; reporter gives a Graphs snap reproducer. No labels or maintainer response; code confirms meson plugin has no shebang handling.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 22
Complexity: 30
Confidence: 80
Actionability: 80
keep open Meson plugin fails to fix shebangs for Python/GJS scripts, requiring manual patching. Valid bug compared to Python plugin behavior.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 19
Staleness: 78
Complexity: 45
Confidence: 72
Support Request: 15
needs triage Meson plugin does not rewrite shebangs of Python/GJS scripts it installs, unlike the python plugin, so apps fail to find the correct interpreter at runtime. Unlabeled, no maintainer response, and the code still lacks shebang handling.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 15
needs triage Meson plugin fails to set correct Python/GJS interpreter paths in built snaps, requiring manual shebang fixes. Untriaged with no maintainer response in over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 10
needs triage Meson plugin fails to set correct shebangs for Python/GJS apps, requiring manual fixes. Unlabelled, no maintainer response, inactive for over a year.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#680 (confidence 90%)

    Merged PR 066d653b5 rewrote Python plugin shebangs to use /usr/bin/env, confirming analogous handling elsewhere but not fixing the Meson plugin.

Related issues

No related issues found above the similarity threshold.