Commit Graph
3136 Commits
Author SHA1 Message Date
Jack Nagel 4b51e119a8 Improve signal-to-noise ratio of brew list --unbrewed
Closes #21573.
2013-08-01 22:13:46 -05:00
Adam Vandenberg 969e59cabd Document superenv HOMEBREW_CCFG flags 2013-08-01 20:12:23 -07:00
Misty De Meo f23b3fd214 ArchRequirement: support :intel, :ppc 2013-08-01 19:57:05 -07:00
MerelyAPseudonym e318ac243c fix typo
Closes #21601.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-01 17:22:51 -07:00
Jack Nagel e11418bc38 Handle mkpath of node_modules directory in keg 2013-07-31 13:51:05 -05:00
Samuel John 43de1654b0 Increase copyright year in LICENSE to 2013 2013-07-31 09:49:03 +02:00
Misty De Meo a67f150796 superenv: fix locating non-Xcode gcc-4.2 2013-07-29 18:45:03 -07:00
Mike McQuaid c45c77d031 audit: don't complain about bottle versions.
`brew bottle` already complains and this is a niche case.

References #21374.
2013-07-28 16:26:16 -07:00
Jack Nagel 8325c1b8c6 RbConfig::CONFIG['bindir'] is already a string 2013-07-28 16:43:22 -05:00
Jack Nagel c08b13851a search: silence JSON decode errors
Closes #21506.
Closes #21508.
2013-07-28 15:38:46 -05:00
Jack Nagel 5f6f8bc1c1 Set close-on-exec on lock file descriptors
The formula locks used by the installer and commands like link and
unlink are backed by open files and flock(). The open file descriptors
are thus leaked to any subprocesses. This can result in weird behavior
in programs spawned from formula that do not expect to inherit these
descriptors.

Fix this by setting close-on-exec on the lock file descriptors.

Fixes #21486.
2013-07-27 23:57:35 -05:00
Misty De Meo 584bf9e0e2 MacOS.locate: search HOMEBREW_PREFIX before xcrun
Since xcrun doesn't work on CLT-only systems. Querying HOMEBREW_PREFIX
first before xcrun is much faster for that case.
2013-07-26 23:22:22 -07:00
Jack Nagel 281eea0da2 Fix expansion of deps with --build-bottle 2013-07-26 15:05:42 -05:00
Jack Nagel f915beb966 Adjust logic to properly sort erlang versions
Fixes #21417.
2013-07-24 19:48:21 -05:00
Adam Vandenberg 12426c87b1 audit: add TODO 2013-07-23 10:51:07 -07:00
Jack Nagel 6f5897ae96 audit: use !~ instead of "not ... =~" 2013-07-23 11:22:16 -05:00
Jack Nagel a82c997bb9 audit: fix dep name escaping 2013-07-23 11:22:15 -05:00
Jack Nagel 49e8f9b5ff audit: escape dep before regexp interpolation 2013-07-22 22:53:43 -05:00
Jack Nagel 65786d6ebe audit: fix indentation 2013-07-22 22:53:22 -05:00
Jack Nagel 9456d8a4ee audit: fix broken condition 2013-07-22 22:53:11 -05:00
Jack Nagel bb3373433b Update comment 2013-07-22 21:49:14 -05:00
Jack Nagel 35752b9038 Handle optional build-time deps correctly 2013-07-22 21:36:11 -05:00
Jack Nagel f4aa7de35d Check deps of satisfied deps 2013-07-22 21:36:11 -05:00
Jack Nagel 3cf3749e6e Pathname#write: don't check ARGV.force?
Closes #21390.
2013-07-22 21:26:42 -05:00
Phil Smith da774ad4d9 typo
Closes #21385.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-22 11:24:40 -07:00
Jack Nagel cc5ad63609 Silence warnings 2013-07-22 11:41:47 -05:00
Jack Nagel 90ec8297d3 Fix python dependency hash equality
eql? should not depend on the hash value as hash values of uneql objects
can collide, but eql values may only collide for objects that are
actually eql.

Further, python dependencies are uniquely identified by the combination
of the name and imports attributes, so there is no reason to involved
the expensive binary computation for simple equality checks.

Fixes #20840.
2013-07-22 11:41:46 -05:00
Jack Nagel 0b77b3a134 Remove redundant reader method 2013-07-22 11:41:46 -05:00
Jack Nagel ec222810c3 Map pkginfo versions to actual XQuartz versions 2013-07-22 11:25:12 -05:00
Jack Nagel e33fcb52e0 Fall back on pkgutil when mdls cannot determine XQuartz version 2013-07-22 11:25:11 -05:00
Jack Nagel 50c59320a5 Separate version detection from accessor 2013-07-22 11:25:11 -05:00
Jack Nagel fc0f4ff771 Extract version_from_pkgutil 2013-07-22 11:25:11 -05:00
Jack Nagel 178fa2b6f1 Extract version_from_mdls 2013-07-22 11:25:11 -05:00
Jack Nagel 3159f9b399 Extract guess_system_version 2013-07-22 11:25:10 -05:00
Jack Nagel c4e6794fad Extract bundle_path from XQuartz.version 2013-07-22 11:25:10 -05:00
Jack Nagel 7d16d8c7d6 Cache pkgutil results at the source 2013-07-21 20:09:55 -05:00
Jack Nagel 0902d31417 Eliminate nested conditional 2013-07-21 16:41:51 -05:00
Jack Nagel 3dfb326421 Extract bundle_path method from Xcode#prefix 2013-07-21 16:41:51 -05:00
Jack Nagel 361d224e99 Existence of directory is implied by existence of executables 2013-07-21 16:41:51 -05:00
Jack Nagel a8f7f4caff Pull another unwieldy condition into a method 2013-07-21 16:41:50 -05:00
Jack Nagel 4d5a011bcf Update comment about CLT
This was worded in a confusing way, and made an assumption about future
OS X versions that we don't know to be true.

Also, it's probably wrong to state that the CLT location is dependent on
the OS X version; surely there will be a newer CLT for 10.8 that gets
installed in the same location as on 10.9. But we don't know any better
yet.
2013-07-21 16:41:50 -05:00
Jack Nagel 42df11d962 Split up unreadable conditional 2013-07-21 16:41:50 -05:00
Jack Nagel 8dd5a913a3 These should be integers 2013-07-21 07:56:30 -05:00
Jack Nagel 867f60b7ab Remove unnecessary use of globals in compiler version methods 2013-07-20 22:40:23 -05:00
Jack Nagel ec8b5f6f51 Don't report llvm-gcc if it's actually clang 2013-07-20 22:40:22 -05:00
Jack Nagel b2c50ef57d Add String#end_with?
I'm tired of not remembering if start_with?/end_with? are portable, so
just add them both if they're not defined.
2013-07-19 22:32:57 -05:00
Jack Nagel 57ad4d40c5 Fix String#start_with? implementation
It is supposed to accept a variable number of prefixes, and also to
check if they are convertible to strings. This matches behavior
documented in RubySpec.
2013-07-19 22:31:07 -05:00
Adam Coffman 394d7be6a4 upgrade: put exit statements in both conditional branches
This check was only occurring in one branch of the conditional.
As a result, if you ran `brew upgrade` with no args and there were no packages to upgrade,
the nonsensical message

"==> Upgrading 0 outdated package, with result:"

would be printed.

Closes #21316.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-18 15:35:17 -05:00
Mike McQuaid d6a6caefb3 Warn more about failing bottle version detection.
This is needed for local bottle installation and also possible when
detecting bottle versions from URLs.
2013-07-18 09:56:55 -07:00
Mike McQuaid c83c386bf9 Move getting formula names from bottles to method. 2013-07-18 09:56:55 -07:00