[Hackage] #403: Bad error message when running ./configure fails to find sh

#403: Bad error message when running ./configure fails to find sh ----------------------------------+----------------------------------------- Reporter: duncan | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: minor | Keywords: Difficulty: very easy (<1 hour) | Ghcversion: 6.10.1 Platform: Windows | ----------------------------------+----------------------------------------- For `build-type: Configure` we have to run `./configure`. On windows this will very often fail of course because they usually lack the `sh` program. Currently the error message users get is not great: {{{ sh: runGenProcess: does not exist (No such file or directory) }}} It would be nicer if they got a better message. Perhaps the way to do that is to catch the `DoesNotExist IOException` and re-throw a better message. Alternatively we could explicitly check for `sh` before invoking it. If it's not found on Windows then we could report that the package needs a unix-style command shell program eg from `mingw` to build. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/403 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#403: Bad error message when running ./configure fails to find sh
----------------------------+-----------------------------------------------
Reporter: duncan | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: Cabal-1.8
Component: Cabal library | Version: HEAD
Severity: minor | Resolution: fixed
Keywords: | Difficulty: very easy (<1 hour)
Ghcversion: 6.10.1 | Platform: Windows
----------------------------+-----------------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
* milestone: => Cabal-1.8
Comment:
{{{
Mon Nov 9 18:26:24 GMT 2009 Duncan Coutts
participants (1)
-
Hackage