[Hackage] #347: findProgramVersion fails with Debian's gcc
#347: findProgramVersion fails with Debian's gcc ----------------------------+----------------------------------------------- Reporter: ross | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- The version string produced by Debian's gcc has an unexpected form: {{{ Warning: cannot determine version of /usr/bin/gcc : "gcc (Debian 4.3.1-2) 4.3.1\nCopyright (C) 2008 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n" }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/347> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#347: findProgramVersion fails with Debian's gcc ----------------------------+----------------------------------------------- Reporter: ross | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Hopefully this patch fixed it: {{{ Sun Aug 31 15:01:45 PDT 2008 Duncan Coutts <duncan@haskell.org> * Use a hopefully more robust method of determining the gcc version }}} We now call `gcc -dumpversion` rather than interpreting the output of `gcc --version`. I've checked `gcc -dumpversion` on all the platforms I have access to (including debian, ubuntu and solaris) and it produces consistent results. -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/347#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage