mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
build: Verify yasm version and complain - fixes #1154
This commit is contained in:
parent
8824b18c29
commit
18fd0a0f81
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user