When compiling ruby versions with ruby-build (and of course, rbenv)
from a brand new Mountain Lion (10.8.2) setup and no other formulas,
the build process fails by missing autoconf and pkg-config.
Tested with ruby v2.0.0-dev and v1.9.3-p385.
Thanks to Pierre Paridans.
Closes#18016.
The formula applies a patch on the Makefile.
The patch was applied on the file named src/Makefile
However, the file is actually named src/makefile
Closes#18437.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:
When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.
When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.
As a bonus, this makes the logic much easier to reason about.
Closes#18175.
When compiling in stdenv only, clang would start consuming more and
more RAM while spewing invalid-source-encoding warnings. I usually
killed the build when it hit 4.5GB.
The makefiles also hardcode cc and cxx, so it wasn't using the right
compiler in stdenv.
Currently `brew tap` only works on repos with 'homebrew-' in their name.
This version tries the repo name as is and then falls back to try
'homebrew-repo' only if that fails.
I've also tweaked the regex in tap_args to allow '-' in repo names. The
previous regex required a match on \w. This made it impossible for people
to tap repos with names like 'username/why-not'.
Closes#18366.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
IO#read does not raise EOFError, it just returns an empty string for
each call after it consumes the underlying file or stream.
This module is going to be refactored and the begin/rescue is going to
be removed anyway.
superenv doesn't filter out the arch flags here because the build system
is invoked via python and not any build tool that we wrap. The result is
that uwsgi is always build universal, requiring that its deps are build
universal, which is really annoying.
Note that we may need to audit other things that use archs_for_command.
The solution here isn't perfect, but I don't know how to fix superenv to
handle this.
Fixes#18250.
Closes#18341.
This has two parts:
1. Bottles are temporarily relocated on bottling and tested if that is
sufficient for them to contain no longer reference the prefix or
cellar. If so, they are marked as relocatable.
2. On installation if bottles are marked as relocatable they will be
relocated using install_name_tool to the current prefix and cellar.
Closes#18374.