Skip to content

Solver backjumps too far when linked packages have different flag assignments #2834

Closed

Description

@sebright

I wrote a test case that reproduces the problem: sebright@14e9d32 The solver doesn't find a solution.

The type D.C.Dependency.Modular.Dependency.Var can represent a flag variable. When Var is used in a conflict set, the name of the flag is usually simplified to "flag" to simplify the logic dealing with dependencies between flags. However, when a flag choice causes a linked dependency to have an inconsistent flag value, the solver creates a conflict set containing non-simplified Vars. The mismatch in flag names prevents the solver from finding the flag variables in the conflict set during backjumping. It backtracks past those variables, skipping the other possible flag assignments.

I'm interested in working on this. Does it make sense to create a SimpleVar type that does not contain the flag name and is only used in conflict sets?

Activity

  1. 23Skidoo commented on Sep 23, 2015

    @23Skidoo
    Member
  2. kosmikus commented on Oct 12, 2015

    @kosmikus
    Contributor

    /cc @edsko

  3. self-assigned this
    on Mar 5, 2016
  4. kosmikus commented on Mar 5, 2016

    @kosmikus
    Contributor

    Also going to try to look at this.

  5. edsko commented on Mar 19, 2016

    @edsko
    Contributor

    I'm going to take a look at this now.

  6. sebright commented on Apr 23, 2016

    @sebright
    CollaboratorAuthor

    Fixed by #3357.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions