[Buildroot] [PATCH] package/libbytesize: remove pcre2 runtime dependency

Stefan Agner stefan at agner.ch
Thu Mar 25 16:41:56 UTC 2021

On 2021-03-25 16:39, Thomas Petazzoni wrote:
> On Thu, 25 Mar 2021 15:40:36 +0100
> Stefan Agner <stefan at agner.ch> wrote:
>> Hmm, I think I don't understand how runtime/compile time dependencies
>> work in buildroot.
>> I read this section:
>> https://buildroot.org/downloads/manual/manual.html#_gettext_integration_and_interaction_with_packages
>> But I think i got this wrong, gettext in that case is only a runtime
>> dependency.
> Yes, and because it's only a runtime dependency, we need to make sure
> it is enabled in the configuration (which the "select" does), but we
> don't need to ensure it is built *before* a certain package (which
> <pkg>_DEPENDENCIES does).
>> Is there a way to have something as compile time dependency but not a
>> runtime dependency?
> No, because it is fairly uncommon to have something that is a compile
> time dependency but not necessary at runtime. Do you have specific
> examples in mind ?
> For example, in your patch, libbytesize links against the libpcre2
> library. So there is a build time dependency, as libpcre2 needs to be
> built before libbytesize, for the link of libbytesize to succeed. But
> there is also a runtime dependency: libpcre2.so needs to be on the
> target.

Oh you are right libbytesize actually links against it. I somehow was
assuming this is a build time dependency only.

Sorry for the noise.


> Thomas

More information about the buildroot mailing list