X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fcabal-flags.mk;h=e1ef084b46c124fff4d267bcb592276dd10b8fba;hb=c933c909cbc122e63a055afed55969234422521a;hp=7a137ced4d190306c07f41f35f277d5c2c06ee54;hpb=64137b1730defb4cb5ed95c54eec26014ee0fb27;p=ghc-hetmet.git diff --git a/mk/cabal-flags.mk b/mk/cabal-flags.mk index 7a137ce..e1ef084 100644 --- a/mk/cabal-flags.mk +++ b/mk/cabal-flags.mk @@ -1,16 +1,22 @@ nothing= space=$(nothing) $(nothing) +comma=, GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg LIBRARIES_ABS = $(FPTOOLS_TOP_ABS)/libraries UTILS_ABS = $(FPTOOLS_TOP_ABS)/utils -CABAL = $(LIBRARIES_ABS)/cabal-bin $(GHC) $(LIBRARIES_ABS)/bootstrapping.conf +CABAL = $(LIBRARIES_ABS)/cabal-bin $(GHC) $(LIBRARIES_ABS)/bootstrapping.conf $(CABAL_DOTTED_VERSION) INSTALL_PACKAGE = \ $(UTILS_ABS)/installPackage/install-inplace/bin/installPackage STAGE3_PACKAGE_CONF = $(FPTOOLS_TOP_ABS)/stage3.package.conf +# Euch, hideous hack: +CABAL_DOTTED_VERSION = $(shell grep "^Version:" $(LIBRARIES_ABS)/Cabal/Cabal.cabal | sed "s/^Version: //") +CABAL_VERSION = $(subst .,$(comma),$(CABAL_DOTTED_VERSION)) +CABAL_CONSTRAINT = --constraint="Cabal == $(CABAL_DOTTED_VERSION)" + # We rely on all the CONFIGURE_ARGS being quoted with '...', and there # being no 's inside the values. FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\