[LightDM] Building lightdm for debugging

Robert Ancell robert.ancell at gmail.com
Sun Nov 23 19:29:42 PST 2014


Hi Bob,

The method I use for building (on Ubuntu) is just:
$ sudo apt-get build-dep lightdm
$ bzr-buildpackage
Then dpkg -i to install the packages.

I gave up using pbuilder because I found it too heavy. It's useful for
double checking you have the dependencies set up correctly and gives you
confidence what you've built locally will match what the build servers will
build. In practise I find a locally built version just as good though.

I don't know the magic dpkg option to keep the debugging symbols in a
package - hopefully someone else will know here.

You can also just build locally (definitely has debugging symbols):
$ ./autogen.sh --prefix=`some local place`
$ make
$ make install
Symlink /usr/share/xsessions, /usr/share/xgreeters into your install
directory if you want to use your existing greeters / sessions.
$ sudo stop lightdm
Run your local version (as root)

In saying that, I haven't run a local build for quite some time. I usually
just build a feature and test it with regression tests before making a
package and confirming it works when installed.

--Robert

On Sat Nov 22 2014 at 11:14:01 <lightdm.bobd at dfgh.net> wrote:

> 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
>
>
> _______________________________________________
> LightDM mailing list
> LightDM at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/lightdm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20141124/855b791a/attachment.html>


More information about the LightDM mailing list