Commit Graph
1607 Commits
Author SHA1 Message Date
Nicolas Despres 1c74a94276 Honor build options and bottles when upgrading
Fixes #11552.
Closes #11777.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-05 12:24:56 -05:00
Adam Vandenberg 0cc9a8fedc Don't unzip war files 2012-05-03 20:40:04 -07:00
Adam Vandenberg 19ed253b2d Detect uncompressed tars
From a patch by @RuiPereira

Closes #12011.
2012-05-03 20:31:00 -07:00
Adam Vandenberg b4872a2f02 Fix brew audit 2012-05-03 20:22:47 -07:00
Jack Nagel 8a1c2eccb6 GitDownloadStrategy: don't pass --depth to fetch
The --depth option is apparently more nuanced that I had originally
thought, and while it does not actually break repositories, repeatedly
using "--depth 1" can cause problems depending on the structure of the
history.

Luckily, we don't actually need it to prevent the entire repository from
being fetched as long as the fetch respec is set correctly, which we do
since 7718c939b0.

Fixes #12024.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-03 19:33:30 -05:00
Charlie Sharpsteen 8c76e64498 ENV.rb: Always return integers from make_jobs
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes #12033.
2012-05-03 15:49:27 -07:00
Charlie Sharpsteen 859db25522 Revert "ENV.rb: Always return integers from make_jobs"
This reverts commit ea1a9e603a.

Argh. Unrelated PySide changes slipped in.
2012-05-03 15:48:51 -07:00
Charlie Sharpsteen ea1a9e603a ENV.rb: Always return integers from make_jobs
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes #12033.
2012-05-03 15:45:31 -07:00
Christian Höltje 82547a2f8e zsh: support site specific files
This fixes the `site-scripts` and `site-functions` directories
so that zsh points to the HOMEBREW_PREFIX version of these files
instead of the Cellar version.

This means you can drop files in these directories and the files
will persist when you upgrade zsh. Otherwise they disappear when
you upgrade zsh.

Closes #11955.

[jn: mkpath everything under share/zsh]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-02 23:43:30 -05:00
Adam Vandenberg 93f2244cf8 patches - support detection of compression types 2012-05-02 19:57:33 -07:00
Adam Vandenberg 52732da91b Extract detection of compression types
Separate out detecting compression types from uncompressing and staging.
2012-05-02 19:57:33 -07:00
Jack Nagel 41ba5a2409 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 7718c939b0 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 #11958, and several other recurring problems.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01 21:46:42 -05:00
Jack Nagel b6002b2e52 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 #10893.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01 18:07:58 -05:00
Mike McQuaid 548d6a54ad Fix Ruby warnings.
Fixes #11966.
2012-05-01 20:45:17 +08:00
Misty De Meo 87fd6f3372 brew tap: allow dashes in GitHub usernames 2012-04-30 14:02:23 -05:00
Mike McQuaid 7e744df63d Improve Formula.resolve_alias warning. 2012-04-30 21:38:14 +08:00
Mike McQuaid 34c970b103 Add ofail command and fix bottle command output. 2012-04-30 21:38:08 +08:00
Mike McQuaid cd4f7c10cd Cleanup old bottles. 2012-04-30 21:37:58 +08:00
Mike McQuaid 14a4b3adf3 Fix native bottle regex. 2012-04-30 21:37:46 +08:00
Adam Vandenberg c84add7bea audit: reduce false-positives 2012-04-29 09:32:39 -07:00
Adam Vandenberg dfb171b173 doctor: add another path to the macgpg2 check 2012-04-28 14:08:05 -07:00
Jack Nagel 439aa84a3b 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 db432b1b90 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 #11882.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-26 20:35:09 -05:00
Mike McQuaid 2ce9742fa0 Generate the bottle download URL correctly.
Fixes #11561.
Fixes #11614.
2012-04-24 18:53:45 +10:00
Mike McQuaid 45476c7cf1 Change versioned bottle syntax and fix issues.
Fixed #11562.
2012-04-24 18:53:45 +10:00
Mike McQuaid 3300395471 Add and correctly find erlang bottle.
Fixes #11780.
2012-04-24 18:53:33 +10:00
Mike McQuaid 5d99e820ae Fix screwup. 2012-04-24 18:46:43 +10:00
Mike McQuaid 2919ffb8e2 Revert "Add and correctly find erlang bottle."
This reverts commit 146e253856.
2012-04-24 18:10:09 +10:00
Mike McQuaid d60023c466 Revert "Change versioned bottle syntax and fix issues."
This reverts commit f80908bead.
2012-04-24 18:10:08 +10:00
Mike McQuaid 90f41308f9 Revert "Generate the bottle download URL correctly."
This reverts commit 092004e782.
2012-04-24 18:10:06 +10:00
Mike McQuaid 146e253856 Add and correctly find erlang bottle. 2012-04-24 18:08:14 +10:00
Mike McQuaid f80908bead Change versioned bottle syntax and fix issues.
Fixed #11562.
2012-04-24 18:08:14 +10:00
Mike McQuaid 092004e782 Generate the bottle download URL correctly.
Fixes #11561.
Fixes #11614.
2012-04-24 18:08:14 +10:00
Misty De Meo d934906a41 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 37965f8a44 Can't force checkouts if using Leopard system SVN 2012-04-22 10:46:30 -07:00
Jack Nagel cf327aece7 test: improve "formula not installed" error text
Closes #11779.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-20 14:00:09 -05:00
Misty De Meo 0bad49a747 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 15b06c5ddc Detect .git as git urls 2012-04-19 21:05:59 -07:00
Jack Nagel aa885cf4e7 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 d011bd0c5d Don't attempt to walk nonexistent directories
Fixes #11298.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-17 17:10:47 -05:00
Jack Nagel 27dd65f93c 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 78c58feda7 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 98f254a41c 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 31ccb052d7 tests: setup and teardown cleanups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:08:32 -05:00
Mike McQuaid 0492c5084f Allow forcing bottle installation. 2012-04-17 12:46:11 +10:00
Mike McQuaid 14f9840b35 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 58a8dc3294 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 4d66bf8b99 StandardCompilers: 3.1.4 doesn't have llvm 2012-04-15 17:49:49 -05:00
Maurice Kelly 119f18600b 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 #11670.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-15 14:41:41 -05:00