Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: alexandre.montplaisir@polymtl.ca (Alexandre Montplaisir)
Subject: [ltt-dev] UST communication library
Date: Wed, 15 Jun 2011 14:51:26 -0400	[thread overview]
Message-ID: <4DF8FF2E.4010902@polymtl.ca> (raw)
In-Reply-To: <4DF8CCB8.3050103@polymtl.ca>

On 11-06-15 11:16 AM, David Goulet wrote:
> On 11-06-15 11:01 AM, Yannick Brosseau wrote:
>>>>> 1) Keep libustcomm in UST and linking it in lttng-tools. Cons : direct
>>>>> dependency! ... not good
>>>> 1b) Have an *optional* dependency on UST. At configure time, lttng-tools could
>>>> check if libust is present, if so compile it with UST support. If not, only
>>>> compile with kernel support. ("Warning, libust not found, UST support will not
>>>> be available", something like that)
>>> This is problematic for packaging...
>> No, this is not problematic. When we create a package, we just have to
>> build-depend on UST. That way, people who wants to build it by hand
>> without UST, don't need to install UST.
>> Also, for distro like gentoo, you can build your package with UST support.
>>
> Enlighten me Yannick :)
>
> # apt-get install lttng-tools
>
> How are you going to have the UST support without installing the UST package
> (assuming that libustcomm is inside ust) ?

The optional dependency would be at compile time (during the configure). 
For distribution packages, it's up to the packager to decide which 
options to turn on/off. In this very case, it would make sense to turn 
it on, so the lttng-tools .deb (or .rpm, etc.) package would depend on 
the libust one. But at the "source package" level, the dependency would 
be optional.

This allows users with specific requirements (limited space, embedded 
targets,...) to compile/configure the way they see fit, but for generic 
users who just "apt-get install", they have all the options enabled.

This is exactly what happens with big configurable programs (mplayer, 
wine, etc.) where the source package has all the knobs and it's up to 
the distribution packaging to provide a sane set of defaults.

>
> I figure you'll have a "Not found libust.so..." at execution time ?
>
> David
>
>> Yannick
>>
>>
-- 
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al




  parent reply	other threads:[~2011-06-15 18:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 21:26 David Goulet
2011-06-15  5:23 ` Alexandre Montplaisir
2011-06-15  8:09   ` Nils Carlson
2011-06-15 14:57   ` David Goulet
2011-06-15 15:01     ` Yannick Brosseau
2011-06-15 15:16       ` David Goulet
2011-06-15 15:21         ` Yannick Brosseau
2011-06-15 15:24           ` David Goulet
2011-06-15 15:26             ` Yannick Brosseau
2011-06-15 15:41               ` Mathieu Desnoyers
2011-06-15 18:51         ` Alexandre Montplaisir [this message]
2011-06-15 15:06 ` Yannick Brosseau
2011-06-15 15:13   ` David Goulet
2011-06-15 15:16     ` Yannick Brosseau
2011-06-15 15:32     ` Mathieu Desnoyers
     [not found]     ` <BLU0-SMTP5372DAF7E219ACFC9DE44C966B0@phx.gbl>
2011-06-15 15:55       ` Yannick Brosseau
2011-06-15 17:16         ` Mathieu Desnoyers
2011-06-15 19:11           ` Alexandre Montplaisir

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DF8FF2E.4010902@polymtl.ca \
    --to=alexandre.montplaisir@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox