subutai-io / snap

Required files to build SS snap package using snapcraft tool
1 stars 8 forks source link

Execute configure script before running make on p2p #228

Open crioto opened 6 years ago

crioto commented 6 years ago

Before building p2p we need to configure it. For this reason configure shell script needs to be executed, which generates config.make file used by Makefile. configure accepts two parameters:

lbthomsen commented 6 years ago

Well yes :) I am not sure what the issue is though?

crioto commented 6 years ago

It's an enhancement for snapcraft.

lbthomsen commented 6 years ago

Well - if you switch the plugin to "autotools" it will run ./configure ; make ; make install so that ought to work. You can also specify customized ./configure parameters (see btrfs in the snapcraft.yaml.template)

crioto commented 6 years ago

So basically to make this work I need to modify this snapcraft.yaml.template? And what about docker image for tests? It is possible to use it?

lbthomsen commented 6 years ago

Yeah I just tested that - it should work as described at: https://github.com/lbthomsen/docker-snapcraft

If you're using Ubuntu just install snapcraft - that's better (certainly faster) but on an unsupported system the docker-snapcraft should work.

Simply - in your "snap" checkout run ./configure and then snapcraft (using script that call docker).