Our buildsystem outputs distro-independent tarballs which are then used as input for a packaging build that create distro-specific packages (deb, rpm, etc.). Our tarballs (apart from libc6) are self-contained, i.e. all SOs are shipped and RPATHs are set correctly. We are adding snap creation to this setup but I’m running into problems while creating the armhf and arm64 packages.
We are running snapcraft in a 16.04-based docker container and building the x86 and amd64 snaps works fine. However, during both armhf and arm64 building we get the following error:
Could not find a required package in 'build-packages': libc6-dev-armhf-cross
Then I try to add it:
parts:
mypart:
stage-packages: [libc6]
build-packages:
- to armhf: [libc6-dev-armhf-cross]
Now the error becomes:
Could not find a required package in 'build-packages': libc6-dev-armhf-cross:armhf
We are calling snapcraft as snapcraft --target-arch=armhf
. I was under the impression that this package would be automatically added to build-packages, but even adding it explicitly fails in a weird way. What’s the solution here? Can we avoid dev packages completely? We don’t use snapcraft to “build” the application (nor want to), we are just using the dump plugin, so we shouldn’t need these (unless I’m missing something). Thanks for any input.