| Age | Commit message (Collapse) | Author |
|
|
|
This has to be able to match things like "211.10.1" so let's stop using
fixed lengths.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
The warning is lengthy, and usually wraps on 80-column terminals.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
- Fix ENV.libxml2 to update CPPFLAGS rather than CFLAGS
- Methods ENV.{gcc*,llvm,clang} now reset CPU-specific optimization
flags on every call.
Closes Homebrew/homebrew#8105.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started
distributing _only_ xz-compressed tarballs. There is no system XZ
utility provided by OS X, but it is necessary so that we can continue to
provide formulae for this software.
If XZUtils isn't installed, we abort and prompt the user to `brew
install xz`.
The `xz` command itself doesn't do any untarring, so we write the
decompressed archive to stdout and pipe it to tar.
|
|
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Several issues have been caused by conflicts between the options
Homebrew passes to curl and those read from $HOME/.curlrc. Passing '-q'
will force curl to ignore settings in that file.
Suggested in Homebrew/homebrew#9027.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
When investigating issues, one might want to see exactly what curl is
doing behind the scenes. Setting HOMEBREW_CURL_VERBOSE will cause the
'--verbose' flag to be passed to all invocations of curl.
Prompted by Homebrew/homebrew#8992.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Should be `MacOS.xcode_version`.
Fixes Homebrew/homebrew#8966.
|
|
Suggest trying `--use-clang` instead of `--use-gcc` (which does nothing).
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Fixes Homebrew/homebrew#8933.
Closes Homebrew/homebrew#8936.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Fixes: Homebrew/homebrew#8890.
Closes Homebrew/homebrew#8893.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
It needs to be reworked to only check the primary URLs, as we are now
using ftp.gnu.org as a mirror.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This can be made more robust in the future when we stop throwing away
the ':build' type flag in Formula#depends_on.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
`/usr/X11R6` is an Apple-provided symlink to `/usr/X11`.
Fixes Homebrew/homebrew#8881.
|
|
Should help advert confusion surrounding the "could not find gcc 4.2.x" message
recieved by Lion users running the latest version of XCode.
Fixes Homebrew/homebrew#8876.
|
|
Closes Homebrew/homebrew#8879.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Bazaar download strategy tried to re-download everything on "export" as a
checkout is used. See:
https://answers.launchpad.net/bzr/+question/180269
https://bugs.launchpad.net/bzr/+bug/897511
Related to issue Homebrew/homebrew#8774.
Closes Homebrew/homebrew#8863.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
The ARGV filtering would strip `--HEAD` from dependency installations,
then proceed with trying to install the dependency from the latest
version in the formula. This causes an error if the latest version is
already installed, so check to see if formula is installed before
performing the installation.
Closes Homebrew/homebrew#8869.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Passing a `Proc` doesn't work in Ruby 1.8.6 which causes `brew uses` to fail on
Leopard.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
For consistency, ensure that the `path` member of formula objects is always a
`Pathname`.
|
|
Gah. This was supposed to be in the last commit, but I forgot to `--amend` it.
|
|
Unless the `--quieter` flag is passed.
Closes Homebrew/homebrew#8723.
|
|
Unless the dependency is explicitly passed to `brew install --devel`.
|
|
Previously, stripping arguments like `--HEAD` for dependencies failed because
that flag affects the installation prefix encoded into formula objects. The
previous implementation of `ARGV` filtering tried to contain all changes to a
single method call before the `FormulaInstaller` forks. This update spreads
things out a bit:
- The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies`
which strips flags like `--HEAD`, yields to a block, then restores the
original contents of ARGV.
- The `explicitly_requested?` test, which returns true or false depending on
if a formula object is a member of `ARGV.formulae`, is now a method of
`Formula` objects.
- `FormulaInstaller` objects now execute the installation of dependencies
inside an `ARGV.filter_for_dependencies` block if the dependency was
`explicitly_requested?`.
Fixes Homebrew/homebrew#8668.
Closes Homebrew/homebrew#7724.
|
|
|
|
This ended up being noise for some users. We need a better set of steps
to trigger the bug in order to create a good doctor check; patches
welcome from users who are encountering this issue.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Git checkouts that do not specify a branch should always reset to the
remote's HEAD, as some remotes have HEAD set to 'unstable' or some other
non-master branch.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Homebrew was attempting to check the version of gcc-4.0 and gcc-4.2 even
if they don't exist, causing `doctor` and `--config` to throw nasty
errors.
Also fixes the broken missing gcc-4.2 detection, which was confusing
Xcode 4.2 users.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
The recommended compiler versions printed from `brew-config` are out
of date and misleading. The recommendation is always "Run the latest
version of Xcode available for your platform".
|
|
Xcode 3.2.6's build of clang is 77, which wasn't being matched by the
clang_build_version regexp.
Closes Homebrew/homebrew#8796.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
For GCC and LLVM-GCC, '-v' is not a synonym for --version. When run
without any other options or arguments, it gives similar output, but it
is better to just parse the (terser) --version output.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Using `f.installed?` instead of `f.prefix.exist?` ensures something was created
by the installation step before the install receipt is written.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
`FFFLAGS` should be `FFLAGS`.
|
|
`brew options --installed` will now "do the right thing".
There is getting to be a small but noticeable amount of code duplication
among commands that take options like "--installed" or "--all"; it may
be worth factoring this out into a method that will return a collection
of formula objects based on the options that are passed.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Often it is useful to provide a development build in addition to the
stable release or HEAD download.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
For now, don't strip `--HEAD` from `ARGV` prior to forking for install.
Currently this doesn't work because the formula object the installer is acting
on has its `prefix` set while under the influence of `--HEAD`. So, the
installer bails out when it sees that nothing is installed to `f.prefix`.
This is a hotfix for issue Homebrew/homebrew#8668 to allow formulae to keep building. A proper
fix should ensure that formula installers are operating on objects with
appropriately set `prefix` values.
|