Commit bf54fac5 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Don't solve for executables in legacy install codepath.

In 9e99b3f4

 I turned of executable
solving for legacy configure, but I forgot to turn it off for legacy
install too, which lead to assertion failures.

Fixes #3912.
Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent aac2b352
......@@ -107,6 +107,7 @@ import Distribution.Client.JobControl
import qualified Distribution.Solver.Types.ComponentDeps as CD
import Distribution.Solver.Types.ConstraintSource
import Distribution.Solver.Types.Settings
import Distribution.Solver.Types.LabeledPackageConstraint
import Distribution.Solver.Types.OptionalStanza
import qualified Distribution.Solver.Types.PackageIndex as SourcePackageIndex
......@@ -423,6 +424,10 @@ planPackages comp platform mSandboxPkgInfo solver
. (if reinstall then reinstallTargets else id)
-- Don't solve for executables, the legacy install codepath
-- doesn't understand how to install them
. setSolveExecutables (SolveExecutables False)
$ standardInstallPolicy
installedPkgIndex sourcePkgDb pkgSpecifiers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment