13277 Commits

Author SHA1 Message Date
Mike McQuaid
375d401580 Handle missing formulae in runtime_dependencies
Hopefully put this to bed for once and for all. Add a new method
`runtime_formulae_dependencies` which returns the `runtime_dependencies`
which have only the `Formula` objects that exist. I've checked all the
`runtime_dependencies` callers and updated them accordingly.

Also, fix a few cases where runtime dependencies were being read from
the tab when this wasn't desirable.
2018-07-16 16:46:39 +01:00
Markus Reiter
7cc3c2a846
Merge pull request #4479 from reitermarkus/refactor-containers
Change `Container::me?` to `Container::can_extract?`.
2018-07-16 11:11:59 +02:00
Markus Reiter
1f56314365 Clear Tap cache before each example. 2018-07-16 10:55:22 +02:00
Markus Reiter
82482f4787 Add support for self-extracting .exe archives. 2018-07-16 09:54:37 +02:00
Markus Reiter
c9c5d8e008 Change Container::me? to Container::can_extract?. 2018-07-16 09:16:50 +02:00
Markus Reiter
f92e3086ac
Merge pull request #4474 from reitermarkus/refactor-containers
Refactor containers and automatically determine dependencies.
2018-07-16 08:40:38 +02:00
commitay
43bfbe2060
Merge pull request #4343 from commitay/cask-info-updates
cask info: display `auto_updates`
2018-07-16 09:32:17 +10:00
Mike McQuaid
cab0090048 formulary: handle missing methods.
This makes formulae unreadable.

See https://discourse.brew.sh/t/error-in-mpfr-2-formula/2575.
2018-07-15 19:29:31 +01:00
Mike McQuaid
0990fbaac4 formulary: catch argument errors.
Reraise as a `FormulaUnreadableError` as these are formulae that have
mistakes that cannot be trivially repaired.

Fixes #4475.
Fixes #4476.
2018-07-15 17:03:50 +01:00
Mike McQuaid
bd5131d710
Merge pull request #4392 from MikeMcQuaid/more-deprecation-disabled
Disable more deprecations.
2018-07-15 14:48:00 +01:00
Mike McQuaid
af204c843d
Merge pull request #4359 from apjanke/display-build-times
Add --display-times option to `install`, `upgrade`, and `reinstall`
2018-07-15 11:30:22 +01:00
commitay
eb1271304f cask upgrade: add message about auto_updates and :latest 2018-07-15 11:13:04 +10:00
commitay
6d1f99fa5f cask info: display auto_updates 2018-07-15 11:13:04 +10:00
Markus Reiter
b7e849799f
Merge pull request #4469 from reitermarkus/systemcommand-path
Don’t expand `executable` path in `SystemCommand`.
2018-07-14 22:45:43 +02:00
Markus Reiter
fdc250cac4 Refactor containers and automatically determine dependencies. 2018-07-14 22:32:26 +02:00
Mike McQuaid
256dfc1af9 Move methods from FileUtils to Formula
These don't need to live on FileUtils and don't really make sense there
either.
2018-07-14 18:13:23 +01:00
Andrew Janke
0a2d8c3d4d Add --display-times option to install, reinstall, and upgrade 2018-07-14 11:06:03 -04:00
Mike McQuaid
5c6ef3d920 Disable more deprecations.
- Turn more old `odeprecated` into `odisabled`
- Remove more old `odisabled`
- Remove code for older Ruby versions
2018-07-14 16:00:50 +01:00
Mike McQuaid
abf3043125 formula: move mktemp.
This should be an instance rather than a class method.
2018-07-14 15:41:16 +01:00
Vítor Galvão
3742cf892c
Merge pull request #4457 from commitay/latest-autoupdate
cask audit: check for `latest` with `auto_updates`
2018-07-14 14:29:19 +01:00
Mike McQuaid
bb1bb51309 requirement: add mktemp function.
Addresses comments in #4465.
2018-07-14 09:17:04 +01:00
Markus Reiter
a9e109e31a Don’t expand executable path in SystemCommand. 2018-07-14 02:33:42 +02:00
Markus Reiter
232fb9721e Hbc::init does not exist anymore. 2018-07-13 23:03:18 +02:00
Mike McQuaid
060c615fae
Merge pull request #4361 from apjanke/collected-caveats
Display collected caveats at end of `install` or `upgrade`
2018-07-13 19:22:55 +01:00
Mike McQuaid
c529ad75ab
Merge pull request #4465 from MikeMcQuaid/mktemp
mktemp: move to Formula and compat.
2018-07-13 19:22:41 +01:00
Mike McQuaid
0a76c9f02e mktemp: move to Formula and compat.
Move this method away from FileUtils as it doesn't need to be on that
class.
2018-07-13 14:42:49 +01:00
Mike McQuaid
9b86ff6214 ruby.sh: cleanup gems on portable Ruby installation.
This avoids `brew style` and friends from getting upset when they
attempt to use the native gem extensions from a previous portable Ruby
or a system Ruby.

ABI? What's that?
2018-07-13 14:37:12 +01:00
Mike McQuaid
fed404b9be
Merge pull request #4460 from DomT4/cores
hardware: add dodeca-core for 2018 MBPs
2018-07-13 14:14:18 +01:00
Dominyk Tiller
be2dd62869
xcode: update expected Clang on 10.14 2018-07-13 10:50:54 +01:00
Dominyk Tiller
92c6e72a4a
hardware: add dodeca-core for 2018 MBPs 2018-07-13 10:50:30 +01:00
Mike McQuaid
0a239372f2
messages_spec: fix brew style. 2018-07-13 10:02:39 +01:00
Mike McQuaid
62f8c96bdb test/cask/cli_spec: temporary skip some tests.
These seem to be related to a leaking RSpec double between tests and
I've verified `brew cask install` still behaves as expected so
let's skip them temporarily.
2018-07-13 09:14:40 +01:00
Mike McQuaid
cc554c4ba1 extend/os/linux/hardware/cpu: return :dunno more often.
This matches the behaviour described in the test and on macOS.
2018-07-13 08:54:47 +01:00
Mike McQuaid
c3f8ffbb10 extend/fileutils: fix monkeypatch.
Otherwise using the options argument or relying on a result means this
method will fail. This is why monkeypatching sucks.

CC @reitermarkus as we've talked about monkeypatching recently.
2018-07-13 08:22:33 +01:00
Mike McQuaid
e1eb7dd3e3 Use Ruby 2.3.7
Fixes #4459.
2018-07-13 08:22:33 +01:00
Andrew Janke
c644392a85 Display collected caveats at end of install or upgrade 2018-07-12 20:41:32 -04:00
commitay
1f115fa2f5
Merge pull request #4456 from commitay/optional-reqs
audit: check for optional and recommended requirements on new formulae
2018-07-13 10:04:15 +10:00
commitay
ee7c3ce7e3
Merge pull request #4420 from commitay/bottle
audit: ensure `bottle` is defined
2018-07-13 10:04:02 +10:00
Mike McQuaid
3e85afc8b7
Merge pull request #4382 from sjackman/keg_relocate
Relocate bottles on Linux using patchelf
2018-07-12 20:33:58 +01:00
Mike McQuaid
5f5e2c7eaa
Merge pull request #4380 from maxim-belkin/fix-cccfgfgccfg
Properly append values to HOMEBREW_CCCFG
2018-07-12 20:33:44 +01:00
Markus Reiter
aa3a369874
Merge pull request #4402 from reitermarkus/separate-staging
Separate staging from download.
2018-07-12 21:28:18 +02:00
Mike McQuaid
4fe0adf587
shared: fix HOMEBREW_CCCFG reference. 2018-07-12 19:59:06 +01:00
Mike McQuaid
0367b7c330
Merge pull request #4381 from maxim-belkin/make-shim-linux
Add make shim to Linux super env
2018-07-12 19:57:54 +01:00
Shaun Jackman
1b688a3a25 Relocate bottles on Linux using patchelf
Ensure patchelf is installed to pour bottles and build bottles.
2018-07-12 10:21:26 -07:00
Maxim Belkin
67ea581e4a
extend/ENV/shared.rb: [new method] append_to_cccfg
append_to_cccfg properly appends values to HOMEBREW_CCCFG variable
2018-07-12 12:20:38 -05:00
Maxim Belkin
bb82f05952
Properly append values to HOMEBREW_CCCFG 2018-07-12 12:19:04 -05:00
commitay
ba929cd9e1 cask audit: check for latest with auto_updates 2018-07-12 19:22:47 +10:00
Markus Reiter
9b4e32322a xar is only pre-installed on macOS. 2018-07-12 10:39:28 +02:00
Markus Reiter
cba55c8fd4 Add @ref_type and @ref needef for fossil. 2018-07-12 10:39:28 +02:00
Markus Reiter
5dfa4ded43 Reuse UncompressedUnpackStrategy#extract_to_dir. 2018-07-12 10:39:28 +02:00