debian/rules invokes cmake with -DCMAKE_BUILD_TYPE=None, builds without -g
Debian builds are building without -g, which, among other things, messes up gdb.
This is from dh_auto_build; while there is an override_dh_auto_build, that just augments dh_auto_build with two more commands. The cmake setup assumes that the default build type will take effect, so the explicit setting to None is breaking that assumption.
dh_auto_build doesn't do very much in the case of cmake, so the answer is probably to invoke cmake/make directly. I'm not sure exactly what the replacement should be.
#1 Updated by Dan Mick almost 3 years ago
It's possible that this is enough; it's looking promising:
- dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS)
+ dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS) -DCMAKE_BUILD_TYPE=