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

Musl builds broken on readonly filesystems #155

Open
rushmorem opened this issue Sep 4, 2022 · 1 comment
Open

Musl builds broken on readonly filesystems #155

rushmorem opened this issue Sep 4, 2022 · 1 comment

Comments

@rushmorem
Copy link

Compiling using the Nix package manager on musl panics:-

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', /nix/store/3bcpw5cb4pibbj8hc1z21m5i9rxa9s3r-crates-io/openssl-src-111.22.0+1.1.1q/src/lib.rs:547:26

This is because of

fs::write(path, buf).unwrap();

which tries to overwrite crypto/rand/rand_unix.c. Nix mounts /nix/store readonly.

@rushmorem
Copy link
Author

I worked around this by setting OPENSSL_NO_VENDOR to skip this crate.

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

No branches or pull requests

1 participant