Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86214 - haddock's ./configure finds wrong installation of ghc
Summary: haddock's ./configure finds wrong installation of ghc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 21:02 UTC by Duncan Coutts (RETIRED)
Modified: 2005-03-23 08:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Coutts (RETIRED) gentoo-dev 2005-03-21 21:02:48 UTC
On emerging haddock (without ghc already installed) it emerges ghc-bin and then haddock but when haddock builds it finds a version of ghc installed under /usr/local/bin (ie a non-portage managed ghc installation (in this case ghc 6.4)) rather than the version installed in /opt by the ghc-bin ebuild.

It's not a major problem since one can work around it by emerging ghc (not the -bin ebuild) so then haddock will pickup that version under /usr/bin
Comment 1 Duncan Coutts (RETIRED) gentoo-dev 2005-03-21 21:13:14 UTC
The same things applies to ghc itself (ghc-6.2.2.ebuild)

(sadly it makes a difference in this case since ghc-6.2.2 does not build with ghc-6.4! I'll have to hide my /usr/local isntallation so that ghc-6.2.2 will install using the ghc from /opt)
Comment 2 Duncan Coutts (RETIRED) gentoo-dev 2005-03-21 21:16:56 UTC
Perhaps we should find the version of ghc ourself and specify --with-(g)hc=
We could use the ebuild function for finding the best version of a package.
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2005-03-23 06:11:29 UTC
I have committed a new version of ghc-package.eclass, and made haddock inherit
ghc-package (ghc itself does already). This should set the PATH in such a way
that /opt/ghc/bin is preferred over /usr/local/bin. Please test ...

  ks
Comment 4 Duncan Coutts (RETIRED) gentoo-dev 2005-03-23 07:39:34 UTC
That works. It picks up the one in /opt/ghc/bin over the one in /usr/local/bin when there is no install in /usr/bin/
Comment 5 Andres Loeh (RETIRED) gentoo-dev 2005-03-23 08:04:34 UTC
Ok. Closing.