-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit 7668e25134a27e733e8c24a47df2f7456934e586.
Fix syntax in if expressions.
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
…on termux_step_get_repo_files
When downloading depencencies
Only download $TERMUX_PKG_DEPENDS and $TERMUX_PKG_BUILD_DEPENDS (and their -dev packages, if they exist), not their dependencies.
Catch error if termux_download_deb fails
…t not ends with) -dev As for icu-devtools
Also use `-s -i` for dependencies that have to be built
This reverts commit eb85a5b.
This reverts commit f55b366.
This reverts commit 865db6d.
Now gpg key retrieving is more reliable.
Makes utility "debdiff" available.
ghost
mentioned this pull request
Jan 30, 2019
Can be used in bintray upload script to extract pkg version
Only thing left to fix is so that it finds build scripts outside of packages/.
So, let's merge this for now and continue fixing packages over time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?