package/libbytesize: remove pcre2 runtime dependency
PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
The library is only required at build time, which is handled by the select in Config.in.
--- package/libbytesize/libbytesize.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
package/libbytesize/libbytesize.mk +1 -2
@@ -14,8 +14,7 @@ LIBBYTESIZE_DEPENDENCIES = \ host-pkgconf \ host-gettext \ gmp \ - mpfr \ - pcre2 + mpfr LIBBYTESIZE_CONF_OPTS += \ --without-python3 \
Signature · 1 line
2.30.2
PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
Hi Stefan,
Quoted 2 lines · Stefan Agner
The library is only required at build time, which is handled by the select in Config.in.
The _DEPENDENCIES list is meant to make sure that pcre2 builds before libbytesize. Config.in select does not guarantee the build order. Config.in select only makes pcre2 build.
So if pcre2 is required at build time we need it in the _DEPENDENCIES list.
Am I missing something?
baruch
Quoted 19 lines
Signed-off-by Stefan Agner <[email protected]>--- package/libbytesize/libbytesize.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)package/libbytesize/libbytesize.mk +1
-2@@ -14,8 +14,7 @@ LIBBYTESIZE_DEPENDENCIES = \ host-pkgconf \ host-gettext \ gmp \ - mpfr \ - pcre2 + mpfr LIBBYTESIZE_CONF_OPTS += \ --without-python3 \
Signature · 3 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
Quoted 6 lines · Baruch Siach
Hi Stefan,
Quoted 2 lines · Stefan Agner
The library is only required at build time, which is handled by the select in Config.in.
Quoted 8 lines
The
_DEPENDENCIESlist is meant to make sure that pcre2 builds before libbytesize. Config.in select does not guarantee the build order. Config.in select only makes pcre2 build.So if pcre2 is required at build time we need it in the
_DEPENDENCIESlist.Am I missing something?
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.
Is there a way to have something as compile time dependency but not a runtime dependency?
--
Stefan
Quoted 22 lines
baruch
Quoted 19 lines
Signed-off-by Stefan Agner <[email protected]>--- package/libbytesize/libbytesize.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)package/libbytesize/libbytesize.mk +1
-2@@ -14,8 +14,7 @@ LIBBYTESIZE_DEPENDENCIES = \ host-pkgconf \ host-gettext \ gmp \ - mpfr \ - pcre2 + mpfr LIBBYTESIZE_CONF_OPTS += \ --without-python3 \
PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
Quoted 8 lines · On Thu, 25 Mar 2021 15:40:36 +0100 Stefan Agner <[email protected]> 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_packagesBut 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).
Quoted 2 lines
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.
Thomas
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
Quoted 24 lines · Thomas Petazzoni
Quoted 8 lines · On Thu, 25 Mar 2021 15:40:36 +0100 Stefan Agner <[email protected]> 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_packagesBut 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).
Quoted 2 lines
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 ?
Quoted 5 lines
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.
--
Stefan
Quoted 2 lines
Thomas
PATCH 1/1 package/libbytesize: remove pcre2 runtime dependency
Stefan, All,
On 2021-03-25 17:41 +0100, Stefan Agner spake thusly:
Quoted 8 lines · Thomas Petazzoni
Quoted 7 lines
Quoted 2 lines · On Thu, 25 Mar 2021 15:40:36 +0100 Stefan Agner <[email protected]> wrote:
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 ?
Well, technically there are two cases:
- dependencies on a host package
- dependencies on a header-only package
However, even in the later case, the package that provides those headers still needs to be enabled in the configuration and must also be built and installed (actually, only installed as it is headers-only) before the package that depends on it gets built.
I've marked the patch as rejected in Patchwork now.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'