11630 Commits

Author SHA1 Message Date
Alyssa Ross
a69997cab0 tests: include homebrew version in receipt fixture 2016-12-30 16:15:04 +00:00
Mike McQuaid
4ca2eaf8df Merge pull request #1682 from MikeMcQuaid/tap_migrations_rename
tap_migrations: support renaming to/from casks.
2016-12-29 14:34:56 +00:00
Mike McQuaid
758de6b454 Merge pull request #1694 from rwhogg/add-kabylake
Add Kaby Lake to Linux hardware list
2016-12-29 14:32:12 +00:00
Mike McQuaid
7148370ad8 Merge pull request #1723 from alyssais/runtime_dependencies
formula: don't expand unused optional dependencies
2016-12-29 14:31:41 +00:00
Mike McQuaid
577bf628e8 Merge pull request #1737 from alyssais/tap_dependents
keg: installed dependencies of unknown formulae
2016-12-29 14:28:59 +00:00
Mike McQuaid
c3a2bf34a2 tap_migrations: support renaming to/from casks.
Allow `tap_migrations` entries to have a `user/repo/formula` or
`user/repo/cask` format for migration of formulae to/from casks.
2016-12-29 13:37:28 +00:00
Mike McQuaid
05f35d763b Merge pull request #1681 from MikeMcQuaid/refuse-install-mixed-dependency-tree
formula_installer: prevent version mismatched deps
2016-12-29 12:58:05 +00:00
Mike McQuaid
27695ffeeb Merge pull request #1700 from MikeMcQuaid/no-libressl-and-openssl
audit: don't allow openssl & libressl dependency.
2016-12-29 12:32:39 +00:00
Mike McQuaid
85f62afae6 Merge pull request #1733 from vladshablinsky/rb_in_name
Don't drop .rb suffix for formula names
2016-12-29 12:32:12 +00:00
Mike McQuaid
d7d5581b19 Merge pull request #1739 from amckinlay/patch-1
Correct location of taps (doc)
2016-12-29 12:25:53 +00:00
Mike McQuaid
8ffe231f44 audit: don't allow openssl & libressl dependency.
Formulae should not depend on both OpenSSL and LibreSSL (even
optionally). This is to avoid descending into madness where every
formulae that could use LibreSSL has to have option and switching logic.

Homebrew has standardised on OpenSSL and will do so everywhere that
LibreSSL is not a hard requirement.
2016-12-29 11:46:51 +00:00
Andrew Janke
6648ff1307 Merge pull request #1706 from apjanke/deps-all-full-name
brew deps: support --full-name in --installed, --all, and --tree modes
2016-12-28 00:05:33 -05:00
Andrew Janke
0097dbe4ee brew deps: support --full-name in --installed, --all, and --tree modes 2016-12-27 23:41:16 -05:00
Alyssa Ross
3a27d81219 keg: fix dependents with unavailable formulae
Because of an accidental use of `=` instead of `==`, the source formula
check would be skipped when determining if a keg depended on another one
(so only the versions would be compared).

Fixed that comparison, and updated the corresponding test.

Glad I caught that!
2016-12-27 22:58:44 +00:00
Andrew McKinlay
4c379dffb7 Correct location of taps (doc) 2016-12-27 16:35:40 -05:00
Alyssa Ross
e5d7e13c63 keg: installed dependencies of unknown formulae
Previously, trying to resolve the dependencies of a keg would raise an
exception if the formulae for any of the dependencies could not be found
(e.g. if it had been moved to another tap).

This commit updates the dependency finding logic to catch these
exceptions, and fall back to comparing names and taps of formulae, which
should give the correct behaviour.

Fixes #1586.
2016-12-27 18:03:05 +00:00
Alyssa Ross
0a20edf945 tests: don't run LinkTests twice
see #1526
2016-12-27 17:34:46 +00:00
Uladzislau Shablinski
d091537636 Don't drop .rb suffix for formula names
Fixes #1718
2016-12-26 20:16:04 +03:00
Mike McQuaid
aaf70eb696 Merge pull request #1676 from MikeMcQuaid/doctor-tap-repo-bad-ruby-files
diagnostic: check for bad tap files.
2016-12-25 21:21:58 +00:00
Alyssa Ross
ef5cff5e71 formula: make runtime_dependencies logic clearer 2016-12-23 21:31:20 +00:00
Alyssa Ross
43f2e9e7bb formula: don't expand unused optional dependencies
This properly addresses Homebrew/homebrew-core#7826.
2016-12-23 21:31:10 +00:00
Mike McQuaid
5b806c09ae Merge pull request #1719 from zmwangx/strip-x11-from-new-formula-template
create: remove :x11 dep from new formula template
2016-12-23 19:51:12 +00:00
Mike McQuaid
9bfeb91562 Merge pull request #1715 from zmwangx/bump-formula-pr-fix-removal-of-old-mirror
bump-formula-pr: fix removal of old mirrors
2016-12-23 19:42:31 +00:00
Mike McQuaid
161bd20fcd Merge pull request #1663 from tschoonj/meson-create-support
brew create: add meson support
2016-12-23 19:24:15 +00:00
Mike McQuaid
cd13e306a8 Merge pull request #1693 from broder/homepage_check
Updated homepage 404 check to use explicit parameters and return the …
2016-12-23 19:14:08 +00:00
Alyssa Ross
3f724825d3 Revert "Revert "formula: runtime deps of build deps aren't runtime""
This reverts commit 862c3ba4a2fb76140e46fdf49a1ea6857f140a29.
2016-12-23 15:01:02 +00:00
Zhiming Wang
1ab8b5e35b
create: remove :x11 dep from new formula template 2016-12-22 18:57:57 -05:00
Zhiming Wang
3ebd7df62d
bump-formula-pr: fix removal of old mirrors
Previously, old mirrors are only removed if the requested spec is
stable, and if the mirror lines only have two leading spaces. This leads
to stale mirror line(s) when the formula a stable block like

    stable do
      url "http://example.com/v1.0.tar.gz"
      mirror "http://example.net/v1.0.tar.gz"
    end

where the mirror line is lead by four spaces.

In this commit, we discard the /(^ mirror .*\n)?/ pattern, and instead
create a pattern with the exact url and flexible leading spaces for each
mirror of the requested spec.
2016-12-22 00:54:08 -05:00
Mike McQuaid
8f85eb64c4 audit: fix 32-bit check. 2016-12-20 14:26:53 +00:00
Mike McQuaid
ef6b55125c Merge pull request #1695 from MikeMcQuaid/audit-revision-map-nil
audit: handle a nil revision map.
2016-12-20 10:55:41 +00:00
Mike McQuaid
1d2390b2de Merge pull request #1698 from MikeMcQuaid/deprecate-32-bit
Deprecate 32-bit options.
2016-12-20 10:54:54 +00:00
Mike McQuaid
f4291caaa4 Merge pull request #1710 from MikeMcQuaid/xcode-no-prerelease-warnings
Remove Xcode prerelease warnings.
2016-12-20 10:44:49 +00:00
Mike McQuaid
f98304026b Deprecate 32-bit options.
These were formerly supported but as it has been a very long time since
32-bit software was necessary on macOS these have been deprecated with
a `brew audit` warning and a future `odeprecated`.
2016-12-20 10:22:30 +00:00
Mike McQuaid
584fd64a9e Merge pull request #1684 from MikeMcQuaid/update-reset-command
update-reset: add new command.
2016-12-20 10:17:43 +00:00
Mike McQuaid
e3844719bc Merge pull request #1680 from MikeMcQuaid/post-install-sandbox-prefix
postinstall: don't allow writes to prefix itself.
2016-12-20 09:57:37 +00:00
Mike McQuaid
26af62ed68 Merge pull request #1678 from MikeMcQuaid/loosen-superenv-cellar-regex
super/cc: loosen cellar formula regex.
2016-12-20 09:57:19 +00:00
Tom Schoonjans
cc09bb14c1 brew create: add meson support
meson is quickly gaining popularity as build system, in combination with
ninja. Several Gnome projects for example are currently transitioning
from autotools to meson, mostly because it allows for Visual Studio
builds, which is impossible to accomplish with autotools.

In order to facilitate generating meson based Formulas, I added support
for meson to brew-create.
2016-12-19 21:51:57 +01:00
Mike McQuaid
e950aa11d1 Remove Xcode prerelease warnings.
At this point we probably do want to know about issues that crop up in
betas so we can fix them before the new version of Xcode is released.
Additionally, this doesn't really work well any more with our new
tag-based workflow as it means we need to cut a new tag immediately
after a new Xcode is released.
2016-12-19 18:01:36 +00:00
David Broder-Rodgers
637aae48e4 Markups 2016-12-19 08:45:21 +00:00
Mike McQuaid
0027ded5aa Merge pull request #1674 from MikeMcQuaid/audit-os-mac-linux
audit: don't allow use of OS.mac?/OS.linux?.
2016-12-18 15:56:55 -08:00
Mike McQuaid
f8dfad470f Merge pull request #1652 from MikeMcQuaid/tweak-too-old-clt-check
Never trigger too old CLT check on <10.7.
2016-12-18 15:56:40 -08:00
Mike McQuaid
41a248786f audit: handle a nil revision map. 2016-12-18 15:46:02 -08:00
Mike McQuaid
477faf073b Never trigger too old CLT check on <10.7.
While we fake a CLT for these versions they never shipped with the CLT
so cannot update it.
2016-12-18 15:31:17 -08:00
Mike McQuaid
339ff9400f audit: don't allow use of OS.mac?/OS.linux?.
Forbid their use in Homebrew/core which only supports macOS. This may
be added to more/all official taps in future.
2016-12-18 15:30:06 -08:00
Mike McQuaid
d21f6954b6 update-reset: add new command.
Add new `brew update-reset` command to provide a helpful troubleshooting
fallback to fetch and reset all repositories. This could have lived in
`brew update` but it makes sense to avoid the complexity of sharing
logic between these scripts and keeping this one simpler.
2016-12-18 15:25:18 -08:00
Mike McQuaid
201b45d2ca Merge pull request #1691 from MikeMcQuaid/create-version-null
create: handle Version::NULL correctly.
2016-12-18 15:23:56 -08:00
Bob W. Hogg
ebb659af7d Add Kaby Lake to Linux hardware list
Note that no Mac hardware using a Kaby Lake processor has been released
yet, so do not add it to the equivalent list for macOS.
2016-12-18 14:50:38 -08:00
David Broder-Rodgers
0a007fc983 Updated homepage 404 check to use explicit parameters and return the status code 2016-12-18 22:37:26 +00:00
Mike McQuaid
61e370fb7a create: handle Version::NULL correctly.
Fixes #1688.
2016-12-18 13:32:29 -08:00
Mike McQuaid
482568579b Merge pull request #1675 from MikeMcQuaid/diagnostic-multiple-cellars
diagnostic: check for multiple Cellars.
2016-12-18 11:18:13 -08:00