
#431: Distribution.Make requires to use sudo and --global ----------------------------+----------------------------------------------- Reporter: shelarcy | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: wxHaskell Difficulty: normal | Ghcversion: 6.10.1 Platform: | ----------------------------+----------------------------------------------- wxHaskell is heavily depends on self generated file. So, wxHaskell uses Distribution.Make to cabalize wxcore package now. But it causes trouble when using cabal command to install wxHaskell (wx and wxcore) from Hackage. Distribution.Make and cabal don't path any package databases options to configure script. So, we can't install wxHaskell (wx package) straightforward way. We must use following horrible command. {{{ sudo cabal install wxcore --global cabal install wx }}} See [http://sourceforge.net/tracker/index.php?func=detail&aid=2407551&group_id=73133&atid=536845 wxHaskell's bug tracker #2407551] and [http://www.mail-archive.com /wxhaskell-devel@lists.sourceforge.net/msg00319.html wxhaskell-devel's thread]. Note: I tried to fix this problem by Custom Setup.lhs and Distribution.Make.WX. Attached file is that. But I can't get any package database information from Cabal and cabal. I checked configPackageDB flag's value by using unsafePerformIO. {{{ optPackageDB = unsafePerformIO (print (configPackageDB flag) >> return []) }}} It always shows just NoFlag. Neither supplying package database option and cabal command affect that. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/431 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects