It was designed to work for all symlinking, not just homebrew. This way Basho can use it in their build process for other products. 

On Jul 13, 2013, at 9:50 AM, Adam Vandenberg <notifications@github.com> wrote:

> In Library/Formula/riak.rb:
> 
> >  
> > -  option '32-bit'
> > +  # patch scripts to work with homebrew symlinking
> > +  def patches
> > +    [
> > +      "https://gist.github.com/erbmicha/5970803/raw", # env.sh patch
> I like the other approach of just hardcoding the Homebrew path instead.
> 
> —
> Reply to this email directly or view it on GitHub.