Commit Graph
2222 Commits
Author SHA1 Message Date
Adam Vandenberg 4ad14737a4 audit: check conflict names 2013-01-03 11:22:31 -08:00
Adam Vandenberg 3e1ec41bf9 superenv: make HOMEBREW_FILE available
Superenv scripts have a stripped PATH, which may not include
the brew binary itself. Make this explicitly available to
superenv scripts.

Fixes bsdmake wrapper.

Closes #16805.
Closes #16846.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-03 09:14:36 -08:00
Jack Nagel 11de3d997b Guess system XQuartz version when mdfind fails
Fixes #16857.
2013-01-02 23:20:06 -06:00
Mike McQuaid 1e6e443ba1 Add caveats class and use in brew info.
Probably a better approach than reverted e721c7.

Fixes #16604.
2013-01-02 09:28:15 +00:00
Mike McQuaid 92a29b3818 Cleanup FormulaInstaller caveats. 2013-01-02 09:28:15 +00:00
Mike McQuaid ee17db950a Add Apache version style test. 2013-01-01 17:30:57 +00:00
Cyril Scetbon 3c333f480a Add Apache version style.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-01 17:30:52 +00:00
Mike McQuaid 2491b33a06 Add --homebrew-developer flag 2013-01-01 16:39:06 +00:00
Jack Nagel 8fcee6e15f Fix some doublethink in the Xcode module
Xcode.prefix and Xcode.installed? use slightly different heuristics to
find Xcode. In fact, .installed? basically duplicates a portion of the
.prefix logic. In practice, the methods results are usually consistent,
but .installed? does not handle non-standard prefixes if mdfind cannot
locate Xcode (for example, if the user has disabled Spotlight indexing).

Since .installed? is essentially a subset of the .prefix logic, we can
rely on the result from .prefix instead.

Fixes #16790.
2012-12-30 19:23:53 -06:00
Jack Nagel 82a2fdcd33 Respect BROWSER environment variable 2012-12-27 23:41:44 -06:00
Misty De Meo 2c2caf7cf0 Replace sceaga/homebrew with mistydemeo/tigerbrew
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/
Tiger users' best bet.
2012-12-27 21:55:15 -04:00
Misty De Meo e935cb12c1 utils: replace shell which with native code
Originally written for tigerbrew, but useful enough for core.
Replaces the shelled-out which in utils.rb with a native-ruby
equivalent, which is moderately faster.

Closes #16659.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-12-27 19:37:21 -04:00
Jack Nagel bb03a39ad8 Allow requirements to specify env options 2012-12-26 14:37:03 -06:00
Jack Nagel 5639cc7f38 Add a small DSL for setting requirement options 2012-12-26 14:37:02 -06:00
Jack Nagel 337efcc636 Clean up BuildEnvironment interface a bit 2012-12-26 14:37:02 -06:00
Jack Nagel 17a1e8c9c5 Try to find XQuartz via pkgutil if mdls fails
c.f. #16296.
2012-12-22 14:27:22 -06:00
Jack Nagel caa4876735 doctor: add helper for printing file listings 2012-12-22 12:48:53 -06:00
Jack Nagel 33465bbec9 doctor: f.prefix is already a pathname 2012-12-21 19:33:24 -06:00
Jack Nagel 73f76162c2 doctor: print offending paths in check_for_gettext
c.f. #16688.
2012-12-21 18:03:24 -06:00
Jack Nagel c1c0abd080 doctor: rename path_folders to paths 2012-12-21 17:16:57 -06:00
Jack Nagel d0ab4d9eae doctor: use a more rubyish conditional 2012-12-21 17:14:01 -06:00
Jack Nagel 4eb9620638 doctor: avoid pointless creation of pathname object 2012-12-21 17:12:00 -06:00
Jack Nagel 20f79e49ed doctor: run slowest checks last 2012-12-21 15:15:42 -06:00
Jack Nagel 14fe3ae763 Make "XQuartz is installed" heurstic stricter 2012-12-21 12:55:38 -06:00
Jack Nagel abc1bd2762 cleanup: fix 1.8.6 compatibilty issue
Fixes #16655.
2012-12-19 12:00:25 -06:00
Charlie Sharpsteen 78e7cc32e8 upgrade.rb: Generate Tab from Keg not Formula
Two issues were preventing `brew upgrade` from functioning properly:

  - `Tab.for_formula` was used to recover options from prior installs. The
    problem is that during an upgrade `for_formula` will be directed to a
    non-existant install of the newer version and thus returns a forged tab
    claiming no options were invoked.

  - The assignment to `installer.install_bottle` requires parenthesis in order
    to function properly.
2012-12-18 15:12:10 -08:00
Jack Nagel ac86882a1e Better reporting for MacPorts/Fink installations
closes #15853.
2012-12-17 17:18:22 -06:00
Jack Nagel 8f6d4ea021 Revert "Add launchctl_instructions method"
This code makes assumptions about the existence of prefix which are
valid in the context of the installer, but not necessarily in the
context of `brew info`, thus `brew info` on an outdated formula errors
out.

This reverts commit e5b53dd64b.
2012-12-16 19:56:15 -06:00
Lorenzo Manacorda e5b53dd64b Add launchctl_instructions method
Closes #16604.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-16 23:31:30 +00:00
Mike McQuaid a7247b92f6 Check if Cellar and Cache exist before cleaning. 2012-12-16 19:15:18 +00:00
Mike McQuaid e4b5b88bd9 Add another Erlang version format. 2012-12-16 14:35:41 +00:00
Jack Nagel 2c1ad3ce38 Improve Xcode and CLT config reporting
We support three configurations: Xcode-only, CLT-only, and Xcode with
CLT. Our configuration output should correctly reflect this.

While MacOS::Xcode.version has to continue to return a guess if Xcode is
not installed in order to maintain backwards compatibility, this is an
implementation detail that we don't need to expose to the user. And it
makes `brew --config` output confusing.

So let's only print the "Xcode" line when an actual Xcode installation
is present. This makes it easy to quickly figure out which of the three
possible configurations the user is running.

Addresses #14941, more or less.
2012-12-12 23:33:29 -06:00
Mike McQuaid fe80973e59 Fix stupid typo in bottle fix. 2012-12-12 00:47:02 +00:00
Mike McQuaid 93467cfee5 Disable bottle installation correctly on 10.6. 2012-12-11 23:39:43 +00:00
Jack Nagel 4b6b87c78b Properly escape log filename
Closes #16485.
2012-12-11 14:01:36 -06:00
Shaun Jackman 47bde804c5 pathname.rb: Pass -s to du instead of -d0
The option `du -s` is equivalent to `du -d0`. The former is a POSIX standard
(IEEE Std 1003.1-2008), whereas the latter is a BSD extension.

From the BSD man page:
`-s Display an entry for each specified file. (Equivalent to -d 0)`

From SUSv4:
`-s Instead of the default output, report only the total sum for each of the specified files.`
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html

Closes #16516.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-12-11 09:32:16 -08:00
Jack Nagel 0a868aba74 Don't print error message when dev_tools_path fails to find tools
This message is either (a) never printed because the tools are
installed, or (b) printed every time this method is called.

See #16119.

This code shouldn't be responsible for UX anyway, so just remove it and
let other parts of Homebrew be responsible for failing or declaring that
they need the developer tools.
2012-12-08 16:51:29 -06:00
Jack Nagel 04ddb1cbff doctor: don't check keg-onlies if cellar doesn't exist 2012-12-08 16:41:31 -06:00
Mislav Marohnić ed7f06b7f0 proper version sort in outdated command
c.f. #16382.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04 21:10:03 -06:00
Mislav Marohnić 15ddc2beb6 propert version sort in info command
Closes #16382.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04 21:09:44 -06:00
Mike McQuaid b30390f1e4 Improve bottle error messages.
On installation or creation of a bottle error out of the current
machine does not support bottles.

References #16291.
2012-12-04 12:06:02 +00:00
Xiyue Deng dc19acc2b4 brew-cleanup: check whether keg is a directory.
* Avoid problem when encountering `.DS_Store' in Cellar.

Closes #16356.
Closes #16388.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-04 11:40:38 +00:00
Mike McQuaid 06988040c7 Fix startup plist instructions.
Closes #16369.
2012-12-03 17:09:51 +00:00
Jack Nagel 5d645a6ef6 Fix broken brew cleanup tests 2012-12-01 14:42:30 -06:00
Mike McQuaid ae335f108a Fix bad reference to local_bottle_path.
Fixes #16337.
2012-12-01 15:38:05 +00:00
Mike McQuaid 6442baa979 Support installing bottles from local files. 2012-12-01 12:45:23 +00:00
Xiyue Deng 1739239911 brew cleanup: don't remove higher version kegs.
* Use version compare to only remove kegs with lower version than the
  current one, not higher version which might be from someone's
  branch.
* Do the same for cache cleanup.
  - Be conservative so that if a name detected from cache file is not
    the same as its formula then don't clean it.

Closes #15914.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-30 21:37:56 +00:00
Misty De Meo db9750b999 Fix Formula.factory for Formula subclasses
Fixes #16288.
2012-11-28 10:58:29 -06:00
Misty De Meo 77790df255 Formula.factory: raise on encountering non-Formula
Formula.factory naively assumed that any already-loaded constant
fed into it was a formula, with confusing results when trying to
`brew install` a name from the ruby stdlib.

Fixes #16284.
2012-11-28 10:01:00 -06:00
Mike McQuaid 7908ac3341 Whitelist 10.8.2 Supplemental Update static libs.
Fixes #16215.
2012-11-26 09:41:05 +00:00