diff --git a/buildscripts/checkdeps.sh b/buildscripts/checkdeps.sh index faf11b83..eeee0adb 100755 --- a/buildscripts/checkdeps.sh +++ b/buildscripts/checkdeps.sh @@ -150,6 +150,9 @@ is_supported_os() { "SunOS") supported=1 ;; + "FreeBSD") + supported=1 + ;; "*") supported=0 ;; @@ -163,7 +166,7 @@ is_supported_os() { is_supported_arch() { local supported case ${UNAME##* } in - "x86_64") + "x86_64" | "amd64") supported=1 ;; "arm"*) diff --git a/buildscripts/checkgopath.sh b/buildscripts/checkgopath.sh index 49815f14..167be6bd 100644 --- a/buildscripts/checkgopath.sh +++ b/buildscripts/checkgopath.sh @@ -19,8 +19,9 @@ _init() { shopt -s extglob - PWD=$(env pwd) - GOPATH=$(go env GOPATH) + # Fetch real paths instead of symlinks before comparing them + PWD=$(env pwd -P) + GOPATH=$(realpath $(go env GOPATH)) } main() {