Skip to content
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

[WIP] Download dependencies instead of building them #3276

Merged
merged 102 commits into from
Feb 10, 2019

Conversation

Grimler91
Copy link
Member

Continuation of #1169.

It needs testing but works well for a lot of packages.

To (speed)build a package with these changes run ./build-package -i pkg. Dependencies .debs are downloaded with curl and their checksums obtained after the InRelease file has been gpg verified. The bootstraps aren't gpg verified right now though, it might be nice to add a signed list of bootstrap checksums to termux.net/bootstrap/.

If a package can't be found in the repo, or if the local version differs from the repo version, then the local version is built instead.

Doing a -i build removes all installed packages from $PREFIX, to give a fresh environment for the build.

Downloaded .debs are put in _cache-$TERMUX_ARCH. It might be nice to change ./clean.sh so that it doesn't remove these folders unless some option is given.

Stuff left to do:

  • lldb (error due to it using the llvm-config from $PREFIX, I think)

  • ldc (error due to it using the llvm-config from $PREFIX, I think)

  • rust (error due to it using the llvm-config from $PREFIX, I think)

  • libsoup (minor errors)

  • php (minor errors)

  • php (minor errors)

  • all packages haven't been tested yet

  • It only supports the main repo (and Fornwalls signing key) so far

@xeffyr could you try this PR out with travis/gitlab-CI when you have time?

Stephen Groat and others added 30 commits January 25, 2019 20:41
This reverts commit 7668e25134a27e733e8c24a47df2f7456934e586.
Also make it less verbose when building with -q and add some TODO notes
Add error messages when download fails though.
Try to download -dev packages but ignore errors here
Also rename termux_install_dep_deb to termux_download_deb.
Changes needed after termux_download_deb function update
@Grimler91
Copy link
Member Author

So, let's merge this for now and continue fixing packages over time

@Grimler91 Grimler91 merged commit 10714a6 into termux:master Feb 10, 2019
ghost pushed a commit that referenced this pull request Feb 10, 2019
Should be superseded by #3276.
@Grimler91 Grimler91 deleted the fast_build_rebased branch April 1, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants