Bug 385062

Summary: Cannot build snaps locally
Product: [KDE Neon] neon Reporter: Aleix Pol <aleixpol>
Component: SnapsAssignee: Harald Sitter <sitter>
Status: RESOLVED LATER    
Severity: normal CC: jr, neon-bugs, sgmoore, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.