Repository navigation
androidenv.cmake: use patchelf 0.15.2 to fix bundled ninja - #577949
Merged
Merged
Conversation
Assisted-by: OpenCode 2 (DeepSeek V4.1 Flash Free)
Contributor
Author
|
|
Contributor
Author
Beforesdk=$(cat <<'EOF' | nix build --no-link --print-out-paths --impure -f - | sed -n '1p'
let
flake = builtins.getFlake "github:NixOS/nixpkgs/master";
pkgs = import flake.outPath {
system = "x86_64-linux";
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
};
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [];
cmakeVersions = [ "3.22.1" ];
platformVersions = [];
ndkVersions = [];
};
in
androidComposition.androidsdk
EOF
)
"$sdk/libexec/android-sdk/cmake/3.22.1/bin/ninja" --versionFails with segfault. Aftersdk=$(cat <<'EOF' | nix build --no-link --print-out-paths --impure -f - | sed -n '1p'
let
flake = builtins.getFlake "github:NixOS/nixpkgs/pull/577949/head";
pkgs = import flake.outPath {
system = "x86_64-linux";
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
};
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [];
cmakeVersions = [ "3.22.1" ];
platformVersions = [];
ndkVersions = [];
};
in
androidComposition.androidsdk
EOF
)
"$sdk/libexec/android-sdk/cmake/3.22.1/bin/ninja" --versionPrints |
✅
|
7 tasks
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
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.
A couple days ago, an automated job I run to ensure that Nixpkgs' flutter can build an example flutter project started failing (see https://github.com/limwa/nix-registry/actions/runs/39950983412/job/120405086177).
The job fails when executing
ninja --version, with a SEGFAULT. This appears to be related to dcd39b0. A tracking issue for related failures is available at #577387. Follows the pattern in #574271.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.