Maxim Belkin
de736ffb7d
system_config.rb: show system Ruby info on Linux
2020-09-03 19:25:58 +00:00
Maxim Belkin
a6d29894d9
cleanup: fix and reuse portable ruby logic.
...
Align the logic in `cleanup_portable_ruby` with that in `ruby.sh`.
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-09-03 09:43:41 +01:00
Mike McQuaid
74d3f0b153
hardware: rename rosetta method.
2020-09-01 14:52:37 +01:00
Misty De Meo
d9135c5a57
CPU: add ability to check for Rosetta
...
When running within an Intel terminal, `uname -m` and friends return Intel-based
values for compatibility. An Intel shell will also prefer to launch Intel slices of
programs unless the program is ARM-only.
It's an open question how Homebrew should manage running in Intel mode. Should it
continue to behave as though the Mac is Intel-based, like it does now? Should it
recognize it's ARM-based? Either way, it's useful for us to be able to tell whether
the Mac is running under Rosetta or whether it's a real Intel Mac.
2020-09-01 14:52:37 +01:00
rmnull
649e02ba3d
patchelf.rb writing in ELFShim
2020-08-27 22:50:34 +05:30
Markus Reiter
e024b12d47
Remove os/linux/diagnostic
.
2020-08-24 00:22:17 +02:00
Markus Reiter
129fd33a62
Merge pull request #8452 from reitermarkus/document-bottles
...
Refactor and document `Bottles`.
2020-08-23 05:30:43 +02:00
Markus Reiter
b90290b18c
Refactor and document Bottles
.
2020-08-23 04:44:57 +02:00
Markus Reiter
39cc754a8f
Merge pull request #8451 from reitermarkus/document-hardware
...
Refactor and document `Hardware`.
2020-08-23 04:40:20 +02:00
Markus Reiter
fbf3d807d7
Merge pull request #8449 from reitermarkus/document-system-config
...
Refactor and document `SystemConfig`.
2020-08-23 04:39:05 +02:00
Markus Reiter
33c138751e
Refactor and document Hardware
.
2020-08-23 04:19:46 +02:00
Markus Reiter
e2c9e6d3c2
Refactor and document SystemConfig
.
2020-08-23 04:15:35 +02:00
Mike McQuaid
667c2b8804
Merge pull request #8382 from Bo98/startup-speedup
...
Lazily require some heavy files
2020-08-21 17:11:39 +01:00
Dawid Dziurla
ded2927751
Merge pull request #8383 from dawidd6/svn-catalina
...
extend/os/mac: install svn on catalina and newer
2020-08-20 18:42:34 +02:00
Bo Anderson
e3372e2a14
Lazily require some heavy files
2020-08-20 02:05:17 +01:00
Seeker
3379e3b5cf
os: add kernel_version
2020-08-19 11:41:30 -07:00
Mike McQuaid
3a91c37e66
Fix RuboCop checks.
2020-08-19 17:12:32 +01:00
Markus Reiter
c3874580a4
Merge pull request #8377 from reitermarkus/document-install
...
Refactor and document `Install`.
2020-08-18 22:23:04 +02:00
Bo Anderson
b338398a8c
tab: add built_on & arch information
2020-08-18 15:58:00 +01:00
Dawid Dziurla
dbbc14040d
extend/os/mac: install svn on catalina and newer
2020-08-18 12:50:34 +02:00
Shaun Jackman
db361e29b8
check_tmpdir_executable: Remove stray undent
...
Fix the error:
Error: undefined method undent for #<String>
.../extend/os/linux/diagnostic.rb:41:in check_tmpdir_executable
2020-08-17 11:54:42 -07:00
Markus Reiter
7fce76d176
Refactor and document Install
.
2020-08-17 19:17:18 +02:00
Markus Reiter
d50dc2e1bb
Refactor and document Homebrew::Diagnostic
.
2020-08-14 18:46:43 +02:00
Bo Anderson
30a8df0f91
os/mac/system_config: simplify JVM version parsing
2020-08-11 18:51:36 +01:00
Mike McQuaid
a1dc809f5b
bin/brew: don't filter GitHub Actions variables.
2020-08-07 10:19:00 +01:00
Markus Reiter
20bd4280ff
Pass args.cc
to Install
.
2020-07-30 03:21:12 +02:00
Mike McQuaid
6d9e2d444d
Big Sur fixes
...
- Make missing SDKs message more clear.
- Always refer to Big Sur as 11.0 (even on Intel).
2020-07-28 16:56:55 +01:00
Markus Reiter
23340403c1
Fix effective_arch
on Linux.
2020-07-28 12:58:21 +02:00
Bob Wombat Hogg
9b47057b12
Fix brew test on Linux stdenv
2020-07-27 21:41:03 -04:00
Markus Reiter
276c570c16
Pass individual args explicitly to ENV
extensions.
2020-07-28 02:52:45 +02:00
Markus Reiter
25b3632c4c
Pass args
to ENV
instead of using global args
.
2020-07-25 03:57:43 +02:00
Shaun Jackman
e7006beefb
Merge pull request #7970 from rmNULL/patchelfrb-lookup-rpath
...
Introduce ELFShim#rpath. Refactor keg_relocate to use the same. Return nil on no DT_RPATH, DT_RUNPATH, DT_SONAME, PT_INTERP.
2020-07-24 15:53:58 -07:00
rmnull
d607528a5b
introduce ELFShim#rpath, refactor keg_relocate to use the same.
...
refines PatchELF #runpath, #rpath #soname #interpreter
to return nil.
let Brew hard exits on PatchELF::PatchError.
Co-authored-by: Shaun Jackman <sjackman@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-25 01:07:24 +05:30
Maxim Belkin
152dd1ca24
Move allowed_missing_libraries: extend/os/linux/formula.rb ~> formula.rb
2020-07-24 11:06:38 +00:00
Maxim Belkin
85cca2e852
formula.rb [Linux]: undefine allowed_missing_libraries first
2020-07-24 10:54:44 +00:00
Maxim Belkin
1b8c32c716
Move allowed_missing_libs? to linkage_checker.rb.
...
Optimize 'unexpected_broken_dylibs'
2020-07-22 14:30:52 +00:00
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
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