tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Writing buildlink files: optional dependencies?

On Mon, Oct 14, 2019 at 12:19:54PM +0200, Edgar Fuß wrote:
> When creating a for a package foo that exposes libfoo, if 
> libfoo depends on libbar (from package bar), my understanding is that I 
> should include ../../whatever/bar/ in foo's
> But how do I handle the case where foo only depends on bar when built with 
> the "bar" option? Do I consult

There is support for this. Look at e.g. gtk3/ for an example.

> If yes, how do I make sure 
> that the newly created doesn't run out of sync with the 
> file (of foo)? The next version of foo built with the "bar" 
> option could depend on bar-ng.

You'll have to take care of that manually (and might need to bump ABI
if the dependencies change).

Home | Main Index | Thread Index | Old Index