Commit Graph
2586 Commits
Author SHA1 Message Date
Jack Nagel 4f855db00e Split out and fix LanguageModuleDependency tests 2013-04-02 15:33:34 -05:00
Jack Nagel 657acb58be Simplify setting this ivar 2013-04-02 15:33:34 -05:00
Jack Nagel adbf1f36a3 Fix chicken scheme imports 2013-04-02 15:33:34 -05:00
Jack Nagel 64d19ec8c9 Add new tests for fails_with DSL 2013-04-02 13:19:04 -05:00
Jack Nagel 725704f7fb Isolate compiler selector tests 2013-04-02 13:19:04 -05:00
Jack Nagel e4cbfe11ec CompilerSelector: don't use non-existent compilers 2013-04-02 13:19:04 -05:00
Jack Nagel 2ccca70dc3 Bump useable clang version to 318
Build 211 can build most things, but I've seen intermittent
miscompilation and slower code. Also it comes from Xcode 4.2, so most
people don't have it anyway. Let's use 218 as the minimum viable
version.
2013-04-02 13:19:04 -05:00
Jack Nagel da184c25e9 Move x86_64 Requirement into core
Closes #18886.
2013-04-02 13:17:24 -05:00
Jack Nagel a82080bd2b Use satisfy syntax for CLTDependency 2013-04-02 13:17:23 -05:00
Jack Nagel 0047946920 Test that X11 env is triggered correctly 2013-04-01 18:56:14 -05:00
Jack Nagel 17e83c4f24 Fix X11 env setup 2013-04-01 18:50:56 -05:00
Jack Nagel d839567f1f Requirement: env DSL is evaluated in context of self, not ENV
This was meant to support:

  env do |req|
    append_path 'PATH', req.some_method
    ...
  end

i.e., the block was evaluated in the context of ENV. But it turned out
to be not so useful after all, so I'm ripping it out before something
actually depends on it.
2013-04-01 16:17:35 -05:00
Mike McQuaid 391aa8408e Add optional post_install method to Formula.
Sometimes we may want to run commands after bottle installation (such as
creating directories outside the Cellar) so this method allows us to do
so.

Closes #18382.
2013-04-01 22:12:43 +01:00
Mike McQuaid b014824a38 formula_installer: warn on bottles being skipped.
We want to notify users that non-/usr/local installs may result in some
bottles being not used.

References #18540
2013-04-01 22:12:43 +01:00
Jack Nagel 6731611a79 Make testing_env somewhat readable 2013-04-01 15:53:42 -05:00
Jack Nagel 911fb61872 Silence stderr in test suite 2013-04-01 12:15:29 -05:00
Jack Nagel 90500c02e4 audit: fix check for depending on requirement classes
Don't complain if it's instantiating the class so that it can pass
arguments.

Fixes #18883.
2013-04-01 11:35:56 -05:00
Jack Nagel 26a6acd10d Fix list --pinned for non-formula kegs
Fixes #18885.
2013-04-01 11:22:15 -05:00
Jack Nagel 6b12930c86 Fix uninstallation of non-formula kegs
Grrr...
2013-03-31 21:28:20 -05:00
Jack Nagel d29488ea60 onoe and opoo print to stderr
This may result in some undesired output for things that suppress
stdout, but we'll fix those as we go.

Fixes #18650.
2013-03-31 15:20:12 -05:00
Jack Nagel 6c51a4b455 DRY ohai truncation 2013-03-31 15:18:38 -05:00
Simon Sigurdhsson a79f1a80b8 brew-pin: Fix bug in FormulaPin#pinned?
Since `pinned?` was using `File#exists?`, broken symlinks left by force-upgraded
formulae made `pinned?` return false while `pin` returned with an error because
it could not overwrite the broken link. This is fixed by using `File#symlink?`
instead, which returns true for broken symlinks and false only when they do not
exist.

Closes #18858.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-31 19:27:17 +01:00
Simon Sigurdhsson 49bc73a4ef brew-info: Add pinned status to info.
Closes #18851.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-31 19:27:17 +01:00
Jack Nagel 332e0fb20c Simplify destructuring this array 2013-03-30 15:16:44 -05:00
Simon Sigurdhsson 85eb73ced7 brew-pin: prevent selected formulae from upgrade.
* Added `pin` et. al. to manpage.
* Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1`
* Added `brew list --pinned` to `brew.1`
* Added information about frozen formulae to `brew upgrade` in `brew.1`
* Added `pin` et.al. to completion scripts.
* Unpin formulae when uninstalling them
* Unpin and re-pin formulae when upgrading (avoids stale symlink)

References #18386.
Closes #18515.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-30 19:50:47 +00:00
Jack Nagel 9e3ef197fe Use each_key instead of keys.each 2013-03-29 21:59:02 -05:00
Adam Vandenberg b8380793c0 doctor: restore newlines between checks
Closes #18060.
2013-03-29 11:14:46 -07:00
Jack Nagel 94209b221a Remove circular require
Will this break anything? It shouldn't; Formula will always be loaded
before Tab anyway. But really there is a design problem here, Tab
shouldn't have any hardcoded references to Formula. I think this is
fixable, but callers of for_formula will need to be checked first.
2013-03-28 17:37:29 -05:00
Jack Nagel fe3eb72733 Suppress uninitialized instance variable warnings 2013-03-28 17:37:29 -05:00
Jack Nagel 6078e757bb extend/fileutils: suppress discarded method definition warnings 2013-03-28 17:37:29 -05:00
Jack Nagel 1e9fb46212 Suppress ambiguous argument and grouped expression warnings 2013-03-28 17:37:29 -05:00
Jack Nagel 1bff4c6bc3 Make clear that this method discards arguments 2013-03-28 17:37:28 -05:00
Adam Vandenberg f12c65becb audit: don't complain about postgis using postgresql 2013-03-28 13:10:41 -07:00
Jack Nagel ec5a6eb2f1 info: make use of Tab#to_s
Closes #18788.
2013-03-28 14:21:52 -05:00
Jack Nagel 74cf152787 Tab#to_s returns a one-line summary of the receipt 2013-03-28 14:16:15 -05:00
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