Hi, I thought that building a snap app would be an interesting thing to do (and it is) but I’m stuck with the lint warnings when executing snapcraft
. Indeed I took the MenuLibre source code from github and I’m trying to create a MenuLibre snap. The thing is I get this error when building the snap that I can’t get aroung :
loic@Vivobook:~/Mes Snap/menulibre$ snapcraft
Generated snap metadata
Lint warnings:
- library: libcolordprivate.so.2: unused library 'usr/lib/x86_64-linux-gnu/libcolordprivate.so.2.0.5'. (https://snapcraft.io/docs/linters-library)
- library: libdconf.so.1: unused library 'usr/lib/x86_64-linux-gnu/libdconf.so.1.0.0'. (https://snapcraft.io/docs/linters-library)
- library: libgnome-menu-3.so.0: unused library 'usr/lib/x86_64-linux-gnu/libgnome-menu-3.so.0.0.1'. (https://snapcraft.io/docs/linters-library)
- library: libgtksourceview-3.0.so.1: unused library 'usr/lib/x86_64-linux-gnu/libgtksourceview-3.0.so.1.8.0'. (https://snapcraft.io/docs/linters-library)
- library: libicuio.so.70: unused library 'usr/lib/x86_64-linux-gnu/libicuio.so.70.1'. (https://snapcraft.io/docs/linters-library)
- library: libicutest.so.70: unused library 'usr/lib/x86_64-linux-gnu/libicutest.so.70.1'. (https://snapcraft.io/docs/linters-library)
- library: libpangoxft-1.0.so.0: unused library 'usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so.0.5000.6'. (https://snapcraft.io/docs/linters-library)
Command '['snap', 'pack', '--filename', 'menulibre_2.4.0_amd64.snap', '--compression', 'xz', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1.
Failed to execute pack in instance.
Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
Full execution log: '/home/loic/.local/state/snapcraft/log/snapcraft-20240413-205332.374489.log'
Here is my snapcraft.yaml file :
name: menulibre
base: core22 # the base snap is the execution environment for this snap
version: '2.4.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: Votre éditeur de menu. # 79 char long summary
description: |
Menu Libre est un éditeur de menu avancé qui fournit des fonctionnalités modernes au sein d'une interface propre et facile à utiliser.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
menulibre:
command: menulibre
plugs:
- x11
- wayland
- gsettings
- opengl
- network
- network-bind
parts:
menulibre:
plugin: python
source: https://github.com/bluesabre/menulibre.git
build-packages:
- gir1.2-gtk-3.0
- intltool
- libgnome-menu-3-dev
- python-gi-dev
- python3
- python3-distutils-extra
- python3-psutil
stage-packages:
- gir1.2-gdkpixbuf-2.0
- gir1.2-glib-2.0
- gir1.2-gmenu-3.0
- gir1.2-gtk-3.0
- gir1.2-gtksource-3.0
- gnome-menus
- python3
- python3-gi
- python3-psutil
- xdg-utils
override-build: |
python3 setup.py build
Does anybody know where this problem might come and if it’s solvable ? Thanks in advance !