-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix installing into --libdir other than .../lib #22831
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
Conversation
Currently, --libdir path rewriting happens twice: 1. 'prepare' make target places files into file tree and builds tarball 2. rust-installer copies from tarball paths into final filesystem *Both* these steps are attempting to handle --libdir. The installer assumes lib paths are 'lib/' (the default) and when they aren't you can end up with duplicated $(LIBDIR_RELATIVE)/$(LIBDIR_RELATIVE)/ paths. This patch addresses this by making step (1) always install into lib/ and performing --libdir handling only during step (2).
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @brson I haven't touched this in awhile... |
Yes, I should review this! |
@brson (bump) |
Another bump |
I've been willfully ignoring this PR because the ramifications around handling libdir in Rust are more complex than I want to think about. I'm very sorry. Some observations:
So I'd say the way I'd want to move forward on this is:
|
Ah, hm. The reason this may leave the custom heirarchy around for the build is probably because we use |
Closing due to inactivity, but feel free to reopen with comments addressed! |
Currently, --libdir path rewriting happens twice:
Both these steps are attempting to handle --libdir. The installer assumes$(LIBDIR_RELATIVE)/$ (LIBDIR_RELATIVE)/ paths.
lib paths are 'lib/' (the default) and when they aren't you can end up with
duplicated
This patch addresses this by making step (1) always install into lib/ and
performing --libdir handling only during step (2).