Carlo Cabrera
6b728bf3bd
Implement ruby-macho TODOs
...
We now have the new release of ruby-macho (#15758 ), so we can now
finish off the remaining work from #15731 .
2023-07-26 11:15:19 +08:00
Douglas Eichelberger
08e46c18cd
Add type to Formula attrs
2023-07-24 14:12:36 -07:00
Carlo Cabrera
4c73942fae
extend/os/mac/keg_relocate: improve rpath handling
...
This implements the TODO that I left as a comment from #15722 .
In order to simplify the handling of deleting an absolute rpath that has
a relative duplicate (or vice-versa, i.e., a relative rpath with an
absolute duplicate), we relocate all rpaths first in one pass and then
delete the duplicates in a separate pass.
We currently rely on some lower-level (but still public) methods from
ruby-macho since the standard `#delete_rpath` method changes the order
in which rpaths are resolved. We can switch back to using
`#delete_rpath` when Homebrew/ruby-macho#555 is merged and released.
2023-07-23 00:22:05 +08:00
Emilio López
5b042b8641
extend/ENV/super: correct deparallelize
signature
...
The block is optional, so it should be marked `T.nilable`
2023-07-21 16:46:32 -03:00
Carlo Cabrera
aa05c227a0
os/mac/keg_relocate: avoid rpath re-ordering
...
This should fix the failures seen for `julia` in Homebrew/core.[^1]
I've detailed a better/more comprehensive fix as a `TODO` in a comments.
However, the problems that the better fix would avoid are comparatively
unlikely, so I think we can try this one out for now while I work on
implementing the said fix.
[^1]: https://github.com/Homebrew/homebrew-core/pull/135398#issuecomment-1643041541
2023-07-20 21:49:18 +08:00
Patrick Linnane
c56669e9cd
various: fix miscellaneous typos
2023-07-18 08:52:49 -07:00
Mike McQuaid
f195b24335
Merge pull request #15707 from carlocab/more-dupe-rpath-handling
...
os/mac/keg_relocate: avoid changing to an already existing rpath
2023-07-18 14:26:17 +01:00
Carlo Cabrera
27032e002f
os/mac/keg_relocate: avoid changing to an already existing rpath
...
Doing `change_rpath(old, new, file)` will error if `new` is already an
rpath for `file`. When this happens, `old` is no longer needed, so we
can delete it.
Fixes a build failure at shivammathur/homebrew-php#1848 .
2023-07-18 20:47:10 +08:00
Mike McQuaid
1b2e0b8082
api_hashable: remove HOMEBREW_CELLAR.
...
This breaks some API generation and isn't actually required.
2023-07-18 11:58:40 +01:00
Mike McQuaid
c940e15a5c
Use HOMEBREW_CELLAR_PLACEHOLDER
...
Similarly to HOMEBREW_PREFIX_PLACEHOLDER, this allows the substitution
of HOMEBREW_CELLAR in JSON output when using the API.
Fixes #15668 .
2023-07-18 10:59:27 +01:00
Mike McQuaid
fb35578c54
Merge pull request #15676 from Bo98/tap-fixes
...
Introduce CoreCaskTap class and fix cases of core taps were being unnecessarily installed
2023-07-17 19:22:22 +01:00
Carlo Cabrera
a7c8aab68c
os/mac/keg_relocate: replace Cellar references in rpaths
...
Some formulae (e.g. `php`) use rpaths that reference Cellar paths
belonging to other formulae. Let's make sure these rpaths don't break by
making them use opt paths instead.
2023-07-17 14:09:35 +08:00
Bo Anderson
ba02c669e1
Introduce CoreCaskTap class
2023-07-13 20:33:26 +01:00
Carlo Cabrera
cff8d8c155
Merge pull request #15571 from gerlero/relocate-relative-names
...
mac/keg_relocate: use relative install names
2023-07-11 04:38:26 +08:00
Gabriel Gerlero
15a0c7fd7d
linkage_checker: resolve some variable install names on macOS
2023-07-06 14:15:14 -03:00
Gabriel Gerlero
4cfe70ce50
mac/keg_relocate: use relative install names
2023-07-06 13:34:14 -03:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Bo Anderson
71d51faa55
Introduce tag for implicit dependencies
2023-07-04 13:40:58 +01:00
Mike McQuaid
fd4f488072
Merge pull request #15544 from Tokarak/cargo_cpu
...
Apply cpu-optimisation to Rust projects
2023-07-04 12:04:24 +01:00
Carlo Cabrera
b214ccd86d
extend/ENV/super: add comment for OPENSSL_NO_VENDOR
...
This is based on feedback from #15613 .
2023-07-04 16:21:35 +08:00
Carlo Cabrera
c3be703e02
extend/ENV/super: set OPENSSL_NO_VENDOR
...
Many (~60) formulae in Homebrew/core set this manually to prevent the
`openssl` Rust crate from vendoring OpenSSL.
Let's make handling this simpler by setting it globally instead.
2023-07-01 04:16:20 +08:00
Bo Anderson
e74f0dd787
extend/pathname: fix text_executable?
regex
2023-06-25 17:33:49 +01:00
Tokarak
9a19f5bcd2
Refactor to use oldest_cpu
2023-06-17 10:38:32 +01:00
Tokarak
9a99b932e8
Add RUSTFLAGS to ENV/super
2023-06-17 10:16:53 +01:00
Mike McQuaid
75dd070395
Remove Google Analytics
...
We are now entirely migrated to InfluxDB so can remove all GA code.
2023-06-16 10:33:15 +01:00
Tokarak
2133da8597
Set target-cpu through RUSTFLAGS
2023-06-14 17:26:01 +01:00
Tokarak
261f55a526
Prepare to migrate to RUSTFLAGS
2023-06-14 17:14:05 +01:00
Tokarak
cccad3e7d8
Line break
2023-06-14 16:46:12 +01:00
Tokarak
c698174200
Fix error on empty target-cpu
2023-06-13 20:40:23 +01:00
Tokarak
d4bfbb1d02
Remove FIXMEs
2023-06-13 19:32:18 +01:00
Tokarak
066a88855b
Add rustflags_target_cpu method
2023-06-13 19:22:12 +01:00
Carlo Cabrera
e8dd8c2a87
keg_relocate: match /tmp
more strictly
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-05-22 20:53:55 +08:00
Carlo Cabrera
59d92ab73f
keg_relocate: fix check for paths rooted in build directory
...
Stuff built by CMake evades this check because CMake normalises
`/private/tmp` (which is the default `HOMEBREW_TEMP`) to `/tmp`. See
https://gitlab.kitware.com/cmake/cmake/-/issues/23251 .
Let's fix that my taking this into account when `HOMEBREW_TEMP` is
`/private/tmp`.
2023-05-22 17:18:43 +08:00
Markus Reiter
486c3765ce
Add --os=all
and --arch=all
options.
2023-05-17 15:26:46 +02:00
Markus Reiter
8274920217
Rename OS::Mac::Version
to MacOSVersion
.
2023-05-09 05:08:38 +02:00
Carlo Cabrera
9b369871e6
Revert "utils/bottles: fix typechecking error"
...
This reverts commit 071f6069d2cff272eaa9404f836cb1254c4fb588.
2023-05-08 21:43:12 +08:00
Carlo Cabrera
071f6069d2
utils/bottles: fix typechecking error
...
https://github.com/Homebrew/homebrew-core/actions/runs/4915420737/jobs/8777887066?pr=130438#step:5:27
2023-05-08 21:07:58 +08:00
Samuel Lo
41aab1490a
bottle: some tar flags is not supported on Mojave
2023-05-04 04:01:51 +08:00
Douglas Eichelberger
08af78a2a5
brew style --fix
2023-04-25 09:26:24 -07:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Douglas Eichelberger
7224ff5f77
Include T::Sig in Module
2023-04-24 20:42:38 -07:00
hyuraku
a41a7c94d8
remove cask/cmd
2023-04-19 21:30:42 +09:00
Douglas Eichelberger
09c679e75f
Refactor module_function to reduce rbi need
2023-04-17 10:37:59 -07:00
Mike McQuaid
775cddf6d9
Merge pull request #15032 from dduugg/rm-git-extend
...
Refactor GitRepositoryExtension to avoid monkey-patching
2023-04-17 12:21:11 +01:00
Douglas Eichelberger
403f08db8b
Remove delegation
2023-04-16 09:30:21 -07:00
Douglas Eichelberger
b90897e280
Create git_repo attr
2023-04-15 19:35:13 -07:00
Douglas Eichelberger
1ffb77f821
cleanup
2023-04-15 19:35:13 -07:00
Douglas Eichelberger
3d1232eeac
rename methods
2023-04-15 19:35:13 -07:00
Douglas Eichelberger
429f23dcc6
Create GitRepoPath
2023-04-15 19:35:12 -07:00
Markus Reiter
38695f96c7
Don't use deprecated Kernel#shell_profile
.
2023-04-14 21:14:44 +02:00