From 67b55046abb70e01b2ef5784d2bfbf20193f7d1a Mon Sep 17 00:00:00 2001 From: Max Gaukler Date: Tue, 10 Dec 2024 13:26:24 +0100 Subject: [PATCH] Fix snap package Work around https://github.com/canonical/snapcraft/issues/4931 to make the store upload work again Main issue: https://gitlab.com/inkscape/inkscape/-/issues/5414 --- snap/README.md | 19 ++++++++++++++++++- snap/snapcraft.yaml | 4 +++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/snap/README.md b/snap/README.md index c907e62b1f..4baa394340 100644 --- a/snap/README.md +++ b/snap/README.md @@ -40,7 +40,10 @@ sudo snap connect inkscape:dot-config-inkscape ``` ### Troubleshooting +#### General +If the snap fails to build but it worked before, first run `snapcraft clean` and build again and see if the errors disappear. Too often, snapcraft remembers some parts of the previous build, which causes trouble. +#### Snap directory ``` The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths: @@ -51,7 +54,7 @@ these files within the 'snap' directory, move them to 'snap/local' ``` Just ignore the message. - +#### LXD ``` LXD is required but not installed. Do you wish to install LXD and configure it with the defaults? [y/N]: ``` @@ -62,3 +65,17 @@ Answer `y` . craft-providers error: Failed to install LXD: user must be manually added to 'lxd' group before using LXD. ``` Run `sudo adduser $USERNAME lxd` , then log out and log in again. + + +#### Store upload failed +``` +(on launchpad.net) +Store upload failed ... Error found while validating +``` + +Install review-tools: `sudo snap install review-tools` + +Check the produced snap: `review-tools.snap-review inkscape_XXX.snap` + +You can ignore all errors stating `Human review required`. Everything else must be fixed. + diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 410cf3f7e5..e78c9c754b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -25,7 +25,9 @@ slots: bus: session name: org.inkscape.Inkscape -assumes: [ command-chain ] +# commented out due to bug https://github.com/canonical/snapcraft/issues/4931 +# will be added automatically by snapcraft anyway +# assumes: [ command-chain ] parts: inkscape: -- GitLab