1748 Commits

Author SHA1 Message Date
Adam Vandenberg
e8c0b01f24 patches - support detection of compression types 2012-05-02 19:57:33 -07:00
Adam Vandenberg
3ad19e08b7 Extract detection of compression types
Separate out detecting compression types from uncompressing and staging.
2012-05-02 19:57:33 -07:00
Jack Nagel
837d206a62 GitDownloadStrategy: don't assume --single-branch is available
git-clone's --single-branch is too new, and Xcode 4.3's stock git
doesn't have it. Since we don't require git from Homebrew, don't use it.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-02 21:55:24 -05:00
Jack Nagel
b8715f6d97 GitDownloadStrategy optimization
The current series of fetch invocations in GitDownloadStrategy has the
unfortunate behavior of fetching full history even in shallow clones
that only need the history between the clone point and the remote HEAD.
It should be possible to determine if it is actually necessary to fetch
the full history, including all tags, and if it is not to avoid this
overhead.

Fixes Homebrew/homebrew#11958, and several other recurring problems.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01 21:46:42 -05:00
Jack Nagel
b1d490cbed Don't set GIT_DIR when staging git clones
GIT_DIR is convenient, but it does not work when both a formula and
subformula try to stage a git checkout, as git will use the main
formula's repository when staging the subformula.

Stop setting it, and restore the kludge to the git-multipush formula.

Fixes Homebrew/homebrew#10893.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01 18:07:58 -05:00
Mike McQuaid
995186a72c Fix Ruby warnings.
Fixes Homebrew/homebrew#11966.
2012-05-01 20:45:17 +08:00
Misty De Meo
827d263d01 brew tap: allow dashes in GitHub usernames 2012-04-30 14:02:23 -05:00
Mike McQuaid
9d81b0d847 Improve Formula.resolve_alias warning. 2012-04-30 21:38:14 +08:00
Mike McQuaid
fe969c21ad Add ofail command and fix bottle command output. 2012-04-30 21:38:08 +08:00
Mike McQuaid
a1ce504e7d Cleanup old bottles. 2012-04-30 21:37:58 +08:00
Mike McQuaid
7c12324e0f Fix native bottle regex. 2012-04-30 21:37:46 +08:00
Adam Vandenberg
162b1ee936 audit: reduce false-positives 2012-04-29 09:32:39 -07:00
Adam Vandenberg
1d975de41b doctor: add another path to the macgpg2 check 2012-04-28 14:08:05 -07:00
Jack Nagel
cd4428bcb9 CurlDownloadStrategy: fix .rar detection
We now read six bytes instead of four in order to detect xz compression;
this broke rar detection which used a string literal instead of a regexp
for comparison.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-26 20:54:30 -05:00
Jack Nagel
07e24dda76 mkpath all directories under lib/python*
The python formula explicity creates lib/python2.7/site-packages.
However, that path may already exist as a symlink if something that
installs python bindings is installed before python itself. The result
is that some random keg will end up hosting the site-packages directory
instead of the top-level directory.

Fix this by explicitly creating directories under lib/python* during
linking.

Fixes Homebrew/homebrew#11882.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-26 20:35:09 -05:00
Mike McQuaid
0eb97d5c32 Generate the bottle download URL correctly.
Fixes Homebrew/homebrew#11561.
Fixes Homebrew/homebrew#11614.
2012-04-24 18:53:45 +10:00
Mike McQuaid
ebe4e07fa3 Change versioned bottle syntax and fix issues.
Fixed Homebrew/homebrew#11562.
2012-04-24 18:53:45 +10:00
Mike McQuaid
11f382705c Add and correctly find erlang bottle.
Fixes Homebrew/homebrew#11780.
2012-04-24 18:53:33 +10:00
Mike McQuaid
f729a0df44 Fix screwup. 2012-04-24 18:46:43 +10:00
Mike McQuaid
d69620a55e Revert "Add and correctly find erlang bottle."
This reverts commit 146e253856eb3e27b6b7382734fd178c160c1beb.
2012-04-24 18:10:09 +10:00
Mike McQuaid
4138d30428 Revert "Change versioned bottle syntax and fix issues."
This reverts commit f80908bead8b620ebcc5cdde9de65e70598002b6.
2012-04-24 18:10:08 +10:00
Mike McQuaid
47b2eedddc Revert "Generate the bottle download URL correctly."
This reverts commit 092004e7820791030f568af0e3b03389ea4f7ee3.
2012-04-24 18:10:06 +10:00
Mike McQuaid
dcad1ae49f Add and correctly find erlang bottle. 2012-04-24 18:08:14 +10:00
Mike McQuaid
40370e05bd Change versioned bottle syntax and fix issues.
Fixed Homebrew/homebrew#11562.
2012-04-24 18:08:14 +10:00
Mike McQuaid
2c46c4e0c2 Generate the bottle download URL correctly.
Fixes Homebrew/homebrew#11561.
Fixes Homebrew/homebrew#11614.
2012-04-24 18:08:14 +10:00
Misty De Meo
1fc97a81ec Fix compiler selection tests on Xcode 4.2+
MacOS.gcc_42_build_version is nil when not available, not 0
2012-04-22 13:52:49 -05:00
Charlie Sharpsteen
4b96cf6f0b Can't force checkouts if using Leopard system SVN 2012-04-22 10:46:30 -07:00
Jack Nagel
d33f60815c test: improve "formula not installed" error text
Closes Homebrew/homebrew#11779.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-20 14:00:09 -05:00
Misty De Meo
aed54ce966 Hardware test: add :arrandale
For some reason :arrandale was missing from the list of hardware in the
Intel family in the hardware test.
2012-04-20 10:44:19 -05:00
Adam Vandenberg
f097ce8953 Detect .git as git urls 2012-04-19 21:05:59 -07:00
Jack Nagel
af7bf47e31 tests: add utility method to quell output
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-18 15:16:00 -05:00
Jack Nagel
472322af24 Don't attempt to walk nonexistent directories
Fixes Homebrew/homebrew#11298.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-17 17:10:47 -05:00
Jack Nagel
2e2a492045 tests: silence zip output in test_bucket
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:53:35 -05:00
Jack Nagel
6e203a280c tests: silence test_detect_failed_configure
The standard `nostdout` method doesn't work here because Formula#system
does some redirection of its own; both stdout and stderr have to be of
the same type, so just do it manually here.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:45:44 -05:00
Jack Nagel
c44cb2710b tests: replace tests script with rake-based runner
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:08:32 -05:00
Jack Nagel
84a4935bb5 tests: setup and teardown cleanups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:08:32 -05:00
Mike McQuaid
d502742e6d Allow forcing bottle installation. 2012-04-17 12:46:11 +10:00
Mike McQuaid
f833041765 Fix Git installation warnings (again).
We have to install them to lib; anywhere else requires root
access, a non-system perl or patching Git.

Tried just moving them in 9597d5 but that breaks git-svn.
2012-04-16 20:26:06 +10:00
Mike McQuaid
c703c6f1ee Fix Qt installation warnings.
PRL files are necessary in lib so whitelist them.

Debian installs them too:
http://packages.debian.org/squeeze/amd64/libqt4-dev/filelist
2012-04-16 16:46:39 +10:00
Misty De Meo
d4534ec528 StandardCompilers: 3.1.4 doesn't have llvm 2012-04-15 17:49:49 -05:00
Maurice Kelly
3ab2cc62e2 info: handle git:// URLs in origin remote
The URL being constructed is only able to extract the correct username
when git@ or https:// URLs are found as the origin remote. This change
allows git:// to be used as well.

Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk>

Closes Homebrew/homebrew#11670.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-15 14:41:41 -05:00
Jack Nagel
1d0be89fa5 tests: reorganize compiler selection tests
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14 15:27:45 -05:00
Mike McQuaid
d4f7577185 Add ofail command to print error and exit. 2012-04-14 17:48:34 +10:00
Jack Nagel
5d84df0210 tests: bring brew update tests up to date
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14 00:00:04 -05:00
Jack Nagel
a64f417f36 tests: remove special-casing @path in TestBall
Tests that expect Formula#path to resolve to a real path should use
TestBallWithRealPath; TestBall gets its original behavior back, fixing a
failing test in test_formula_install.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14 00:00:04 -05:00
Misty De Meo
bf0955dc8a Fix StandardCompilers check
* Return true if Xcode version is not in hash, not nil
* Use two-digit version numbers for 4.0, 4.2, 4.3
2012-04-11 21:45:43 -05:00
Adam Vandenberg
f09e0c8e1e Don't warn about .o files in lib 2012-04-11 19:30:24 -07:00
Jack Nagel
801d8b2bfd deps: fix --tree for new deps
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 18:24:46 -05:00
Jack Nagel
15d7e89f0e Implement <=> for Dependency
Fixes Homebrew/homebrew#11587.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 18:24:24 -05:00
Misty De Meo
4dc1a7bdce brew doctor: add check for outdated compilers
A common source of build problems on Xcode 4.3+ is outdated compilers,
usually when a user has installed over top of an old version and hasn't
installed the CLT. Since the compilers from the previous Xcode are still
around, brew doctor wouldn't complain.

This adds a hash containing a list of the canonical compiler versions
for supported versions of Xcode, and adds a check against that to determine
whether a given installation has any compilers which are out of date.

Closes Homebrew/homebrew#11518.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-04-11 10:08:46 -05:00