[Buildroot] [PATCH 2/2] package/babeltrace: enable debug info support for the host variant

Philippe Proulx eeppeliteloop at gmail.com
Thu Nov 3 17:41:26 UTC 2016


On Thu, Nov 3, 2016 at 4:25 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Wed, 2 Nov 2016 19:07:11 -0400, Philippe Proulx wrote:
>
>> > Since the dependency on elfutils is not mandatory, do we really want to
>> > force building the support of debug info?
>>
>> Ideally, no. I guess we should use the same strategy as for the target package.
>
> Except we don't have Config.in options for host packages, and even if
> we plan to add such options, we clearly don't want to add *visible*
> options for every host package.
>
> So for the host-lttng-babeltrace, the only solution would be to have a
> sub-option to enable debug info support. But that would make it handled
> differently than the debug info dependency for the target
> lttng-babeltrace.
>
> I don't really have a good answer here, I'm afraid.

Debug info suppot is a nice-to-have when you trace instrumented user
applications. It's not the end of the world, IMO, to build host-elfutils
when you need host-lttng-babeltrace anyway... one of the reasons of
having lttng-babeltrace as a host package in the first place is that
some distributions provide an outdated Babeltrace package, and the
recent Babeltrace 1.4 offers this debug info feature.

Phil

>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com



More information about the buildroot mailing list