New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building without network access #3412
Comments
The needed dependencies depend on the target platform. If this is desirable for you I suggest having the system that downloads the code in the first place also download the dependencies before pushing it to your build server. |
FYI, it's not necessary to download ASIO during the build process. |
First, set this option:
This will make sure none of the FetchContent calls do any network access. You can then specify every dependency similar to how it's done in this Linux distribution: There is no better way at the moment. |
While I'm interested in particular platform it does not change the fact that I believe all sources which cannot be satisfied by system library should be included in source release. So I wouldn't mind including SDL2 in a source tarball because Android needs it. Not up to me though. Thanks for the tips with FETCHCONTENT_* vars -- I will start maintaining dependencies manually. |
Including them in git will affect performance during development, if you develop a script for generating a full tarball you are welcome to open a PR with it. It's worth noting that we do checksum validation on dependencies so reproducible builds are assured as the build will fail if they change. |
- prepare dependencies manually since otherwise they are fetched over network (also see diasurgical/devilutionX#3412) - updatream patch for using system SDL2_image (from diasurgical/devilutionX#3386) - patch to avoid static linking of libstdc++
@jpalus DevilutionX now provides a full source tarball that includes all the |
For distribution packaged software it is desirable to do compilation in an isolated environment without network access (reproducible builds, no risk of downloading malicious code etc). In latest devilutionx version (1.3.0) that is no longer possible since ie asio must be downloaded. Therefore would it be possible to provide "full" source tarball as a part of release including all dependencies that are otherwise downloaded?
The text was updated successfully, but these errors were encountered: