Skip to content

Commit

Permalink
bash: depend on brewed ncurses
Browse files Browse the repository at this point in the history
See Homebrew#158667

This is an EXCEPTION to our rules: do not take this as a sign to add brewed ncurses everywhere.
We will drop brewed ncurses here once Apple has updated to a newer version
  • Loading branch information
iMichka committed Feb 22, 2024
1 parent 252d018 commit 8c14c40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/b/bash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class Bash < Formula
sha256 x86_64_linux: "04c187e2ae30da9c201a53b703eacbad8da84dd2d6ac77bff56113b277f99df0"
end

# https://github.com/Homebrew/homebrew-core/issues/158667
depends_on "ncurses"

def install
# When built with SSH_SOURCE_BASHRC, bash will source ~/.bashrc when
# it's non-interactively from sshd. This allows the user to set
Expand All @@ -105,7 +108,7 @@ def install
# Homebrew's bash instead of /bin/bash.
ENV.append_to_cflags "-DSSH_SOURCE_BASHRC"

system "./configure", "--prefix=#{prefix}"
system "./configure", "--prefix=#{prefix}", "--with-curses"
system "make", "install"
end

Expand Down

0 comments on commit 8c14c40

Please sign in to comment.