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

Build fails on nix-on-droid #734

Closed
bemyak opened this issue Nov 8, 2024 · 4 comments · Fixed by #737
Closed

Build fails on nix-on-droid #734

bemyak opened this issue Nov 8, 2024 · 4 comments · Fixed by #737
Labels
bug Something isn't working

Comments

@bemyak
Copy link

bemyak commented Nov 8, 2024

Describe the bug

I'm trying to build a package inside a nix-on-droid environment, but the build fails on the installation phase:

Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
searching for bins/libs to install from cargo build log at cargoBuildLog3y5q.json
installing /tmp/nix-build-zola-new-0.1.6.drv-0/source/target/release/zola-new
searching for bins/libs complete
stripping references to cargoVendorDir from:
tee: /dev/fd/3: Permission denied

(the origin is here I believe)

Seems like it's not allowed to write to /dev/fd/3 on Android. Can this be avoided somehow?

I realize that it's a pretty niche use case, but it would be so cool to get it working 🙂

Reproduction

  1. Install nix-on-droid
  2. Try to build any rust package (I'm building https://gitlab.com/bemyak/zola-new)

(NB: The process takes hours because of how proot is slow)

@bemyak bemyak added the bug Something isn't working label Nov 8, 2024
@dpc
Copy link
Contributor

dpc commented Nov 8, 2024

This might be something to report to nix-on-droid. Accessing fd 3 is rather ... common and uncontroversial and used by all sorts of software.

@bemyak
Copy link
Author

bemyak commented Nov 8, 2024

Thanks! I've created this issue: nix-community/nix-on-droid#423

@ipetkov
Copy link
Owner

ipetkov commented Nov 8, 2024

Hi @bemyak thanks for the report! It was pretty easy to avoid referencing /dev/fd directly (in favor of cat with a redirection) so this should be fixed with #737

@bemyak
Copy link
Author

bemyak commented Nov 8, 2024

It works now, thanks a lot 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants