From e3032a9bc3f0d7051c79b3a3da55dd2345af73ff Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Tue, 19 Sep 2023 14:46:33 +0200 Subject: [PATCH] [macOS] do not install intel related symlinks on arm64 openssl (#8328) --- images/macos/provision/core/openssl.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/images/macos/provision/core/openssl.sh b/images/macos/provision/core/openssl.sh index c956fb2d..c2308a24 100755 --- a/images/macos/provision/core/openssl.sh +++ b/images/macos/provision/core/openssl.sh @@ -4,10 +4,13 @@ source ~/utils/utils.sh echo "Install openssl@1.1" brew_smart_install "openssl@1.1" -# Symlink brew openssl@1.1 to `/usr/local/bin` as Homebrew refuses -ln -sf $(brew --prefix openssl@1.1)/bin/openssl /usr/local/bin/openssl +# Intel-related symlinks, not needed on arm64 for now +if ! is_VenturaArm64; then + # Symlink brew openssl@1.1 to `/usr/local/bin` as Homebrew refuses + ln -sf $(brew --prefix openssl@1.1)/bin/openssl /usr/local/bin/openssl -# Most of buildsystems and scripts look up ssl here -ln -sf $(brew --cellar openssl@1.1)/1.1* /usr/local/opt/openssl + # Most of buildsystems and scripts look up ssl here + ln -sf $(brew --cellar openssl@1.1)/1.1* /usr/local/opt/openssl +fi invoke_tests "OpenSSL"