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

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and no maintainer response — only an auto-generated Jira-sync bot comment (CRAFT-2953) from 2024-05-17. I verified in current code that craft_parts/plugins/meson_plugin.py still only runs meson setup/ninja/ninja install with no shebang rewriting, while the python plugin base class has _get_rewrite_shebangs_commands(), so the reported gap is still present and the issue is not stale-irrelevant. It needs a maintainer to categorize it (bug vs feature) and decide whether the meson plugin should gain interpreter/shebang handling.

Impact: 35 Quick Win: 19.25 Staleness: 78 Complexity: 45 Confidence: 72 Support Request: 15

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
qwen/qwen3.8-27b
Impact: 35
Quick Win: 19.25
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 60
Support Request: 10
close stale Meson plugin fails to set correct Python or gjs interpreter shebangs for installed apps, requiring manual fixes. Internal ticket CRAFT-2953 created. Open, untriaged, and awaiting developer attention after months of inactivity.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.