Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch 4.0.5 #201866

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3257,6 +3257,7 @@ wasm-tools
wasmedge
wasmer
wasmtime
watch
watchexec
wavpack
wayland
Expand Down
41 changes: 26 additions & 15 deletions Formula/w/watch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@ class Watch < Formula
desc "Executes a program periodically, showing output fullscreen"
homepage "https://gitlab.com/procps-ng/procps"
url "https://gitlab.com/procps-ng/procps.git",
tag: "v4.0.4",
revision: "4ddcef2fd843170c8e2d59a83042978f41037a2b"
tag: "v4.0.5",
revision: "f46b2f7929cdfe2913ed0a7f585b09d6adbf994e"
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
head "https://gitlab.com/procps-ng/procps.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "6a87db4955bd26f571c90378186d245a6dcc50a2c8b6c8026f69f81328679ec6"
sha256 cellar: :any, arm64_sonoma: "9d8b55c73a9b913186f6ef8dc7642e8a718b5edea93fc3301fff5f44ad42fe90"
sha256 cellar: :any_skip_relocation, arm64_ventura: "f2e3977aacd949425257bb08b9ed66125e4cdff76a6e5b2464718139bc966d8c"
sha256 cellar: :any_skip_relocation, arm64_monterey: "5f7ea5b77d12731688f4e2e72e8190f70c62763d4bdb94e8c30ea1c0625db9d6"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "3aac6404005a0953a1126687829863e19fa4d0f02acc4e58d8d099615bd9d014"
sha256 cellar: :any, sonoma: "58baecc442fe806ece26dcd2c055532f226b8a06a732d32392c0858c56a6ac67"
sha256 cellar: :any_skip_relocation, ventura: "80193cc3557144f620767de324af7f45bd0717496b81d8d09f811cf0e9e7397c"
sha256 cellar: :any_skip_relocation, monterey: "f52987abe01c3e3a09c5608d02fd8a4714632f4256ae58c79d4a32f41e42669b"
sha256 cellar: :any_skip_relocation, big_sur: "d61077f4bffe12e0132a86c138630d2c422932272a61959ab1a01e8b7c244edb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "03aa0061c8707c4d31402f1697429c7619e08e29221de08eed00ec9a26d3bc1e"
sha256 cellar: :any, arm64_sequoia: "a2c77480716cdd27593a8a81fcbb7b1f8c19b9f1d82847e4328efb98703e2045"
sha256 cellar: :any, arm64_sonoma: "6bb0691e3d38e625b5842646d8a0c2439d5889a63dbf6a45a1455fd6c900dae2"
sha256 cellar: :any, arm64_ventura: "e5b2fe0f325b928c9a448b350e626fe254e0c313e2dbcc69a582f231cf5bb0f4"
sha256 cellar: :any, sonoma: "bed3496e896be3b00ef559bf3bafbc0fc0bc94c2fc0383e72bb45dc9a714200d"
sha256 cellar: :any, ventura: "658ca1a1a072b329b96e394ff3b7640883dc5e0ad1e02a3b3f5fa3afc88f8a09"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f6bb244d3c65a2710ac9922b4cd7d2bf25c22ebd7a865f26b7e32d512291efff"
end

depends_on "autoconf" => :build
Expand All @@ -30,17 +26,32 @@ class Watch < Formula

conflicts_with "visionmedia-watch"

# guard `SIGPOLL` to fix build on macOS, upstream pr ref, https://gitlab.com/procps-ng/procps/-/merge_requests/246
patch do
url "https://gitlab.com/procps-ng/procps/-/commit/2dc340e47669e0b0df7f71ff082e05ac5fa36615.diff"
sha256 "a6ae69b3aff57491835935e973b52c8b309d3943535537ff33a24c78d18d11aa"
end

def install
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", "--disable-nls",
"--enable-watch8bit",
*std_configure_args

args = %w[
--disable-nls
--enable-watch8bit
]
args << "--disable-pidwait" if OS.mac?
system "./configure", *args, *std_configure_args
system "make", "src/watch"
bin.install "src/watch"
man1.install "man/watch.1"
end

test do
assert_match version.to_s, shell_output("#{bin}/watch --version")

# Fails in Linux CI with "getchar(): Inappropriate ioctl for device"
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

system bin/"watch", "--errexit", "--chgexit", "--interval", "1", "date"
end
end
Loading