mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 15:57:15 +00:00
vagrant: fix macos1012 box, try 3
This commit is contained in:
parent
3fb543dd2b
commit
66f06f156d
1 changed files with 12 additions and 3 deletions
15
Vagrantfile
vendored
15
Vagrantfile
vendored
|
@ -140,12 +140,21 @@ def packages_macos
|
||||||
cd ..
|
cd ..
|
||||||
export HOMEBREW_DEVELOPER=1
|
export HOMEBREW_DEVELOPER=1
|
||||||
export HOMEBREW_CURL_PATH=/usr/local/bin/curl
|
export HOMEBREW_CURL_PATH=/usr/local/bin/curl
|
||||||
|
|
||||||
|
# now the self-built curl should work for homebrew:
|
||||||
brew install ca-certificates
|
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
|
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_CURL_PATH
|
||||||
unset HOMEBREW_DEVELOPER
|
unset HOMEBREW_DEVELOPER
|
||||||
export HOMEBREW_FORCE_BREWED_CURL=1
|
|
||||||
|
|
||||||
# now brew, curl, ca-certificates, openssl@3 should be all ok.
|
# now brew, curl, ca-certificates, openssl@3 should be all ok.
|
||||||
brew update > /dev/null
|
brew update > /dev/null
|
||||||
|
@ -154,7 +163,7 @@ def packages_macos
|
||||||
# brew upgrade # upgrade everything (takes rather long)
|
# brew upgrade # upgrade everything (takes rather long)
|
||||||
echo 'export LDFLAGS=-L/usr/local/opt/openssl@3/lib' >> ~vagrant/.bash_profile
|
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 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
|
echo 'export PYTHON_BUILD_HOMEBREW_OPENSSL_FORMULA=openssl@3' >> ~vagrant/.bash_profile
|
||||||
EOF
|
EOF
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue