26835 Commits

Author SHA1 Message Date
Rylan Polster
0b030b74e2
Merge pull request #13587 from Homebrew/dependabot/bundler/Library/Homebrew/tzinfo-2.0.5
build(deps): bump tzinfo from 2.0.4 to 2.0.5 in /Library/Homebrew
2022-07-21 10:56:29 +02:00
Carlo Cabrera
e7fc86d80f
Merge pull request #13584 from steveh7812/api-curl-args
use --time-cond when caching the formula api json
2022-07-21 15:30:39 +08:00
Steve Hahn
9f27bd4c67 simplify cached_formula_json_file check 2022-07-20 11:19:24 -07:00
BrewTestBot
db9a878ef0
Update RBI files for tzinfo. 2022-07-20 18:17:10 +00:00
BrewTestBot
20fbc1e9fd
brew vendor-gems: commit updates. 2022-07-20 18:12:43 +00:00
dependabot[bot]
f416e332f4
build(deps): bump tzinfo from 2.0.4 to 2.0.5 in /Library/Homebrew
Bumps [tzinfo](https://github.com/tzinfo/tzinfo) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/tzinfo/tzinfo/releases)
- [Changelog](https://github.com/tzinfo/tzinfo/blob/master/CHANGES.md)
- [Commits](https://github.com/tzinfo/tzinfo/compare/v2.0.4...v2.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 18:10:01 +00:00
danielnachun
7a247fd52d
shims/super/cc: add -nostdinc in cppflags 2022-07-20 11:08:43 -07:00
Bo Anderson
4173228c1b
Gemfile: denote minimum Ruby 2022-07-20 13:47:47 +01:00
Carlo Cabrera
f9e8531924
cmd/update: stop Git's fsmonitor when needed
Git's fsmonitor daemon will prevent our update lock file from being
released if it is running before a `brew update`.

Let's fix that by stopping it whenever necessary so our update lock is
released upon completion.

Fixes #13521.
2022-07-20 18:18:12 +08:00
Daniel Nachun
8a2efb1df6
Merge pull request #13568 from danielnachun/fix_glibc_2_13
Add flags to superenv when building with glibc@2.13
2022-07-19 23:38:54 -07:00
Steve Hahn
8993ebca88 use --time-cond when caching the formula api json 2022-07-19 17:41:27 -07:00
Bo Anderson
b1c1d15e01
brew vendor-gems: commit updates. 2022-07-19 23:43:18 +01:00
Bo Anderson
e4264c9f35
Replace sorbet-runtime-stub with sorbet-runtime 2022-07-19 23:43:14 +01:00
Rylan Polster
19340f9212
Merge pull request #13576 from Rylan12/empty-patch 2022-07-20 00:20:45 +02:00
Colin Dean
ac53a6ae36 Instruct user to tap untapped official tap when running its commands
This came up in https://github.com/Homebrew/homebrew-bundle/issues/1108
wherein a user had unwittingly untapped some official taps that get
automatically tapped on first use and couldn't figure out why they
couldn't use the associated command.
2022-07-19 18:06:42 -04:00
Bo Anderson
30fda551e8
Merge pull request #13578 from gpanders/deprecated
Require deprecate_disable module in formulary
2022-07-19 16:41:41 +01:00
Gregory Anders
f387c7f0b2 Require deprecate_disable module in formulary
This solves a recurrent issue where various brew commands (e.g. doctor,
cleanup) would print the following stack trace:

    Error: uninitialized constant Formulary::DeprecateDisable
    Did you mean?  DeprecatedOption
    /opt/homebrew/Library/Homebrew/formulary.rb:269:in `convert_to_deprecate_disable_reason_string_or_symbol'
    /opt/homebrew/Library/Homebrew/formulary.rb:171:in `block in load_formula_from_api'
    /opt/homebrew/Library/Homebrew/formulary.rb:139:in `initialize'
    /opt/homebrew/Library/Homebrew/formulary.rb:139:in `new'
    /opt/homebrew/Library/Homebrew/formulary.rb:139:in `load_formula_from_api'
    /opt/homebrew/Library/Homebrew/formulary.rb:519:in `load_from_api'
    /opt/homebrew/Library/Homebrew/formulary.rb:510:in `klass'
    /opt/homebrew/Library/Homebrew/formulary.rb:296:in `get_formula'
    /opt/homebrew/Library/Homebrew/formulary.rb:542:in `factory'
    /opt/homebrew/Library/Homebrew/formulary.rb:565:in `from_rack'
    /opt/homebrew/Library/Homebrew/cleanup.rb:85:in `stale_formula?'
    /opt/homebrew/Library/Homebrew/cleanup.rb:58:in `stale?'
    /opt/homebrew/Library/Homebrew/cleanup.rb:356:in `block in cleanup_cache'
    /opt/homebrew/Library/Homebrew/cleanup.rb:339:in `each'
    /opt/homebrew/Library/Homebrew/cleanup.rb:339:in `cleanup_cache'
    /opt/homebrew/Library/Homebrew/cleanup.rb:222:in `clean!'
    /opt/homebrew/Library/Homebrew/cmd/cleanup.rb:58:in `cleanup'
    /opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>'
2022-07-19 06:29:14 -06:00
Mike McQuaid
6615cd9144
Merge pull request #13510 from GottemHams/feat-macos-fully-backgrounded
Added support for running services fully backgrounded on macOS
2022-07-19 09:44:40 +01:00
Carlo Cabrera
020c93ac84
Merge pull request #13570 from carlocab/report-system-framework-linkage
linkage_checker: report linkage with system frameworks
2022-07-19 14:04:31 +08:00
Rylan Polster
94138c0848
Ignore empty patch blocks 2022-07-18 22:51:30 +02:00
BrewTestBot
114f909ff9
Update RBI files for rubocop-performance. 2022-07-18 18:12:29 +00:00
BrewTestBot
f72d8b0968
brew vendor-gems: commit updates. 2022-07-18 18:07:33 +00:00
dependabot[bot]
bc178b1a5a
build(deps): bump rubocop-performance in /Library/Homebrew
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.14.2...v1.14.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 18:04:28 +00:00
Mohammad Zain Abbas
3e8cf6c8f8
Merge branch 'Homebrew:master' into mohammad 2022-07-18 15:10:08 +02:00
Mohammad Zain Abbas
4aa3cc6c97 Minor 2022-07-18 15:03:05 +02:00
Mohammad Zain Abbas
2d231a3478 More compact way to get livecheckable resources 2022-07-18 14:49:32 +02:00
Mohammad Zain Abbas
f8320c89ed Selected all livecheckable resources 2022-07-18 14:42:43 +02:00
Mohammad Zain Abbas
82057003a7 Selected all formulas with livecheckable resources 2022-07-18 14:36:27 +02:00
Mohammad Zain Abbas
ad1a9b5970 Fetched all formulas with livecheckable resources 2022-07-18 14:07:33 +02:00
Mohammad Zain Abbas
dba5754c9f Filter out resources with livecheck block: Work in progress 2022-07-18 14:03:40 +02:00
Carlo Cabrera
e61bcb45f7
linkage_checker: report linkage with system frameworks
Currently, `brew linkage` reports linkage with system frameworks only if
they can be found on the file system. This results in this linkage not
being reported on Big Sur and newer, where system libraries are stored
in the dyld cache instead.

Let's fix that by avoiding silently ignoring system frameworks by moving
them out of `#harmless_broken_link?`. We retain the behaviour desired
from 7228e60da51392b20d55e0c087b2082b86fb3bbf by deferring checking if a
broken library is actually a system framework to just before we add it
to `@broken_dylibs`.

To see how this changes the behaviour of `brew linkage`, here's an
example with this change:

    ❯ brew linkage neovim
    System libraries:
      /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
      /usr/lib/libSystem.B.dylib
      /usr/lib/libiconv.2.dylib
      /usr/lib/libutil.dylib
    Homebrew libraries:
      /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
      /usr/local/opt/libtermkey/lib/libtermkey.1.dylib (libtermkey)
      /usr/local/opt/libuv/lib/libuv.1.dylib (libuv)
      /usr/local/opt/luajit/lib/libluajit-5.1.2.dylib (luajit)
      /usr/local/opt/luv/lib/libluv.1.dylib (luv)
      /usr/local/opt/msgpack/lib/libmsgpackc.2.dylib (msgpack)
      /usr/local/opt/tree-sitter/lib/libtree-sitter.0.dylib (tree-sitter)
      /usr/local/opt/unibilium/lib/libunibilium.4.dylib (unibilium)

and without this change:

    ❯ brew linkage neovim
    System libraries:
      /usr/lib/libSystem.B.dylib
      /usr/lib/libiconv.2.dylib
      /usr/lib/libutil.dylib
    Homebrew libraries:
      /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
      /usr/local/opt/libtermkey/lib/libtermkey.1.dylib (libtermkey)
      /usr/local/opt/libuv/lib/libuv.1.dylib (libuv)
      /usr/local/opt/luajit/lib/libluajit-5.1.2.dylib (luajit)
      /usr/local/opt/luv/lib/libluv.1.dylib (luv)
      /usr/local/opt/msgpack/lib/libmsgpackc.2.dylib (msgpack)
      /usr/local/opt/tree-sitter/lib/libtree-sitter.0.dylib (tree-sitter)
      /usr/local/opt/unibilium/lib/libunibilium.4.dylib (unibilium)
2022-07-18 12:04:24 +08:00
danielnachun
47b6492098
extend/os/linux/extend/ENV/super.rb: add homebrew_extra_include_paths 2022-07-17 17:15:06 -07:00
danielnachun
6ab6382518
shims/super/cc: add nostdinc and rpath-link when using glibc@2.13 2022-07-17 17:15:06 -07:00
apainintheneck
85cf0ca6d4 Updated env variable docs on manpage
Updated docs for:
HOMEBREW_AUTOREMOVE
HOMEBREW_NO_CLEANUP_FORMULAE
2022-07-17 09:31:05 -07:00
Mohammad Zain Abbas
8ef6118ba0 Work in progress: Fetch all resources with livecheck block 2022-07-17 13:02:22 +02:00
Mohammad Zain Abbas
59165ed3ec Get all resources in all formulae 2022-07-17 12:47:20 +02:00
Mohammad Zain Abbas
7156c95b82 Added --resources option in livecheck cmd 2022-07-17 12:45:29 +02:00
apainintheneck
cb91f8b665 Add tests for retrieving formula based on dependents
Also, made sure to clear formula cache before
and after autoremoving packages.
2022-07-17 00:39:23 -07:00
Bo Anderson
f041a59af9
Merge pull request #13547 from FnControlOption/patch-12
rubocops: allow uses_from_macos "less"
2022-07-16 15:16:03 +01:00
Bo Anderson
98d367b8a5
Merge pull request #13552 from Bo98/update-test-fix
dev-cmd/update-test: test against merge-base rather than latest master
2022-07-16 15:13:10 +01:00
Bo Anderson
6eb2d6df9a
utils/ruby_check_version_script: fix invalid shebang 2022-07-16 02:49:33 +01:00
Mike McQuaid
217bfb7dad
utils/ruby_check_version_script: fix and test.
Don't use ActiveSupport methods and add a test to make sure this doesn't regress.

Fixes #13559
2022-07-16 02:47:33 +01:00
Bo Anderson
676b88c5c4
dev-cmd/update-test: test against merge-base rather than latest master 2022-07-16 02:28:26 +01:00
BrewTestBot
877b92f68a
brew vendor-gems: commit updates. 2022-07-15 18:05:31 +00:00
dependabot[bot]
91a331ea4e
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.10158 to 0.5.10160.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-15 18:02:59 +00:00
Rylan Polster
0c785673d9
Merge pull request #13558 from Homebrew/dependabot/bundler/Library/Homebrew/i18n-1.12.0
build(deps): bump i18n from 1.11.0 to 1.12.0 in /Library/Homebrew
2022-07-15 09:20:05 +02:00
Rylan Polster
1fa7420c4a
Merge pull request #13557 from Homebrew/dependabot/bundler/Library/Homebrew/warning-1.3.0
build(deps): bump warning from 1.2.1 to 1.3.0 in /Library/Homebrew
2022-07-15 09:18:51 +02:00
apainintheneck
fe83500617 Moved autoremove logic into cleanup.rb and formula.rb
Cleanup.rb:
- Added #autoremove method
- #autoremove is called in clean when HOMEBREW_AUTOREMOVE is set

Formula.rb:
- Added #unused_formulae_with_no_dependents and helpers

Removed old autoremove.rb module.
2022-07-14 13:16:26 -07:00
BrewTestBot
95f4eb0482
Update RBI files for i18n. 2022-07-14 18:10:59 +00:00
BrewTestBot
963aeff2b7
Update RBI files for warning. 2022-07-14 18:10:45 +00:00