[LightDM] Building lightdm for debugging

lightdm.bobd at dfgh.net lightdm.bobd at dfgh.net
Fri Nov 21 14:13:53 PST 2014


Hi,

I'd appreciate some assistance figuring out the best way to
build/develop lightdm.

Following the directions here:
http://packaging.ubuntu.com/html/fixing-a-bug.html

I wind up doing:

$ bzr builddeb -- -S -uc -us
$ DEB_BUILD_OPTIONS='debug nostrip noopt' pbuilder-dist trusty build../lightdm_1.10.4-0ubuntu1.dsc


But even though I said "noopt", it appears to be optimizing the code to
the point that gdb can't interpret local variables. I want to turn off
optimization completely (or at least enough to allow gdb to do its job).

Is this the best way to do builds during development? It seems
heavyweight and opaque to me, although I appreciate the value of a
"cleanroom build". I can't tell what compile options are being used,
based on the logs and output. Nor do I know how to affect them directly.

Part of my problem may be my inexperience with automake/configuration
tools, although I know make/gmake very well. I am new to bzr and pbuilder.

I'd appreciate any tips, folks.

Thanks,
    Bob Doolittle




More information about the LightDM mailing list