26074 Commits

Author SHA1 Message Date
Sean Molenaar
2de6958a36
build_environment: add proper types to dump() and fix inreplace error 2022-08-15 19:03:55 +02:00
Carlo Cabrera
4a623e0a25
Merge pull request #13659 from carlocab/more-gcc-rpath
linux/super: add unversioned GCC lib directory to RPATH
2022-08-11 12:04:24 +08:00
Rylan Polster
43bbe2bcfc
Fix nil handling in arch cask DSL 2022-08-10 17:15:37 -04:00
Rylan Polster
39071d5816
Remove arch from cask stanza ordering temporarily 2022-08-10 15:37:28 -04:00
Mike McQuaid
9382160be6
Merge pull request #13670 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.1.2.1
build(deps): bump parser from 3.1.2.0 to 3.1.2.1 in /Library/Homebrew
2022-08-10 14:15:32 +01:00
Carlo Cabrera
478e42d536
linux/linkage_checker: remove gcc from undeclared_deps 2022-08-10 19:04:35 +08:00
Rylan Polster
044fefdce9
Merge pull request #13657 from Rylan12/add-arch-and-variable-cask-dsl
Add `arch` cask DSL
2022-08-09 15:49:46 -04:00
Rylan Polster
19c955d19a
Fix tests 2022-08-09 14:54:33 -04:00
BrewTestBot
ef6c4816ca
brew vendor-gems: commit updates. 2022-08-09 18:07:48 +00:00
dependabot[bot]
46098f95a1
build(deps): bump parser from 3.1.2.0 to 3.1.2.1 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.1.2.0 to 3.1.2.1.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.1.2.0...v3.1.2.1)

---
updated-dependencies:
- dependency-name: parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 18:05:07 +00:00
Rylan Polster
76ae20a12f
Re-add on_arch_conditional DSL 2022-08-09 11:34:52 -04:00
Carlo Cabrera
6d07c6eaa0
tests: update language/python/shebang spec 2022-08-09 22:38:05 +08:00
Carlo Cabrera
ab4f1047fb
language/python: use versioned Python name in detected_python_shebang
Needed for Homebrew/homebrew-core#107517.
2022-08-09 22:36:39 +08:00
Mike McQuaid
7fcc30c56b
Merge pull request #13667 from abitrolly/search-v-desc
`brew search --verbose` to tell about `brew desc`
2022-08-09 13:06:31 +01:00
Anatoli Babenia
fded404e13
Suggestion with better wording
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-09 11:59:13 +03:00
Anatoli Babenia
be2ae9a6be brew search --vebose to tell about brew desc 2022-08-09 09:50:44 +03:00
BrewTestBot
37d769ea3e
brew vendor-gems: commit updates. 2022-08-08 18:09:15 +00:00
dependabot[bot]
2cb86faaeb
build(deps): bump rubocop-ast from 1.19.1 to 1.21.0 in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.19.1 to 1.21.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.19.1...v1.21.0)

---
updated-dependencies:
- dependency-name: rubocop-ast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 18:06:36 +00:00
Sean Molenaar
8e49be58b3
Merge pull request #13623 from SMillerDev/fix/exceptions/report_issues_inreplace_head
brew.rb: tell users to fix head issues with inreplace
2022-08-08 16:48:24 +02:00
Sean Molenaar
95080ebbb7
inreplace: style fixes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-08 16:18:06 +02:00
Mike McQuaid
aee92fb143
Merge pull request #13647 from hyuraku/cmd/info--cask--json=v2-handle-multiple-taps
check whether token is multiple tap's name
2022-08-08 13:52:01 +01:00
Mike McQuaid
713ff600ef
Merge pull request #13569 from FnControlHomebrew/cleanup
Run periodic cleanup after installing all packages
2022-08-08 13:51:11 +01:00
Sean Molenaar
12d31853ab
inreplace: fix map 2022-08-08 14:01:44 +02:00
hyuraku
acf39f8777 add TODO comment 2022-08-08 19:58:50 +09:00
Sean Molenaar
040d93a006
formula: add back docstring 2022-08-07 15:55:37 +02:00
Sean Molenaar
03a489bf78
brew.rb: tell users to fix head issues with inreplace 2022-08-07 13:34:56 +02:00
hyuraku
0acadc857c repair CaskLoader.load args 2022-08-07 15:43:51 +09:00
Carlo Cabrera
ddc23eb268
update-report: reset version_scheme only for runtime dependents
`recursive_dependencies` includes build and test dependencies as well,
which means that we're doing this for too many formulae.
2022-08-06 20:56:53 +08:00
Carlo Cabrera
fa26b5a06d
linux/super: add unversioned GCC lib directory to RPATH
This adds GCC's runtime lib directory to the RPATH of every build on
Linux (unconditionally!).

This is useful for three things:

1. It fixes versioned GCC linkage for formulae that users build from
   source instead of pouring from a bottle. We currently only handle
   bottle installs. See #13633.

2. It helps minimise the GCC dependency explosion. When a formula has a
   Linux-only GCC dependency, then all its dependents that link with
   some GCC runtime library (typically `libstdc++`) must, before this
   change, also adopt a GCC dependency. This is a consequence of our
   injecting GCC's runtime library directory into RPATH only when a
   formula is built with GCC (this is done through the specs file). We
   can avoid the need to do this by always injecting this path instead.

3. This enables us to automatically install Homebrew GCC whenever the
   user's GCC is too old and the formula may need it. Without this
   change, auto-installing GCC is not that useful because formulae that
   need it may not know to look for our GCC, unless the formula already
   happened to be built with our GCC. With this change, these formulae
   will always be able to find our GCC when it is installed. This is
   particularly useful for when we start building with a version of GCC
   that is much closer to the latest than we currently do.

This approach comes with at least two drawbacks:

1. We will see spurious linkage warnings in CI about an undeclared
   dependency with linkage as soon as Homebrew GCC is installed, because
   formulae will link with our GCC instead of the host's. Users will
   also see a similar complaint if they do `brew linkage`.

2. This leans _very_ heavily on GCC delivering backward compatibility of
   their runtime libraries. If they do not, we could see different
   behaviour across different CI runs for the same formula depending on
   whether Homebrew GCC is installed.

It's worth noting that item 3 in the "useful" list above may rely on
features not yet implement in `brew`.
2022-08-06 13:21:18 +08:00
Rylan Polster
dd72f1ac95
Add arch cask DSL 2022-08-05 17:12:55 -04:00
Carlo Cabrera
2d95b9acda
linux/keg_relocate: remove patchelf exemption
I don't think this is needed anymore. We probably needed this when we
used `patchelf` to do `RPATH` rewriting, but this is no longer the case.
2022-08-06 00:26:48 +08:00
Carlo Cabrera
ff9c250019
Merge pull request #13655 from carlocab/pr-conflict-fix
pr-pull: fix PRs conflicting with themselves
2022-08-05 22:24:25 +08:00
Rylan Polster
d4ddfb88df
Merge pull request #13616 from Rylan12/simulate-macos-on-linux
Move `HOMEBREW_SIMULATE_MACOS_ON_LINUX` handling to `SimulateSystem`
2022-08-05 10:23:13 -04:00
Carlo Cabrera
a82974974c
Update Library/Homebrew/dev-cmd/pr-pull.rb
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-08-05 21:51:39 +08:00
Carlo Cabrera
61544369e4
pr-pull: fix PRs conflicting with themselves
https://github.com/Homebrew/homebrew-core/pull/106755#issuecomment-1206460655
2022-08-05 21:41:28 +08:00
hyuraku
a43633e094 add uniq to check multiple tap 2022-08-05 20:59:19 +09:00
Mike McQuaid
1807ac77d5
Merge pull request #13650 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.33.0
build(deps): bump rubocop from 1.32.0 to 1.33.0 in /Library/Homebrew
2022-08-05 10:18:50 +01:00
Michka Popoff
3eacc0fb7c
pr-pull: fix check conflicts
The previous refactorings broke the conflict check.
Go back to the initially proposed syntax to fill the hashes/arrays,
which is more readable, and which works (the proc syntax does not seem to work for our purpose here)

Remove space before the error message, else only the first line of the output has 2 spaces
and this looks weird
2022-08-04 23:34:52 +02:00
BrewTestBot
345b283058
brew vendor-gems: commit updates. 2022-08-04 18:15:52 +00:00
dependabot[bot]
a65f5c2d49
build(deps): bump rubocop from 1.32.0 to 1.33.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.32.0...v1.33.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-04 18:04:45 +00:00
fn ⌃ ⌥
dce57eaad6 Always print install cleanup disable message for periodic clean 2022-08-04 07:46:31 -07:00
fn ⌃ ⌥
71ab2f6e7a Run periodic cleanup after installing all packages 2022-08-04 07:46:31 -07:00
hyuraku
84ec42f31b check whether token is multiple tap's name 2022-08-04 22:34:16 +09:00
Mike McQuaid
b556db72fb
Merge pull request #13644 from Bo98/ruby-path-macos-fix
utils/ruby.sh: fix `HOMEBREW_USE_RUBY_FROM_PATH` on non-latest macOS
2022-08-04 11:39:23 +01:00
Kevin
93bf9e5ba2
Merge pull request #13532 from apainintheneck/add-uninstall-autoremove
cmd/uninstall: Add env variable that runs autoremove after uninstalls
2022-08-03 18:10:32 -07:00
Bo Anderson
ef20a53b4c
utils/ruby.sh: fix HOMEBREW_USE_RUBY_FROM_PATH on non-latest macOS 2022-08-03 23:28:44 +01:00
Michka Popoff
ab49c02501
Merge pull request #13638 from iMichka/fixpull2
github/pr-pull: fix/improve parameters
2022-08-03 23:03:30 +02:00
Issy Long
154806d8eb
Merge pull request #13603 from issyl0/cmd-contributions
dev-cmd/contributions: Retrieve a user's repo contributions over time
2022-08-03 19:05:40 +01:00
Carlo Cabrera
a93906a159
Merge pull request #13633 from carlocab/migrate-gcc-dependents
update-report: migrate GCC recursive dependents
2022-08-04 02:02:48 +08:00
Issy Long
11d661c497
dev-cmd/contributions: Friendlier --repositories help text 2022-08-03 18:26:30 +01:00