Skip to content

Commit

Permalink
ucspi-tcp: fix build on Linux
Browse files Browse the repository at this point in the history
Closes #100875.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
cho-m authored and BrewTestBot committed May 6, 2022
1 parent c6b8b81 commit 8d21d7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/ucspi-tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class UcspiTcp < Formula
end

def install
# Work around build error from root requirement: "Oops. Your getgroups() returned 0,
# and setgroups() failed; this means that I can't reliably do my shsgr test. Please
# either ``make'' as root or ``make'' while you're in one or more supplementary groups."
inreplace "Makefile", "( cat warn-shsgr; exit 1 )", "cat warn-shsgr" if OS.linux?

(buildpath/"conf-home").unlink
(buildpath/"conf-home").write prefix

Expand Down

0 comments on commit 8d21d7d

Please sign in to comment.