8545 Commits

Author SHA1 Message Date
Xu Cheng
98633e03c6 add alias_table and alias_reverse_table for core and tap 2015-10-14 17:26:41 +08:00
Xu Cheng
65488903f9 add Formula.core_alias_files 2015-10-14 17:26:41 +08:00
Xu Cheng
d1222971f6 test-bot: update diff_start_sha1 unconditionally
See bfab4b0e65db4667ab09159b1040701fa75ec687

Closes Homebrew/homebrew#44889.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14 00:04:57 +08:00
Alex Wang
d877fc0b3e superenv: only strip sysroot flags for OS X SDKs.
Removing all sysroot flags is ok until a non-OS X SDK is needed. In
that case, builds can fail due to the non-OS X SDK being overwritten or
overridden by the OS X SDK.

Sysroot flags are now only stripped if they are an OS X SDK. This is
reliant on only OS X SDKs containing the string "macosx", so this will
break if if the wrong SDK shows up. However, the chances of that
happening seem low, as Apple probably doesn't want to introduce
something OS X that doesn't work with OS X, so it should be robust for
the near future.

This could break in an environment without the command line tools. The
fix for that is a bit more involved, though, so that will have to go
later.

Closes Homebrew/homebrew#44312.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-13 13:09:05 +01:00
Søren Brokær
ed42b2eb39 let the user know what exactly was already tapped
Closes Homebrew/homebrew#44843.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-13 14:03:42 +02:00
Mike McQuaid
7ba19f7697 README: note documentation license. 2015-10-13 12:04:38 +01:00
Mike McQuaid
7e88e40a89 SUPPORTERS.md: update name. 2015-10-12 13:19:03 +01:00
Xu Cheng
76a5ba6ae5 test: allow writing to certain var directories
Closes Homebrew/homebrew#44458.

Closes Homebrew/homebrew#44773.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 11:54:10 +08:00
Xu Cheng
52de8d9373 postinstall: sanitize ARGV options 2015-10-10 11:19:22 +08:00
Xu Cheng
8c4bd3dae2 audit: use ARGV.resolved_formula
There are audit rules which check cellar. Therefore, we need
`ARGV.resolved_formula` to get proper spec and prefix.

Closes Homebrew/homebrew#44781.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:34:43 +08:00
Xu Cheng
fe3b69d388 test: sanitize ARGV options
Otherwise, it will use the wrong prefix to test devel/HEAD install.
2015-10-10 01:34:42 +08:00
Xu Cheng
60ba8beefa Formulary.from_rack: better formula resolution strategy
The flow is as follow:
* If tap is nil(DIY install), search using name.
* If tap is found, search using full name.
* If tap is found and full name searching failed, search using name.
  This usually means the formula may be migrated to different tap.

Closes Homebrew/homebrew#44771.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:34:36 +08:00
Xu Cheng
5b321ffb5a caveats: show information based on build options
Fixes Homebrew/homebrew#44729.
Fixes Homebrew/homebrew#40863.
Closes Homebrew/homebrew#44779.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:33:58 +08:00
Xu Cheng
51a585e0b4 search: don't fail because broken formulae
Fixes Homebrew/homebrew#44687.

Closes Homebrew/homebrew#44770.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:33:44 +08:00
Xu Cheng
1ae44d4429 use directory? to check rack existence 2015-10-09 19:06:08 +08:00
M Jordan Stanway
a7df9c53eb keg: add java to SHARE_PATHS
Add `java` to `SHARE_PATHS` so that `HOMEBREW_PREFIX/share/java` is a folder with symlinks in it, rather than a symlink to a folder for a specific formula.

This way we avoid conflicts if multiple formulas put `jar` files in the
standard location `HOMEBREW_PREFIX/share/java`.

See also:
[pull request 44420](https://github.com/Homebrew/homebrew/pull/44420)

Closes Homebrew/homebrew#44456.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:23:40 +08:00
Xu Cheng
235c5b6bfa ObserverPathnameExtension: only puts first 100 operations
Fixes https://github.com/Homebrew/homebrew/issues/44320#issuecomment-143951973

Closes Homebrew/homebrew#44440.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:12:01 +08:00
Xu Cheng
ee332c4550 handle TapFormulaWithOldnameAmbiguityError
Closes Homebrew/homebrew#44705.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:02:33 +08:00
Chris Tate
fde5b48d83 autocode: rename from crystal
Closes Homebrew/homebrew#44417.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 14:26:13 +08:00
Daniel Lee Harple
6b3b398858 audit: fix GitHub repository audit
In the data returned from the GitHub API, “watchers_count” is actually the
number of stars.

See https://developer.github.com/v3/activity/starring/#starring-vs-watching

Closes Homebrew/homebrew#44477.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:48:24 +08:00
Steven Peters
d3d1b6f0fe Encourage https for bottle hosting
I assume that we want to encourage people hosting
their own bottles to serve them using `https`.
This PR has a trivial change in the example.
We may consider adding some text to the `root_url`
description with a discussion of security.
Also use https://example.com instead of
http://mikemcquaid.com in bottle example.

Closes Homebrew/homebrew#44651.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:42:02 +08:00
Adrian Moisey
8318500294 Remove extra word
Closes Homebrew/homebrew#44708.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:33:37 +08:00
Robin Neatherway
0fee65bf12 link_overwrite if the owning keg no longer exists 2015-10-07 17:20:09 +08:00
Andrew Janke
4c80bf4324 audit: add check for 'head' and 'head do' both present
Closes Homebrew/homebrew#44626.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-07 09:41:24 +02:00
Rakesh
2d60187e1a brew upgrade: provides an option --cleanup
Closes Homebrew/homebrew#44305.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 14:05:11 +08:00
Baptiste Fontaine
f629bb4e0f command: fail early if no command is given
Closes Homebrew/homebrew#44450.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-06 09:58:05 +02:00
Forrest Fleming
e0f9994542 Remove incomplete files in cache on brew cleanup
Closes Homebrew/homebrew#44182.
Closes Homebrew/homebrew#44349.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-06 15:13:25 +08:00
Dominyk Tiller
9ae6f6d3ac mbedtls: renamed from polarssl 2015-10-06 03:35:26 +01:00
Baptiste Fontaine
cc7a047edc version: parse opam archives
Closes Homebrew/homebrew#44544.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-04 10:31:46 +02:00
Todd A. Jacobs
5f29dee138 Remove redundant chown commands.
`chown -R` should be sufficient. There is no obvious reason to chown the top-level directory as a separate command.

Closes Homebrew/homebrew#44554.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-10-03 11:14:48 -07:00
Michka Popoff
8f072724de Remove MacVTKITKPythonBottles from doc
Bottles for VTK and ITK python are no more provided.

ITK can be wrapped with Python since version 4.8, so this tap
is no more needed. Using the vanilla homebrew VTK and ITK formulas is
the way to go.

Closes Homebrew/homebrew#44467.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-10-02 21:52:55 -07:00
Dominyk Tiller
bdd27d7cc0 doctor: whitelist Paragon NTFS dylib
Closes Homebrew/homebrew#44542.
2015-10-02 23:43:14 +01:00
Charlie Egan
a90363b605 doctor: minor grammar correction: 'pluralize' breakage
Closes Homebrew/homebrew#44497.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-02 19:06:05 +02:00
Baptiste Fontaine
b1892f360c sedna: migrate to boneyard
Closes Homebrew/homebrew#44451.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-02 07:58:19 +02:00
Dominyk Tiller
ab19bc641c El_Capitan_and_Homebrew: update dead link 2015-10-01 20:58:30 +01:00
Xu Cheng
6b3704162f doctor: point Xcode download to App Store for El Capitan 2015-10-01 14:39:25 +08:00
Dominyk Tiller
f5fd1c3c57 xcode: document xcode 7 2015-10-01 05:56:09 +01:00
Dominyk Tiller
0024296480 xcode: expect xcode 7.0.1 2015-10-01 05:54:14 +01:00
Dominyk Tiller
be8d348a6d os: add xcode 7.0.1 2015-10-01 05:51:35 +01:00
Xu Cheng
3b520cf195 cache taps
There are plenty of IO operations inside Tap object, and it will be more
when implementing formula alias reverse look up(e.g. list all of alias
names for a formula). So let's cache them.

Some benchmark:

$ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null
Before: 6.40s user 2.42s system 96% cpu 9.134 total
After: 4.75s user 0.77s system 97% cpu 5.637 total

Closes Homebrew/homebrew#44377.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 16:25:30 +08:00
Xu Cheng
6240e896b2 doctor: always print to stderr
This can help to solve the broken layout of doctor.out in brew gist-logs
2015-09-30 16:20:18 +08:00
Xu Cheng
30795ddc29 doctor: temporary add -R flag in chown instruction
Will replace it when we implemented `brew repair-permission`
2015-09-30 13:55:32 +08:00
Xu Cheng
e66cb91702 update: add permissions check
Closes Homebrew/homebrew#42048

Closes Homebrew/homebrew#44434.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 13:54:04 +08:00
Xu Cheng
ff132a9ddb doctor: add check_access_homebrew_repository 2015-09-30 13:54:04 +08:00
Xu Cheng
3c54d12cec doctor: official supporting El Capitan 2015-09-30 13:54:04 +08:00
Christian Moritz
25eac715d0 iojs: move to versions
Closes Homebrew/homebrew#44441.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-09-30 03:49:52 +01:00
Dominyk Tiller
04959403ac Python-for-Formula-Authors: use sha256 for example 2015-09-28 19:14:51 +01:00
Xu Cheng
767d961824 ENV#userpaths!: ensure Superenv.bin and opt path come at first
This ensures that binaries in /usr/local/bin would not overwrite
superenv.

Closes Homebrew/homebrew#44376.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:47:04 +08:00
Xu Cheng
b37a285141 test-bot: fix start_revision for Travis
When a PR is merged during the test, the commit tree will be looked like
this:

master  PR
  \     /
    \ /
     |
    root

The start_revision will be poined to the commit used to merging PR,
instead of common root commit. As result, `git diff-tree start end`
will list file changes both in PR and master branch, which later
contributes to additional formulae are tested in some Travis builds.

To fix the problem, we use `git merge-base` to get common ancestor as
the real start_revision.

Closes Homebrew/homebrew#44379.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:46:59 +08:00
Xu Cheng
79f71ca2ef travis: fix Could not parse object TRAVIS_COMMIT
If a PR is edited(e.g. force pushed) during the build.
TRAVIS_COMMIT will be lost. Refetching the merge ref wouldn't
help this situation as well. Since Travis already have reset
$TRAVIS_BUILD_DIR to the commit we need to test, let's use it to
determine TRAVIS_COMMIT directly.

Ref: https://github.com/travis-ci/travis-ci/issues/2666
2015-09-28 21:46:58 +08:00