Re: Compiling from source (for Homebrew formula)

Alexey Muranov <[email protected]> Mon, 10 Mar 2014 11:43:50 +0100
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <[email protected]>
Thank for the reply Seyi.

I’d like to let you know what i am trying do now (for the moment just for myself and for fun).

I want to make a Homebrew formula that downloads both the source and the binary — as a formula's `resource`, and builds from the source using the binary.  The binary would be kept in the temporary building directory and would be discarded after the build.

However, the users would not have to download both the source and the binary each time: Homebrew can compile the “official” Homebrew binary (called "bottle”), which can be installed as is.  If i have unerstood correctly, bottles are being made by Brew Test Bot.

It still looks somewhat twisted for me that to compile the current version, one needs a recent binary version.  I think it would be nice to have a small separate “bootstrapping core”.

It looks like there is no much documentation about making Homebrew formulae, in particular about using formula's “resources”.  I might need to experiment and look for examples.  Any advice would be appreciated.

Alexey.

> Date: Sat, 8 Mar 2014 18:18:56 +0000
> From: Seyi Ogunyemi <[email protected]>
> To: Dylan development discussion <[email protected]>
> Subject: Re: [hackers] Compiling from source (for Homebrew formula)
> Message-ID:
> 	<CAJyafzhKoYgySZKvu3vjwmzGw6EAKOctT0Djz2B2DyqaCAGB4A@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Alexey,
> 
> The OpenDylan compiler is self-hosted (primarily written in Dylan). So,
> you'll need to download a binary to build it from source.