[Hackage] #805: Configure fails when AvailablePackage source is RepoTarballPackage

#805: Configure fails when AvailablePackage source is RepoTarballPackage ---------------------------------+------------------------------------------ Reporter: dmp | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ I'm having cabal configure will fail with {{{ cabal: internal error: configure install plan should have exactly one local ready package. }}} Checking the source code shows that this error occurs in {{{Configure.hs}}} when failing a pattern match in Configure.hs:88. The value that is coming back from {{{InstallPlan.ready}}} is in fact a list of one element, but it is failing on the {{{LocalUnpackedPackage}}} match. The value returned in my case has the value: {{{ packageSource = RepoTarballPackage (Repo {repoKind = Left (RemoteRepo {remoteRepoName = "hackage.haskell.org", remoteRepoURI = http://hackage.haskell.org/packages/archive}), repoLocalDir = "/Users/dave/.cabal/packages/hackage.haskell.org"}) }}} This is happening for a cabal package which has a dependency on the binary package, but the binary package is not installed. It doesn't happen with all cabal packages, but just perhaps when binary is the only missing dependency. If I first run {{{cabal install binary}}} then the {{{cabal configure}}} will go through just fine. Unregistering the package will again cause {{{cabal configure}}} to fail. {{{ $ cabal --version cabal-install version 0.9.6 using version 1.10.1.0 of the Cabal library $ ~/ghc-7/bin/ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.1.20110217 }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/805 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#805: Configure fails when AvailablePackage source is RepoTarballPackage ---------------------------------+------------------------------------------ Reporter: dmp | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ Comment(by dmp): It looks like this happens for packages that are GHC boot packages, but not install packages. I also had this problem with the terminfo, and haskeline packages. I'm using the RC1 of GHC 7.0.2, so perhaps that is part of the problem. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/805#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#805: Configure fails when AvailablePackage source is RepoTarballPackage ---------------------------------+------------------------------------------ Reporter: dmp | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ Comment(by duncan): I've had another person report this but they could not reproduce it. Are you able to reproduce it consistently? Can you provide details / instructions? Thanks! -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/805#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#805: Configure fails when AvailablePackage source is RepoTarballPackage
---------------------------------+------------------------------------------
Reporter: dmp | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: cabal-install-0.10
Component: cabal-install tool | Version: 1.10.1.0
Severity: normal | Resolution: fixed
Keywords: | Difficulty: unknown
Ghcversion: | Platform:
---------------------------------+------------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
* milestone: => cabal-install-0.10
Comment:
Ok, reproduced it and fixed it. The fix will be in the next cabal-
install-0.10.x release.
As a temporary workaround, use:
{{{
$ cabal install --only-dependencies
$ cabal configure
}}}
{{{
Fri Mar 4 22:13:07 GMT 2011 Duncan Coutts

#805: Configure fails when AvailablePackage source is RepoTarballPackage ---------------------------------+------------------------------------------ Reporter: dmp | Owner: Type: defect | Status: closed Priority: normal | Milestone: cabal-install-0.10 Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ---------------------------------+------------------------------------------ Comment(by elga): * [http://www.releve-identite-operateur.fr/numbero-de-virgin-mobile.html virgin mobile] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/805#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage