• kristenk's avatar
    Solver: Enforce dependencies on libraries (fixes #779). · 6efb5e23
    kristenk authored
    This commit generalizes the fix for issue #4781
    (e86f8389) by tracking dependencies on
    components instead of dependencies on executables.  That means that the solver
    always checks whether a package contains a library before using it to satisfy a
    build-depends dependency.  If a version of a package doesn't contain a library,
    the solver can try other versions.  Associating each dependency with a component
    also moves towards the design for component-based dependency solving described
    in issue #4087.
Validate.hs 24.8 KB