You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the cabal-install solver multilibs-aware #6039
The Cabal part is done, but cabal-install's solver is not aware of the multiple public libraries feature yet, leading to late errors and issues like #6038
I think this would be pretty straightforward, at least for source packages, because it could be implemented similarly to enforcing build tool dependencies. The visibility field could probably be implemented similarly to the current handling of unbuildable components. I have a few questions about how visibility should behave, though.
Should the solver just check the visibility fields in Library and InstalledPackageInfo? Can the main library be private?
There may be an issue with enforcing visibility for installed packages, because there is a hack where the solver treats installed internal libraries as separate packages with munged names (
@fgaz Thanks. I made a PR (#6047), but it only checks the visibility of source packages so far. It reads the libVisibility field for all libraries, though I can easily change it to only check sub-libraries if that is the correct behavior.
Activity
23Skidoo commentedon May 7, 2019
/cc @GrayJay @kosmikus -- How hard do you think this would be to implement?
sebright commentedon May 10, 2019
I think this would be pretty straightforward, at least for source packages, because it could be implemented similarly to enforcing build tool dependencies. The visibility field could probably be implemented similarly to the current handling of unbuildable components. I have a few questions about how visibility should behave, though.
LibraryandInstalledPackageInfo? Can the main library be private?There may be an issue with enforcing visibility for installed packages, because there is a hack where the solver treats installed internal libraries as separate packages with munged names (
cabal/cabal-install/Distribution/Solver/Modular/IndexConversion.hs
Lines 106 to 131 in 5f57d4d
fgaz commentedon May 10, 2019
Yes. In #5848 we're talking about disabling it at the syntax level, but internally it's still used
Yes and no, but I'll have to check the second one.
Solver: Support dependencies on sub-libraries (issue haskell#6039).
Add solver unit tests for sub-library dependencies (issue haskell#6039).
sebright commentedon May 13, 2019
@fgaz Thanks. I made a PR (#6047), but it only checks the visibility of source packages so far. It reads the libVisibility field for all libraries, though I can easily change it to only check sub-libraries if that is the correct behavior.
Solver: Support dependencies on sub-libraries (issue haskell#6039).
Add solver unit tests for sub-library dependencies (issue haskell#6039).
Solver: Support dependencies on sub-libraries (issue haskell#6039).
Add solver unit tests for sub-library dependencies (issue haskell#6039).
Add solver unit tests for sub-library dependencies (issue haskell#6039).
Add solver unit tests for sub-library dependencies (issue haskell#6039).
95 remaining items
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
Group installed packages
cabal-install-solver: remove private lib munging from solver
shellFor: take derivations in `tools`, so v1 shells can use haskell.n…