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

netcat: fix build/test on arm64 linux #214954

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions Formula/n/netcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ class Netcat < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build

# Fix running on Linux ARM64, using patch from Arch Linux ARM.
# https://sourceforge.net/p/netcat/bugs/51/
patch do
on_arm do
url "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/05ebc1439262e7622ba4ab0c15c2a3bad1ac64c4/extra/gnu-netcat/gnu-netcat-flagcount.patch"
sha256 "63ffd690c586b164ec2f80723f5bcc46d009ffd5e0dd78bbe56fd1b770fd0788"
end
end

def install
# Regenerate configure script for arm64/Apple Silicon support.
system "autoreconf", "--force", "--install", "--verbose"
Expand Down
Loading