librelist archives

« back to archive

why does brew have a formula for LLVM when osx includes it

why does brew have a formula for LLVM when osx includes it

From:
deepak kannan
Date:
2011-03-25 @ 13:25
hi,
why does brew have a formula for LLVM when osx includes it. Does it not go
against the goal of not duplicating libraries in homebrew?

Also, according to the Acceptable-Formula page, including zsh was a mistake.
why is that?
https://github.com/mxcl/homebrew/wiki/Acceptable-Formula

Maybe it is a good idea to specify the reason to duplicate in the Formula
itself.

cheers,
deepak

Re: [homebrew] why does brew have a formula for LLVM when osx includes it

From:
Mike McQuaid
Date:
2011-03-25 @ 13:35
On 25 March 2011 08:25, deepak kannan <kannan.deepak@gmail.com> wrote:
> why does brew have a formula for LLVM when osx includes it. Does it not go
> against the goal of not duplicating libraries in homebrew?

Yes and it'll probably be removed eventually.

> Also, according to the Acceptable-Formula page, including zsh was a mistake.
> why is that?

It is a system duplicate.

> Maybe it is a good idea to specify the reason to duplicate in the Formula
> itself.

This is probably going to happen. Also, when we get multiple
repository support we'll probably be removing all system duplicates
that aren't hard dependencies from the main repository.

-- 
Mike McQuaid
http://mikemcquaid.com

Re: [homebrew] why does brew have a formula for LLVM when osx includes it

From:
Charlie Sharpsteen
Date:
2011-03-25 @ 20:31
On Fri, Mar 25, 2011 at 6:35 AM, Mike McQuaid <mike@mikemcquaid.com> wrote:

> On 25 March 2011 08:25, deepak kannan <kannan.deepak@gmail.com> wrote:
> > why does brew have a formula for LLVM when osx includes it. Does it not
> go
> > against the goal of not duplicating libraries in homebrew?
>
> Yes and it'll probably be removed eventually.


As far as I can tell, the LLVM formula *is not* a duplicate---XCode ships
compilers based on LLVM (clang and llvm-gcc), but not the actual LLVM
libraries themselves.  For confirmation, try locating libLLVMcore in the OS
X or XCode installation.

These libraries are required by anyone who wants to use the LLVM toolkit to
build their own compiler or JIT interpreter.

The part of the LLVM formula that could be considered a duplicate is the
option to build Clang as that compiler is shipped as part of XCode.  If we
ever added another option to build llvm-gcc, that would be a duplicate as
well.

-Charlie

Re: [homebrew] why does brew have a formula for LLVM when osx includes it

From:
Mike McQuaid
Date:
2011-03-25 @ 21:10
On 25 March 2011 15:31, Charlie Sharpsteen <chuck@sharpsteen.net> wrote:
> On Fri, Mar 25, 2011 at 6:35 AM, Mike McQuaid <mike@mikemcquaid.com> wrote:
>>
>> On 25 March 2011 08:25, deepak kannan <kannan.deepak@gmail.com> wrote:
>> > why does brew have a formula for LLVM when osx includes it. Does it not
>> > go
>> > against the goal of not duplicating libraries in homebrew?
>>
>> Yes and it'll probably be removed eventually.
>
> As far as I can tell, the LLVM formula *is not* a duplicate---XCode ships
> compilers based on LLVM (clang and llvm-gcc), but not the actual LLVM
> libraries themselves.  For confirmation, try locating libLLVMcore in the OS
> X or XCode installation.
> These libraries are required by anyone who wants to use the LLVM toolkit to
> build their own compiler or JIT interpreter.

Interesting, I stand corrected, thanks.


-- 
Mike McQuaid
http://mikemcquaid.com

Re: [homebrew] why does brew have a formula for LLVM when osx includes it

From:
Lee Packham
Date:
2011-03-25 @ 13:34
It was put in before LLVM was standard with Xcode. Also, with the current 
investigations into providing a build chain in homebrew (due to the xcode 
distribution changes/fears) - it's best it sticks around.

-- 
Lee Packham
Sent with Sparrow
On Friday, 25 March 2011 at 13:25, deepak kannan wrote: 
> hi,
> why does brew have a formula for LLVM when osx includes it. Does it not 
go against the goal of not duplicating libraries in homebrew?
> 
> Also, according to the Acceptable-Formula page, including zsh was a 
mistake. why is that?
> https://github.com/mxcl/homebrew/wiki/Acceptable-Formula
> 
> Maybe it is a good idea to specify the reason to duplicate in the 
Formula itself.
> 
>  cheers,
> deepak
>