According to https://gitee.com/src-openeuler/cmake/issues/I415UW, gdb is not necessary for building packages. So remove it.