8416 Commits

Author SHA1 Message Date
Baptiste Fontaine
eb576b3e0b cookbook: mention --set-name for 'brew create'
Closes Homebrew/homebrew#45335.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-26 21:21:15 +01:00
Dominyk Tiller
82f5660752 cat: raise unless object is formulae
Until a point in time when the Cask/Homebrew codebases are harmonised a little
more it probably makes sense to refuse to `cat` Casks. Right now the Homebrew
codebase is only minimally aware of what a Cask is.

Fixes Homebrew/homebrew#45300.
Fixes Homebrew/homebrew#44630.

Closes Homebrew/homebrew#45302.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-26 14:06:51 +00:00
Alex Dunn
db66177d6c doc/Interesting-Taps-&-Branches: update emacs tap
Closes Homebrew/homebrew#45315.
2015-10-26 06:50:53 -07:00
Alex Dunn
417453401f doc/Interesting-Taps-&-Branches: tighter lists 2015-10-26 06:50:53 -07:00
Xu Cheng
1248294c8c commands: ensure internal commands are files
`Pathname#children(with_directory = false)` doesn't filter directories,
instead it returns path with basename.

Closes Homebrew/homebrew#45325.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-26 16:11:18 +08:00
Martin Afanasjew
f6cf1a4025 xcode: expect xcode 7.1
Closes Homebrew/homebrew#45266.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-24 17:19:05 +01:00
Mike McQuaid
f5d7e6915b travis: send failure emails to committer/author. 2015-10-24 11:00:16 +01:00
Xu Cheng
01270ea12c travis: fix slack notification 2015-10-24 15:50:06 +08:00
Dominyk Tiller
2b9561b837 audit: add bottle modifier checks
* Checks for placement of the bottle modifier variable.

* Checks there isn't a bottle modifier and a bottle do block - The former makes
the latter redundant.

Closes Homebrew/homebrew#45146.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-24 00:25:46 +01:00
Dominyk Tiller
674a350e6c formula: update bottle criteria explanation 2015-10-24 00:25:46 +01:00
Mike McQuaid
b459ba7a83 El_Capitan_and_Homebrew: a few updates.
Firm up some of the wording and remove stuff given that 10.10.1 didn't reset permissions back.

Closes Homebrew/homebrew#45267.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-23 15:13:10 +01:00
Baptiste Fontaine
e7ef3e36e2 audit: merge the template comments checks
Closes Homebrew/homebrew#45263.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-23 15:20:10 +02:00
Baptiste Fontaine
774a508d1a audit: warn about unknown bottle modifiers
This prevents typos like `bottle :uneeded` or `bottle :disable`

Closes Homebrew/homebrew#45264.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-23 19:44:19 +08:00
Xu Cheng
d6bf2f5749 run Checks#check_for_unsupported_osx unconditionally 2015-10-23 19:42:22 +08:00
Martin Afanasjew
30cad0608f os: centralize check for pre-release OS X versions
Provide `OS::Mac.prerelease?` for pre-release checks and use it where
appropriate. This should simplify updating the test once a new OS X
release lands.

This also fixes a bug in `BuildError#dump`, where an empty warning
message was printed on El Capitan after a failed from-source build,
because the check there and the one in `check_for_unsupported_osx` were
out of sync.

Closes Homebrew/homebrew#45257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-23 12:34:44 +01:00
Alex Dunn
7c7b7bf97f paq8px: boneyard
Fixes Homebrew/homebrew#44061.
Closes Homebrew/homebrew#44501.
Closes Homebrew/homebrew#45108.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-10-20 20:16:15 -07:00
Mike McQuaid
09516e1613 test-bot: fix testing builds building everything.
We don't care about the formulae that have changed since the last commit
so just ignore it.
2015-10-20 12:29:28 +01:00
Xu Cheng
8207c48a23 underline url in Error message 2015-10-20 19:03:24 +08:00
Martin Afanasjew
fdd3469fca linkapps: stop linking .app bundles from 'bin/'
`Keg#app_installed?` only checks the formula prefix and `libexec/` for
.app bundles to determine if a formula provides any. This is used by
`Caveats#app_caveats` to generate an appropriate message. The same list
should be used by `brew linkapps` for consistency.

Reduce likelihood of future inconsistencies by creating `Keg#apps` and
using it in place of the duplicate code.

Closes Homebrew/homebrew#45173.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-20 18:25:28 +08:00
Martin Afanasjew
51392352ad linkapps/unlinkapps: improve bash/zsh completion
Closes Homebrew/homebrew#45175.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-20 18:15:18 +08:00
Mike McQuaid
4cfdef65ed Update manpage. 2015-10-20 08:52:46 +01:00
Martin Afanasjew
eb5d90c1df unlinkapps: avoid deleting too many symlinks
Use `start_with?` to make sure the symlink actually points into one of
the Homebrew directories (depending on given arguments). Previously,
only a substring match was used, which would also remove a symlink to a
hypothetical `/opt/unrelated/usr/local/opt/Unrelated.app`. Even if
unlikely to occur, altering stuff unrelated to Homebrew is bad.

Furthermore, make sure to always use a trailing slash with directories.
Otherwise, e.g., `brew unlinkapps qt` will unlink .app bundles of both
`qt` and `qt5` if both are installed and `brew linkapps qt qt5` was
issued before. (Please ignore that `qt` and `qt5` offer a conflicting
set of .app bundles. This will have to be addressed elsewhere.)

Closes Homebrew/homebrew#45174.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-20 08:38:54 +01:00
Patrick Stadler
3dda14f5bd Provide better link when rate limit exceeded error is thrown
Closes Homebrew/homebrew#45134.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-20 08:38:53 +01:00
Mike McQuaid
4934dbb905 travis.yml: email on failure, post to Slack. 2015-10-20 08:33:20 +01:00
Xu Cheng
8755e91675 test-bot: remove duplicated conflicts unlinking 2015-10-20 14:54:10 +08:00
Xu Cheng
e13866f74a test-bot: install bottle unneeded formulae in --fast mode 2015-10-20 14:53:50 +08:00
Xu Cheng
1a0f64d5f8 test-bot: don't use --build-bottle flag if bottle disabled 2015-10-19 21:50:12 +08:00
Xu Cheng
4ef15427ba add test for bottle disable
Closes Homebrew/homebrew#43935.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-19 21:41:36 +08:00
Xu Cheng
f41925b360 allow install bottle unneeded formulae for non Xcode/CLT install 2015-10-19 21:41:36 +08:00
Xu Cheng
c4067cf8bb test-bot: skip bottling if it's unneeded 2015-10-19 21:41:36 +08:00
Xu Cheng
d20d08b5fe bottle: fail if bottle is disabled 2015-10-19 21:41:36 +08:00
Xu Cheng
975771ab35 formula_installer: let build_bottle? check bottle_disabled?
Also don't pour bottle if it's disabled.
2015-10-19 21:41:36 +08:00
Xu Cheng
b5032ad2cb Formula: add bottle disable DSL 2015-10-19 21:41:36 +08:00
Eric Andrew Lewis
5ec396ed38 install: make search output more intuitive.
Closes Homebrew/homebrew#42222.
Closes Homebrew/homebrew#44892.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-19 10:16:40 +01:00
Dominyk Tiller
cfb913b2c2 brew: add more non-root-user sudo checks 2015-10-19 05:54:56 +01:00
Dominyk Tiller
aa0a22147d brew: tighten sudo checks
`reinstall` can currently be executed under sudo and has every chunk of problems
running install under sudo does when `brew` isn't root owned.

Likewise with `postinstall` which we increasingly use to create directories and
move/install files elsewhere. Using sudo there both masks deeper issues and
makes uninstall troublesome.

Closes Homebrew/homebrew#45112.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-19 05:33:08 +01:00
Xu Cheng
b743cadd87 use Utils.popen_read instead of ENV trick to escape path
Closes Homebrew/homebrew#45021.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18 22:57:43 +08:00
Xu Cheng
646f94adfe move mach.rb to os/mac/mach.rb 2015-10-18 22:57:42 +08:00
Xu Cheng
06806f860d remove unnecessary require statements 2015-10-18 22:57:42 +08:00
Baptiste Fontaine
abfaa59e06 MacOS: full_version added
Closes Homebrew/homebrew#44988.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18 22:57:42 +08:00
Steven Peters
0915f0c668 doc: add links to jenkins jobs
Add links to specific jenkins jobs described in
Brew-Test-Bot-For-Core-Contributors.md

Closes Homebrew/homebrew#45052.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-18 14:12:03 +01:00
Roger Que
ebafcdddf7 Add --cleanup to brew upgrade bash completion
Closes Homebrew/homebrew#45075.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-18 12:28:40 +02:00
Brian Candler
66078da6e4 owamp: return from boneyard
By including the missing patch inline

See Homebrew/homebrew#43361 and Homebrew/homebrew-boneyard#66

Closes Homebrew/homebrew#44888.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-17 02:16:19 +01:00
Viktor Szakats
71ecf5539a SUPPORTERS: use https where supported
and not broken

Closes Homebrew/homebrew#45045.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-16 21:59:26 +01:00
Xu Cheng
dd7e8f291d downloads: fix undefined local variable
2950e5ab6e (commitcomment-13824130)
2015-10-17 04:00:41 +08:00
Xu Cheng
2130cb8c86 uninstall: fix indent 2015-10-17 03:59:28 +08:00
Xu Cheng
dee4c76e62 uninstall: fix when Cellar doesn't exist 2015-10-17 03:57:40 +08:00
Tim D. Smith
f81d561b67 always use opt_prefix in install_name
dylib install_names are presently rewritten relative to HOMEBREW_PREFIX,
except for keg-only formulas, which are rewritten relative to
opt_prefix.

If we make a formula keg_only, all of its dependents need to be bumped,
since it will no longer exist in HOMEBREW_PREFIX and all of the links
will be written incorrectly.

If we always use opt_prefix, we avoid that dilemma, and make installed
packages more robust if a dependency is `brew unlink`ed.

Closes Homebrew/homebrew#43518.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-16 17:22:35 +01:00
Martin Afanasjew
4ac345ca61 utils: improve highlighting in multi-column output
The yellow background made the text unreadable for light-on-dark color
schemes. Fix by making the highlighted text just bold.

Fixes Homebrew/homebrew#45028.

Closes Homebrew/homebrew#45030.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-16 16:08:43 +01:00
Andrew Janke
017a501471 downloads: Fix checkout on initial clone
Moves the "Checking out" output to where checkouts actually happen, to avoid spurious checkout announcements.

Closes Homebrew/homebrew#45019.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-16 09:54:47 +01:00