Bug 385062 - Cannot build snaps locally
Summary: Cannot build snaps locally
Status: RESOLVED LATER
Alias: None
Product: neon
Classification: KDE Neon
Component: Snaps (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-25 19:35 UTC by Aleix Pol
Modified: 2022-11-29 00:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleix Pol 2017-09-25 19:35:31 UTC
Tried to build this one: https://packaging.neon.kde.org/applications/kate.git/?h=Neon/unstable

apol@oliver:~/devel/snaps/kate (Neon/unstable)$ snapcraft cleanbuild
Cannot find the definition for part 'kde-frameworks-5-dev'.
It may be a remote part, run `snapcraft update` to refresh the remote parts cache.

Unsure how to solve it.
Comment 1 Harald Sitter 2017-09-26 08:02:23 UTC
https://mail.kde.org/pipermail/neon/2017-September/000464.html

```
export SNAPCRAFT_PARTS_URI=http://metadata.neon.kde.org/snap/parts.yaml
snapcraft update
snapcraft
```

Basically: we pull the content snap in via what is called a remote part, as the definition for that is currently not part of the standard remote parts yaml (although it probably should be now that it is actually working) you need to use a special one.
Comment 2 Scarlett Moore 2017-09-26 15:26:57 UTC
Worked for Aleix, no such luck for me.

export SNAPCRAFT_PARTS_URI=http://metadata.neon.kde.org/snap/parts.yaml
root@snapcraft:/home/ubuntu/neon-work/packaging/kontact# snapcraft update
The parts cache is already up to date.
root@snapcraft:/home/ubuntu/neon-work/packaging/kontact# snapcraft
Cannot find the definition for part 'kde-frameworks-5-dev'.
It may be a remote part, run `snapcraft update` to refresh the remote parts cache.
root@snapcraft:/home/ubuntu/neon-work/packaging/kontact#
Comment 3 Harald Sitter 2017-09-27 07:47:52 UTC
root@snapcraft:/home/ubuntu/neon-work/packaging/kontact# snapcraft update
The parts cache is already up to date.

snapcraft bug
Comment 4 Aleix Pol 2017-09-27 14:52:23 UTC
Here's a bug report and a workaround: https://bugs.launchpad.net/snapcraft/+bug/1719928
Comment 5 Harald Sitter 2018-12-05 15:13:15 UTC
This is getting a bit better with new tech that is forthcoming right now, I am not sure it will entirely solve it.