Issy Long
e9d994622e
rubocop: Drop "f" from Naming/MethodParameterName
allowlist
...
- This either stands for "file" but more often than not "formula".
2023-03-11 00:17:27 +00:00
Douglas Eichelberger
76671ef555
Typecheck ENV extensions
2023-03-09 20:51:01 -08:00
Carlo Cabrera
4c4e9369b1
Fix brew style
2023-03-07 23:28:59 +08:00
Carlo Cabrera
46c3c86caa
Parse ld version from -version_details
2023-03-07 22:41:07 +08:00
Issy Long
6a704f2f40
sorbet: Bump more files to typed: true
...
- This was done through the `brew typecheck --suggest-typed --update`
command.
2023-03-05 18:18:59 +00:00
Carlo Cabrera
c4fe6e7617
Incoroporate feedback from code review
...
- check the version of `/usr/bin/ld` for support of `-no_fixup_chains`
- check for usage of the `-fuse-ld` flag, since this flag is only
supported by Apple ld64
Also, call `no_fixup_chains` when setting up the build environment.
2023-03-05 16:55:00 +08:00
Carlo Cabrera
1b12d74945
Pass -no_fixup_chains
to linker when required
...
Invoking `ld` with `-undefined dynamic_lookup` emits a warning starting
Xcode 14:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
Chained fixups is a linker optimisation that results in faster binary
load times, and is enabled by default starting Xcode 13 when the target
is macOS 12 or newer.
However, this interacts poorly with `-undefined dynamic_lookup`, and
Xcode will disable chained fixups when it is invoked with this flag
starting Xcode 14.3. Until then, we may be shipping binaries that are
broken in subtle ways, so let's disable chained fixups when necessary
instead.
I patterned the changes here after the handling of `-no_weak_imports`.
The only difference is that we need to check the flags that were passed
to the linker first to see if we do need to disable chained fixups.
For additional context, see:
https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes
https://www.wwdcnotes.com/notes/wwdc22/110362/
https://www.emergetools.com/blog/posts/iOS15LaunchTime
https://github.com/python/cpython/issues/97524
https://github.com/pybind/pybind11/pull/4301
2023-03-04 00:19:13 +08:00
Mike McQuaid
9296db0c41
Merge pull request #14839 from hyuraku/move-cask/cmd/info-to-cask/info
...
Move `cask/cmd/info` to `cask/info`
2023-03-01 12:25:26 +00:00
hyuraku
efdef5f26c
move cask/cmd/info to cask/info
2023-03-01 00:00:54 +09:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API
defaults to shell
2023-02-24 21:53:08 +00:00
Mike McQuaid
b3db997e7b
os/mac/extend/ENV/super: handle nil sdk.
...
I'm aware this is not meant to happen but: sometimes it does and the
lack of handling produces a subpar error.
2023-02-23 15:31:04 +00:00
Mike McQuaid
c5252817c2
analytics: refactor InfluxDB/Google handling.
2023-02-15 16:34:50 +00:00
Sean Molenaar
50e9247da4
fix: add better keys and fuller values to influxDB analytics
2023-02-15 14:12:05 +01:00
Mike McQuaid
4c8ed77302
Improve homebrew/{core,cask} autotapping.
...
Don't automatically tap these when running a developer command that's
not using the API.
Fixes #14606
2023-02-14 09:54:24 +00:00
Mike McQuaid
30b2a546e5
Revert "move dev-cmd/bottle
methods to extend/os"
2023-02-10 17:01:22 +00:00
Mike McQuaid
b761344428
Merge pull request #14528 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.16.0
...
build(deps): bump rubocop-performance from 1.15.2 to 1.16.0 in /Library/Homebrew
2023-02-07 19:28:40 +01:00
hyuraku
853421e968
repair setup_tar_and_args! method
2023-02-07 23:45:09 +09:00
hyuraku
ade7118057
add new method: gnutar_args
2023-02-07 23:22:33 +09:00
hyuraku
ec1a1566bc
separate setup_tar_and_args method
2023-02-07 23:22:33 +09:00
Nanda H Krishna
d9d6a74257
brew style --fix
2023-02-06 13:48:18 -05:00
hyuraku
42960c3e74
repair if condition
2023-01-25 17:23:44 +09:00
hyuraku
8289089482
add remove_const to cancel warning
2023-01-24 21:57:39 +09:00
hyuraku
e2f0075ee8
move default_prefix to extend/os
2023-01-24 21:02:24 +09:00
Sean Molenaar
59ebdab2b7
analytics: switch to InfluxDB for logging
2023-01-19 18:15:27 +01:00
apainintheneck
b6f9b7d3e0
Remove bitdefender diagnostic check
...
This shows up in `brew doctor` but hasn't been
reported as a problem by users in 3+ years.
2022-12-28 10:45:29 -08:00
apainintheneck
0ae416d0ee
Refactor Search#search_descriptions
...
- Move cask logic back into method from extend/os and check
whether to display it based on args since formula?
is passed by default on Linux now
- Use #search_descriptions in `brew desc` instead of
duplicating logic
- Remove need for extend/os/search
2022-12-17 10:03:41 -08:00
apainintheneck
3aac0fef7e
Simplify cask search
...
The cask_tokens and cask_names arrays here
were almost identical so we'll just use
cask_tokens for both.
2022-12-14 19:27:59 -08:00
apainintheneck
363df2a648
Speed up cask search
...
Add new method to get all cask names
without using Cask.all which is slow
in this case.
2022-12-14 00:00:34 -08:00
Mike McQuaid
4a0e16fbd9
dev-cmd/bottle: use gnu-tar
's --mtime
.
...
This allows us to remove all the manual timestamp fiddling and lets
`gnu-tar` handle it for us instead (as-per the most recent
recommendations on https://reproducible-builds.org/docs/archives/ ).
2022-12-12 16:47:56 +00:00
Mike McQuaid
639cb25c60
description*: fix argument handling of eval_all.
...
Fixes #14231 .
2022-12-08 09:57:12 +00:00
apainintheneck
d48859a9ce
Move FormulaInstaller check to extend/os
2022-11-29 23:13:50 -08:00
apainintheneck
2eee1e7c2a
Move SimulateSystem check to extend/os
2022-11-29 23:13:50 -08:00
apainintheneck
9c2293a08e
Move Sandbox check to extend/os
2022-11-23 20:39:59 -08:00
apainintheneck
d69326c8d0
Move ::Cleanup check to extend/os
2022-11-23 20:38:40 -08:00
Alexander Bayandin
f9b4bf9316
CPU: cleanup sysctl_int method
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-11-16 10:51:59 +00:00
Alexander Bayandin
449b872916
CPU: fix M2 detection
2022-11-15 11:02:56 +00:00
Bo Anderson
476b5e7424
os/mac/diagnostic: allow Ruby 2.6.10 on < Ventura
2022-10-25 10:55:05 +01:00
Bo Anderson
c092708448
Ventura RC version bumps
2022-10-20 20:04:42 +01:00
Caleb Xu
5a4840dbc8
extend/os/mac: ensure writable file for codesign
2022-10-13 17:56:53 -04:00
Bo Anderson
cbc895ce2b
Add Pathname shim extension RBI definitions
2022-09-08 03:26:50 +01:00
Lukas Oberhuber
3d60d610dd
Merge branch 'master' into debug-symbols
2022-08-10 18:44:09 -10:00
Lukas Oberhuber
0b554a4138
Style
2022-08-04 08:53:07 -07:00
Lukas Oberhuber
bee3531090
Improve style
2022-08-01 15:25:34 -07:00
Lukas Oberhuber
4eea117e84
ofail
if debug-symbols cannot be extracted.
2022-07-30 11:41:05 +01:00
Lukas Oberhuber
cd9fe97c55
Improve style
2022-07-30 11:10:26 +01:00
Lukas Oberhuber
e46a61e181
rename & inline dsymutil to prepare_debug_symbols
2022-07-30 11:08:52 +01:00
Lukas Oberhuber
215e545660
brew style
2022-07-26 19:28:30 +01:00
Lukas Oberhuber
c2a95f077f
Compiler -g
flag set based on --debug-symbols
2022-07-26 17:18:01 +01:00
Lukas Oberhuber
d195f22522
Connecting up --debug-symbols
flag
...
This connects the calling of dsymutil and the retention of temporary
files. Still need to connect compilation to flag.
2022-07-26 12:15:53 +01:00
Lukas Oberhuber
2d4c792b0b
Make one function
2022-07-26 10:00:05 +01:00