| Age | Commit message (Collapse) | Author |
|
Fixes #8933.
Closes #8936.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Fixes: #8890.
Closes #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 #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 #8876.
|
|
Closes #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 #8774.
Closes #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 #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 #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 #8668.
Closes #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 #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 #8668 to allow formulae to keep building. A proper
fix should ensure that formula installers are operating on objects with
appropriately set `prefix` values.
|
|
Tired of telling people that version numbers are redundant. Just check it by
default since the `--strict` flag to `brew audit` is not well advertised.
|
|
Running brew doctor creates a temporary directory in $HOMEBREW_TEMP or
/tmp but does not clean it up afterwards. This patch deletes the
directory created to prevent polluting $HOMEBREW_TEMP or /tmp with empty
directories.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
We don't want single letter options like '-v' or '-d' to unintentionally
trigger formula-specific options.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Fixes #8615.
|
|
Fixes #8616.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
When invoked, this option will ensure brew doesn't re-use any options from
previous installs of a formula.
|
|
The `filtered_args` method added to the `FormulaInstaller` makes a call
`ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a
`FormulaUnspecifiedError` instead of returning an empty list. This patch
avoids the issue by checking `ARGV.named.empty?` before calling
`ARGV.formulae`.
Fixes #8576.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
The `multi_json` gem dynamically selects a JSON implementation from a list of
candidates. Since we cannot control which gems are installed on a user's
machine, this patch hardwires `multi_json` to use the included copy of `ok_json`.
`ok_json` is a pure-Ruby JSON encoder/decoder that is bundled with
`multi_json`. `ok_json` may not be as fast as other choices, but speed is not
critical for our application.
Closes #8574.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
|
|
FormulaInstaller now loads the install recipt of a previous install and appends
the `used_options` to ARGV before forking to build. This means `brew upgrade`
will "remember" which options were invoked for the last install and re-use
them.
Fixes #5250.
|