2868 Commits

Author SHA1 Message Date
Jack Nagel
581e766809 Fix fails_with_llvm compatibility
Fixes Homebrew/homebrew#18565.
2013-03-18 13:00:47 -05:00
Samuel John
ac68de8a7e 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 Homebrew/homebrew#18544 and fixes Homebrew/homebrew#14224
2013-03-18 12:09:15 +01:00
Jack Nagel
56fa23e07e cleaner: simplify verbose pathname extension 2013-03-18 00:11:49 -05:00
Mike McQuaid
43a8e896e8 Temporarily omit bottle source warning.
Pending a decent fix.

Fixes Homebrew/homebrew#18540.
2013-03-17 14:49:08 +00:00
Peter Aronoff
c9563cce95 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 Homebrew/homebrew#18495.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-16 16:27:46 -05:00
Jack Nagel
e463016428 ENV: clear influential include path vars 2013-03-16 13:51:30 -05:00
Jack Nagel
a55fa2c359 Decouple CompilerSelector from ENV 2013-03-16 13:05:02 -05:00
Jack Nagel
f8b4959742 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
7104e20bde 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
94bf0747b3 fix gcc tap suggestion
Closes Homebrew/homebrew#18520.
2013-03-16 10:28:24 -07:00
Adam Vandenberg
ccd69e45d4 audit github downloads
We want the new-style "/archive/" downloads.
2013-03-15 15:41:22 -07:00
Tobias Lidskog
5f6515baad 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 Homebrew/homebrew#18372.
2013-03-15 15:41:22 -07:00
Jack Nagel
8039d46e09 Xcode 4.6.1 is released
Closes Homebrew/homebrew#18481.
2013-03-14 22:58:55 -05:00
Iain Beeston
cda83428a6 add brew linkapps --system
Added an option to linkapps to allow linking to /Applications rather
than ~/Applications

Closes Homebrew/homebrew#18196.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-14 11:32:13 -07:00
Adam Vandenberg
69c8ed1a1e doctor: add check for coreutils in path 2013-03-13 10:22:09 -07:00
Adam Vandenberg
7b7268c065 doctor: mess with indentation 2013-03-13 09:45:55 -07:00
Xiyue Deng
f23cfa884c Blacklist plain gcc formula with caveat pointing to homebrew-versions
Closes Homebrew/homebrew#17911.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-12 20:28:47 -07:00
Jack Nagel
cc08d08d74 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 Homebrew/homebrew#18175.
2013-03-12 13:55:15 -05:00
Mike McQuaid
c2e642f9c1 Revert "Update brew tap to work without 'homebrew-'"
This reverts commit d72901f92b7385d44d8c980976db6a4336572e7e.

References Homebrew/homebrew#18366.
Closes Homebrew/homebrew#18432.
2013-03-12 17:55:55 +00:00
Misty De Meo
10d5ed56f1 brew switch: change optlinks for keg-only formulae 2013-03-12 08:18:06 -05:00
Peter Aronoff
3381142bc7 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 Homebrew/homebrew#18366.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-12 12:32:49 +00:00
Jack Nagel
79a67fd097 Pass filename and lineno arguments to class_eval 2013-03-12 00:38:52 -05:00
Jack Nagel
6197eae3d4 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
0f9910d352 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 Homebrew/homebrew#18374.
2013-03-11 18:58:37 +00:00
Shaun Jackman
258d70028f Portability fixes to run Homebrew on Linux systems
Closes Homebrew/homebrew#16344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11 18:26:25 +00:00
Mike McQuaid
98352b3b41 Don't run certain functions on non-MACOS. 2013-03-11 18:26:25 +00:00
Mike McQuaid
9837bbda55 Add with_system_path to run using system PATHs.
Needed for Linux compatibility.
2013-03-11 18:26:25 +00:00
Mike McQuaid
d39280bdf7 Add current Ruby globals.
Allows access to the Ruby path. Needed for Linux
porting.
2013-03-11 18:26:25 +00:00
Adam Vandenberg
cac86a4f0b blacklist latex
Closes Homebrew/homebrew#18404.
2013-03-11 10:27:50 -07:00
Misty De Meo
feb836e1ea doctor: skip git origin check without brew repo
Likely fixes Homebrew/homebrew#18324.
2013-03-11 10:30:08 -05:00
Tobias Lidskog
06f98132d3 audit: allow ARGV.find
This fixes a false positive for mongodb.

Closes Homebrew/homebrew#18370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 12:13:50 -07:00
Tobias Lidskog
a4a795c096 Fix test failure on ivybridge cpus.
Closes Homebrew/homebrew#18371.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 10:37:56 -07:00
Jack Nagel
00f05eafe9 Remove redundant attr_readers
These are redefined later for use in the bottle DSL.
2013-03-09 22:44:53 -06:00
Jack Nagel
8e530d861b tests: allow setting MACOS_VERSION from the environment
This makes it easy to test things that vary depending on this constant
without editing testing_env.rb.
2013-03-09 17:38:49 -06:00
Jack Nagel
ed0a737a39 Adjust BOTTLE_EXTNAME_RX for :snow_leopard_32 2013-03-09 17:38:49 -06:00
Jack Nagel
303feacdd9 Fix tests under 32-bit SL 2013-03-09 17:38:45 -06:00
Jack Nagel
43c39afb8f Use attr_accessor to suppress warning 2013-03-09 17:13:41 -06:00
Jack Nagel
a21be66fc8 Rename these collections for clarity 2013-03-09 17:13:34 -06:00
Jack Nagel
149e65cc8a Add pkgconfig dirs for all deps under superenv
Fixes Homebrew/homebrew#18367.
2013-03-09 16:45:56 -06:00
Mike McQuaid
c7c33c9830 Warn on bottles skipped due to non-default Cellar.
Closes Homebrew/homebrew#18333.
2013-03-09 21:29:53 +00:00
Mike McQuaid
5a2874c652 bottles: remove unused 'version' from DSL. 2013-03-09 21:27:41 +00:00
Jack Nagel
2cc9322fbd Exclude global pkgconfig dirs under superenv 2013-03-09 14:46:01 -06:00
Jack Nagel
878747d458 Index pkgconfig directories by MacOS.version 2013-03-09 14:46:01 -06:00
Tobias Lidskog
23575f3c7f audit: correct inverted has_trailing_newline condition
has_trailing_newline? checked if formula did not have a trailing
newline. Invert regex and invert audit check.

Closes Homebrew/homebrew#18359.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-09 14:42:51 -06:00
Mike McQuaid
04dfdd972c sshpass: add to blacklist.
We keep rejecting this again and again.

See discussion in Homebrew/homebrew#9577, Homebrew/homebrew#12941, Homebrew/homebrew#13855.

Closes Homebrew/homebrew#18332.
2013-03-09 15:25:58 +00:00
Jack Nagel
21b583ba46 -std, not --std 2013-03-07 22:42:42 -06:00
Jack Nagel
df1d27b037 superenv/cc: keep exec monkeypatch out of Object 2013-03-06 17:06:07 -06:00
Jack Nagel
4adf0b0f69 superenv/cc: make file loadable 2013-03-06 17:06:07 -06:00
Matt Torok
5f2f6a35dd Added '--installed' option to deps command.
When deps command is passed this option, it will only show the dependencies
for the installed forumas. This option overrides the '--all' option.

Closes Homebrew/homebrew#18276.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-05 19:43:12 -08:00
Misty De Meo
e714a47c10 tap: adjust formula count for unsymlinked files
Relying on the output of `tapped` results in ignoring formulae which
already exist in core, with messages like "Tapped 0 formula" for
non-empty taps.
2013-03-04 12:12:47 -06:00