-
Notifications
You must be signed in to change notification settings - Fork 696
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
Compute correct install directories for instantiated Backpack components #6317
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]>
cc @vmchale |
Signed-off-by: Edward Z. Yang <[email protected]>
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. |
@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?) |
Sorry, I didn't follow my own instructions. With:
It succeeds. Hooray! |
I need to version guard the test but it looks like everything else is good. |
Thanks @hvr! |
Fixes #6005