diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2006-08-02 19:49:03 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2006-08-02 19:49:03 +0000 |
commit | cd2cf15007c80a06f97884ebb480ff9cc637830e (patch) | |
tree | 4b5b0bbc097806affbe0baac6a9fb7a071636493 /eclass/haskell-cabal.eclass | |
parent | Assigned package to VDR-Project. (diff) | |
download | gentoo-2-cd2cf15007c80a06f97884ebb480ff9cc637830e.tar.gz gentoo-2-cd2cf15007c80a06f97884ebb480ff9cc637830e.tar.bz2 gentoo-2-cd2cf15007c80a06f97884ebb480ff9cc637830e.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/haskell-cabal.eclass')
-rw-r--r-- | eclass/haskell-cabal.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index 66c3fbea78d9..a14bc6461a7f 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.6 2006/03/13 09:57:10 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.7 2006/08/02 19:49:03 dcoutts Exp $ # # Original authors: Andres Loeh <kosmikus@gentoo.org> # Duncan Coutts <dcoutts@gentoo.org> @@ -169,7 +169,7 @@ cabal-pkg() { local err if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then - sed -i 's:ghc-pkg:/usr/bin/true:' .setup-config + sed -i "s|$(ghc-getghcpkg)|/usr/bin/true|" .setup-config ./setup register || die "setup register failed" if [[ -f .installed-pkg-config ]]; then ghc-setup-pkg .installed-pkg-config |