22937 Commits

Author SHA1 Message Date
Rylan Polster
8b0f7e7ada
formula: add to_bottle_hash method 2021-06-03 12:59:42 -04:00
Gibson Fahnestock
07d571bebc
fix(vendor-gems): redirect bundler stdout to stderr
When running brew commands and interpreting the output, e.g. running
`brew livecheck --json`, it's necessary to stop other programs Homebrew
happens to execute from writing logging output to stdout. Most programs
don't do this, but `bundle install` does seem to.

To reproduce the issue you can run:

```shell
git -C "$(brew --prefix)" clean -ffdx Library/Homebrew/vendor
stdout=$(HOMEBREW_FORCE_VENDOR_RUBY=1 brew livecheck --newer-only --json --cask $(brew --repo homebrew/cask)/Casks/grid.rb)
echo "^^^ was stderr, >>> is stdout: $stdout"
```

If you run it without this change it will print a bunch of output like
this to the stdout before printing out the livecheck JSON output:

```text
Using bundler 1.17.3
Fetching byebug 11.1.3
Fetching coderay 1.1.3
Installing byebug 11.1.3 with native extensions
Installing coderay 1.1.3
Fetching colorize 0.8.1
Installing colorize 0.8.1

[
  # Contents of the JSON block.
]
```

With this change the stdout from `bundle install` will be redirected to
brew's stderr, meaning only the JSON goes to stdout, and the rest goes
to stderr.
2021-06-03 11:18:23 +01:00
Mike McQuaid
d74da6cfc6
Merge pull request #11481 from cnnrmnn/install-head-deps
Install build dependencies for `head` when `stable` is installed
2021-06-03 09:17:46 +01:00
Mike McQuaid
d2ddb80cf4
Merge pull request #11483 from nandahkrishna/audit-elasticsearch-kibana
formula_auditor: add audit for elasticsearch and kibana
2021-06-03 09:16:46 +01:00
BrewTestBot
e177384dca
Update RBI files for nokogiri. 2021-06-03 05:57:07 +00:00
BrewTestBot
9922ca94df
brew vendor-gems: commit updates. 2021-06-03 05:56:15 +00:00
dependabot[bot]
671dc8a33b
build(deps): bump nokogiri from 1.11.6 to 1.11.7 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.6 to 1.11.7.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.6...v1.11.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 05:54:01 +00:00
Daniel Nachun
273b06c822
Merge pull request #11459 from danielnachun/gcc_fix
super: fix GCC linkage issue in Linux
2021-06-02 20:23:53 -07:00
Nanda H Krishna
141edc8506
formula_auditor: add audit for elasticsearch and kibana
Prevent upgrading them to version 7.11 or newer, as they were
relicensed to an incompatible license.
2021-06-03 00:33:37 +05:30
Connor Mann
e75a10fafd
Fix style 2021-06-02 11:21:44 -04:00
Connor Mann
cb78499cd4
Install build deps for --HEAD 2021-06-02 11:13:12 -04:00
Mike McQuaid
aa937b9024
Merge pull request #11474 from cho-m/fix-tar-validation
utils/tar: fix validation for tar without directory or extensions
2021-06-02 14:06:17 +01:00
Mike McQuaid
995baa96e2
Merge pull request #11480 from hyuraku/use_const_API_URL
change https://api.github.com to API_URL
2021-06-02 13:40:30 +01:00
Mike McQuaid
9ea4c555ac
Merge pull request #11473 from gromgit/diagnose-broken-tap
diagnostic: add check for broken taps
2021-06-02 13:36:18 +01:00
hyuraku
90c02f7b5a change https://api.github.com to API_URL 2021-06-02 21:13:53 +09:00
Nanda H Krishna
d84f98b28c
Merge pull request #11477 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.16.0
build(deps): bump rubocop from 1.15.0 to 1.16.0 in /Library/Homebrew
2021-06-02 15:30:27 +05:30
Nanda H Krishna
47a549e944
Fix style using brew style --fix 2021-06-02 11:43:16 +05:30
BrewTestBot
92baa2e84a
Update RBI files for rubocop. 2021-06-02 05:30:06 +00:00
BrewTestBot
c926c43a8f
brew vendor-gems: commit updates. 2021-06-02 05:29:08 +00:00
dependabot[bot]
85d7ba7292
build(deps): bump rubocop from 1.15.0 to 1.16.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.15.0 to 1.16.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.15.0...v1.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-02 05:23:28 +00:00
Michael Cho
9e29c6eac2
utils/tar: fix validation for tar without directory or extensions 2021-06-01 12:53:25 -07:00
Adrian Ho
1cf8b43966 Unrefactor broken tap
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-02 00:11:18 +08:00
Rylan Polster
023063d6a2
bottle: calculate rebuild correctly when removing bottle :unneeded 2021-06-01 11:39:07 -04:00
Adrian Ho
c7bbb904e8 diagnostic: add check for broken taps
Detect half-baked core taps that show up on a fairly regular basis (e.g. #11465).

The logic is simple enough: Since an improper tap wouldn't have a complete Git config, and is always somewhere below `HOMEBREW_REPOSITORY`, any Git operation would look at the Brew repo instead. We simply need to test for any of:

1. Empty tap origin
2. Empty tap HEAD
3. Tap HEAD == Brew HEAD
2021-06-01 23:16:45 +08:00
Rylan Polster
b8479ade2b
Merge pull request #11475 from Rylan12/fix-eligible_kegs_for_cleanup
formula: reject only the latest head keg when cleaning up
2021-06-01 11:12:52 -04:00
Mike McQuaid
be7d890970
Merge pull request #11471 from Bo98/ghp-tab-fix
software_spec: fix wrong tab being fetched when bottle isn't unique
2021-06-01 13:59:06 +01:00
Rylan Polster
56f723339d
formula: reject only the latest head keg when cleaning up 2021-06-01 03:25:26 -04:00
Sam Ford
f9dd12ef5c
Merge pull request #11457 from nandahkrishna/livecheck-gnome-update
livecheck/strategy/gnome: handle new GNOME versioning
2021-05-31 20:22:06 -04:00
Carlo Cabrera
ed922bfffa
Merge pull request #11467 from chandlerc/restore-cmake-flags
Stop overriding CMake's release compile flags.
2021-06-01 01:15:29 +01:00
Rylan Polster
f7b1ccfcf6
Merge pull request #11454 from Rylan12/fix-uses-caching
dependency: don't merge formula and cask cache in `::expand`
2021-05-31 17:26:16 -04:00
danielnachun
bd88f3d857 super: fix GCC issues 2021-05-31 11:17:00 -07:00
Bo Anderson
1fc39d2d0d
os/mac/keg_relocate: add fallback to default Perl version when using tab
While this should never be necessary for per-OS bottles, this could be useful for :all bottles where the OS it was built on uses a Perl version that doesn't exist on all macOS versions.
2021-05-31 16:31:26 +01:00
Bo Anderson
9380729dbf
software_spec: fix wrong tab being fetched when bottle isn't unique 2021-05-31 16:20:10 +01:00
Bo Anderson
984226d5b5
dev-cmd/unbottled: fix arch requirement handling 2021-05-31 15:24:20 +01:00
Nanda H Krishna
b920949693
Improve Gnome strategy explanatory comment
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-05-31 19:47:08 +05:30
Mike McQuaid
5115cc25fa
Merge pull request #11460 from danielnachun/allow_keg_only
components_order: allow keg_only in on_macos/on_linux blocks
2021-05-31 12:39:03 +01:00
Michka Popoff
cf8794e3ba
Merge pull request #11466 from danielnachun/add_libatomic
linkage_checker: add libatomic
2021-05-31 13:38:46 +02:00
Mike McQuaid
8171fd6b1b
Merge pull request #11447 from scpeters/lowercase_formula_names
audit: complain about uppercase formula names
2021-05-31 12:30:42 +01:00
Nanda H Krishna
471ce1541d
Modify Gnome strategy and update comments
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-05-31 16:07:56 +05:30
danielnachun
dc8568f541 linkage_checker: add libatomic 2021-05-31 00:40:19 -07:00
Rylan Polster
70d020b6b3
requirement: don't merge formula and cask cache in ::expand 2021-05-31 02:46:45 -04:00
BrewTestBot
7d8723d885
Update RBI files for rubocop-ast. 2021-05-31 06:16:04 +00:00
BrewTestBot
b8391f9481
brew vendor-gems: commit updates. 2021-05-31 06:14:58 +00:00
dependabot[bot]
b258f90aee
build(deps): bump rubocop-ast from 1.6.0 to 1.7.0 in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-ast/compare/v1.6.0...v1.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-31 06:11:48 +00:00
danielnachun
5af7521ab8
components_order: allow keg_only in on_macos/on_linux blocks 2021-05-30 19:03:04 -07:00
Nanda H Krishna
e5cfc0f37b
livecheck/strategy/gnome: handle new GNOME versioning 2021-05-30 22:23:07 +05:30
Rylan Polster
990d5f048f
Merge pull request #11436 from hyuraku/add_cask-tap_to_check_git_status
add cask tap to Diagnostic::Checks#check_git_status
2021-05-30 10:45:37 -04:00
hyuraku
40b39151f9 rename the variable 2021-05-30 16:26:58 +09:00
Chandler Carruth
578fe41657
Stop overriding CMake's release compile flags.
These flags include basic compiler optimization flags without which software can get built completely unoptimized.

While the shims appear to add their own optimization flag on macOS (at least, based on my ARM testing), they do not in the default Linux build which results in CMake packages like LLVM being built without optimizations. This both results in a very large bottle and exceedingly bad performance.

This seems like the best fix to me, as the shims already seem to have the necessary logic to *re-map* optimization flag levels to what Homebrew prefers for platforms like macOS, and so leaving CMake alone to just do its thing seems like the cleanest solution. But I'm open to other suggested fixes if needed.

I will note that without this, LLVM and any other CMake-built software on Linux is ... mostly unusable for me.
2021-05-29 22:12:50 -07:00
Rylan Polster
cbb788bd17
dependency: don't merge formula and cask cache in ::expand 2021-05-29 18:08:42 -04:00