This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [ltt-dev] gdb-7.2 can't build with lttng-ust-0.12
- From: Tom Tromey <tromey at redhat dot com>
- To: Mathieu Desnoyers <compudj at krystal dot dyndns dot org>
- Cc: "Cui\, Dexuan" <dexuan dot cui at intel dot com>, "'ltt-dev\ at lists dot casi dot polymtl dot ca'" <ltt-dev at lists dot casi dot polymtl dot ca>, "'gdb\ at sourceware dot org'" <gdb at sourceware dot org>, systemtap at sources dot redhat dot com, Josh Stone <jistone at redhat dot com>
- Date: Wed, 27 Apr 2011 08:31:36 -0600
- Subject: Re: [ltt-dev] gdb-7.2 can't build with lttng-ust-0.12
- References: <1865303E0DED764181A9D882DEF65FB6931C75A5AA@shsmsx502.ccr.corp.intel.com> <BLU0-SMTP7051C411EF9E3864329F4596960@phx.gbl> <1865303E0DED764181A9D882DEF65FB6931C75A5AE@shsmsx502.ccr.corp.intel.com> <m34o5ksvcv.fsf@fleche.redhat.com> <BLU0-SMTP45CC9DEEE33FD5A526EB3896990@phx.gbl>
>>>>> "Mathieu" == Mathieu Desnoyers <compudj@krystal.dyndns.org> writes:
Mathieu> The only concern here is the packaging: if we depend on sdt.h,
Mathieu> we have to either ship it with UST, or have one more dependency
Mathieu> on a package available for all architectures that only contain
Mathieu> this header. Thoughts ?
One typical way to handle this is to put a copy of the code into your
tree, but provide an option to use the system version instead. E.g.,
GDB does this with readline. This makes it build fine out of the box
for casual users, but is also friendly to distros. This implies some
discipline on your part -- updating regularly and not diverging.
Alternatively, split sdt.h out into its own project and make it a
build-time requirement of both stap and ust. This seems pretty
heavy-weight for a couple of header files, though.
Tom