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

no way to install cargo when built with cargo #2564

Closed
rkitover opened this issue Apr 12, 2016 · 6 comments
Closed

no way to install cargo when built with cargo #2564

rkitover opened this issue Apr 12, 2016 · 6 comments

Comments

@rkitover
Copy link

If you build cargo with cargo build --release, then there is no mechanism to install it on the system.

Running ./configure && make install is not really an option because that tries to download a snapshot, and there may not be a snapshot and/or downloading it may be undesirable in a package build situation.

@alexcrichton
Copy link
Member

There's a ./configure --local-cargo=/path/to/cargo which doesn't download a snapshot, does that suffice?

@rkitover
Copy link
Author

This would be perfect, but there seems to be a problem, when I do a gmake install I get:

sh: /home/rkitover/src/cargo//src/rust-installer/gen-installer.sh: No such file or directory
Makefile:320: recipe for target 'target/x86_64-unknown-openbsd/release/dist/cargo-0.10.0-x86_64-unknown-openbsd.tar.gz' failed
gmake: *** [target/x86_64-unknown-openbsd/release/dist/cargo-0.10.0-x86_64-unknown-openbsd.tar.gz] Error 1

@alexcrichton
Copy link
Member

Oh the src/rust-installer directory is actually a submodule and the configure script doesn't currently check it out just yet, so if you run git submodule update --init head of time, does that fix it?

@rkitover
Copy link
Author

Yes this works fine, thank you. However, there are no tags for rust-installer and therefore no github tarballs of it, which is also a problem for packaging, because you cannot download things during a build.

Could you please make a tag for rust-installer?

@alexcrichton
Copy link
Member

cc @brson

@alexcrichton
Copy link
Member

Ok, closing in favor of rust-lang/rust-installer#45

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