[Hackage] #335: GHC_PACKAGE_PATH disrespected

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: high | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: Other Unix | ----------------------------+----------------------------------------------- Looks like cabal doesn't even use GHC_PACKAGE_PATH at all. {{{ $ unset GHC_PACKAGE_PATH $ ghc-pkg list binary /usr/pkg/lib/ghc-6.8.3/package.conf: $ export GHC_PACKAGE_PATH=/my/package.conf:/usr/pkg/lib/ghc-6.8.3/package.conf $ ghc-pkg list binary /usr/pkg/lib/ghc-6.8.3/package.conf: /my/package.conf: binary-0.4.1 $ runghc Setup.hs configure Configuring mypackage-1.0... Setup.hs: At least the following dependencies are missing: binary -any }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: high | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: Other Unix ----------------------------+----------------------------------------------- Comment (by duncan): Cabal supports the `--package-db=db` flag. Currently it does not support specifying multiple dbs using `--package- db`, or using the normal per-user db and a specific one, but it probably should. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: high | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: Other Unix ----------------------------+----------------------------------------------- Comment (by cjs): After some discussion, I'm in agreement with dcoutts that this environment variable should be ignored, possibly with a warning. This is because it's more or less "hidden"; it's not visible on a command line, and thus will often be forgotten when reporting bugs, it's ghc-specific anyway, and so on. I think it should be a wontfix. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: high | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: Other Unix ----------------------------+----------------------------------------------- Comment (by duncan): Simon suggested that perhaps the most user friendly solution for the few users of this env var is to fail at configure if `GHC_PACKAGE_PATH` is set and to tell users about the `--package-db=` flag. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: Other Unix ----------------------------+----------------------------------------------- Changes (by duncan): * priority: high => normal -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#335: GHC_PACKAGE_PATH disrespected ----------------------------+----------------------------------------------- Reporter: cjs | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: 6.8.3 | Platform: Other Unix ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: normal => very easy (<1 hour) * milestone: => Cabal-1.8 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/335#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage