[Hackage] #812: setup.exe: internal error: unexpected package db stack: [UserPackageDB]

Hackage cvs-ghc at haskell.org
Fri Mar 11 15:35:03 CET 2011


#812: setup.exe: internal error: unexpected package db stack: [UserPackageDB]
---------------------------------+------------------------------------------
  Reporter:  fryguybob           |        Owner:          
      Type:  defect              |       Status:  closed  
  Priority:  normal              |    Milestone:          
 Component:  cabal-install tool  |      Version:  1.10.0.0
  Severity:  normal              |   Resolution:  invalid 
  Keywords:                      |   Difficulty:  unknown 
Ghcversion:                      |     Platform:  Windows 
---------------------------------+------------------------------------------
Changes (by fryguybob):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 If I change Gtk2hsSetup.hs from:

 {{{
 #!hs
 #if CABAL_VERSION_CHECK(1,10,0)
                                     installedPkgInfo pkg lbi inplace
 [packageDb]
 #else
                                     installedPkgInfo pkg lbi inplace
 packageDb
 #endif
 }}}

 to

 {{{
 #!hs
 #if CABAL_VERSION_CHECK(1,10,0)
                                     installedPkgInfo pkg lbi inplace
 (withPackageDB lbi)
 #else
                                     installedPkgInfo pkg lbi inplace
 packageDb
 #endif
 }}}

 It registers correctly.  The packageDb here is defined as:

 {{{
 #!hs
     packageDb = case flagToMaybe (regPackageDB regFlags) of
                     Just db -> db
                     Nothing -> registrationPackageDB (withPackageDB lbi)
 }}}

 In Distribution\Simple\Register.hs it has:
 {{{
 #!hs
     -- FIXME: there's really no guarantee this will work.
     -- registering into a totally different db stack can
     -- fail if dependencies cannot be satisfied.
     packageDbs = nub $ withPackageDB lbi
                     ++ maybeToList (flagToMaybe  (regPackageDB regFlags))
 }}}

 Anyway, it appears that the issue is with Gtk2HsSetup.hs and I will close
 this and add to a related ticket there
 (http://hackage.haskell.org/trac/gtk2hs/ticket/1203).

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/812#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list