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

Bump cbindgen to 0.9.0 #193

Closed
nbp opened this issue Jul 23, 2019 · 2 comments
Closed

Bump cbindgen to 0.9.0 #193

nbp opened this issue Jul 23, 2019 · 2 comments

Comments

@nbp
Copy link
Collaborator

nbp commented Jul 23, 2019

Today, while trying to bump cbindgen to 0.9.0, I noticed the following issue:

these derivations will be built:
  /nix/store/47g9fcw1k66kzl29d4dvibq2jw4gd5ck-rust-cbindgen-0.9.0.drv
building '/nix/store/47g9fcw1k66kzl29d4dvibq2jw4gd5ck-rust-cbindgen-0.9.0.drv'...
unpacking sources
unpacking source archive /nix/store/bh97sc86a2x5yl8v66rfjk8g78bs53li-source
source root is source
unpacking source archive /nix/store/bm16vcmnpfw6yg697r2wz1kfjc58zxlp-rust-cbindgen-0.9.0-vendor
patching sources
configuring
[target."x86_64-unknown-linux-gnu"]
"linker" = "/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/cc"

building
++ env CC_x86_64-unknown-linux-gnu=/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/c++ cargo build --release --target x86_64-unknown-linux-gnu --frozen
error: failed to acquire package cache lock

Caused by:
  failed to open: /homeless-shelter/.cargo/.package-cache

Caused by:
  Permission denied (os error 13)

This sounds similar to rust-lang/cargo#6928

@nbp
Copy link
Collaborator Author

nbp commented Jul 23, 2019

Taken from NixOS/nixpkgs#61618 , this issue can be worked-around by adding:

  preConfigure = ''
    export HOME=`mktemp -d`
    mkdir -p $HOME/.cargo/
    touch $HOME/.cargo/.package-cache
  '';

@nbp
Copy link
Collaborator Author

nbp commented Jul 23, 2019

This should be fixed by #194 .

@glasserc glasserc closed this as completed Sep 4, 2019
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

2 participants