1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +00:00

vagrant: fix macos1012 box, try 3

This commit is contained in:
Thomas Waldmann 2024-10-28 23:16:50 +01:00
parent 3fb543dd2b
commit 66f06f156d
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

15
Vagrantfile vendored
View file

@ -140,12 +140,21 @@ def packages_macos
cd ..
export HOMEBREW_DEVELOPER=1
export HOMEBREW_CURL_PATH=/usr/local/bin/curl
# now the self-built curl should work for homebrew:
brew install ca-certificates
brew install curl # also installs openssl@3
brew install openssl@3
export PKG_CONFIG_PATH=/usr/local/opt/openssl@3/lib/pkgconfig
echo 'export PKG_CONFIG_PATH=/usr/local/opt/openssl@3/lib/pkgconfig' >> ~vagrant/.bash_profile
# install curl from homebrew and use it for homebrew:
brew install curl
export PATH="/usr/local/opt/curl/bin:$PATH"
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~vagrant/.bash_profile
export HOMEBREW_FORCE_BREWED_CURL=1
echo 'export HOMEBREW_FORCE_BREWED_CURL=1' >> ~vagrant/.bash_profile
unset HOMEBREW_CURL_PATH
unset HOMEBREW_DEVELOPER
export HOMEBREW_FORCE_BREWED_CURL=1
# now brew, curl, ca-certificates, openssl@3 should be all ok.
brew update > /dev/null
@ -154,7 +163,7 @@ def packages_macos
# brew upgrade # upgrade everything (takes rather long)
echo 'export LDFLAGS=-L/usr/local/opt/openssl@3/lib' >> ~vagrant/.bash_profile
echo 'export CPPFLAGS=-I/usr/local/opt/openssl@3/include' >> ~vagrant/.bash_profile
echo 'export PKG_CONFIG_PATH=/usr/local/opt/openssl@3/lib/pkgconfig' >> ~vagrant/.bash_profile
# pyenv shall use the openssl@3 from homebrew:
echo 'export PYTHON_BUILD_HOMEBREW_OPENSSL_FORMULA=openssl@3' >> ~vagrant/.bash_profile
EOF
end