Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions cabal.project.stage1
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
-- Configuration common to all stages
import: cabal.project.common

-- Hermetic build: resolve only from the explicitly-listed packages (+ the
-- bootstrap compiler's installed packages), never Hackage. stage2/stage3
-- already set this, but stage1 did not — so stage1's build-tools (happy/alex
-- for the compiler's Parser.y/Lexer.x) floated to Hackage's newest. That was
-- latent until happy-2.1.7 was published, after which stage1 built
-- happy-lib-2.1.7 and the resulting parser code broke the build
-- (genprimopcode GHC-44432: happyDoParse vs the pinned happy template).
active-repositories: :none

packages:
-- NOTE: we need rts-headers, because the _newly_ built compiler depends
-- on these potentially _new_ headers, we must not rely on those from
Expand Down Expand Up @@ -40,6 +49,15 @@ packages:
https://hackage.haskell.org/package/semaphore-compat-1.0.0/semaphore-compat-1.0.0.tar.gz
https://hackage.haskell.org/package/unix-2.8.8.0/unix-2.8.8.0.tar.gz
https://hackage.haskell.org/package/Win32-2.14.2.1/Win32-2.14.2.1.tar.gz

-- Build-tools for the compiler's Parser.y / Lexer.x, plus hpc (a dep of ghc
-- whose bootstrap-installed version wants the old directory). Pinned so the
-- `active-repositories: :none` above resolves them to the same vetted
-- versions as stage2/stage3 instead of floating to Hackage's newest.
https://hackage.haskell.org/package/alex-3.5.2.0/alex-3.5.2.0.tar.gz
https://hackage.haskell.org/package/happy-2.1.5/happy-2.1.5.tar.gz
https://hackage.haskell.org/package/happy-lib-2.1.5/happy-lib-2.1.5.tar.gz
https://hackage.haskell.org/package/hpc-0.7.0.2/hpc-0.7.0.2.tar.gz
-- hsc2hs: see source-repository-package below

source-repository-package
Expand Down
Loading