#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         |   Resolution:         
  Keywords:  wxHaskell      |   Difficulty:  normal 
Ghcversion:  6.10.1         |     Platform:         
----------------------------+-----------------------------------------------
Comment (by duncan):

 So the proper solution seems to be to tell configure which package db
 file(s) to read from and which package db to register into.

 Ideally we would require that the makefile can spit out a package
 registration file. In fact that's really necessary for a cabalised package
 to work for a distro since it needs to run `runghc Setup register --gen-
 pkg-config=foo.pkg`.

 So the details to sort out are exactly how to tell configure what package
 dbs to read from and which one to register into. We could do this perhaps
 using a ghc-pkg flags variable which we would set to something like
 `--user` or `--package-conf`. I guess the same flags should work for the
 register make target though I would prefer a method that produces the
 package registration info as output rather than actually doing the
 registration.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/431#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to