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
Warp fails to install on OpenBSD #428
Comments
Does it work if you add "-f -allow-sendfilefd" to the cabal command-line? That should force it not to use |
No, that doesn't change anything. |
Ah, FdCache.hs imports it unconditionally, so you'd need to add hashable to the build-depends (outside the part that's conditional on allow-sendfilefd) -- what you did before was presumably adding it to the whitelist of OSes that support sendfile. For a real fix, we should probably move the hashable build-depends entry to everything but Windows (since the whole file is stubbed out to be a no-op on Windows). |
Yes, adding hashable to the build-depends outside the conditional lets it install, but the resulting library can't be used. I don't know if this linking problem is related or a separate issue.
|
Oh, the cabal file gives a hint there: it builds MultiMap only if we're using sendfile, but FdCache also uses MultiMap. Try moving the MultiMap "Other-modules" line to the same place as the hashable dependency. |
I hope the patch above solves the problem. |
I would like to close this. Please reopen if necessary. |
Adding OpenBSD to the list of operating systems that should include Hashable in the cabal file doesn't work because OpenBSD does not have
sendfile()
.The text was updated successfully, but these errors were encountered: