* [meta-arago][master/kirkstone][PATCH] mstpd: Add FILES variable
@ 2023-08-12 13:16 Ryan Eatmon
2023-08-14 18:10 ` Denys Dmytriyenko
0 siblings, 1 reply; 3+ messages in thread
From: Ryan Eatmon @ 2023-08-12 13:16 UTC (permalink / raw)
To: Praneeth Bajjuri, Denys Dmytriyenko, meta-arago
Bring this recipe into compliance with the latest standards. Add
missing FILES and update hardcoded /sbin path to $base_sbindir.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
| 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--git a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
index a410f584..be75b1c5 100644
--- a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
+++ b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
@@ -17,7 +17,15 @@ RDEPENDS:${PN} = "python3-core"
inherit autotools
-EXTRA_OECONF = "--sbindir=/sbin"
+EXTRA_OECONF = "--sbindir=${base_sbindir}"
+
+FILES:${PN} += " \
+ ${base_sbindir}/mstp* \
+ ${base_sbindir}/bridge-stp \
+ ${libexecdir}/mstpctl-utils/* \
+ ${sysconfdir}/bridge-stp.conf \
+ ${sysconfdir}/bash_completion.d/mstpctl \
+"
do_configure:prepend() {
sed -i -e "s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/utils/ifquery
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-arago][master/kirkstone][PATCH] mstpd: Add FILES variable
2023-08-12 13:16 [meta-arago][master/kirkstone][PATCH] mstpd: Add FILES variable Ryan Eatmon
@ 2023-08-14 18:10 ` Denys Dmytriyenko
2023-08-14 18:32 ` Ryan Eatmon
0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2023-08-14 18:10 UTC (permalink / raw)
To: reatmon; +Cc: Praneeth Bajjuri, Denys Dmytriyenko, meta-arago
On Sat, Aug 12, 2023 at 08:16:54AM -0500, Ryan Eatmon via lists.yoctoproject.org wrote:
> Bring this recipe into compliance with the latest standards. Add
> missing FILES and update hardcoded /sbin path to $base_sbindir.
Well, you don't have to touch FILES, as the defaults here seem to cover
everything just fine. Plus, you are adding to the defaults, not replacing
them, so that's a no-op.
Changing hardcoded /sbin to ${base_sbindir} is all you need here.
> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> ---
> meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
> index a410f584..be75b1c5 100644
> --- a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
> +++ b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
> @@ -17,7 +17,15 @@ RDEPENDS:${PN} = "python3-core"
>
> inherit autotools
>
> -EXTRA_OECONF = "--sbindir=/sbin"
> +EXTRA_OECONF = "--sbindir=${base_sbindir}"
> +
> +FILES:${PN} += " \
> + ${base_sbindir}/mstp* \
> + ${base_sbindir}/bridge-stp \
> + ${libexecdir}/mstpctl-utils/* \
> + ${sysconfdir}/bridge-stp.conf \
> + ${sysconfdir}/bash_completion.d/mstpctl \
> +"
So, the defaults already have ${base_sbindir}/* ${libexecdir}/* and
${sysconfdir} and will scoop up everything the recipe installs in those
directories.
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n331
> do_configure:prepend() {
> sed -i -e "s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/utils/ifquery
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [meta-arago][master/kirkstone][PATCH] mstpd: Add FILES variable
2023-08-14 18:10 ` Denys Dmytriyenko
@ 2023-08-14 18:32 ` Ryan Eatmon
0 siblings, 0 replies; 3+ messages in thread
From: Ryan Eatmon @ 2023-08-14 18:32 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: Praneeth Bajjuri, Denys Dmytriyenko, meta-arago
On 8/14/2023 1:10 PM, Denys Dmytriyenko wrote:
> On Sat, Aug 12, 2023 at 08:16:54AM -0500, Ryan Eatmon via lists.yoctoproject.org wrote:
>> Bring this recipe into compliance with the latest standards. Add
>> missing FILES and update hardcoded /sbin path to $base_sbindir.
>
> Well, you don't have to touch FILES, as the defaults here seem to cover
> everything just fine. Plus, you are adding to the defaults, not replacing
> them, so that's a no-op.
>
> Changing hardcoded /sbin to ${base_sbindir} is all you need here.
That would explain why when I added /sbin/* to the FILES a bunch of
other errors popped up! I changed the default. That was confusing me a
bit. I'll get this fixed for a v2. Thanks!
>
>> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
>> ---
>> meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb | 10 +++++++++-
>> 1 file changed, 9 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
>> index a410f584..be75b1c5 100644
>> --- a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
>> +++ b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb
>> @@ -17,7 +17,15 @@ RDEPENDS:${PN} = "python3-core"
>>
>> inherit autotools
>>
>> -EXTRA_OECONF = "--sbindir=/sbin"
>> +EXTRA_OECONF = "--sbindir=${base_sbindir}"
>> +
>> +FILES:${PN} += " \
>> + ${base_sbindir}/mstp* \
>> + ${base_sbindir}/bridge-stp \
>> + ${libexecdir}/mstpctl-utils/* \
>> + ${sysconfdir}/bridge-stp.conf \
>> + ${sysconfdir}/bash_completion.d/mstpctl \
>> +"
>
> So, the defaults already have ${base_sbindir}/* ${libexecdir}/* and
> ${sysconfdir} and will scoop up everything the recipe installs in those
> directories.
>
> https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n331
>
>
>> do_configure:prepend() {
>> sed -i -e "s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/utils/ifquery
>> --
>> 2.17.1
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-14 18:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 13:16 [meta-arago][master/kirkstone][PATCH] mstpd: Add FILES variable Ryan Eatmon
2023-08-14 18:10 ` Denys Dmytriyenko
2023-08-14 18:32 ` Ryan Eatmon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.