Ticket #1876: ghc-6.11-ghc-pkg-install-inplace.patch

File ghc-6.11-ghc-pkg-install-inplace.patch, 1.2 KB (added by juhpetersen, 3 years ago)

Use dist-inplace ghc-pkg for dist package.conf and cabal'ing

  • ghc-6.11.20090421/mk/cabal-flags.mk

    diff -up ghc-6.11.20090421/mk/cabal-flags.mk~ ghc-6.11.20090421/mk/cabal-flags.mk
    old new  
    33space=$(nothing) $(nothing) 
    44comma=, 
    55 
    6 GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg 
     6GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-inplace/build/ghc-pkg/ghc-pkg 
    77 
    88LIBRARIES_ABS = $(FPTOOLS_TOP_ABS)/libraries 
    99UTILS_ABS     = $(FPTOOLS_TOP_ABS)/utils 
  • ghc-6.11.20090421/mk/package.mk

    diff -up ghc-6.11.20090421/mk/package.mk~ ghc-6.11.20090421/mk/package.mk
    old new  
    8686            | sed -e 's/""//g' -e 's/:[   ]*,/: /g' \ 
    8787            | $(GHC_PKG_INSTALL_PROG) --global-conf $(DESTDIR)$(datadir)/package.conf update - --force 
    8888 
    89 GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg 
     89GHC_PKG_INSTALL_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/dist-inplace/build/ghc-pkg/ghc-pkg 
    9090 
    9191# we could be more accurate here and add a dependency on 
    9292# driver/package.conf, but that doesn't work too well because of