Comment 15 for bug 913991

Revision history for this message
In , Barry Warsaw (barry) wrote :

Hi Jason, thanks for looking into this in such great detail.

On Jan 07, 2012, at 07:46 PM, <email address hidden> wrote:

>It turns out in ubuntu we are (hopefully unintentionally) installing the
>debug binary of dbus-daemon instead of the production version. This can be
>seen in, for instance, the build log of the i386 version in precise:
>https://launchpadlibrarian.net/88969187/buildlog_ubuntu-precise-i386.dbus_1.4.16-1ubuntu2_BUILDING.txt.gz

I talked to Martin Pitt about this and he said there's no good reason why
Ubuntu installs the debug version of dbus-daemon over top the production
version. I think this was just a buggy solution for moving the binaries from
/usr/bin into /bin.

>It installs the binary from build/bus to debian/tmp//bin and then proceeds
>a bit later to overwrite it with the binary from build-debug/bus.
>
>The ubuntu package adds --exec-prefix=/ to common_configure_flags in
>debian/rules
>so that the binary ends up in /bin and somehow this is having the side effect
>of causing the debug binary to overwrite it. I move the flag to the flags
>for the production build and added back the debug binaries to
>debian/dbus-1-dbg.install and everything seems to be working again.

I've confirmed your change fixes the aborts in the test suite. I double
checked the change with pitti and we agreed that it looks good. The one
problem is that the debug binaries get installed in bogus paths, but the good
news is that it doesn't really affect anything :). So we agreed not to worry
about that for now.

I'll upload this to Precise, but since we have no open bugs on it (other than
the one you opened :), I don't see any reason to back port it.

Thanks again!

(The freedesktop.org bug can be closed now.)