-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Add [email protected] using old homebrew commit (#10935)
- Loading branch information
1 parent
a070c85
commit 6b5924a
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,24 @@ source ~/utils/utils.sh | |
|
||
echo "Install [email protected]" | ||
|
||
openssl_pkg=$(download_with_retry "https://www.openssl.org/source/openssl-1.1.1w.tar.gz") | ||
tar -xvf $openssl_pkg | ||
cd openssl-1.1.1w | ||
./config --prefix=/usr/local/openssl | ||
make | ||
sudo make install | ||
export OPENSSL="/usr/local/openssl/bin" | ||
echo "export OPENSSL=${OPENSSL}" >> ${HOME}/.bashrc | ||
COMMIT=d91dabd087cb0b906c92a825df9e5e5e1a4f59f8 | ||
FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/$COMMIT/Formula/o/[email protected]" | ||
FORMULA_PATH="$(brew --repository)/Library/Taps/homebrew/homebrew-core/Formula/o/[email protected]" | ||
mkdir -p "$(dirname $FORMULA_PATH)" | ||
curl -fsSL $FORMULA_URL -o $FORMULA_PATH | ||
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected] | ||
|
||
if ! is_Arm64; then | ||
ln -sf ${OPENSSL}/openssl /usr/local/bin/openssl | ||
ln -sf ${OPENSSL}/openssl /usr/local/opt/openssl | ||
# Symlink brew openssl@1.1 to `/usr/local/bin` as Homebrew refuses | ||
ln -sf $(brew --prefix [email protected])/bin/openssl /usr/local/bin/openssl | ||
else | ||
ln -sf ${OPENSSL}/openssl /opt/homebrew/bin/openssl | ||
# arm64 has a different installation prefix for brew | ||
ln -sf $(brew --prefix [email protected])/bin/openssl /opt/homebrew/bin/openssl | ||
fi | ||
|
||
if ! is_Arm64; then | ||
# Most of build systems and scripts look up ssl here | ||
ln -sf $(brew --cellar [email protected])/1.1* /usr/local/opt/openssl | ||
fi | ||
|
||
invoke_tests "OpenSSL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters