Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option of building GHC from source to stack setup #1026

Closed
jdnavarro opened this issue Sep 22, 2015 · 2 comments
Closed

Add the option of building GHC from source to stack setup #1026

jdnavarro opened this issue Sep 22, 2015 · 2 comments

Comments

@jdnavarro
Copy link
Contributor

This is triggered by the current situation for Arch Linux: https://aur.archlinux.org/packages/haskell-stack/. This issue will eventually be fixed but here I want to propose a more permanent solution.

My first thought was to ask the GHC folks for an official Arch Linux GHC bindist but @hvr explained that the bindists are not optimized for each distribution and they don't want to get into the business of supporting more, which I think it's understandable.

Having stack build GHC from source, with the possibility of fine tuning the build process, would be the first step to be able to support different distributions natively. In the case of Arch Linux, for example, the build configurations for different GHC versions could be extracted from the official Arch Linux GHC packages and have them shipped with haskell-stack AUR package. I'm willing to maintain such AUR package if necessary.

Compiling from GHC from source will take more time than the bindists, but this avoids security related issues with downloading custom GHC bindists from who knows where.

/cc @borsboom

@snoyberg
Copy link
Contributor

I don't think this will really solve the problem you're trying to solve, since GHC needs GHC to build itself. This would also be a heavy code burden for the Stack team to maintain.

@jdnavarro
Copy link
Contributor Author

The system GHC could be used for bootstrapping. But I acknowledge this may be too much work to maintain.

I'll build my own GHC bindist for Arch, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants