9434 Commits

Author SHA1 Message Date
Glenn / devalias
f239a448b2 Cookbook: Replace 'onoe' with 'odie'
Closes Homebrew/homebrew#47948.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-11 11:32:05 +01:00
Dominyk Tiller
f4f2266923 audit: check for more unused shorthand
Adding a strict check for usage that should be using pkgshare.

Pulled onto two unique checks to provide a better problem message, with a
clearer solution, but open to thoughts.

 * Use pkgshare instead of (share/"example")
 * Use #{pkgshare} instead of #{share}/example

Closes Homebrew/homebrew#47900.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-11 09:49:54 +00:00
Martin Afanasjew
08fb36252c formula_installer: fix --default-fortran-flags
Setting the `FC` environment variable allows the user to override the
default Fortran compiler. The `SharedEnvExtension#fortran` method then
checks whether any of `FCFLAGS` and `FFLAGS` environment variables are
set and, if not, suggests to use `--default-fortran-flags` when running
`brew install`. However, `--default-fortran-flags` never makes it to
`build.rb` (that is executed by `FormulaInstaller`) because the flag is
not whitelisted in `FormulaInstaller#sanitized_ARGV_options`.

This change rectifies this and thereby eliminates the confusing message.

Fixes Homebrew/homebrew#47852.
2016-01-10 02:59:22 +01:00
Martin Afanasjew
bcedfe64e8 doctor: simplify handling of slow checks
Some (rather slow) checks should run after all other checks. Make that
more obvious by removing them from the sorted list of all checks and
then re-appending them to the resulting list. (Should be slightly more
efficient than the `<array>.reverse.uniq.reverse` incantation, though
that hardly matters given the cumulated run time of all the checks.)

Slightly extend the list after verifying what the slowest checks are for
various Homebrew installations (slowest check last).

Closes Homebrew/homebrew#47753.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-09 18:52:41 +01:00
Dominyk Tiller
c9097b40f9 dependency_collector: add rbenv
Closes Homebrew/homebrew#47897.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09 15:53:05 +00:00
Dominyk Tiller
1b4cc77e14 requirements: add rbenv requirement 2016-01-09 15:53:05 +00:00
Dominyk Tiller
de3667aed8 ffts: boneyard ye go
Closes Homebrew/homebrew#44527.

Closes Homebrew/homebrew#47876.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09 13:29:45 +00:00
Xu Cheng
f6355c9dfc test_keg: add test_empty_installation 2016-01-09 21:09:02 +08:00
Xu Cheng
885022a5e3 add Keg#empty_installation?
Avoid using `FormulaAuditor` in `FormulaInstaller`.

Closes Homebrew/homebrew#47887.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-09 20:28:15 +08:00
Xu Cheng
f0b22c4ce3 fix test_missing test 2016-01-09 19:11:34 +08:00
Zhiming Wang
81dc194ebf reinstall: add --interactive and --git options
Closes Homebrew/homebrew#47622.

Closes Homebrew/homebrew#47647.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09 10:33:19 +00:00
Mike McQuaid
a46fa38ea7 diagnostic: warn on outdated OS X versions.
We don't have CI or new bottles for them so they aren't supported well
so we should warn users.

Closes Homebrew/homebrew#47812.
2016-01-09 10:30:44 +00:00
Mike McQuaid
7076ed890a os/mac: add outdated_release? method.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09 10:30:19 +00:00
Zhiming Wang
6826cd68da formula_installer: improve empty installation detection
Use FormulaAuditor.audit_prefix_has_contents from audit.rb, which has
better logic.

Closes Homebrew/homebrew#47678.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09 10:22:31 +00:00
Baptiste Fontaine
f0d1444980 tests: missing requires added
Closes Homebrew/homebrew#47866.
Closes Homebrew/homebrew#47861.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09 10:37:40 +01:00
Baptiste Fontaine
daf659cbae more utils tests
Closes Homebrew/homebrew#47856.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09 10:37:29 +01:00
Baptiste Fontaine
beb80c605f more diagnostic tests 2016-01-09 10:37:29 +01:00
Joseph Frazier
91d4ba7158 update: abbreviate hashes to at least 7 characters
Abbreviations will be longer if needed to preserve uniqueness.

This makes it more consistent with `git rev-parse --short`,
https://github.com/Homebrew/homebrew/commits, etc.

For example, instead of:

    Updated Homebrew from 40d1e9c2 to 90b9bdf4.

We see:

    Updated Homebrew from 40d1e9c to 90b9bdf.

See 0c48248b6555353c8d60b61973639c8423ce586c for the original
introduction of eight-character abbreviations.
2016-01-08 15:56:43 +01:00
Baptiste Fontaine
5162df8f65 a few more diagnostic checks
Closes Homebrew/homebrew#47769.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-07 11:43:56 +01:00
Martin Afanasjew
319ea4273e list: exclude Ruby from unbrewed
Those are created by the `ruby` formula in core and various Ruby
formulae from `homebrew/versions` and contain Gems and other stuff that
is to be retained across updates. Treat it like Python in this regard.

This avoids spurious output in `brew list --unbrewed` when a brewed
`ruby` is used to, e.g., install Gems.

Closes Homebrew/homebrew#47750.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06 21:59:33 +01:00
Martin Afanasjew
2c2f5ade6a list: exclude Homebrew logs from unbrewed
Treat it like the cache, i.e., if the logs directory is inside the
Homebrew prefix, skip it instead of listing all the logs.

This avoids spurious output in `brew list --unbrewed` when the Homebrew
logs directory is a subdirectory of the Homebrew prefix.
2016-01-06 21:59:33 +01:00
Baptiste Fontaine
f11bea0153 audit: typo 2016-01-06 17:58:16 +01:00
Baptiste Fontaine
8e75375d9d diagnostic tests
Closes Homebrew/homebrew#47760.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06 13:15:35 +01:00
Baptiste Fontaine
c8401b8243 a few more integration tests
Closes Homebrew/homebrew#47714.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06 12:22:58 +01:00
Patrick Way
d6c6f00393 Common-Issues: add section for upgrading OS X.
Closes Homebrew/homebrew#47008.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-06 10:05:42 +00:00
Martin Afanasjew
53e1ba3274 manpage: document '--dry-run' for 'prune' command 2016-01-06 08:18:59 +01:00
Martin Afanasjew
8161595015 manpage: add parentheses in 'search' synopsis
For consistency with other commands where there is a list of mutually
exclusive options of which exactly one has to be specified.
2016-01-06 08:18:04 +01:00
Martin Afanasjew
b3627cc5b2 manpage: fix minor formatting inconsistencies 2016-01-06 08:17:29 +01:00
Martin Afanasjew
aaefcb02b6 manpage: improve synopsis for 'options' command
The options `--all`, `--installed`, and a list of formulae are mutually
exclusive arguments, of which exactly one is required.
2016-01-06 08:17:17 +01:00
Martin Afanasjew
ae31b48510 travis: remove Ruby path tweak
Putting the Ruby 1.8 we use to run tests on 10.9 into the PATH adversely
affects formulae with a Ruby dependency (possibly other formulae, too).
Remove this hack, as it is no longer needed.

Closes Homebrew/homebrew#47694.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06 06:22:46 +01:00
Martin Afanasjew
8dc1e05ff8 utils: inject Ruby path when running Gems
Particularly the `bundler` Gem requires the right Ruby binary to be in
the PATH to work correctly if the Ruby binary used to run Homebrew is
overridden via `HOMEBREW_RUBY_PATH` and thus intentionally not prefixed
to the PATH (as that would affect formulae with a Ruby dependency).

The workaround here is to prefix this path only when a Gem is activated
via `Homebrew.install_gem_setup_path!` (currently used in `brew man`,
`brew style`, and `brew tests`).
2016-01-06 06:21:42 +01:00
Alexander Udalov
35c58faa19 kotlin: renamed from kotlin-compiler
Closes Homebrew/homebrew#47675.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-06 02:03:55 +00:00
Mike McQuaid
a36872c1da gitignore: reorder, cleanup and document.
This new `.gitignore` format produces consistent/expected `git status`
output with Git <2.7.0, Git >2.7.0 and libgit2 0.23.4.

Closes Homebrew/homebrew#47721.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-05 19:16:03 +00:00
Dominyk Tiller
a508f9f94b Revert "formula: pass sdk_path in std_cmake_args"
This reverts commit 5896555e5352b5e4f16f583ea444942cd1fc56bd.

It caused header-location issue on dual-developer-tool systems for certain
formulae. Will need looking at again, but we'll probably have to try and
do this a different way.

Closes Homebrew/homebrew#47668.
2016-01-05 17:29:48 +00:00
Mike McQuaid
6cb900addf download_strategy: don't do tar v on Travis CI.
The output is too noisy and Travis gets upset.
2016-01-05 17:01:51 +00:00
Baptiste Fontaine
0472b3f340 doctor: use respond_to? instead of NoMethodError
Closes Homebrew/homebrew#47715.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 17:51:54 +01:00
Baptiste Fontaine
88535b09b7 exceptions: hotfix 2016-01-05 16:08:25 +01:00
Mike McQuaid
52f471ac8d gitignore: fix Git 2.7.0 behaviour.
Closes Homebrew/homebrew#47710.
2016-01-05 14:09:26 +00:00
Baptiste Fontaine
9f1442db14 doctor: move code away from cmd/
Closes Homebrew/homebrew#47665.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 14:33:06 +01:00
Baptiste Fontaine
5d8a6e368f integration tests: allow env overriding 2016-01-05 14:33:06 +01:00
Misty De Meo
d99cfd1394 tap: require string extensions
Fixes Homebrew/homebrew#47684.
2016-01-04 16:22:26 -04:00
Dominyk Tiller
dafa11af9a doctor: add explicit anaconda warning
Closes Homebrew/homebrew#47540.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04 17:22:53 +00:00
Martin Afanasjew
c5f0003061 test: don't fail if GitHub API is unavailable
Tests shouldn't fail in case of an unavailable network or a deliberately
disabled access to the GitHub API.

Closes Homebrew/homebrew#47670.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04 16:26:36 +01:00
Martin Afanasjew
bd4f633673 tests: use predefined commit author for robustness
Some tests, that construct a Git repository for testing, will silently
fail if the global Git user isn't properly set up. There are valid use
cases for this, thus use a fixed commit author/committer for all tests
instead of relying on the user's configuration.
2016-01-04 16:26:36 +01:00
Martin Afanasjew
301d88544f test: exhaustively test comparison of versions
This tests all possible combinations of alpha, beta, RC, regular, and
patch versions. Also improves code coverage and partitions the version
comparison tests into more uniform chunks.

Closes Homebrew/homebrew#47669.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04 16:26:25 +01:00
Martin Afanasjew
74baec5e79 test: test popen_read and popen_write with block 2016-01-04 16:26:25 +01:00
Martin Afanasjew
cc632acd07 update: avoid unnecessarily recreating 'master'
This only affects the behavior of `brew update` while being on a branch
`feature` that doesn't track the upstream branch. For simplicity, the
upstream branch is assumed to be called `master` (`@upstream_branch` in
the code). Consider the following simplified commit history:

        master      origin/master (current state of remote)
        |           |
A---B---C---D---E---F
     \
      G---H---I
              |
              feature (HEAD)

If `origin/master` is equal to `master` and also points at commit `C`,
then `brew update` will update both `master` and `origin/master` to `F`
and report on the changes in the range `C..F`.

However, if `origin/master` is equal to `E` because some commits have
been already fetched with `git fetch origin`, then `brew update` will
recreate `master` from `origin/master` and then pull in the commits from
the remote to update both to `F`. Because `master` gets recreated from
a younger `origin/master`, the report will only contain changes from the
range `E..F` (thus omitting the changes from `C..E`).

This commit adjusts the logic to not recreate `master` if it can be
safely fast-forwarded to `origin/master` (the common case). This fixes
the problem from the second scenario and again reports on the desired
range `C..F`.

Closes Homebrew/homebrew#46951.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04 16:25:32 +01:00
Mateusz Lenik
47afde940a formula: fix undefined method error
Fixes: Homebrew/homebrew#47673.
Closes Homebrew/homebrew#47672.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04 16:16:53 +01:00
Baptiste Fontaine
8f8c3cc1b1 integration tests: fix failing test
If the test fails above `formula_file`’s definition this line fails
because `formula_file` is `nil`.

Closes Homebrew/homebrew#47663.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 15:12:32 +01:00
Tomasz Pajor
78eecda7e9 offlineimap: rename from offline-imap
Closes Homebrew/homebrew#47638.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-04 12:21:00 +00:00