37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
class Strace < Formula
|
|
desc "Diagnostic, instructional, and debugging tool for the Linux kernel"
|
|
homepage "https://strace.io/"
|
|
url "https://github.com/strace/strace/releases/download/v6.1/strace-6.1.tar.xz"
|
|
sha256 "2579e9cec37dbb786f6ea0bebd15f40dd561ef2bde2a2a2ecdce5963b01859fd"
|
|
license "LGPL-2.1-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ed23dd4081a62bb5c797619220352d2fc256a4d942a13d29fc777094209dcb75"
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/strace/strace.git", branch: "master"
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
end
|
|
|
|
depends_on :linux
|
|
depends_on "linux-headers@5.15"
|
|
|
|
def install
|
|
system "./bootstrap" if build.head?
|
|
system "./configure",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--enable-mpers=no" # FIX: configure: error: Cannot enable m32 personality support
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
out = `"strace" "true" 2>&1` # strace the true command, redirect stderr to output
|
|
assert_match "execve(", out
|
|
assert_match "+++ exited with 0 +++", out
|
|
end
|
|
end
|