Building for different architectures

Sergio Schvezov sergio.schvezov at canonical.com
Tue Feb 7 16:33:36 UTC 2017


On Tue, Feb 7, 2017 at 1:07 PM, Alan Pope <alan.pope at canonical.com> wrote:

> Hi,
>
> Suppose I have a snap which requires a couple of non-archive debs as
> stage packages. Typically I'd have a part for each which uses the
> source: of a url directly to the deb using the dump plugin. This works
> fine building on my amd64 laptop (or wherever) and I end up with an
> amd64 snap.
>
> However, if I get a request for an i386 (or indeed armhf) snap, it
> will break because my i386 snapcraft run will pull an amd64 deb. If I
> was pulling archive packages then of course the build can run in
> launchpad and it will do the Right Thing. However, if my yaml contains
> hard coded arch-specific (non-archive) debs, that breaks, pulling in
> amd64 deb on an i386 builder.
>
> I could have separate yamls per arch of course, but that seems
> needlessly messy. What have others done in this case?
>

I am wanting to support the new stage-packages grammar for sources as well
(still not agreed upon though).

Take a look at https://github.com/snapcore/snapcraft/pull/1059 for how it
would look like
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170207/98c5b771/attachment.html>


More information about the Snapcraft mailing list