Maxim Belkin
73495c4959
formula.rb [extend/Linux]: add missing comma
2020-07-21 15:48:55 +00:00
Maxim Belkin
2ffb9fd0fc
extend/os/linux/formula.rb: ignore_missing_libraries: change unless to if
...
Change
```rb
unless libraries.all? { |x| x.is_a?(String) || x.is_a?(Regexp) }
```
to
```rb
if libraries.any? { |x| !x.is_a?(String) && !x.is_a?(Regexp) }
```
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-21 10:43:28 -05:00
Maxim Belkin
68ebf8866a
extend/os/linux/formula.rb: allowed_missing_lib: check input class
2020-07-21 15:40:27 +00:00
Maxim Belkin
7080ad5ebc
formula.rb: update missing libs feature
...
1. Raise an exception on macOS.
2. Verify that the missing libraries are specified either as Strings or
Regular Expressions.
Signed-off-by: Maxim Belkin <maxim.belkin@gmail.com>
2020-07-21 13:16:56 +00:00
Maxim Belkin
f2ddcda85b
Fix style (Convert if-elsif to case-when)
2020-07-16 13:53:32 +00:00
Maxim Belkin
c61aba4ec3
Formula: ignore_missing_libraries DSL
2020-07-16 13:51:16 +00:00
Shaun Jackman
9a83e52ae4
HOMEBREW_PROCESSOR is arm64 on Apple Silicon
...
Utils::Bottles::tag: ARM tag is arm64_big_sur
2020-07-10 10:55:56 -07:00
Shaun Jackman
e18027a1a8
Utils::Bottles::tag: ARM tag is arm_big_sur
2020-07-10 10:54:57 -07:00
Claudia
374c734d9b
Make Hardware.oldest_cpu
depend on architecture
...
Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon
now break due to `Hardware#oldest_cpu` returning `:nehalem` [1].
This commit is the first in a series of improvements to
`Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now.
[1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:59:10 +02:00
Mike McQuaid
fa760a2f26
Fix brew style
.
2020-07-07 13:12:37 +01:00
Mike McQuaid
f951ea83d4
Fix brew style
.
2020-07-07 12:23:29 +01:00
Claudia
559d0a91a2
Add CPU family ARMv8.3-A
...
Darwin 20 adds the CPU family `CPUFAMILY_ARM_VORTEX_TEMPEST`
(aka ARMv8.3-A), which is assigned the identifier of `0x07d34b9f`.
This is relevant for `SystemConfig` in Homebrew.
See also:
https://en.wikipedia.org/wiki/Comparison_of_ARMv8-A_cores
2020-07-06 20:48:46 +02:00
Bo Anderson
9297b18aa6
Add SDK availability diagnostic
2020-07-01 16:07:14 +01:00
Mike McQuaid
4e10341277
Merge pull request #7752 from SMillerDev/cask/readall
...
Support casks in readall
2020-07-01 12:19:30 +01:00
rmnull
35328ed535
[draft] refactoring keg_relocate to use ELFShim#interpreter instead of .with_interpreter?
2020-06-26 05:34:41 +05:30
Mike McQuaid
ac0665daff
Refer to default branch in links with HEAD
...
Anywhere we can use `blob/master` we can use `blob/HEAD` instead. This
will make life easier if we ever rename our default branch in future
(once/if Git and GitHub provides the necessary tooling to do so).
2020-06-25 11:38:40 +01:00
Mike McQuaid
b39a3ca02f
os/mac/utils/bottles: support ARM bottles.
...
This will be eventually needed for Big Sur.
2020-06-24 12:00:56 +01:00
Bo Anderson
9788735eb2
Merge pull request #7809 from Bo98/macos-version-11
...
os/mac: fix for major versions other than 10
2020-06-23 18:50:58 +01:00
Mike McQuaid
6f1970fd24
Fix more 10.x hardcodings.
2020-06-23 17:10:07 +01:00
Mike McQuaid
11c875d747
macOS Big Sur tweaks
...
- output warnings when running on ARM
- require Xcode 12
- use 11.0 as the version number
2020-06-23 14:11:05 +01:00
William Woodruff
acbb213977
mac/hardware: cpu: Use ruby-macho's Intel constant
2020-06-22 21:56:39 -04:00
Misty De Meo
6a3f18b0ae
OS::Mac::CPU: add Apple Silicon
...
Co-authored-by: Shaun Jackman <sjackman@gmail.com>
2020-06-22 12:20:06 -07:00
Michka Popoff
a5025e9a9f
Merge pull request #7751 from iMichka/shared
...
formulae: add generic shared_library_extension
2020-06-22 18:25:35 +02:00
Michka Popoff
955bca6574
formule: add generic shared-lib methods
...
We have strings containing hardcoded ".dylib" extensions in homebrew-core.
To be able to bring linuxbrew-core and homebrew-core closer together,
I am introducing a new generic attribute that can be used in formulae.
2020-06-20 23:14:18 +02:00
Bo Anderson
cd0c3fa835
extend/pathname: use Java.overridable_java_home_env in write_jar_script
2020-06-19 12:04:30 +01:00
Bo Anderson
c244e992af
extend/pathname: add args argument to write_env_script
2020-06-19 12:04:26 +01:00
Bo Anderson
cd93d4e38a
language/java: add support for OpenJDK formula
2020-06-19 11:46:31 +01:00
Sean Molenaar
3f6d3e5cf0
Support casks in readall
2020-06-18 20:15:07 +02:00
Alexander Bayandin
4d27c32d44
Revert "Merge pull request #7722 from Bo98/java-improvements"
...
This reverts commit 91b4d450703bcc2de6dce22eb5fdecb5a843f92e, reversing
changes made to c98901132595178b6261cbe2d51ab732dd77dac4.
2020-06-18 12:23:02 +01:00
Mike McQuaid
91b4d45070
Merge pull request #7722 from Bo98/java-improvements
...
language/java: add support for OpenJDK
2020-06-12 10:47:18 +01:00
Michka Popoff
1f8ebf5d20
resource: allow on_os blocks
2020-06-10 19:29:04 +02:00
Bo Anderson
07547e8cae
extend/pathname: use Java.overridable_java_home_env in write_jar_script
2020-06-10 17:08:41 +01:00
Bo Anderson
bbb2696742
language/java: add support for OpenJDK formula
2020-06-10 17:08:38 +01:00
Bo Anderson
d56c6b31a0
language/java: deprecate java_home_cmd
2020-06-10 15:11:56 +01:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
...
Companion to https://github.com/Homebrew/brew/pull/7698 .
Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Issy Long
8eba9b86ab
Change occurrences of "blacklist" to "denylist" or "disallow"
...
- Depending on context, I've gone for either "denylist" or "disallow"
here. "Disallow" for things in sentences, or actions, and "denylist"
for list of things.
2020-06-06 22:38:33 +01:00
Issy Long
0041ea21f5
Change occurrences of "whitelist" to "allowlist"
2020-06-06 22:38:32 +01:00
Misty De Meo
613c397b34
ENV: SDK can be nil
2020-06-04 17:38:25 -07:00
Mike McQuaid
3663e9d5d1
os/mac/keg_relocate: handle libexec/lib.
...
We can fix up libraries in `lib` not `libexec/lib` so add an extra check
for that case.
Inspired by https://github.com/Homebrew/homebrew-core/pull/53790#issuecomment-637622329
2020-06-02 16:35:36 +01:00
Mike McQuaid
aa81982aba
brew style --fix
2020-06-02 09:49:23 +01:00
rmnull
39c572b546
Instructions to install patchelf, when development tools cant locate patchelf.
2020-05-28 00:34:02 +05:30
Mike McQuaid
ef95b59ed4
Remove HomebrewArgvExtension
...
Fixes #5730
2020-05-23 19:39:11 +01:00
Mike McQuaid
bc27e38f18
Remove ARGV.debug?
...
Replace with `Homebrew.args.debug?`.
Part of #5730 .
2020-05-23 14:38:58 +01:00
Mike McQuaid
e1f3c8d2b3
Merge pull request #7579 from MikeMcQuaid/deprecations
...
Update deprecations
2020-05-23 14:38:10 +01:00
Mike McQuaid
64602bc8ef
Merge branch 'master' into argv-env
2020-05-23 14:10:44 +01:00
Mike McQuaid
d5ff4f5327
Remove ARGV.env
...
Replace with `Homebrew.args.env`.
Part of #5730 .
2020-05-23 13:49:38 +01:00
Mike McQuaid
e5d15c8b19
Merge branch 'master' into argv-cleanup-26
2020-05-23 13:44:42 +01:00
Mike McQuaid
0ea2c5f15b
os/mac/diagnostic: suggest untapping phinze/cask.
...
As seen in https://github.com/Homebrew/brew/issues/7605 .
2020-05-20 10:05:23 +01:00
Mike McQuaid
3588e6a5c6
bottle_arch: ensure a symbol is used when needed.
...
Fixes #7597 .
2020-05-19 08:47:59 +01:00
Mike McQuaid
4f75a77b08
Update deprecations
...
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00