Skip to content

Commit

Permalink
salt: switch to openssl@3
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Jun 24, 2023
1 parent bc569fd commit 0c13940
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Formula/salt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Salt < Formula
url "https://files.pythonhosted.org/packages/c1/8b/f21efb024adbb6929cba84040882bf9fd6427fd786dd0596e7e23a9cf717/salt-3005.tar.gz"
sha256 "1d200c45b88046178ea56fb5a75726dc620cc5e51411076a04df80ff52f79cd4"
license "Apache-2.0"
revision 2
revision 3
head "https://github.com/saltstack/salt.git", branch: "master"

bottle do
Expand All @@ -24,7 +24,7 @@ class Salt < Formula
depends_on "swig" => :build
depends_on "libgit2"
depends_on "libyaml"
depends_on "openssl@1.1"
depends_on "openssl@3"
depends_on "python@3.10"
depends_on "six"
depends_on "zeromq"
Expand Down Expand Up @@ -260,7 +260,10 @@ class Salt < Formula
end

def install
ENV["SWIG_FEATURES"]="-I#{Formula["openssl@1.1"].opt_include}"
# Workaround for Xcode 14.3.
ENV.append_to_cflags "-Wno-implicit-function-declaration"

ENV["SWIG_FEATURES"]="-I#{Formula["openssl@3"].opt_include}"

virtualenv_install_with_resources

Expand Down

0 comments on commit 0c13940

Please sign in to comment.