scons support and some general questions

Bastien Nocera hadess at hadess.net
Wed Feb 26 16:00:16 UTC 2020


On Wed, 2020-02-26 at 16:41 +0100, Julius Ziegler wrote:
<snip>
> My more general question is this: I understand that to build a
> flatpak,
> we are building a sandbox virtual machine which contains the
> software,
> a base runtime and additional dependencies.
> 
> Now, looking at the above (failed) approach for scons, it looks to me
> that we do not only have to build this "runtime" sandbox, but also a
> "build-time" sandbox, which has also all requirements for _building_
> the software (scons is not required for _running_ the software, and
> the
> same will apply to many "-dev" packages, but I did not even get that
> far).

You're supposed to build everything you need to build your software,
and clean up to remove the unneeded build tools and development
headers. This is how intltool is used for example.

A number of folks already built software using scons:
https://github.com/search?q=org%3Aflathub+scons&type=Code

And if enough people do, it'll probably end up being a shared module
that someone can contribute:
https://github.com/flathub/shared-modules

> Is that the case? How do I get something (like a debian style -dev
> package, or the python interpreter, as in the above example) into the
> build-sandbox?
> 
> Sorry for these maybe to basic questions, any pointer is appreciated!
> 



More information about the Flatpak mailing list