Closed
Description
I've found what could be the reason why rustpkg does not work on my system that I've reported in the comments to: http://tim.dreamwidth.org/1820526.html
[pid 25620] stat("/home/dpc/lab/rust/.rust/src/github.com/steveklabnik", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 25620] rename("/tmp/jYDYGA3OTuHfMQwLrustpkg/rustpkg_temp", "/home/dpc/lab/rust/.rust/src/github.com/steveklabnik/hello") = -1 EXDEV (Invalid cross-device link)
[pid 25620] write(2, "task <unnamed> failed at 'Unhand"..., 381task <unnamed> failed at 'Unhandled condition: nonexistent_package: (package_id::PkgId{path: std::path::PosixPath{is_absolute: false, components: ~[~"github.com", ~"steveklabnik", ~"hello"]}, short_name: ~"hello", version: NoVersion}, ~"supplied path for package dir does not exist, and couldn't interpret it as a URL fragment")', /home/dpc/opt/src/rust/src/libstd/condition.rs:131) = 381
Activity
huonw commentedon Oct 16, 2013
cc @catamorphism, seems similar to/the same as #9781.
dpc commentedon Oct 16, 2013
BTW. My attempt to fix the issue:
Does not work neither. It seems I'm getting empty file (size == 0).
dpc commentedon Oct 19, 2013
This works, so it confirms the problem is using rename to move files between filesystems. This will not work with every system that has /tmp mounted eg. as ramfs.
catamorphism commentedon Oct 19, 2013
Thanks for the update, @dpc -- another workaround is to set
TMPDIR
in the environment to something under your/home
.dpc commentedon Oct 19, 2013
@catamorphism: Ah! Yes, I forgot about this.
ATM, I'm looking for why did copy_file fail. Am I right, that it should just work?
dpc commentedon Oct 19, 2013
OK. I've figured it out. #9947 . Now that puzzle is solved, I might happily enjoy
rustpkg
command. :)derekchiang commentedon Jan 27, 2014
I see two ways to resolve this issue:
./.rust/tmp
as the temporary directory by default.Thoughts?
derekchiang commentedon Jan 27, 2014
Also, this actually is a
libuv
issue. The same error can be reproduced with Node, as described here.alexcrichton commentedon Feb 5, 2014
Closing, rustpkg was removed.
Auto merge of rust-lang#10141 - FoseFx:fosefx/9887, r=Jarcho