7802 Commits

Author SHA1 Message Date
Xu Cheng
ffbb1828a2 update: always rescue formula loading
Closes Homebrew/homebrew#45676.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-04 20:44:28 +08:00
Xu Cheng
ec114bb480 test-bot: cleanup bottle files in cache
Closes Homebrew/homebrew#45637.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-04 14:58:00 +08:00
Xu Cheng
20d38701b5 test-bot: hard link generated bottle file to HOMEBREW_CACHE 2015-11-04 14:58:00 +08:00
Dominyk Tiller
3a29a3cc93 maximum_macos_requirement: reword message
Closes Homebrew/homebrew#45658.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-11-04 05:25:10 +00:00
Jeremy McNevin
dd8146d21b nim: renamed from nimrod
Closes Homebrew/homebrew#45618.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-03 18:01:33 -08:00
Dominyk Tiller
85469b99b1 doctor: fix typo
Fixes Homebrew/homebrew#45623.
2015-11-02 21:04:03 +00:00
Dominyk Tiller
7d0c57cc9e doctor: whitelist Paragon ExtFS dylib 2015-11-02 18:27:13 +00:00
Alex Dunn
d435f3ac41 keg.rb: guard against nonexistent site-lisp subdir
Fixes Homebrew/homebrew#45596.
2015-11-01 18:04:42 -08:00
Alex Dunn
e891699342 formula.rb: define elisp and opt_elisp
Closes Homebrew/homebrew#45567.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-11-01 17:34:28 -08:00
Alex Dunn
168a2687f8 stricter audit for Emacs Lisp installs
Require that the subdirectory in site-lisp match the formula name
exactly.  This lets us provide better information in the caveats and
will make it easier for helper methods to write to the correct
location (as in in Homebrew/homebrew-emacs#13).
2015-11-01 17:34:28 -08:00
Ryan Hendrickson
91dd4d56d4 os/mac/hardware: reverse universal_archs entries.
The order ought not to matter, but GCC can fail with -arch i386 -arch
x86_64 (producing an error like "FATAL:Bad fx_size (0x8) in
fix_to_relocation_info()") but succeed with -arch x86_64 -arch i386.

Closes Homebrew/homebrew#45401.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01 09:30:00 -08:00
Dominyk Tiller
76435ece68 tap_migrations: add whereami
Closes Homebrew/homebrew#45569.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-11-01 17:27:42 +00:00
Mike McQuaid
39a1ff2aa0 audit: don't flag Gnome devel releases < 1.0. 2015-11-01 09:26:43 -08:00
Mike McQuaid
2614d39087 pull: fix pulling new bottles. 2015-11-01 08:25:02 -08:00
Xu Cheng
ae329a802b pull: use bottle_defined?
Fixes Homebrew/homebrew#45575

Closes Homebrew/homebrew#45577.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01 08:22:18 -08:00
Xu Cheng
ff9fdc078f add Formula#bottle_defined? 2015-11-01 08:22:18 -08:00
Xu Cheng
593dff3dc1 pull: bottle_unneeded? is covered by bottle_disabled? 2015-11-01 17:51:10 +08:00
Mike McQuaid
68896d14aa download_strategy: silence curl on Travis CI.
Use one of the Travis CI default environment variables:
http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables

Closes Homebrew/homebrew#44446.
Closes https://github.com/travis-ci/travis-ci/issues/4936.

Closes Homebrew/homebrew#45561.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01 00:18:51 -07:00
Mike McQuaid
18b2d0150e pull: handle unneeded and disabled bottles.
Closes Homebrew/homebrew#45563.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-31 23:45:11 -07:00
Xu Cheng
d7a479f551 JavaRequirement: check satisfaction directly
It made less sense to call a method `java_version` when it returns
boolean value.

Closes Homebrew/homebrew#45501.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-31 20:22:17 +08:00
Alex Dunn
e40e1b7ac7 emacs_requirement: set $EMACS
The Emacs shell sets $EMACS to "t" for detection purposes, but it causes
builds to fail when they attempt to call Emacs using the variable.

Fixes Homebrew/homebrew-emacs#30.

Closes Homebrew/homebrew#45495.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-10-30 20:17:42 -07:00
Dominyk Tiller
8acac5aa71 doctor: unify chown messages
Closes Homebrew/homebrew#45398.
2015-10-30 18:42:19 +00:00
Baptiste Fontaine
a2e2553bd8 audit: flag any desc that starts with the formula name
The previous version didn’t work with descs like:

  "TheFormula serves a web page"
2015-10-30 17:56:55 +01:00
Baptiste Fontaine
2ef51381c9 create: deprecate --macports and --fink
Closes Homebrew/homebrew#45465.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30 10:11:04 +01:00
Baptiste Fontaine
18bda1c9b1 audit: uniformize the desc problems
Closes Homebrew/homebrew#45492.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30 09:59:43 +01:00
Baptiste Fontaine
a5f6295b62 audit: flag descs starting with the formula name
Closes Homebrew/homebrew#45493.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30 09:51:20 +01:00
Ben White
f7e649831d doctor: Fix typo in uncommitted modifications warning message
Closes Homebrew/homebrew#45443.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-29 13:34:36 +01:00
Xu Cheng
fd3cfb11a6 merge dependencies for expand_requirements
Fixes Homebrew/homebrew#45414

Closes Homebrew/homebrew#45420.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-29 14:14:56 +08:00
Alex Dunn
dd71d34bab emacs_requirement: allow no version
see Homebrew/homebrew-emacs#29

Closes Homebrew/homebrew#45426.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-10-28 19:43:17 -07:00
Martin Afanasjew
4db8ef00bf xquartz: add 2.7.8
Closes Homebrew/homebrew#45254.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-29 01:51:46 +00:00
Baptiste Fontaine
75c196c1fc create: accept HEAD urls
Fixes Homebrew/homebrew#45310.

Closes Homebrew/homebrew#45336.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-28 14:04:53 +01:00
Mike McQuaid
74e407dc54 The Formula API is no longer work-in-progress.
Feature it a bit more prominently in the documentation as a result.

Closes Homebrew/homebrew#45374.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-27 10:45:23 -06:00
Mike McQuaid
8ea9903a99 update: use git stash silently.
There's been a few issues where users have been confused about these
errors. They may have modified stuff but we probably don't care about
telling them that unless we're debugging other issues.

Closes Homebrew/homebrew#45373.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-27 10:45:23 -06:00
Baptiste Fontaine
be1ac34117 BottleDisableReason: enforce the use of :disable
Closes Homebrew/homebrew#45337.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-26 21:22:00 +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
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
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
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
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