From df3f31607beedd9ceb79dbab91deddf06f9dadc7 Mon Sep 17 00:00:00 2001 From: comex Date: Tue, 27 Aug 2019 17:30:49 -0700 Subject: [PATCH] git-series: add missing openssl dependency / OPENSSL_DIR env var Fixes build when Homebrew is not installed to /usr/local. Closes #43527. Signed-off-by: FX Coudert --- Formula/git-series.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/git-series.rb b/Formula/git-series.rb index 42abf6fcd8..8b20f98b42 100644 --- a/Formula/git-series.rb +++ b/Formula/git-series.rb @@ -15,8 +15,13 @@ class GitSeries < Formula depends_on "cmake" => :build depends_on "rust" => :build depends_on "libssh2" + depends_on "openssl" def install + # Ensure that the `openssl` crate picks up the intended library. + # https://crates.io/crates/openssl#manual-configuration + ENV["OPENSSL_DIR"] = Formula["openssl"].opt_prefix + system "cargo", "install", "--root", prefix, "--path", "." man1.install "git-series.1" end