From 78865aef46f08f1cb5d36f1a4cedf290aac1198b Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Wed, 21 May 2014 15:27:25 +0200 Subject: [PATCH] ngrep: additional flag prevents segfault Known issue on BSD platforms since v1.4.4 and configure produces a warning if not present: https://github.com/jpr5/ngrep/commit/e29fc29 NB ngrep seems to have moved to git at https://github.com/jpr5/ngrep Closes Homebrew/homebrew#29665. Signed-off-by: Jack Nagel --- Formula/ngrep.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/ngrep.rb b/Formula/ngrep.rb index c82939c9ee..0f3d4b48c5 100644 --- a/Formula/ngrep.rb +++ b/Formula/ngrep.rb @@ -18,7 +18,11 @@ class Ngrep < Formula "--enable-ipv6", "--prefix=#{prefix}", # this line required to make configure succeed - "--with-pcap-includes=/usr/include" + "--with-pcap-includes=/usr/include", + # this line required to avoid segfaults + # see https://github.com/jpr5/ngrep/commit/e29fc29 + # https://github.com/Homebrew/homebrew/issues/27171 + "--disable-pcap-restart" system "make install" end end