On Thu, Jun 11, 2026 at 9:35 AM Peter Kjellerstedt <
[email protected]> wrote:

> > -----Original Message-----
> > From: [email protected] <
> [email protected]> On Behalf Of Richard Purdie
> via lists.openembedded.org
> > Sent: den 10 juni 2026 11:53
> > To: [email protected]; [email protected]
> > Cc: Khem Raj <[email protected]>
> > Subject: Re: [oe] [meta-networking][PATCH] python3-scapy: Replace
> oe.utils.all_distro_featuresc with bb.utils.contains
> >
> > On Tue, 2026-06-09 at 07:48 -0700, Khem Raj via lists.openembedded.org
> wrote:
> > > oe.utils.all_distro_features is being removed.
> > >
> > > Signed-off-by: Khem Raj <[email protected]>
> > > ---
> > >  meta-networking/recipes-devtools/python/python3-scapy_2.6.1.bb | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/meta-networking/recipes-devtools/python/
> python3-scapy_2.6.1.bb b/meta-networking/recipes-devtools/python/
> python3-scapy_2.6.1.bb
> > > index 678aec0135..fac14221c5 100644
> > > --- a/meta-networking/recipes-devtools/python/python3-scapy_2.6.1.bb
> > > +++ b/meta-networking/recipes-devtools/python/python3-scapy_2.6.1.bb
> > > @@ -42,7 +42,7 @@ do_install_ptest() {
> > >      # note1: if ipv6 isn't enabled, skip the related test (add '-K
> ipv6' argument)
> > >      # note2: to make this test work, your ISP also must support ipv6
> - the test is trying
> > >      #        to ping google.com through ipv6.
> > > -    if [ "${@oe.utils.all_distro_features(d, 'ipv6', 'true',
> 'false')}" = "false" ]; then
> > > +    if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'true',
> 'false', d)}" = "false" ]; then
>
> For the record, that can be simplified to:
>
>     if [ -z "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" ]; then
>
>
I have taken this suggestion.


> > >          sed -i 's/UTscapy.py/UTscapy.py -K ipv6/g'
> ${D}${PTEST_PATH}/run-ptest
> > >      fi
> > >  }
> >
> > Thanks,  I was going to write that patch after your report but you beat
> me
> > too it!
> >
> > Cheers,
> >
> > Richard
>
> //Peter
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127540): 
https://lists.openembedded.org/g/openembedded-devel/message/127540
Mute This Topic: https://lists.openembedded.org/mt/119724147/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to