Comment 3 for bug 1602258

Revision history for this message
Tim Jester-Pfadt (t-jp) wrote :

"* Snapcraft.yaml will grow an "on <distro>" stanza that will indicate what distribution base is to be used."

Does that mean that snapcraft.yaml becomes distro specific? It would be best to avoid that so that you can run "snapcraft snap" on any snapcraft.yaml on any distro and get the same output. Unfortunately, I see only two ways to achieve that. 1) Add per distro build-packages, stage-packages lists with the right package names used by the distro into the snapcraft.yaml. Problem here is that the yaml file grows very long and nothing guarantees that it covers all distros. 2) Build packages using containers by default. This way you could build a snapcraft.yaml that takes a Fedora base and build it on Ubuntu, by setting up a temporary Fedora container first and the other way around.