Project

General

Profile

Actions

Bug #16744

closed

debian/rules invokes cmake with -DCMAKE_BUILD_TYPE=None, builds without -g

Added by Dan Mick almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
build
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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.

See: /usr/share/perl5/Debian/Debhelper/Buildsystem/cmake.pm

Actions #1

Updated by Dan Mick almost 8 years ago

It's possible that this is enough; it's looking promising:

override_dh_auto_configure:
- dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS)
+ dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS) -DCMAKE_BUILD_TYPE=
Actions #2

Updated by Dan Mick almost 8 years ago

That does seem to be enough to get the build type back to default and add the -g flag.

Actions #3

Updated by Dan Mick almost 8 years ago

  • Status changed from 12 to Fix Under Review
  • Assignee set to Dan Mick

commit
9ea7c49eac0d666d952c7c91f22166561ec240c8 pushed for check/gitbuild as wip-16744

Actions #4

Updated by Kefu Chai almost 8 years ago

another fix is available at https://github.com/ceph/ceph/pull/10366

Actions #5

Updated by Dan Mick over 7 years ago

  • Status changed from Fix Under Review to Resolved
  • Assignee changed from Dan Mick to Kefu Chai
Actions

Also available in: Atom PDF