[Hackage] #376: Allow constraint on using installed package versions

#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: | ---------------------------------+------------------------------------------ We allow command line args for adding version constraints. Internally the dependency resolver can use constraints on the installed status. We should allow such constraints to be given on the command line, and possibly in the cabal config file. We should probably also allow preferences to be given on the command line too. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by Peaker): The wxcore package currently has a bug that prohibits it from being installed user-locally. This forced me to install it system-wide. However, this means that it is built with only system-wide packages available as dependencies. When I want to install another package that depends on wxcore that is not system-wide, it thinks it should rebuild wxcore to make use of the better dependencies, and fails. In order to avoid this problem, I had to manually purge wxcore from cabal's cache/listing. It would be nice if I could ask cabal to use an already installed package rather than replace it, somehow. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): The root problem with wxcore is that the dependencies it ends up registering with ghc-pkg are almost unrelated to those stated in the .cabal file. So when cabal-install makes its install plan it picks deps that are different from the deps it's installed with already and so it has to rebuild it. Perhaps as a diagnostic for the custom build type, cabal should check that the registered package is actually consistent with the info in the .cabal file. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

Perhaps as a diagnostic for the custom build type, cabal should check
#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): Replying to [comment:2 duncan]: that the registered package is actually consistent with the info in the .cabal file. Note that this would frequently flag up packages built using franchise because it does not believe in specifying package deps. Rather it beleives in discovering required modules and at configure time discovering which packages provide those modules. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): This is now supported internally. We just need a way to pass the constraints in via the command line interface. I'm thinking of using: {{{ cabal install foo --constraint="bar installed" }}} which mirrors the existing: {{{ cabal install foo --constraint="bar >= 1.2" }}} and similarly we could add flags constraints for particular packages: {{{ cabal install foo --constraint="bar +gtk -vty" }}} but perhaps flags want a different approach. Suggestions welcome. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#376: Allow constraint on using installed package versions ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: cabal-install-0.6 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * milestone: => cabal-install-0.6 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/376#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage