Snapcraft: arch-specifc snaps on your development machine?

Sergio Schvezov sergio.schvezov at canonical.com
Tue Sep 8 11:06:11 UTC 2015


On Tue, Sep 8, 2015 at 2:20 AM, Michael Nelson <michael.nelson at canonical.com
> wrote:

> On Mon, Sep 7, 2015 at 5:48 PM Mark Shuttleworth <mark at ubuntu.com> wrote:
>
>> On 07/09/15 07:51, Michael Nelson wrote:
>> > So, before I spend too much time on things I'm not very familiar with,
>> is
>> > there something I could do differently above, and/or are there already
>> > plans for snapcraft to make creating snaps on your development machine
>> > easier (and what are they)?
>>
>> I'd be interested in hearing if this works:
>>
>>  * use your snappy SD card on the RPi
>>  * install LXD as a framework snap
>>  * make an Ubuntu machine container (analogous to your chroot-on-AMD64)
>>
>
> Worked so far - but I then needed to relocate while it was downloading,
> and since I don't have byobu/screen on my snappy device, I had to stop the
> download.
>
> I think this is a good solution (and I'll verify it works once home
> again), but should add another reason for asking my original question: I do
> nearly all of my development work on a (well-spec'd) cloud instance, which
> gives me great bandwidth for downloading images and doing builds - all I
> need is an ssh connection. I didn't mention that earlier, as I realise it's
> not necessarily something that everyone wants/needs, but I'd love to be
> able to do create the snap on my dev instance, and then just scp it to my
> local device when ready.
>

The battle for cross compilation with a random set of dependencies using
deb packages and the multi arch story when depending on that needed package
that does not support multiarch is a real pain. Most of the people doing
phone development just gave up and bought an arm based chromebook or use
the target device to build.

We are looking into a nice cross compile story that isn't as fragile for
something so free form (contrary to click chroot for the ubuntu phone which
has a very controlled set of dependencies, and language[s]) and this is not
the upmost priority either.

By the way, semi off/on topic, you can apply to be an alpha tester for
launchpad building of snaps[1].

[1] http://blog.launchpad.net/general/launchpad-news-august-2015


>
>>  * build your snap in there
>>
>> This way, you'd not be switching SD cards, and you don't have to deal
>> with cross-build issues.
>>
>
> Yep, it does sound like a good way forward.
>
> Thanks
>
>
>>
>> Mark
>>
>>
> --
> snappy-app-devel mailing list
> snappy-app-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20150908/40b09493/attachment-0001.html>


More information about the snappy-app-devel mailing list