* [OE-Core] boost: Use PN/BPN for naming of packages
@ 2025-03-02 7:43 Alex Kiernan
2025-03-02 12:34 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Alex Kiernan @ 2025-03-02 7:43 UTC (permalink / raw)
To: openembedded-core; +Cc: Alex Kiernan
boost-test and boost-serialization were hardcoded, switch to the ${PN} form.
Also lookup ${BPN} when generating split package names. With these changes,
generating an explicitly versioned boost package (e.g. "boost-1.82") alongside
the main boost package ("boost") can be done by copying/renaming the older
recipe. This is useful when upstream code hasn't yet been ported to newer
boost and an older version is required.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
meta/recipes-support/boost/boost.inc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 77105aa1fa13..458dfa9ac2fb 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -69,7 +69,7 @@ python __anonymous () {
mlprefix = d.getVar("MLPREFIX")
for lib in d.getVar('BOOST_LIBS').split():
extras.append("--with-%s" % lib)
- pkg = "boost-%s" % (lib.replace("_", "-"))
+ pkg = "%s-%s" % (d.getVar("BPN"), lib.replace("_", "-"))
if "-native" in pn:
pkg = pkg + "-native"
packages.append(mlprefix + pkg)
@@ -86,9 +86,9 @@ python __anonymous () {
FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*"
FILES:${PN}-locale = "${libdir}/libboost_locale.so.*"
FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*"
-FILES:boost-serialization = "${libdir}/libboost_serialization*.so.* \
+FILES:${PN}-serialization = "${libdir}/libboost_serialization*.so.* \
${libdir}/libboost_wserialization*.so.*"
-FILES:boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
+FILES:${PN}-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
${libdir}/libboost_unit_test_framework*.so.*"
# -dev last to pick up the remaining stuff
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-Core] boost: Use PN/BPN for naming of packages
2025-03-02 7:43 [OE-Core] boost: Use PN/BPN for naming of packages Alex Kiernan
@ 2025-03-02 12:34 ` Richard Purdie
2025-03-02 13:12 ` Alex Kiernan
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2025-03-02 12:34 UTC (permalink / raw)
To: alex.kiernan, openembedded-core
On Sun, 2025-03-02 at 07:43 +0000, Alex Kiernan via lists.openembedded.org wrote:
> boost-test and boost-serialization were hardcoded, switch to the ${PN} form.
> Also lookup ${BPN} when generating split package names. With these changes,
> generating an explicitly versioned boost package (e.g. "boost-1.82") alongside
> the main boost package ("boost") can be done by copying/renaming the older
> recipe. This is useful when upstream code hasn't yet been ported to newer
> boost and an older version is required.
>
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> meta/recipes-support/boost/boost.inc | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
> index 77105aa1fa13..458dfa9ac2fb 100644
> --- a/meta/recipes-support/boost/boost.inc
> +++ b/meta/recipes-support/boost/boost.inc
> @@ -69,7 +69,7 @@ python __anonymous () {
> mlprefix = d.getVar("MLPREFIX")
> for lib in d.getVar('BOOST_LIBS').split():
> extras.append("--with-%s" % lib)
> - pkg = "boost-%s" % (lib.replace("_", "-"))
> + pkg = "%s-%s" % (d.getVar("BPN"), lib.replace("_", "-"))
> if "-native" in pn:
> pkg = pkg + "-native"
> packages.append(mlprefix + pkg)
> @@ -86,9 +86,9 @@ python __anonymous () {
> FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*"
> FILES:${PN}-locale = "${libdir}/libboost_locale.so.*"
> FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*"
> -FILES:boost-serialization = "${libdir}/libboost_serialization*.so.* \
> +FILES:${PN}-serialization = "${libdir}/libboost_serialization*.so.* \
> ${libdir}/libboost_wserialization*.so.*"
> -FILES:boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
> +FILES:${PN}-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
> ${libdir}/libboost_unit_test_framework*.so.*"
>
> # -dev last to pick up the remaining stuff
>
Sounds like a reasonable idea but:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/1097
https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/1025
https://autobuilder.yoctoproject.org/valkyrie/#/builders/92/builds/1097
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-Core] boost: Use PN/BPN for naming of packages
2025-03-02 12:34 ` Richard Purdie
@ 2025-03-02 13:12 ` Alex Kiernan
0 siblings, 0 replies; 3+ messages in thread
From: Alex Kiernan @ 2025-03-02 13:12 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Sun, Mar 2, 2025 at 12:34 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Sun, 2025-03-02 at 07:43 +0000, Alex Kiernan via lists.openembedded.org wrote:
> > boost-test and boost-serialization were hardcoded, switch to the ${PN} form.
> > Also lookup ${BPN} when generating split package names. With these changes,
> > generating an explicitly versioned boost package (e.g. "boost-1.82") alongside
> > the main boost package ("boost") can be done by copying/renaming the older
> > recipe. This is useful when upstream code hasn't yet been ported to newer
> > boost and an older version is required.
> >
> > Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> > ---
> > meta/recipes-support/boost/boost.inc | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
> > index 77105aa1fa13..458dfa9ac2fb 100644
> > --- a/meta/recipes-support/boost/boost.inc
> > +++ b/meta/recipes-support/boost/boost.inc
> > @@ -69,7 +69,7 @@ python __anonymous () {
> > mlprefix = d.getVar("MLPREFIX")
> > for lib in d.getVar('BOOST_LIBS').split():
> > extras.append("--with-%s" % lib)
> > - pkg = "boost-%s" % (lib.replace("_", "-"))
> > + pkg = "%s-%s" % (d.getVar("BPN"), lib.replace("_", "-"))
> > if "-native" in pn:
> > pkg = pkg + "-native"
> > packages.append(mlprefix + pkg)
> > @@ -86,9 +86,9 @@ python __anonymous () {
> > FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*"
> > FILES:${PN}-locale = "${libdir}/libboost_locale.so.*"
> > FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*"
> > -FILES:boost-serialization = "${libdir}/libboost_serialization*.so.* \
> > +FILES:${PN}-serialization = "${libdir}/libboost_serialization*.so.* \
> > ${libdir}/libboost_wserialization*.so.*"
> > -FILES:boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
> > +FILES:${PN}-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
> > ${libdir}/libboost_unit_test_framework*.so.*"
> >
> > # -dev last to pick up the remaining stuff
> >
>
> Sounds like a reasonable idea but:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/1097
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/1025
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/92/builds/1097
>
Looks like multilib, which I'm not building locally :| Will have a look.
--
Alex Kiernan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-02 13:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 7:43 [OE-Core] boost: Use PN/BPN for naming of packages Alex Kiernan
2025-03-02 12:34 ` Richard Purdie
2025-03-02 13:12 ` Alex Kiernan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox