]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
install-deps.sh: correct gcc version info as major.minor.patch
authorChangcheng Liu <changcheng.liu@intel.com>
Fri, 26 Oct 2018 06:32:09 +0000 (14:32 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 20 Nov 2018 04:31:42 +0000 (12:31 +0800)
commitab7344e61755b357c558aef3630e1479d5dcc7b3
treeb85c0ab84af462f94c51eed3ac661679445303a6
parent2d5b4f917cbef2e0815be288c800a73961d90e9f
install-deps.sh: correct gcc version info as major.minor.patch

On ubuntu 18.04, "gcc -dumpversion" output "7", it result in
that below check will return false:
    dpkg --compare-versions 7 ge 7.0
Then, this script will install other gcc.

Actully, the full gcc version "gcc -dumpfullversion" output is
"7.3.0", than below check will turn true:
    dpkg --compare-version 7.3.0 ge 7.0
So, there's no need to install other gcc.

In case of hitting error on ubuntu16.04, use below parameter:
   gcc -dumpfullversion -dumpversion

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
install-deps.sh