Architecture-specific settings for snapcraft parts

Sergio Schvezov sergio.schvezov at canonical.com
Sun Apr 9 14:12:35 UTC 2017


On Sun, Apr 9, 2017 at 5:12 AM, Joseph Rushton Wakeling <
joseph.wakeling at webdrake.net> wrote:

> On 03/04/17 21:18, Joseph Rushton Wakeling wrote:
>
>> Recently I tried some ARM builds of the LDC snap package, and came across
>> some
>> issues where one of the custom C flags used were not supported:
>> https://launchpadlibrarian.net/313662608/buildlog_snap_ubunt
>> u_xenial_armhf_ldc2_BUILDING.txt.gz
>>
>> Is there any way to customize the settings for parts according to
>> architecture?
>> In this case I'm looking to customize the cmake configflags.
>>
>
> I wonder if I might ping on the above question?  I actually have two
> use-cases:
>
>   * different `configflags` for the cmake plugin depending on the
> architecture;
>
>   * a different `source:` field for a plugin that downloads a prebuilt
> binary
>     used in the build process (I obviously need a different binary for i386
>     versus amd64 builds).
>

We have a grammar engine for stage-packages in place which I wish to
propose to extend every key attribute in snapcraft.



More information about the Snapcraft mailing list