
Hello all, I've been trying to find documentation on how to create GHC binary bundles myself without success so far. I've been browsing the GHC website and found documents on how to handle various situations such as porting GHC to an unsupported platform, or how to build GHC from a binary bundle, but couldn't find anything related to the creation of those binary bundles. I've also encountered many broken links on the GHC website which didn't make things easier :-). To be more precise, I want to know how to create the ghc-$version-$arch-boot.tar.bz2 file to redistribute to users so that they can build GHC easily, and that on a platform that already has a working (but older) GHC installation. So far, I've been able to find out that I want to use the binary-dist make target, and that this requires me to put BIN_DIST=1 in mk/build.mk. Other than that, I'm pretty much lost. If I just missed some document, I'd be happy to get redirected to it; if not, some explanations on the matter would be greatly appreciated. Thanks, Maxime

Maxime, it's a UK holiday today, but I expect Ian will get back to you about this on Tuesday. Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] On | Behalf Of Maxime Henrion | Sent: 27 May 2007 02:59 | To: glasgow-haskell-users@haskell.org | Subject: How to create a GHC binary bundle? | | Hello all, | | | | I've been trying to find documentation on how to create GHC binary | bundles myself without success so far. I've been browsing the GHC | website and found documents on how to handle various situations | such as porting GHC to an unsupported platform, or how to build GHC | from a binary bundle, but couldn't find anything related to the | creation of those binary bundles. I've also encountered many broken | links on the GHC website which didn't make things easier :-). | | To be more precise, I want to know how to create the | ghc-$version-$arch-boot.tar.bz2 file to redistribute to users so | that they can build GHC easily, and that on a platform that already | has a working (but older) GHC installation. | | So far, I've been able to find out that I want to use the binary-dist | make target, and that this requires me to put BIN_DIST=1 in | mk/build.mk. Other than that, I'm pretty much lost. | | If I just missed some document, I'd be happy to get redirected to | it; if not, some explanations on the matter would be greatly | appreciated. | | Thanks, | Maxime | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Hi Maxime, On Sun, May 27, 2007 at 03:58:47AM +0200, Maxime Henrion wrote:
To be more precise, I want to know how to create the ghc-$version-$arch-boot.tar.bz2 file to redistribute to users so that they can build GHC easily, and that on a platform that already has a working (but older) GHC installation.
So far, I've been able to find out that I want to use the binary-dist make target, and that this requires me to put BIN_DIST=1 in mk/build.mk. Other than that, I'm pretty much lost.
That's basically it. Assuming you're using a released GHC: echo "BIN_DIST=1" >> mk/build.mk ./configure make make binary-dist stage=2 It doesn't currently work in the HEAD, but I'm working on that. Thanks Ian

Ian Lynagh wrote:
Hi Maxime,
On Sun, May 27, 2007 at 03:58:47AM +0200, Maxime Henrion wrote:
To be more precise, I want to know how to create the ghc-$version-$arch-boot.tar.bz2 file to redistribute to users so that they can build GHC easily, and that on a platform that already has a working (but older) GHC installation.
So far, I've been able to find out that I want to use the binary-dist make target, and that this requires me to put BIN_DIST=1 in mk/build.mk. Other than that, I'm pretty much lost.
That's basically it. Assuming you're using a released GHC:
echo "BIN_DIST=1" >> mk/build.mk ./configure make make binary-dist stage=2
It doesn't currently work in the HEAD, but I'm working on that.
Thanks Ian! I'm glad to finally know the precise incantations needed to build a GHC binary bundle :-). And while I'm here, thanks to Simon for letting me know my mail wasn't just ignored. I guess it's now time to update the FreeBSD GHC port to 6.6.1! Cheers, Maxime
participants (3)
-
Ian Lynagh
-
Maxime Henrion
-
Simon Peyton-Jones