Commit Graph
2423 Commits
Author SHA1 Message Date
Jack Nagel 18ff8a67fb Fix Regexp encoding under 1.9/2.0 2013-02-10 15:26:07 -06:00
Adam Vandenberg 295d2832a2 search homebrew-x11 2013-02-10 11:15:20 -08:00
Adam Vandenberg e7ca13e299 Show permission changes in debug mode 2013-02-10 08:55:09 -08:00
Jack Nagel ccbc8a7d4a ConflictRequirement: pass argument to superclass initalizer 2013-02-09 18:33:26 -06:00
Jack Nagel ffa91790b0 Extract formula locks into a class 2013-02-09 18:19:50 -06:00
Jack Nagel d4dfe35a0c build: ignore non-explicit build-time dependencies
Given the following dependency tree:

  foo
    bar (bottled)
      baz (build-time only)

We skip installing baz because it is a build-time dependency of
something that is bottled. However, during the build of foo, this filter
is not applied because the dependent-dep relationship is not considered
at this stage. If baz wasn't installed prior to this build, fixopt(baz)
will fail.

Further, build-time deps are tightly coupled to the formula they are
specified by, and we shouldn't rely on them coming from dependencies
several levels down.

Fixes #17697.
2013-02-09 14:37:36 -06:00
Jack Nagel 117470b7c9 LanguageModuleDependency: foward args to superclass initalizer 2013-02-08 00:12:49 -06:00
Jack Nagel 12b2f94946 debrew: restore ARGV even when IRB.setup raises 2013-02-07 22:31:05 -06:00
Jack Nagel 89d13c6e02 Reduce footprint of readline hack 2013-02-07 19:02:20 -06:00
Jack Nagel a1aea154a8 Fix typo 2013-02-07 18:58:26 -06:00
Jack Nagel 7806852990 audit: allow alpha.gnu.org URLs 2013-02-07 15:34:13 -06:00
Jack Nagel 9382757e83 superenv bin directory is under HOMEBREW_REPOSITORY 2013-02-07 13:33:04 -06:00
Jack Nagel 38ebb5a4e6 download_strategy: move requires out of method
This can cause subtle issues when an exception is marshaled between the
build process and the main Homebrew process, as the marshaled exception
may contain URI objects even when the main Homebrew process has not
loaded the URI library.

Closes #17642.
2013-02-07 12:45:37 -06:00
Jack Nagel b34f7727bd MacOSVersion -> MacOS::Version 2013-02-07 12:39:54 -06:00
Jack Nagel 9cb6939cfd Flesh out MacOSVersion tests 2013-02-07 12:35:15 -06:00
Mike McQuaid dbf19bd9b9 Print formula plist_manual caveat unless loaded. 2013-02-06 22:27:57 -08:00
Jack Nagel e97adfd1ad Version: remove pointless private call 2013-02-06 22:25:02 -06:00
Jack Nagel 3bd28261d3 Version: kill silly class method
Overriding <=> directly is much simpler.
2013-02-06 22:25:02 -06:00
Jack Nagel 4e7cc28430 MacOS: cache calls to mdfind 2013-02-06 22:24:24 -06:00
Jack Nagel 1372e53fe8 Add tests for raise monkey patch 2013-02-06 19:04:43 -06:00
Jack Nagel d0e959a009 Split debrew up to faciliate test isolation
We want to be able to test the raise functionality without
monkey-patching #raise on every object in the system, which is one of
the side effects of loading debrew.rb.
2013-02-06 19:04:43 -06:00
Jack Nagel 771c4cae51 Don't discard exception instance data in debug mode
If the debugger's monkey-patched raise was passed an instantiated
exception, the #exception method was called with a potentially nil
argument, causing its instance data to be thrown away. This hides
potentially useful information from the user.

Fix it by allowing instantiated exceptions to be reraised unharmed.

Fixes #17622.
2013-02-06 11:35:41 -06:00
Eashwar Ranganathan b0f7d72f3d brew-pull: fix third-party taps
Closes #17588.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-05 20:14:10 -08:00
Jack Nagel eaf7dbf0ad XQuartz.version: return dunno as a string and not a symbol 2013-02-04 14:53:18 -06:00
Jack Nagel 0dd05533d8 Xcode.version: return dunno as a string and not a symbol 2013-02-04 14:42:39 -06:00
Adam Vandenberg 1b4c28ab49 Architecture: add flag for ppc support 2013-02-03 21:07:59 -08:00
Jack Nagel 41cd32838d audit: check for missing xz build-time dep
Closes #17565.
2013-02-03 14:57:33 -06:00
Jack Nagel 437a30d641 audit: mark intltool as a build-time dep 2013-02-03 14:48:02 -06:00
Adam Vandenberg f52e367213 update: abort if formula names are given
Closes #11154.
2013-02-03 11:53:17 -08:00
Adam Vandenberg 9803f69032 Fix typo in XQuartz comment 2013-02-03 11:32:34 -08:00
Jack Nagel b95e0501bd download_strategy: fix typo 2013-02-02 16:21:25 -06:00
Simon Sigurdhsson 34cfc378b5 Make CurlDownloadStrategy resume aborted downloads
* `CurlDownloadStrategy#_fetch` (and the same methods in its
  subclasses) now fetches the file to a temporary path, and
  `CurlDownloadStrategy#fetch` moves it to the correct location.
* `Homebrew#cleanup` cleans the temporary files `CurlDownloadStrategy`
  creates if they're left in the cache.

Closes #13953.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-02 14:05:40 -08:00
Jack Nagel f8735f69a1 FormulaInstaller#check_requirements: fix inverted conditional 2013-02-02 14:51:10 -06:00
Jack Nagel 37f198542d Move ruby methods to FileUtils extension 2013-02-02 11:24:55 -06:00
Jack Nagel 60984fa58e Fix args to ruby method 2013-02-02 11:23:55 -06:00
Jack Nagel 15d74ebc4c audit: inspect dep name, not dep object 2013-02-02 01:00:46 -06:00
Jack Nagel f81eb97d96 Ensure :cairo and :pixman resolve to standard formula deps
We do not use X11 to satisfy these deps for consistency reasons,
but we should continue to support the symbols for compatibility.
2013-02-02 00:09:28 -06:00
Jack Nagel 78a5f02d9e Mark symbol-style autotools deps as build deps by default 2013-02-01 23:49:52 -06:00
Jack Nagel 15ced99fd3 Refactor fetch
Remove direct references to checksum types, access them through the
Checksum::TYPES constant instead.
2013-02-01 22:17:46 -06:00
Jack Nagel 6fbb1798e6 Move MD5 deprecation warning into Pathname#md5
This way it will print when the verification takes place, making it a
bit more obvious which formula it refers to.
2013-02-01 21:53:11 -06:00
Elliot Saba 040bfcf5b2 Update tap --repair function to ignore non-directory files in Library/Taps/
Closes #17518.
Closes #17511.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-01 18:36:38 -08:00
Jack Nagel de5b7c0fe7 audit: wrap patches in ENV.with_build_environment block 2013-02-01 14:27:34 -06:00
Jack Nagel 773812e86c Don't call methods on xcrun_path if it's nil 2013-02-01 13:36:53 -06:00
Jack Nagel 56a978ba1d Add md5 support to compatibility, with deprecation warning 2013-02-01 13:24:36 -06:00
Adam Vandenberg 3ca4cd8961 Formula is not a formula.
Closes #17492.
2013-02-01 09:25:47 -08:00
Mike McQuaid ddf4d1f603 Don't let xcrun find superenv tools.
Causes an infinite loop when trying to find e.g. missing gcc.

Closes #17426
References #17455
2013-01-31 21:48:28 -08:00
Samuel John 238a2f02bc brew doctor: Check for CaSe SeNsItIvE fs
Closes #16658.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-31 21:48:28 -08:00
Jack Nagel 46e29cb12e build: accept X11 proxies as X11 deps 2013-01-31 19:46:18 -06:00
Jack Nagel 44544fe968 Update documentation for Dependency.expand 2013-01-31 15:40:06 -06:00
Jack Nagel 7522e4883b Proper recursive expansion of requirements with filtering
Expand requirements recursively while applying the same optional? and
recommended? filters that dependencies are run through. Options
generated by requirements are now checked against the correct list of
requirements, eliminating the temporary "best guess" logic in the
installer.
2013-01-31 15:40:06 -06:00