21337 Commits

Author SHA1 Message Date
Mike McQuaid
521d6b51a6
dev-cmd/{bottle,pr-upload}: generate, upload all: $SHA256 bottles.
Generate `all: $SHA256` bottles if:
- all generated bottles have the same cellar
- all generated bottles have the same checksum

In this case, on `brew bottle --merge --write`: delete all the non-`all`
bottles (and their JSON) and upload only the single one that's
necessary.
2021-04-21 17:10:05 +01:00
Mike McQuaid
e59f93cf19
Merge pull request #11212 from MikeMcQuaid/pod2man_tweaks
pod2man: further tweak logic.
2021-04-21 13:03:15 +01:00
Mike McQuaid
d3edf6155c
Merge pull request #11196 from hyuraku/remove_HOMEBREW_MAKE
remove HOMEBREW_MAKE
2021-04-21 13:01:21 +01:00
Mike McQuaid
df9ba9512e
pod2man: further tweak logic.
- prioritise the first `pod2man` in the `PATH` if possible. This shim
  was created to handle the case where there isn't one but, if there is,
  we want to allow e.g. using a `pod2man` dependency to override the use
  of the system version
- make `/usr/bin/pod2man` lower priority but still prioritise it over
  a Homebrew-installed `pod2man` that's not in the `PATH` unless it
  doesn't exist.
2021-04-21 12:32:39 +01:00
Mike McQuaid
daa8f7c858
Merge pull request #11210 from MikeMcQuaid/bottle_libarchive_installed
dev-cmd/bottle: fix libarchive installed check.
2021-04-21 12:04:49 +01:00
Mike McQuaid
965dbaa172
dev-cmd/bottle: fix libarchive installed check.
Used now-removed old method name.
2021-04-21 11:39:19 +01:00
Mike McQuaid
443bae5522
pod2man: use newer pod2man.
This shim was originally added in
5c973bad7422cf7f335e952a91ddfa2273aa2e4f to workaround a missing
`/usr/bin/pod2man`. It's now unfortunately resulting in using an older
`pod2man` on newer macOS versions.

Instead, let's use `/usr/bin/pod2man` if it's available and, if not,
work backwards to find the newest available version that is available.
2021-04-21 10:51:18 +01:00
Mike McQuaid
4a3fc2a8fc
dev-cmd/bottle: set uid/gid, use libarchive on macOS.
Take 2 on #11165 but use newish `libarchive` consistently on macOS.
2021-04-21 10:09:35 +01:00
Mike McQuaid
1bcf3475e2
Merge pull request #11197 from hyuraku/dev-cmd/rubocop_repair-style
dev-cmd/rubocop.sh: repair style
2021-04-21 09:41:01 +01:00
BrewTestBot
060ee06574
Update RBI files for rubocop. 2021-04-21 05:53:52 +00:00
BrewTestBot
2bf89d9114
brew vendor-gems: commit updates. 2021-04-21 05:52:54 +00:00
dependabot[bot]
ae174b064b
build(deps): bump rubocop from 1.12.1 to 1.13.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.12.1 to 1.13.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.12.1...v1.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-21 05:47:34 +00:00
hyuraku
0f02def5ac dev-cmd/rubocop.sh: repair style 2021-04-21 09:59:43 +09:00
hyuraku
40084fcf7e remove HOMEBREW_MAKE 2021-04-21 09:59:15 +09:00
Rylan Polster
44188a3f6e
Merge pull request #11191 from Rylan12/re-enable-gitlab-patch-check 2021-04-20 16:09:46 -04:00
Mike McQuaid
433407a2d7
Merge pull request #11179 from hyuraku/shims_repair-style
Shims repair style
2021-04-20 15:27:42 +01:00
hyuraku
34919c45f2 add comments about ENV 2021-04-20 22:52:07 +09:00
Mike McQuaid
174b6bd111
Merge pull request #11175 from hyuraku/prefix.sh_repair-style
prefix.sh: repair style
2021-04-20 13:18:10 +01:00
hyuraku
e4af652783 prefix.sh: repair style 2021-04-20 20:32:01 +09:00
Mike McQuaid
dec1413521
Merge pull request #11174 from hyuraku/items.sh_repair-style
items.sh: repair style
2021-04-20 12:21:43 +01:00
Mike McQuaid
713c4c0a05
Merge pull request #11164 from hyuraku/brew.sh_repair-style
brew.sh: repair style
2021-04-20 12:21:25 +01:00
Carlo Cabrera
d89eda09ab
Merge pull request #11187 from carlocab/cmake-rpath
formula: add rpath helper method
2021-04-20 10:02:28 +01:00
Rylan Polster
844f15edec
Merge pull request #11182 from Rylan12/deprecate-brew-search-casks
search: properly deprecate `brew search --cask`
2021-04-19 20:06:59 -04:00
Rylan Polster
ae89577b26
style: re-enable GitLab patch URL check 2021-04-19 11:19:35 -04:00
Rylan Polster
b5dec5fdbd
style: temporarily disable GitLab patch URL check 2021-04-19 09:13:06 -04:00
Jonathan Chang
ef1e07b88b
rubocops/patches: GitLab patches should use .diff
Only `.diff` URLs return output comparable to the diffs from
`git diff --full-index`. While the extra metadata from `.patch` is
nice, the instability of the patch contents is undesirable.

Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2021-04-19 09:08:14 -04:00
Nanda H Krishna
4a608a7ac6
Merge pull request #11170 from nandahkrishna/revert-patch-autocorrect
rubocops/patches: remove autocorrection of some `url`s
2021-04-19 18:32:49 +05:30
Rylan Polster
0a30cae9d1
search: properly deprecate brew search --cask 2021-04-19 08:25:19 -04:00
Carlo Cabrera
309504a32c
formula: add rpath helper method
About 40 formulae set `CMAKE_INSTALL_RPATH` to `lib` or `opt_lib`, but
this breaks bottle relocatability.

The correct solution is to use `@loader_path/../lib`, but this is macOS
specific, so it requires some OS-specific logic. Rather than replicating
this logic over many formulae, we may as well define a helper method for
it.

See https://github.com/Homebrew/homebrew-core/issues/75458.
2021-04-19 09:23:33 +01:00
Dawid Dziurla
ee841f11df
bump-cask-pr: add --fork-org flag 2021-04-18 20:53:01 +02:00
hyuraku
7463023fc7 shims/mac/super/pkg-config: repair style 2021-04-18 21:21:48 +09:00
hyuraku
90290aa8ef shims/linux/super/make: repair style 2021-04-18 19:54:33 +09:00
hyuraku
4e3003b841 shims/mac/super/pod2man: repair style 2021-04-18 19:43:46 +09:00
hyuraku
7f33314e64 shims/mac/super/xcrun: repair style 2021-04-18 19:43:37 +09:00
hyuraku
c0df2460ef shims/mac/super/apr-1-config: repair style 2021-04-18 18:56:46 +09:00
hyuraku
4f6ecd5bf8 shims/mac/super/bsdmake: repair style 2021-04-18 18:56:36 +09:00
hyuraku
748bc3bf8e shims/mac/super/ruby: repair style 2021-04-18 18:56:20 +09:00
hyuraku
db9960e08a shims/mac/super/mig: repair style 2021-04-18 18:45:10 +09:00
hyuraku
d4f13908cc shims/mac/super/make: repair style 2021-04-18 18:44:59 +09:00
hyuraku
b910cf84b1 shims/mac/super/scm/git: repair style 2021-04-18 18:34:36 +09:00
hyuraku
0c3256ba4c shims/mac/super/ant: repair style 2021-04-18 18:34:16 +09:00
hyuraku
538c65d6f8 shims/utils.sh: repair style 2021-04-18 16:44:53 +09:00
Dawid Dziurla
4a183cf109
Merge pull request #11158 from dawidd6/bump-fork-org
bump-formula-pr: add --fork-org flag
2021-04-17 14:18:39 +02:00
hyuraku
c4325bee45 items.sh: repair style 2021-04-17 20:56:56 +09:00
hyuraku
117902803f add detail comments and delete cask 2021-04-17 20:34:16 +09:00
Dawid Dziurla
63be66408e
bump-formula-pr: add --fork-org flag 2021-04-17 09:53:15 +02:00
Markus Reiter
9bb1ba324f
Always take latest item in Sparkle strategy. 2021-04-17 01:32:19 +02:00
Bo Anderson
842a2ea890
Merge pull request #11159 from Bo98/cmake-no-tests
formula: add `-DBUILD_TESTING=OFF` to `std_cmake_args`
2021-04-16 23:32:24 +01:00
Nanda H Krishna
1c2d76c4e4
rubocops/patches: remove autocorrection of some URLs 2021-04-17 01:44:28 +05:30
Issy Long
a328acc9a1
rubocops/patches: Fix quoting of the patch url when autocorrecting
- The autocorrections here before were leading to changes like:

```
➜ brew style --fix brewsci/science/beetl
Formula/beetl.rb:15:11: C: [Corrected] GitHub patches should use the full_index parameter: https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end

```

- This fixes the URLs generated to have quotes:

```
➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1"
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end
```
2021-04-16 19:41:02 +01:00