aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2011-12-02Restore --force behaviour in brew-installMisty De Meo
Fixes #8933. Closes #8936. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-12-01ENV: fix llvm-gcc regexpMisty De Meo
Fixes: #8890. Closes #8893. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-30audit: only perform GNU URL check on primary URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30audit: disable GNU url checkJack Nagel
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>
2011-11-29audit: smake is also a build toolAdam Vandenberg
2011-11-29audit: check for DB deps tooAdam Vandenberg
2011-11-29audit: warn about more "forbidden" dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29audit: check for build-time dependenciesJack Nagel
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>
2011-11-29brew doctor: Ignore config files in /usr/X11R6/binCharlie Sharpsteen
`/usr/X11R6` is an Apple-provided symlink to `/usr/X11`. Fixes #8881.
2011-11-29brew doctor: Note there is no GCC in XCode 4.2+Charlie Sharpsteen
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.
2011-11-29Correct cmake syntax in formula templateMisty De Meo
Closes #8879. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-29download_strategy.ry: Improve Bazaar efficiencyColin Hebert
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>
2011-11-29Fix installation error from ARGV `--HEAD` filterMisty De Meo
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>
2011-11-28uses.rb: Pass a block to map instead of a ProcCharlie Sharpsteen
Passing a `Proc` doesn't work in Ruby 1.8.6 which causes `brew uses` to fail on Leopard.
2011-11-27Move brew-depstree into `brew deps --tree`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-27formula.rb: Initialize path to nil or a PathnameCharlie Sharpsteen
For consistency, ensure that the `path` member of formula objects is always a `Pathname`.
2011-11-27Fix array concatenation in ARGV.filter_for_dependenciesCharlie Sharpsteen
Gah. This was supposed to be in the last commit, but I forgot to `--amend` it.
2011-11-27Don't suppress `--verbose` while installing depsCharlie Sharpsteen
Unless the `--quieter` flag is passed. Closes #8723.
2011-11-27Suppress `--devel` while installing dependenciesCharlie Sharpsteen
Unless the dependency is explicitly passed to `brew install --devel`.
2011-11-27Re-work ARGV filtering to properly handle --HEADCharlie Sharpsteen
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.
2011-11-27audit: remove --strictAdam Vandenberg
2011-11-26doctor: remove terminal width check for curlJack Nagel
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>
2011-11-26doctor: use newer gcc version methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-26Reset to remote HEAD when updating git clonesJack Nagel
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>
2011-11-25Utils: update gcc version detection logicMisty De Meo
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>
2011-11-25brew-config: remove recommended compiler versionsAdam Vandenberg
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".
2011-11-25Detect 2-digit clang build versionsMisty De Meo
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>
2011-11-25Display clang version in --config outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-25Add utility methods to determine clang versionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-25doctor: remove outdated XCode version referenceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-25Parse `compiler --version` instead of -vJack Nagel
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>
2011-11-23formula_installer.rb: Improve receipt checkCharlie Sharpsteen
Using `f.installed?` instead of `f.prefix.exist?` ensures something was created by the installation step before the install receipt is written.
2011-11-23audit: check for MacPorts patches from trunkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-23ENV.rb: Fix typo in Fortran environment variablesCharlie Sharpsteen
`FFFLAGS` should be `FFLAGS`.
2011-11-22options: treat outdated brews as installedJack Nagel
`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>
2011-11-21Define and use ARGV.build_devel?Jack Nagel
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>
2011-11-21formula_installer.rb: Hotfix for head installsCharlie Sharpsteen
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.
2011-11-21audit.rb: Check version strings by defaultCharlie Sharpsteen
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.
2011-11-20Delete temp directory created during brew doctorJonathan Grochowski
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>
2011-11-18audit: check for ARGV.flag? in formulaeJack Nagel
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>
2011-11-16Don't include receipt in `brew list` outputCharlie Sharpsteen
Fixes #8615.
2011-11-16Don't write receipt for empty installsCharlie Sharpsteen
Fixes #8616.
2011-11-15audit: don't check duplicate URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-15Mercurial 1.9.3Adam Vandenberg
2011-11-14Add --fresh option to brew installCharlie Sharpsteen
When invoked, this option will ensure brew doesn't re-use any options from previous installs of a formula.
2011-11-14Hotfix for filtered_args breaking brew upgradeCharlie Sharpsteen
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.
2011-11-13info: display used options for installed formulaeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-13Hardwire multi_json backendCharlie Sharpsteen
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>
2011-11-13Add copyright notice for MultiJsonCharlie Sharpsteen
2011-11-13metadata: Use options from previous installsCharlie Sharpsteen
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.