diff options
author | 2006-08-02 19:49:03 +0000 | |
---|---|---|
committer | 2006-08-02 19:49:03 +0000 | |
commit | 678e3e0d14d8b92af9cd68b89387a0fe9fe4b695 (patch) | |
tree | 09ea763411ce7e306c59fe8cc5187905b06bd9cc /eclass/ghc-package.eclass | |
parent | Assigned package to VDR-Project. (diff) | |
download | historical-678e3e0d14d8b92af9cd68b89387a0fe9fe4b695.tar.gz historical-678e3e0d14d8b92af9cd68b89387a0fe9fe4b695.tar.bz2 historical-678e3e0d14d8b92af9cd68b89387a0fe9fe4b695.zip |
Ask portage rather than ghc-pkg about which version of cabal to use.
This way we build packages using version of cabal from portage that we
tested rather than a version that the user installed. This is important
as many packages are sensitive to changes in the Cabal API.
Make ghc-getghc and ghc-getghcpkg functions return absolute paths and fix
up one place in the haskell-cabal eclass where this had a knock-on effect
this should fix bug #140589
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r-- | eclass/ghc-package.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 22cfbf69f550..0a68ad212386 100644 --- a/eclass/ghc-package.eclass +++ b/eclass/ghc-package.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.17 2006/06/15 11:27:38 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.18 2006/08/02 19:49:03 dcoutts Exp $ # # Author: Andres Loeh <kosmikus@gentoo.org> # Maintained by: Haskell herd <haskell@gentoo.org> @@ -16,12 +16,12 @@ PATH="/usr/bin:/opt/ghc/bin:${PATH}" # for later configuration using environment variables/ # returns the name of the ghc executable ghc-getghc() { - echo "ghc" + echo "$(which ghc)" } # returns the name of the ghc-pkg executable ghc-getghcpkg() { - echo "ghc-pkg" + echo "$(which ghc-pkg)" } # returns the name of the ghc-pkg binary (ghc-pkg |