-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fixes and improvements to scripts for working with cyclic dependencies #20513
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
Draft
Maxython
wants to merge
3
commits into
master
Choose a base branch
from
fix-build-all
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,18 @@ | ||
| termux_step_finish_build() { | ||
| echo "termux - build of '$TERMUX_PKG_NAME' done" | ||
| echo "termux - build of $(test "${TERMUX_VIRTUAL_PKG}" = "true" && echo "virtual ")'$TERMUX_PKG_NAME' done" | ||
| test -t 1 && printf "\033]0;%s - DONE\007" "$TERMUX_PKG_NAME" | ||
|
|
||
| mkdir -p "$TERMUX_BUILT_PACKAGES_DIRECTORY" | ||
| echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/$TERMUX_PKG_NAME" | ||
| if [ "$TERMUX_VIRTUAL_PKG" = "false" ]; then | ||
| echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/$TERMUX_PKG_NAME" | ||
|
|
||
| for subpackage in "$TERMUX_PKG_BUILDER_DIR"/*.subpackage.sh; do | ||
| local subpkg_name="$(basename $subpackage | sed 's@\.subpackage\.sh@@g')" | ||
| echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/${subpkg_name}" | ||
| done | ||
| else | ||
| echo "" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/$TERMUX_PKG_NAME-virtual" | ||
| fi | ||
|
|
||
| for subpackage in "$TERMUX_PKG_BUILDER_DIR"/*.subpackage.sh; do | ||
| local subpkg_name="$(basename $subpackage | sed 's@\.subpackage\.sh@@g')" | ||
| echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/${subpkg_name}" | ||
| done | ||
| exit 0 | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a good idea. If build environment is not clean then the previously built packages will be added to buildstatus by this. That is most likely not what the builder wants.
I.e. if I run:
Then some-other-package foo will be added to buildstatus file, but it will not be in special-build-dir/. I think it is reasonable for build-all.sh to build all packages, and not add extra packages it finds to the buildstatus file.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think preserving the build status file would be very good to keep around as a commandline option.
I've been using that extensively as part of the #21130 build testing.
./build-all.sh${pkgname}.log, add it manually to the end ofbuildstatus.txtto skip itThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example I absolutely agree with.
I've had to do a couple spot checks for individual packages out of order.
Running something like
./build-package.sh coreutilsshould not add to thebuildstatus.txtfile.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check allows you to check if other packages have been compiled while other packages are being compiled. This mostly happens with package dependencies that have a circular dependency with the package. Thanks to this check,
build-all.shavoids recompiling the package.Thanks for noting.
I think that in the scriptI'll think about how to solve this.build-all.shI need to add the process of cleaning the environment (i.e. running the scriptclean.sh) before compiling all the packages.