Skip to content

Instantly share code, notes, and snippets.

@zeldin
Created August 17, 2022 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeldin/9bfd020b7fa2a92a95bf2e0a15a61dea to your computer and use it in GitHub Desktop.
Save zeldin/9bfd020b7fa2a92a95bf2e0a15a61dea to your computer and use it in GitHub Desktop.
Boostrapping Gentoo ghc package
1) Build the Docker at https://github.com/gregwebs/ghc-docker-dev.git
for the target arch
2) Inside the Docker, make a manual build from the upstreams ghc
sources, with all the Debian patches applied, with a prefix of
/tmp/ghcfoo
3) Copy /tmp/ghcfoo from the Docker to the target system
4) Set up /etc/portage/env/dev-lang/ghc to add the ghc binary in
/tmp/ghcfoo to the path
5) Build the ebuild with USE=ghcbootstrap
6) Delete the /etc/portage/env file and rebuild the ebuild again, to
make sure the ghc built in 5) can bootstrap itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment