Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[system-dependencies] We don't need autotools anymore, so don't check for it. #21104

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 3 additions & 72 deletions system-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ while ! test -z $1; do
shift
;;
--provision-autotools)
PROVISION_AUTOTOOLS=1
unset IGNORE_AUTOTOOLS
# this is an old argument, just ignore it
shift
;;
--provision-python3)
Expand Down Expand Up @@ -108,8 +107,6 @@ while ! test -z $1; do
unset IGNORE_CMAKE
PROVISION_7Z=1
unset IGNORE_7Z
PROVISION_AUTOTOOLS=1
unset IGNORE_AUTOTOOLS
PROVISION_HOMEBREW=1
unset IGNORE_HOMEBREW
PROVISION_SHARPIE=1
Expand All @@ -135,7 +132,6 @@ while ! test -z $1; do
IGNORE_XCODE=1
IGNORE_CMAKE=1
IGNORE_7Z=1
IGNORE_AUTOTOOLS=1
IGNORE_HOMEBREW=1
IGNORE_SHARPIE=1
IGNORE_SIMULATORS=1
Expand All @@ -162,7 +158,7 @@ while ! test -z $1; do
shift
;;
--ignore-autotools)
IGNORE_AUTOTOOLS=1
# this is an old argument, just ignore it
shift
;;
--ignore-python3)
Expand Down Expand Up @@ -687,15 +683,6 @@ function check_mono () {
ok "Found Mono $ACTUAL_MONO_VERSION (at least $MIN_MONO_VERSION and not more than $MAX_MONO_VERSION is required)"
}

function install_autoconf () {
if ! brew --version >& /dev/null; then
fail "Asked to install autoconf, but brew is not installed."
return
fi

brew install autoconf
}

function install_shellcheck () {
if ! brew --version >& /dev/null; then
fail "Asked to install shellcheck, but brew is not installed."
Expand Down Expand Up @@ -726,61 +713,6 @@ function install_python3 () {
brew install python3
}

function install_libtool () {
if ! brew --version >& /dev/null; then
fail "Asked to install libtool, but brew is not installed."
return
fi

brew install libtool
}

function install_automake () {
if ! brew --version >& /dev/null; then
fail "Asked to install automake, but brew is not installed."
return
fi

brew install automake
}


function check_autotools () {
if ! test -z $IGNORE_AUTOTOOLS; then return; fi

IFStmp=$IFS
IFS='
'
if AUTOCONF_VERSION=($(autoconf --version 2>/dev/null)); then
ok "Found ${AUTOCONF_VERSION[0]} (no specific version is required)"
elif ! test -z $PROVISION_AUTOTOOLS; then
install_autoconf
else
fail "You must install autoconf, read the README.md for instructions"
fi

if ! LIBTOOL=$(which glibtool 2>/dev/null); then
LIBTOOL=$(which libtool)
fi

if LIBTOOL_VERSION=($($LIBTOOL --version 2>/dev/null )); then
ok "Found ${LIBTOOL_VERSION[0]} (no specific version is required)"
elif ! test -z $PROVISION_AUTOTOOLS; then
install_libtool
else
fail "You must install libtool, read the README.md for instructions"
fi

if AUTOMAKE_VERSION=($(automake --version 2>/dev/null)); then
ok "Found ${AUTOMAKE_VERSION[0]} (no specific version is required)"
elif ! test -z $PROVISION_AUTOTOOLS; then
install_automake
else
fail "You must install automake, read the README.md for instructions"
fi
IFS=$IFS_tmp
}

function check_shellcheck () {
if ! test -z $IGNORE_SHELLCHECK; then return; fi

Expand Down Expand Up @@ -931,7 +863,7 @@ IFS='
HOMEBREW_VERSION=($(brew --version 2>/dev/null))
log "Installed Homebrew ($HOMEBREW_VERSION)"
else
warn "Could not find Homebrew. Homebrew is required to auto-provision some dependencies (autotools, cmake), but not required otherwise."
warn "Could not find Homebrew. Homebrew is required to auto-provision some dependencies (cmake), but not required otherwise."
fi
IFS=$IFS_tmp
}
Expand Down Expand Up @@ -1078,7 +1010,6 @@ check_osx_version
check_checkout_dir
check_xcode
check_homebrew
check_autotools
check_shellcheck
check_yamllint
check_python3
Expand Down
2 changes: 1 addition & 1 deletion tests/test-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ex

cd "$(dirname "$0")"
./system-dependencies.sh --provision-mono --ignore-autotools --ignore-xamarin-studio --ignore-xcode --ignore-osx --ignore-cmake --ignore-dotnet --ignore-shellcheck --ignore-yamllint
./system-dependencies.sh --provision-mono --ignore-xamarin-studio --ignore-xcode --ignore-osx --ignore-cmake --ignore-dotnet --ignore-shellcheck --ignore-yamllint
3 changes: 0 additions & 3 deletions tools/devops/provision-brew-packages.csx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ BrewPackages (
"shellcheck",
"yamllint",
"cmake",
"autoconf",
"automake",
"libtool",
"p7zip",
"msitools",
"wget",
Expand Down