Re: Reproducible build recipes for GHC development VMs?

2013-08-22 Thread Simon Marlow

On 21/08/13 15:44, Ryan Newton wrote:

Hi all,

Returning to the topic discussed by Simon M. and others here:

http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

This is my attempt at a script for bootstrapping a GHC-validating VM:

http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

Let me know if there's a better way, or if you'd like to help get this
kind of thing into an even more accessible form (Amazon AMI, Chef
recipe, etc).


I do this occasionally with an Amazon VM.  Incidentally, why did you 
download the GHC 7.6.3 tarball rather than apt-get install ghc?  The 
current GHC on Ubuntu is 7.4 which is enough to bootstrap GHC HEAD.


Cheers,
Simon



___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Reproducible build recipes for GHC development VMs?

2013-08-22 Thread Ryan Newton
Oh, good question.  It was Ubuntu 12.04 LTS so I just assumed it would be
too old without checking.



On Thu, Aug 22, 2013 at 3:38 AM, Simon Marlow marlo...@gmail.com wrote:

 On 21/08/13 15:44, Ryan Newton wrote:

 Hi all,

 Returning to the topic discussed by Simon M. and others here:

 http://projects.haskell.org/**pipermail/haskell-platform/**
 2009-July/000572.htmlhttp://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

 This is my attempt at a script for bootstrapping a GHC-validating VM:

 http://parfunk.blogspot.com/**2013/08/zero-to-ghc-**
 development-in-ubuntu-vm-in.**htmlhttp://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

 Let me know if there's a better way, or if you'd like to help get this
 kind of thing into an even more accessible form (Amazon AMI, Chef
 recipe, etc).


 I do this occasionally with an Amazon VM.  Incidentally, why did you
 download the GHC 7.6.3 tarball rather than apt-get install ghc?  The
 current GHC on Ubuntu is 7.4 which is enough to bootstrap GHC HEAD.

 Cheers,
 Simon



___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Reproducible build recipes for GHC development VMs?

2013-08-21 Thread Luite Stegeman
We've been using Vagrant and puppet for building GHC HEAD with some patches
and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole VM from
scratch is just one command (vagrant up), the VM can either copy files to
the host, through a shared filesystem, or just use the network to report
results.

I'd be happy to help setting this up for GHC

https://github.com/ghcjs/ghcjs-build


On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton rrnew...@gmail.com wrote:

 Hi all,

 Returning to the topic discussed by Simon M. and others here:


 http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

 This is my attempt at a script for bootstrapping a GHC-validating VM:


 http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

 Let me know if there's a better way, or if you'd like to help get this
 kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
 etc).

 Cheers,
   -Ryan



 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs


___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Reproducible build recipes for GHC development VMs?

2013-08-21 Thread Austin Seipp
There has been some talk of some similar stuff in the IRC channel.

This would for example, be fantastic in combination with Vagrant[1], to
immediately provision a machine you can begin working with even on Windows.
Then you could have a GHC development environment up in minutes.

On a related note, I also have some (non public) Ansible playbooks that
will set up a Haskell development environment for Linux, but it's fairly
primitive and doesn't quite set up a working GHC checkout (yet.)

[1]: http://www.vagrantup.com/


On Wed, Aug 21, 2013 at 9:44 AM, Ryan Newton rrnew...@gmail.com wrote:

 Hi all,

 Returning to the topic discussed by Simon M. and others here:


 http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

 This is my attempt at a script for bootstrapping a GHC-validating VM:


 http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

 Let me know if there's a better way, or if you'd like to help get this
 kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
 etc).

 Cheers,
   -Ryan



 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs




-- 
Regards,
Austin - PGP: 4096R/0x91384671
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Reproducible build recipes for GHC development VMs?

2013-08-21 Thread Ryan Newton
Luite,

Neat!  That sounds perfect.  If it can build/install the compiler, then
it's also ready to go for validation of patches.

I've never used vagrant myself but I'll give it a try.  Is this the
absolute easiest thing for people to do?  Or should I just put a (sadly
multi GB) virtual box image on my website?

  -Ryan



On Wed, Aug 21, 2013 at 10:51 AM, Luite Stegeman stege...@gmail.com wrote:

 We've been using Vagrant and puppet for building GHC HEAD with some
 patches and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole
 VM from scratch is just one command (vagrant up), the VM can either copy
 files to the host, through a shared filesystem, or just use the network to
 report results.

 I'd be happy to help setting this up for GHC

 https://github.com/ghcjs/ghcjs-build


 On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton rrnew...@gmail.com wrote:

 Hi all,

 Returning to the topic discussed by Simon M. and others here:


 http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

 This is my attempt at a script for bootstrapping a GHC-validating VM:


 http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

 Let me know if there's a better way, or if you'd like to help get this
 kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
 etc).

 Cheers,
   -Ryan



 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs



___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Reproducible build recipes for GHC development VMs?

2013-08-21 Thread Luite Stegeman
Vagrant is pretty easy to get up and running, with downloadable installers
for Windows and OS X (install VirtualBox first), and it can be apt-get
installed on ubuntu. Vagrant starts with a base VM image (~300MB I think,
hosted on their servers), and lets you run a script or more elaborate
provisioner to configure it to your needs.

You configure the settings of the VM (networking, cpu's, shared filesystem)
through the Vagrantfile script. Unfortunately there are some
incompatibilities between the scripts of Vagrant 1.0 and 1.2, and I haven't
made the GHCJS scripts backwards compatible with 1.0 yet (Ubuntu 12.04
comes with vagrant 1.0 in the repositories, so it would be nice to support
that out of the box, instead of requiring users to download an updated .deb
package)

A user only has to run `vagrant up' in the directory containing the
Vagrantfile. `vagrant provision` reruns the installation script, and
`vagrant destroy' removes the VM.  `vagrant ssh` (from this directory) logs
into the vm without a password.

luite



On Wed, Aug 21, 2013 at 4:55 PM, Ryan Newton rrnew...@gmail.com wrote:

 Luite,

 Neat!  That sounds perfect.  If it can build/install the compiler, then
 it's also ready to go for validation of patches.

 I've never used vagrant myself but I'll give it a try.  Is this the
 absolute easiest thing for people to do?  Or should I just put a (sadly
 multi GB) virtual box image on my website?

   -Ryan



 On Wed, Aug 21, 2013 at 10:51 AM, Luite Stegeman stege...@gmail.comwrote:

 We've been using Vagrant and puppet for building GHC HEAD with some
 patches and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole
 VM from scratch is just one command (vagrant up), the VM can either copy
 files to the host, through a shared filesystem, or just use the network to
 report results.

 I'd be happy to help setting this up for GHC

 https://github.com/ghcjs/ghcjs-build


 On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton rrnew...@gmail.com wrote:

 Hi all,

 Returning to the topic discussed by Simon M. and others here:


 http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

 This is my attempt at a script for bootstrapping a GHC-validating VM:


 http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

 Let me know if there's a better way, or if you'd like to help get this
 kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
 etc).

 Cheers,
   -Ryan



 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs




___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs