Commit Graph
22314 Commits
Author SHA1 Message Date
Mike McQuaidandGitHub dec1413521 Merge pull request #11174 from hyuraku/items.sh_repair-style
items.sh: repair style
2021-04-20 12:21:43 +01:00
Mike McQuaidandGitHub 713c4c0a05 Merge pull request #11164 from hyuraku/brew.sh_repair-style
brew.sh: repair style
2021-04-20 12:21:25 +01:00
Carlo CabreraandGitHub d89eda09ab Merge pull request #11187 from carlocab/cmake-rpath
formula: add rpath helper method
2021-04-20 10:02:28 +01:00
Rylan PolsterandGitHub 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 b5dec5fdbd style: temporarily disable GitLab patch URL check 2021-04-19 09:13:06 -04:00
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 KrishnaandGitHub 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 DziurlaandGitHub ee841f11df bump-cask-pr: add --fork-org flag 2021-04-18 20:53:01 +02:00
Dawid DziurlaandGitHub 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 AndersonandGitHub 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
Mike McQuaidandGitHub 08b848044e Revert "dev-cmd/bottle: set uid/gid." 2021-04-16 16:58:21 +01:00
Mike McQuaid 7a23bd3ecd dev-cmd/bottle: set uid/gid.
This is a more complete version of `--numeric-owner`.
2021-04-16 15:26:24 +01:00
hyuraku 83f8b9230a brew.sh: repair style 2021-04-16 22:32:30 +09:00
Mike McQuaidandGitHub 2b34ecfe18 Merge pull request #11163 from Bo98/bottle-filename
dev-cmd/bottle: revert filename in JSON to use single dash always
2021-04-16 14:30:46 +01:00
Mike McQuaid 4a0b860973 dev-cmd/bottle: improve reproducibility, comment.
Setting a consistent owner/group results in more consistent bottles.
2021-04-16 14:05:06 +01:00
Mike McQuaid b57fe84f81 Use long/readable tar flags.
Also, use `--no-same-permissions` instead of `-o` (which does nothing
without `-p` being passed and run as `root`) for the more explicit
description of the behaviour we want.
2021-04-16 14:05:06 +01:00
Mike McQuaid 96cd1c058e utils/bottles: tweak/improve some of the API. 2021-04-16 14:05:05 +01:00
Mike McQuaid a28dda5062 bottle: remove GitHub Packages bulk upload logic. 2021-04-16 14:05:05 +01:00
Bo AndersonandGitHub 1d896e36a1 Merge pull request #11162 from Bo98/autoupdate-workaround
brew.sh: add workaround for old auto-updates
2021-04-16 13:12:54 +01:00
Bo Anderson b5ccad093d dev-cmd/bottle: revert filename in JSON to single dash
Fixes #11136.
2021-04-16 13:04:34 +01:00
Bo Anderson 7c9053753f brew.sh: add workaround for old auto-updates 2021-04-16 12:32:34 +01:00
Sean MolenaarandSean Molenaar 0e93f728a6 Service: generate systemd unit file 2021-04-16 08:58:49 +02:00
Nanda H KrishnaandGitHub ba578f4ae2 Merge pull request #11161 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2021-04-16 06:17:10 +05:30
Miccal MatthewsandGitHub b29c636d3c Merge pull request #11146 from reitermarkus/sparkle-first
Always take first item in `Sparkle` strategy.
2021-04-16 08:44:49 +08:00
BrewTestBot b3c82ae1cf sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-04-16 00:20:10 +00:00
Bo Anderson 0db7c0ba8a formula: add -DBUILD_TESTING=OFF to std_cmake_args 2021-04-15 23:07:18 +01:00
Bo AndersonandGitHub f904d63e04 Merge pull request #11157 from Bo98/bottle-domain-fallback
software_spec: fix bottle domain fallback handling
2021-04-15 20:02:54 +01:00
Bo Anderson 635e58e9aa software_spec: fix bottle domain fallback handling 2021-04-15 19:24:25 +01:00
Mike McQuaidandGitHub 160c8d8ebc Merge pull request #11141 from Bo98/source_date_epoch
build: set SOURCE_DATE_EPOCH
2021-04-15 19:11:04 +01:00
Mike McQuaidandGitHub 1a04490a2a Merge pull request #11139 from MikeMcQuaid/quieter_settings
settings: use quieter `system_command!`
2021-04-15 17:05:12 +01:00
Markus Reiter bbf8a10f2c Always take first item in Sparkle strategy. 2021-04-15 01:15:59 +02:00
Bo Anderson 6c687fd8ba dev-cmd/bottle: fix INSTALL_RECEIPT appearing in changed_files 2021-04-14 21:43:37 +01:00
Bo Anderson 1a81257721 build: set SOURCE_DATE_EPOCH 2021-04-14 17:43:26 +01:00
Mike McQuaidandGitHub bc9b98aa0b Merge pull request #11131 from MikeMcQuaid/only_json_tab_handling
Better handle `brew bottle --only-json-tab` bottles
2021-04-14 14:27:38 +01:00
Mike McQuaid a74d6060f3 settings: use quieter system_command!
`safe_system` always outputs what it's running which isn't necessary in
this case.
2021-04-14 14:21:16 +01:00
Mike McQuaidandGitHub b153620f63 Merge pull request #11138 from Bo98/io-read
Use File.read over IO.read
2021-04-14 13:30:50 +01:00
Bo Anderson 1feed79e69 Use File.read over IO.read 2021-04-14 12:42:26 +01:00
EricFromCanada bb26935344 create: improve cask token & version generation 2021-04-13 15:45:30 -04:00
Mike McQuaid 75592cbebc Better handle brew bottle --only-json-tab bottles
- test them in `brew test-bot` (before we do so in homebrew/core)
- don't fail if we cannot find the tab/install receipt in a bottle
- cache listing the files in a bottle so we don't do it more times than
  necessary
- fix resolution of version and formula names from a bottle if we're
  getting them from a bottle without a tab/install receipt

This will need to be in a tagged release before we can ship tab-less
bottles to users.
2021-04-13 14:26:31 +01:00
hyuraku 705995c1c3 repair variables 2021-04-13 22:23:32 +09:00
hyuraku ee511e4c0c delete useless variable 2021-04-13 22:23:32 +09:00
hyuraku d63a0ebd7b .simplecov: delete private method 2021-04-13 22:23:32 +09:00