Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upadd option to disable rewriting of install paths #25
Conversation
rust-highfive
assigned
brson
Mar 2, 2015
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Mar 2, 2015
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
jmesmon
force-pushed the
jmesmon:rewrite-disable-2
branch
from
b32e3dd
to
1e98e53
Mar 2, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks. I appreciate that you are trying to get directory customization sorted out. Some comments
This is not the case with the current Rust and Cargo codebases - they generate a layout that looks like a typical unix layout and it's up to the installer to map that to the desired final locations.
You are saying that if --libdir is a subdirectory of the destination 'lib' directory there's a problem? Perhaps this case can be detected and handled differently? Is there an issue in rust-lang/rust that you are fixing? |
This comment has been minimized.
This comment has been minimized.
I suppose a bit of background is helpful: I've got some patches I've been working on that allow the use of arbitrary bin-dir and lib-dirs for rustc. This is one of the changes I need for them to work properly, and is fairly independent. Now onto specifics:
rustc currently allows a customized (to some extent) libdir, and the make system is set up to drop files into it while building (that said, there are a few pieces that assume 'lib' is used).
There is a problem with the current code, which this PR allows users of this module to avoid in specific cases. Here's an example (assuming rustc has support for arbitrary libdirs, which it doesn't (yet)):
Make install results in calling the generated installer the CFG_LIBDIR set to lib/arm-poky-linux-gnueabi (or an absolute path, not too important to me here), but the rust build has already created it's libs inside of the full |
This comment has been minimized.
This comment has been minimized.
|
Sorry for taking so long on this. |
This comment has been minimized.
This comment has been minimized.
|
I'd like to note that gentoo's ebuilds appear to be carrying a patch to work around the lack of an option here: https://github.com/Heather/gentoo-rust/blob/master/dev-lang/rust/files/rust-1.1.0-install.patch |
This comment has been minimized.
This comment has been minimized.
|
I completely lost track of this. I'm making myself a note to revisit as part of https://internals.rust-lang.org/t/perfecting-rust-packaging/2623/56 |
This comment has been minimized.
This comment has been minimized.
|
I believe the original purpose of this PR has been resolved by rust-lang/rust#29878 |
This comment has been minimized.
This comment has been minimized.
|
I'm going to close this but if this is still needed (and not yet resolved) then feel free to rebase and reopen. |
jmesmon commentedMar 2, 2015
This is intended for use by rust & cargo's
make install, as in thatcase:
cases (ie: libdir=lib/foo)