From 18fd0a0f81eee4b51ae87dcb21c7405fdf3cc8cd Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 22 Feb 2016 03:17:07 -0800 Subject: [PATCH] build: Verify yasm version and complain - fixes #1154 --- buildscripts/checkdeps.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildscripts/checkdeps.sh b/buildscripts/checkdeps.sh index 00ef05c9f..9b5f9ab4b 100644 --- a/buildscripts/checkdeps.sh +++ b/buildscripts/checkdeps.sh @@ -21,6 +21,7 @@ _init() { ## Minimum required versions for build dependencies GIT_VERSION="1.0" + YASM_VERSION="1.2.0" CURL_VERSION="7.12.0" GPG_VERSION="1.3" GO_VERSION="1.5.1" @@ -192,6 +193,11 @@ check_deps() { if [ $? -ge 2 ]; then MISSING="${MISSING} curl" fi + + check_version "$(env yasm --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${YASM_VERSION}" + if [ $? -ge 2 ]; then + MISSING="${MISSING} yasm(${YASM_VERSION})" + fi } main() {