Commit Graph
2551 Commits
Author SHA1 Message Date
Adam Vandenberg 333f3cf007 doctor: check for all DYLD env vars 2013-03-26 16:19:55 -07:00
Sebastian Staudt 34357dac52 LinuxCPUs: Fix method alias
Closes #18683.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-23 14:23:03 -05:00
Misty De Meo e7f66519dc Hardware: separate out CPU values into CPU module
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
  Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-23 13:40:18 -05:00
Jack Nagel ddbb98413c Turn double modifier into a single conditional 2013-03-21 17:20:57 -05:00
Jack Nagel 9714f5a210 utils: remove obsolete comment 2013-03-21 17:12:56 -05:00
Jack Nagel ee2e2bc74b versions: add debug output 2013-03-21 17:05:02 -05:00
Jack Nagel bf5d55a9d7 versions: remove unnecessary variable 2013-03-21 17:04:54 -05:00
Russell Teabeault 2827daed78 versions: unload constant before calling Formula.factory
Closes #18634.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-21 13:26:56 -05:00
Samuel John 06935cd77d Better superenv support for Xcode elsewhere
- The Library/ENV/4.3/xcrun shim now respects
  ENV['DEVELOPER_DIR'] instead assuming the location
  of /Applications/Xcode.app/Contents/Developer.
- The env var DEVELOPER_DIR is set if it is not
  already. So, during superenv this var is always set
  and we no longer have to care about people with unset
  or wrongly set xcode-select stuff. This has been
  a major PITA in the past.
- determine_developer_dir (which is used to set
  the DEVELOPER_DIR var) now uses MacOS::Xcode.prefix
  which is proven and very capable and uses splotlight
  correctly.
- Replace (and remove) MacSystem.xcode43_developer_dir
  with Xcode.prefix

Closes #18618
2013-03-21 17:10:32 +01:00
Misty De Meo 3608c33429 Replace remaining shelled-out whiches 2013-03-21 08:37:51 -05:00
Mike McQuaid de69336719 Fix local installation of bottles.
Fixes #18631.
2013-03-21 10:33:17 +00:00
Jack Nagel 79fa588826 Fix brew options --all
Fixes #18625.
2013-03-20 22:32:56 -05:00
Jack Nagel 10afa74c06 Move this method somewhere more appropriate 2013-03-20 22:32:56 -05:00
Jack Nagel ba38f0937b Move Formula.all to compat 2013-03-20 22:32:56 -05:00
Misty De Meo c4c2c029b3 superenv: fix xcode43_developer_dir check 2013-03-20 21:50:32 -05:00
Mike McQuaid 5010dca995 brew-info: specify whether poured or built.
- Store in the tab if a bottle was poured for the build.
- Add an additional line of output to `brew info` outputting whether
  the formula was built from source or poured from a bottle.

Closes #18430.
Closes #18475.
2013-03-20 23:06:38 +00:00
Misty De Meo a7e0ad42ea superenv?: fail when xcode43_developer_dir raises 2013-03-20 10:52:51 -05:00
Misty De Meo 6218572824 superenv: move check logic into superenv?
Fixes #16292.
2013-03-20 10:52:51 -05:00
Misty De Meo 8a523b821c superenv: move MacSystem into separate file
This makes it requirable before superenv becomes active.
2013-03-20 10:52:51 -05:00
Jack Nagel d0c5317207 versions: remove FIXME
I understand how this works now, and it is definitely necessary.
2013-03-18 15:10:37 -05:00
Jack Nagel 31fd139e57 Simplify SoftwareSpec checksum methods
Reader methods for specific checksum types have been absent from the
Formula class for some time, so there isn't any reason to expose them in
SoftwareSpec, either.

Thus, these methods now only act as setters, and #checksum should be
used to access the constructed Checksum object.
2013-03-18 15:10:36 -05:00
Jack Nagel b95c11a8ec Reduce footprint of fails_with_llvm compat code 2013-03-18 13:29:33 -05:00
Jack Nagel 6f6c889a24 Fix fails_with_llvm compatibility
Fixes #18565.
2013-03-18 13:00:47 -05:00
Samuel John 5da30fa1f9 doctor: Tweak git-clean suggestion for empty dirs
git clean -f is not enough. Needs `-d` somtimes to
handle cases when we rename a dir.

Fixes #18544 and fixes #14224
2013-03-18 12:09:15 +01:00
Jack Nagel 5471e790ec cleaner: simplify verbose pathname extension 2013-03-18 00:11:49 -05:00
Mike McQuaid 1ceff3741c Temporarily omit bottle source warning.
Pending a decent fix.

Fixes #18540.
2013-03-17 14:49:08 +00:00
Peter Aronoff 59c0b3f916 Fix brew update so that it doesn't show doubles
Under certain conditions, `brew update` will show doubles. It's a rare
edge-case, but if you have a tap where the name of the formula is identical
with the name of the insalled file, then you see output like this:

    ==> Updated Formulae
    aalib				   ssh-copy-id
    casperjs				   sshuttle
    jack				   telemachus/anytap/brew-any-tap
    mogenerator				   telemachus/anytap/brew-any-tap

I believe this should fix that.

Closes #18495.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-16 16:27:46 -05:00
Jack Nagel 832288e2fc ENV: clear influential include path vars 2013-03-16 13:51:30 -05:00
Jack Nagel 6ab348ea0a Decouple CompilerSelector from ENV 2013-03-16 13:05:02 -05:00
Jack Nagel aa69b671b3 Use a priority queue to select compilers
The existing case-statement with nested if-statements is gross and hard
to extend. Replacing it with a priority queue simplifies the logic and
makes it very easy to add new compilers to the fails_with system, which
we will likely want to do in the future.
2013-03-16 13:05:02 -05:00
Jack Nagel f91df69127 Replace custom collection with Set
The original constraints that led to using a custom collection rather
than Array or Set here no longer exist, so let's avoid the pointless
abstraction here.
2013-03-16 13:05:02 -05:00
Adam Vandenberg bd4540840c fix gcc tap suggestion
Closes #18520.
2013-03-16 10:28:24 -07:00
Adam Vandenberg effea228a3 audit github downloads
We want the new-style "/archive/" downloads.
2013-03-15 15:41:22 -07:00
Tobias Lidskog ad6abf776e audit: Improve url audits.
* Add url check for GitHub home pages using http.
* Add url check for GitHub repo urls using http.
* Include url in error messages about url issues.

Closes #18372.
2013-03-15 15:41:22 -07:00
Jack Nagel 37324e4fb4 Xcode 4.6.1 is released
Closes #18481.
2013-03-14 22:58:55 -05:00
Adam Vandenberg fa54679a1b doctor: add check for coreutils in path 2013-03-13 10:22:09 -07:00
Adam Vandenberg a75b095fe5 doctor: mess with indentation 2013-03-13 09:45:55 -07:00
Xiyue Deng 87775e1649 Blacklist plain gcc formula with caveat pointing to homebrew-versions
Closes #17911.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-12 20:28:47 -07:00
Jack Nagel 5ddd40b844 Switch compilers when no build is specified
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.
2013-03-12 13:55:15 -05:00
Mike McQuaid 2249062526 Revert "Update brew tap to work without 'homebrew-'"
This reverts commit d72901f92b.

References #18366.
Closes #18432.
2013-03-12 17:55:55 +00:00
Peter Aronoff d72901f92b Update brew tap to work without 'homebrew-'
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>
2013-03-12 12:32:49 +00:00
Jack Nagel e5a103b3b8 Pass filename and lineno arguments to class_eval 2013-03-12 00:38:52 -05:00
Jack Nagel ac22d6ccbf mach.rb: remove incorrect comment
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.
2013-03-11 17:41:21 -05:00
Mike McQuaid 98047d08c4 Relocate bottles using install_name_tool.
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.
2013-03-11 18:58:37 +00:00
Shaun Jackman 076fcd11b0 Portability fixes to run Homebrew on Linux systems
Closes #16344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11 18:26:25 +00:00
Mike McQuaid 22322867a1 Don't run certain functions on non-MACOS. 2013-03-11 18:26:25 +00:00
Mike McQuaid bf0a97b79c Add with_system_path to run using system PATHs.
Needed for Linux compatibility.
2013-03-11 18:26:25 +00:00
Mike McQuaid 6c32a0d075 Add current Ruby globals.
Allows access to the Ruby path. Needed for Linux
porting.
2013-03-11 18:26:25 +00:00
Adam Vandenberg 40b027e49f blacklist latex
Closes #18404.
2013-03-11 10:27:50 -07:00
Misty De Meo 7a7ba86d76 doctor: skip git origin check without brew repo
Likely fixes #18324.
2013-03-11 10:30:08 -05:00