canonical / craft-parts

https://canonical-craft-parts.readthedocs-hosted.com
GNU Lesser General Public License v3.0
10 stars 33 forks source link

Meson Plugin with python or gjs based app #561

Open soumyaDghosh opened 9 months ago

soumyaDghosh commented 9 months ago

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

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

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.
syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2953.

This message was autogenerated