Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
257 commits behind the upstream repository.
  • Matthew Craven's avatar
    dbe27152
    Repair the 'build-cabal' hadrian target · dbe27152
    Matthew Craven authored and Cheng Shao's avatar Cheng Shao committed
    Fixes #23117. Fixes #23281. Fixes #23490.
    
    This required:
     * Updating the bit-rotted compiler/Setup.hs and its setup-depends
     * Listing a few recently-added libraries and utilities
       in cabal.project-reinstall
     * Setting allow-boot-library-installs to 'True' since Cabal
       now considers the 'ghc' package itself a boot library for
       the purposes of this flag
    
    Additionally, the allow-newer block in cabal.project-reinstall
    was removed.  This block was probably added because when the
    libraries/Cabal submodule is too new relative to the cabal-install
    executable, solving the setup-depends for any package with a custom
    setup requires building an old Cabal (from Hackage) against the
    in-tree version of base, and this can fail un-necessarily due to
    tight version bounds on base.  However, the blind allow-newer can
    also cause the solver to go berserk and choose a stupid build plan
    that has no business succeeding, and the failures when this happens
    are dreadfully confusing. (S...
    dbe27152
    History
    Repair the 'build-cabal' hadrian target
    Matthew Craven authored and Cheng Shao's avatar Cheng Shao committed
    Fixes #23117. Fixes #23281. Fixes #23490.
    
    This required:
     * Updating the bit-rotted compiler/Setup.hs and its setup-depends
     * Listing a few recently-added libraries and utilities
       in cabal.project-reinstall
     * Setting allow-boot-library-installs to 'True' since Cabal
       now considers the 'ghc' package itself a boot library for
       the purposes of this flag
    
    Additionally, the allow-newer block in cabal.project-reinstall
    was removed.  This block was probably added because when the
    libraries/Cabal submodule is too new relative to the cabal-install
    executable, solving the setup-depends for any package with a custom
    setup requires building an old Cabal (from Hackage) against the
    in-tree version of base, and this can fail un-necessarily due to
    tight version bounds on base.  However, the blind allow-newer can
    also cause the solver to go berserk and choose a stupid build plan
    that has no business succeeding, and the failures when this happens
    are dreadfully confusing. (S...
cabal.project-reinstall 2.43 KiB
packages: ./compiler
          ./utils/genprimopcode/
          ./utils/deriveConstants/
          ./ghc/
          -- ./libraries/array
          -- ./libraries/base
          ./libraries/binary
          ./libraries/bytestring
          ./libraries/Cabal/Cabal
          ./libraries/Cabal/Cabal-syntax
          ./libraries/containers/containers/
          -- ./libraries/deepseq/
          ./libraries/directory/
          ./libraries/exceptions/
          ./libraries/file-io/
          ./libraries/filepath/
          -- ./libraries/ghc-bignum/
           ./libraries/ghc-boot/
          -- ./libraries/ghc-boot-th/
          ./libraries/ghc-compact
          ./libraries/ghc-experimental
          ./libraries/ghc-heap
          ./libraries/ghci
          -- ./libraries/ghc-prim
          ./libraries/haskeline
          ./libraries/directory
          ./libraries/hpc
          -- ./libraries/integer-gmp
          ./libraries/mtl/
          ./libraries/os-string/
          ./libraries/parsec/
          -- ./libraries/pretty/
          ./libraries/process/
          ./libraries/semaphore-compat
          ./libraries/stm
          -- ./libraries/template-haskell/
          ./libraries/terminfo/
          ./libraries/text
          ./libraries/time
          ./libraries/transformers/
          ./libraries/unix/
          ./libraries/Win32/
          ./libraries/xhtml/
          ./utils/ghc-pkg
          ./utils/ghc-toolchain
          ./utils/ghc-toolchain/exe
          ./utils/haddock
          ./utils/haddock/haddock-api
          ./utils/haddock/haddock-library
          ./utils/hp2ps
          ./utils/hpc
          ./utils/hsc2hs
          ./utils/runghc
          ./utils/unlit
          ./utils/iserv
          ./linters/**/*.cabal

constraints: ghc +internal-interpreter +dynamic-system-linke,
             ghc-bin +internal-interpreter +threaded,
             ghci +internal-interpreter,
             haddock +in-ghc-tree,
             any.array installed,
             any.base installed,
             any.deepseq installed,
             any.ghc-bignum installed,
             any.ghc-boot-th installed,
             any.integer-gmp installed,
             any.pretty installed,
             any.template-haskell installed

benchmarks: False
tests: False
allow-boot-library-installs: True

-- Workaround for https://github.com/haskell/cabal/issues/7297
package *
  library-vanilla: True
  shared: True
  executable-profiling: False
  executable-dynamic: True