Fix install-build-deps on Debian Buster
/usr/bin/realpath has been moved into coreutils.
Also remove support for Ubuntu Zesty since it has reached EOL.
BUG=814450
R=dpranke
Change-Id: I3081323f36da0ecee72bb487689ed4b346850b88
Reviewed-on: https://chromium-review.googlesource.com/932361
Commit-Queue: Thomas Anderson <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Cr-Commit-Position: refs/heads/master@{#538613}
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index 54698039d..df6ed90 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -124,7 +124,6 @@
echo -e "ERROR: The only supported distros are\n" \
"\tUbuntu 14.04 (trusty)\n" \
"\tUbuntu 16.04 (xenial)\n" \
- "\tUbuntu 17.04 (zesty)\n" \
"\tUbuntu 17.10 (artful)\n" \
"\tDebian 8 (jessie) or later" >&2
exit 1
@@ -143,7 +142,11 @@
fi
# Packages needed for chromeos only
-chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath"
+chromeos_dev_list="libbluetooth-dev libxkbcommon-dev"
+
+if package_exists realpath; then
+ chromeos_dev_list="${chromeos_dev_list} realpath"
+fi
# Packages needed for development
dev_list="\