Skip to content

Commit

Permalink
debian7: force usage of brewed ca-certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Feb 21, 2022
1 parent 6661f5b commit 4d1b434
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Library/Homebrew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,10 @@ else
# shellcheck disable=SC2154
if [[ -n "${HOMEBREW_ON_DEBIAN7}" ]]
then
# Special version for our debian 7 docker container used to build patchelf and binutils
# Special version for our debian 7 docker container used to build binutils
HOMEBREW_MINIMUM_CURL_VERSION="7.25.0"
HOMEBREW_SYSTEM_CA_CERTIFICATES_TOO_OLD="1"
HOMEBREW_FORCE_BREWED_CA_CERTIFICATES="1"
else
# Ensure the system Curl is a version that supports modern HTTPS certificates.
HOMEBREW_MINIMUM_CURL_VERSION="7.41.0"
Expand Down
4 changes: 3 additions & 1 deletion Library/Homebrew/development_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def clear_version_cache

sig { returns(T::Boolean) }
def ca_file_handles_most_https_certificates?
true
# The system CA file is too old for some modern HTTPS certificates on
# older OS versions.
ENV["HOMEBREW_SYSTEM_CA_CERTIFICATES_TOO_OLD"].nil?
end

sig { returns(T::Boolean) }
Expand Down
7 changes: 0 additions & 7 deletions Library/Homebrew/extend/os/mac/development_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ def default_compiler
:clang
end

sig { returns(T::Boolean) }
def ca_file_handles_most_https_certificates?
# The system CA file is too old for some modern HTTPS certificates on
# older macOS versions.
ENV["HOMEBREW_SYSTEM_CA_CERTIFICATES_TOO_OLD"].nil?
end

sig { returns(T::Boolean) }
def curl_handles_most_https_certificates?
# The system Curl is too old for some modern HTTPS certificates on
Expand Down

0 comments on commit 4d1b434

Please sign in to comment.