[Hackage] #204: should setting user-prefix in ~/.cabal/config work?

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ---------------------------------+------------------------------------------ Setting user-prefix in .cabal/config leads to the following error: {{{ wolverian@puni:~$ cabal info xmonad Warning: Error parsing config file /home/wolverian/.cabal/config: On line 5: Parse of field 'prefix' failed: Warning: Using default configuration. }}} I don't think the file format is documented anywhere, but a bit of poking in the source and a Google led me to believe that this should work. My config file looks like this: {{{ wolverian@puni:~$ cat .cabal/config compiler: GHC repos: hackage.haskell.org:http://hackage.haskell.org/packages/archive cachedir: "/home/wolverian/.cabal/packages" user-install: true user-prefix: "/home/wolverian" hackage-username: "" hackage-password: "" }}} This is with up-to-date (as of today) Cabal and cabal-install from Darcs: {{{ wolverian@puni:~$ cabal --version cabal-install version 0.4.1 using version 1.3.2 of the Cabal library }}} And my GHC is a local (in ~) GHC 6.8.2: {{{ wolverian@puni:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2 }}} -- wolverian[[BR]] ilmari.vacklin@cs.helsinki.fi -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by guest): * version: 1.2.3.0 => HEAD -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Comment (by duncan): That is indeed supposed to work. We'll have to investigate. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Comment (by duncan): Ah, I see. The problem is that user-prefix: does work and just prefix: does not. That's a recent unintentional change. So the default config file that was generated previously that used just prefix: is now getting rejected. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Comment (by guest): The version I was running at the time of reporting rejected both forms. I'll try upgrading to the latest Darcs soon. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.4 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by duncan): * milestone: => Cabal-1.4 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#204: should setting user-prefix in ~/.cabal/config work? ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: closed Priority: normal | Milestone: Cabal-1.4 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: fixed Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by duncan): * status: new => closed * resolution: => fixed Comment: It's working for me with the current darcs version so long at the user- prefix path is quoted. In your example you do have it quoted so I don't know what problem you ran into exactly. I'm changing that to be consistent with the .cabal format which allows quoted or unquoted paths. The error in the error message, that it reports "prefix" rather than "user-preifx" is an artifact of the current config parser that I don't intend to fix because the whole thing is going to be replaced shortly. If you still see this problem, reopen this ticket. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/204#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage