Repository navigation
Compute correct install directories for instantiated Backpack components - #6317
Merged
Merged
Conversation
Signed-off-by: Edward Z. Yang <[email protected]>
Previously, we would compute elabInstallDirs once when configuring a component, and then reuse the exactly same install directories for every instantiation of the package. But this is wrong, since we're installing the header/object files for each instantiation to a different directory. We refactor install directory computation into a helper function and then call it again at instantiation time to refresh the install directories. For some reason, this bug ONLY manifests for packages installed from Hackage; it seems install dirs are not respected for inplace packages. Fixes haskell#6005 Signed-off-by: Edward Z. Yang <[email protected]>
Contributor
Author
|
cc @vmchale |
Signed-off-by: Edward Z. Yang <[email protected]>
Contributor
|
Thanks for working on a fix for this! I've tried it out in a fresh container by cloning the branch, installing ghc-8.6.5, and running the bootstrap script to install cabal, and I get a different error than I used to. Here's the build log: It's entirely possible that I messed up installing cabal. I've not installed cabal from github before, and I may have goofed. |
Contributor
Author
|
@andrewthad oh, that's an interesting error. Does it happen if your Backpack packages are all inplace? (Is this the repro instructions from the original issue?) |
Contributor
|
Sorry, I didn't follow my own instructions. With: It succeeds. Hooray! |
Contributor
Author
|
I need to version guard the test but it looks like everything else is good. |
Member
Contributor
Author
|
Thanks @hvr! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6005