26235 Commits

Author SHA1 Message Date
Mike McQuaid
61db6207d8
Merge pull request #13577 from iMichka/glibc-install
install glibc/gcc automatically if too old.
2022-08-25 11:54:19 +01:00
Michka Popoff
d271614872
install glibc/gcc automatically if too old.
Right now this is done through the gcc@5 formula.
See 9692318ca6/Formula/gcc%405.rb (L33)

This is fragile because when we will migrate to gcc@11
we have to think about migrating the installation from one gcc formula to another..
Also, not having the right glibc version results in a non-functional brew
installation on an older Linux: the glibc installation needs
to be done by brew, and not by a workaround in a specific formula

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Bo Anderson <mail@boanderson.me>
Co-Authored-By: Shaun Jackman <sjackman@gmail.com>
2022-08-25 11:04:37 +01:00
Rylan Polster
1c54e915b6
Update cask rubocops to use on_arch blocks and sha256 arm:, intel: 2022-08-25 00:49:28 -04:00
Rylan Polster
4de680688e
Merge pull request #13749 from Rylan12/include-on-system-rubocop
Include `on_{system}` blocks as stanzas in rubocop
2022-08-24 10:30:14 -04:00
Rylan Polster
cce5de3059
Merge pull request #13747 from Homebrew/dependabot/bundler/Library/Homebrew/msgpack-1.5.6
build(deps): bump msgpack from 1.5.5 to 1.5.6 in /Library/Homebrew
2022-08-24 01:09:31 -04:00
Carlo Cabrera
c42b6e2cad
Revert "formula_auditor: skip rename audit for glib-utils"
The necessary PRs in Homebrew/homebrew-core have been merged. See:
- Homebrew/homebrew-core#108307
- Homebrew/homebrew-core#108497

This reverts commit 6ca02b22bb27a45525fa62c6fba9902039152fcc.
2022-08-24 10:43:57 +08:00
BrewTestBot
515fc9aa40
brew vendor-gems: commit updates. 2022-08-23 18:14:16 +00:00
Rylan Polster
3f00893201
Include on_{system} blocks as stanzas in rubocop 2022-08-23 14:09:29 -04:00
dependabot[bot]
35ad58e347
build(deps): bump msgpack from 1.5.5 to 1.5.6 in /Library/Homebrew
Bumps [msgpack](https://github.com/msgpack/msgpack-ruby) from 1.5.5 to 1.5.6.
- [Release notes](https://github.com/msgpack/msgpack-ruby/releases)
- [Changelog](https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog)
- [Commits](https://github.com/msgpack/msgpack-ruby/compare/v1.5.5...v1.5.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 18:08:55 +00:00
Mike McQuaid
2415339124
Merge pull request #13745 from MikeMcQuaid/glibc-install-split
glibc related cleanup
2022-08-23 13:09:31 +01:00
Mike McQuaid
c294dcc616
glibc related cleanup
Extracted from https://github.com/Homebrew/brew/pull/13577
2022-08-23 12:42:02 +01:00
Bo Anderson
d9dc41bd38
linkage_checker: deprecate libnsl.so.1 linkage 2022-08-23 12:37:27 +01:00
Bo Anderson
4c643aed02
linkage_checker: disable libcrypt.so.1 linkage 2022-08-23 11:55:13 +01:00
Mike McQuaid
aa297cd8d1
Merge pull request #13743 from MikeMcQuaid/odisabled_remove
Remove odisabled for 3.6.0
2022-08-23 11:50:38 +01:00
Mike McQuaid
8f405d2c15
Merge pull request #13739 from Bo98/linkage-test
linkage_checker: don't reinstall formula on some linkage failures
2022-08-23 11:50:05 +01:00
Mike McQuaid
c09b1a09ea
Merge pull request #13648 from carlocab/gcc-linux-audit
formula_auditor: audit for Linux-only dependencies on GCC
2022-08-23 11:46:38 +01:00
Mike McQuaid
d550d57f78
Merge pull request #13639 from carlocab/linux-doctor-dependents
linux/diagnostic: add check for versioned GCC linkage
2022-08-23 11:46:08 +01:00
Mike McQuaid
f616faa853
Merge pull request #13676 from MikeMcQuaid/postgres-versioned
missing_formula: message for postgres rename.
2022-08-23 11:42:53 +01:00
Mike McQuaid
e7aa71de26
Remove odisabled for 3.6.0
The next release will be 3.6.0.
2022-08-23 11:25:02 +01:00
Mike McQuaid
3be7a65486
Merge pull request #13730 from apainintheneck/handle-no-cleanup-formulae-in-autoremove
Ignore HOMEBREW_NO_CLEANUP_FORMULAE deps in `brew autoremove`
2022-08-23 09:48:30 +01:00
Bo Anderson
0593597a11
linkage_checker: don't reinstall formula on some linkage failures 2022-08-23 09:38:52 +01:00
Rylan Polster
c5731faf8b
Merge pull request #13736 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.7.3
build(deps-dev): bump tapioca from 0.7.2 to 0.7.3 in /Library/Homebrew
2022-08-23 01:35:36 -04:00
Rylan Polster
c752c5e1ed
Merge pull request #13737 from Homebrew/dependabot/bundler/Library/Homebrew/msgpack-1.5.5
build(deps): bump msgpack from 1.5.4 to 1.5.5 in /Library/Homebrew
2022-08-23 01:34:50 -04:00
apainintheneck
98e6e6e31f Ignore HOMEBREW_NO_CLEANUP_FORMULAE deps in brew autoremove 2022-08-22 20:10:14 -07:00
BrewTestBot
bba76c8c84
brew vendor-gems: commit updates. 2022-08-22 18:14:56 +00:00
BrewTestBot
a0bc2c2bf6
brew vendor-gems: commit updates. 2022-08-22 18:08:51 +00:00
BrewTestBot
163d9e7cd5
brew vendor-gems: commit updates. 2022-08-22 18:07:59 +00:00
dependabot[bot]
4255255cad
build(deps): bump rubocop from 1.35.0 to 1.35.1 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.35.0 to 1.35.1.
- [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.35.0...v1.35.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 18:05:15 +00:00
dependabot[bot]
a9f9ddb468
build(deps): bump msgpack from 1.5.4 to 1.5.5 in /Library/Homebrew
Bumps [msgpack](https://github.com/msgpack/msgpack-ruby) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/msgpack/msgpack-ruby/releases)
- [Changelog](https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog)
- [Commits](https://github.com/msgpack/msgpack-ruby/compare/v1.5.4...v1.5.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 18:05:06 +00:00
dependabot[bot]
ba390a0817
build(deps-dev): bump tapioca from 0.7.2 to 0.7.3 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.7.2...v0.7.3)

---
updated-dependencies:
- dependency-name: tapioca
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 18:04:57 +00:00
Carlo Cabrera
77a4f224f9
Merge pull request #13725 from carlocab/glib-utils-audit 2022-08-23 00:49:16 +08:00
Mike McQuaid
5ca3e8ea39
Merge pull request #13734 from Bo98/gemfile-ruby
Gemfile: stricter Ruby version requirement
2022-08-22 14:11:39 +01:00
Carlo Cabrera
9db6f0df4a
Merge pull request #13722 from carlocab/rpath-args
formula: add optional `source` and `target` args to `#rpath`
2022-08-22 19:07:43 +08:00
Bo Anderson
ed2e35853d
Gemfile: stricter Ruby version requirement 2022-08-22 11:11:57 +01:00
Carlo Cabrera
718cf8b0df
Fix Linux-only GCC dependency check.
This is based on feedback from code review.
2022-08-22 14:54:52 +08:00
Carlo Cabrera
6ca02b22bb
formula_auditor: skip rename audit for glib-utils
I am removing `glib-utils` in (1) Homebrew/homebrew-core#108307, and all
`glib-utils` dependencies in (2) Homebrew/homebrew-core#108497.

This audit prevents me from proceeding with (1) without rebuilding all
the formulae modified in (2). I don't think that is needed, so I'd like
to exempt `glib-utils` from the rename audit instead.

To give you a clearer idea of how I plan to do this, this is the order
of events:
1. Merge this change.
2. Merge Homebrew/homebrew-core#108307.
3. Merge Homebrew/homebrew-core#108497.
4. Revert this change.

This should allow us to get rid of `glib-utils` and its accompanying
hacks without having to rebuild dozens of formulae needlessly.
2022-08-20 17:30:24 +08:00
BrewTestBot
54c1bb872a
brew vendor-gems: commit updates. 2022-08-19 18:07:53 +00:00
dependabot[bot]
5606780663
build(deps): bump addressable from 2.8.0 to 2.8.1 in /Library/Homebrew
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.8.0...addressable-2.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 18:03:29 +00:00
Carlo Cabrera
6096bc6d71
Merge pull request #13716 from carlocab/cleanup-cleanup_path
cleanup: use `cleanup_path` more consistently
2022-08-19 23:02:38 +08:00
Carlo Cabrera
c7030eaba0
formula: add optional source and target args to #rpath
There are about 10 formulae which need a bit more flexibility from
`#rpath`. Most of them use `Pathname#relative_path_from`, so we can
replace those instances with a call to `#rpath` instead once `#rpath`
knows how to handle this.
2022-08-19 17:32:43 +08:00
Carlo Cabrera
d4e6925cbb
Merge pull request #13714 from carlocab/dependent-conflict-allowlist
formula_auditor: create a versioned formula dependent conflict allowlist
2022-08-19 17:02:43 +08:00
fn ⌃ ⌥
2459aee5ae
Fix caching in Formula#runtime_installed_formula_dependents 2022-08-18 15:14:44 -07:00
Rylan Polster
8f54e57422
Merge pull request #13719 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.16.3
build(deps): bump minitest from 5.16.2 to 5.16.3 in /Library/Homebrew
2022-08-18 15:47:43 -04:00
BrewTestBot
4834b718b6
brew vendor-gems: commit updates. 2022-08-18 18:10:03 +00:00
dependabot[bot]
b7eebfaded
build(deps): bump minitest from 5.16.2 to 5.16.3 in /Library/Homebrew
Bumps [minitest](https://github.com/seattlerb/minitest) from 5.16.2 to 5.16.3.
- [Release notes](https://github.com/seattlerb/minitest/releases)
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/seattlerb/minitest/compare/v5.16.2...v5.16.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 18:07:20 +00:00
Rylan Polster
1075bbd895
Fix multi-arch cask sha256 updates 2022-08-18 12:50:20 -04:00
Carlo Cabrera
7384bd2b3f
cleanup: use cleanup_path more consistently
`cleanup_path` already handles the dry-run logic, and also includes
those paths in the summary of space freed by `brew cleanup`.

Before this change:

    ❯ brew cleanup --dry-run
    Would remove: /Users/carlocab/Library/Caches/Homebrew/bootsnap (2,401 files, 41.9MB)

After this change:

    ❯ brew cleanup --dry-run
    Would remove: /Users/carlocab/Library/Caches/Homebrew/bootsnap (2,401 files, 41.9MB)
    ==> This operation would free approximately 41.9MB of disk space.
2022-08-18 21:28:51 +08:00
Carlo Cabrera
18722901ee
formula_auditor: create a versioned formula dependent conflict allowlist
We have an audit that checks each formula's dependency tree for multiple
versions of the same software. We have an allowlist that allows us to
ignore this audit, but this allowlist requires each formula with a
conflict in its dependency tree to be listed there.

Here, I propose the reverse: if formula `foo` appears in the
`versioned_formula_dependent_conflicts_allowlist`, then all its
dependents will not fail the versioned dependencies conflict because of
a conflict with formula `foo`.

I'd like to do this in the case of `python`, where I think the versioned
dependencies conflict check hurts us more than helps us. Versioned
dependency conflicts are most problematic in the case of libraries with
the same install name but incompatible ABIs. This is almost never a
problem with Python: almost no formulae link with the Python framework
on macOS (in part due to one of our audits that disallows Python
framework linkage in Python modules). Moreover, the various Python
frameworks that we ship have the version in the install name.

The above _might_ be a problem on Linux, since we allow unrestricted
linkage with `libpython`. However, we don't even check versioned
conflicts on Linux, so we aren't as concerned about this in the first
place.

This is also a lot more convenient than adding the dependents of some
Python formula one by one as they acquire conflicts due to changes in
other formulae.

I've also amended `tap_auditor` to allow the use of formula aliases in
an allowlist, to allow us to add `python` to this allowlist instead of
each individual versioned Python formula.

See also discussion at Homebrew/homebrew-core#108307.
2022-08-18 15:40:54 +08:00
Rylan Polster
fcb30c1ead
Merge pull request #13702 from Rylan12/sha256-arch
Add `arm:` and `intel:` arguments to cask `sha256` stanza
2022-08-17 10:34:04 -04:00
Sean Molenaar
b13f6c7c40
Cask: fix signing audit using unexpected pkg method 2022-08-17 15:49:04 +02:00