X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Finstall-deps.sh;h=7e408ae146750a6c21afbf33c09c465f2f0180e0;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=bb10f9a753a1d979be2f9f6669081130fd9222ac;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/install-deps.sh b/ceph/install-deps.sh index bb10f9a75..7e408ae14 100755 --- a/ceph/install-deps.sh +++ b/ceph/install-deps.sh @@ -24,6 +24,44 @@ function munge_ceph_spec_in { sed -e 's/@//g' -e 's/%bcond_with make_check/%bcond_without make_check/g' < ceph.spec.in > $OUTFILE } +function ensure_decent_gcc_on_deb { + # point gcc to the one offered by distro if the used one is different + local old=$(gcc -dumpversion) + local new=$1 + if dpkg --compare-versions $old eq $new; then + return + fi + + case $old in + 4*) + old=4.8;; + 5*) + old=5;; + 7*) + old=7;; + esac + + cat <