All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libpcap: Disable DPDK explicitly
@ 2022-02-10 20:49 Sean Anderson
  2022-04-05 14:53 ` Sean Anderson
  2022-04-05 15:02 ` [OE-core] " Mittal, Anuj
  0 siblings, 2 replies; 6+ messages in thread
From: Sean Anderson @ 2022-02-10 20:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sean Anderson

libpcap looks for DPDK in the same way it looks for DAG. This can poison
the build even if it doesn't find anything. Explicitly disable dpdk.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

 meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
index 9a8c46e0ef..dbe2fd8157 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
@@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
 
 # Explicitly disable dag support. We don't have recipe for it and if enabled here,
 # configure script poisons the include dirs with /usr/local/include even when the
-# support hasn't been detected.
+# support hasn't been detected. Do the same thing for DPDK.
 EXTRA_OECONF = " \
                  --with-pcap=linux \
                  --without-dag \
+                 --without-dpdk \
                  "
 EXTRA_AUTORECONF += "--exclude=aclocal"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] libpcap: Disable DPDK explicitly
  2022-02-10 20:49 [PATCH] libpcap: Disable DPDK explicitly Sean Anderson
@ 2022-04-05 14:53 ` Sean Anderson
  2022-04-05 15:02 ` [OE-core] " Mittal, Anuj
  1 sibling, 0 replies; 6+ messages in thread
From: Sean Anderson @ 2022-04-05 14:53 UTC (permalink / raw)
  Cc: Sean Anderson, openembedded-core



On 2/10/22 3:49 PM, Sean Anderson wrote:
> libpcap looks for DPDK in the same way it looks for DAG. This can poison
> the build even if it doesn't find anything. Explicitly disable dpdk.
> 
> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> ---
> 
>  meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> index 9a8c46e0ef..dbe2fd8157 100644
> --- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> +++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> @@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
>  
>  # Explicitly disable dag support. We don't have recipe for it and if enabled here,
>  # configure script poisons the include dirs with /usr/local/include even when the
> -# support hasn't been detected.
> +# support hasn't been detected. Do the same thing for DPDK.
>  EXTRA_OECONF = " \
>                   --with-pcap=linux \
>                   --without-dag \
> +                 --without-dpdk \
>                   "
>  EXTRA_AUTORECONF += "--exclude=aclocal"
>  
> 

ping?

--Sean


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] libpcap: Disable DPDK explicitly
  2022-02-10 20:49 [PATCH] libpcap: Disable DPDK explicitly Sean Anderson
  2022-04-05 14:53 ` Sean Anderson
@ 2022-04-05 15:02 ` Mittal, Anuj
  2022-04-05 15:18   ` Sean Anderson
  2022-04-05 16:18   ` Sean Anderson
  1 sibling, 2 replies; 6+ messages in thread
From: Mittal, Anuj @ 2022-04-05 15:02 UTC (permalink / raw)
  To: sean.anderson, openembedded-core

On Thu, 2022-02-10 at 15:49 -0500, Sean Anderson via
lists.openembedded.org wrote:
> libpcap looks for DPDK in the same way it looks for DAG. This can
> poison
> the build even if it doesn't find anything. Explicitly disable dpdk.
> 
> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> ---
> 
>  meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> index 9a8c46e0ef..dbe2fd8157 100644
> --- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> +++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> @@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
>  
>  # Explicitly disable dag support. We don't have recipe for it and if
> enabled here,
>  # configure script poisons the include dirs with /usr/local/include
> even when the
> -# support hasn't been detected.
> +# support hasn't been detected. Do the same thing for DPDK.
>  EXTRA_OECONF = " \
>                   --with-pcap=linux \
>                   --without-dag \
> +                 --without-dpdk \
>                   "

Can this be converted to a PACKAGECONFIG instead? There is a DPDK
recipe in a separate layer so it might be useful for someone including
that layer.

Thanks,

Anuj

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] libpcap: Disable DPDK explicitly
  2022-04-05 15:02 ` [OE-core] " Mittal, Anuj
@ 2022-04-05 15:18   ` Sean Anderson
  2022-04-05 16:40     ` Richard Purdie
  2022-04-05 16:18   ` Sean Anderson
  1 sibling, 1 reply; 6+ messages in thread
From: Sean Anderson @ 2022-04-05 15:18 UTC (permalink / raw)
  To: Mittal, Anuj, openembedded-core



On 4/5/22 11:02 AM, Mittal, Anuj wrote:
> [You don't often get email from anuj.mittal@intel.com. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]
> 
> On Thu, 2022-02-10 at 15:49 -0500, Sean Anderson via
> lists.openembedded.org wrote:
>> libpcap looks for DPDK in the same way it looks for DAG. This can
>> poison
>> the build even if it doesn't find anything. Explicitly disable dpdk.
>>
>> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
>> ---
>>
>>  meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> index 9a8c46e0ef..dbe2fd8157 100644
>> --- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> +++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> @@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
>>
>>  # Explicitly disable dag support. We don't have recipe for it and if
>> enabled here,
>>  # configure script poisons the include dirs with /usr/local/include
>> even when the
>> -# support hasn't been detected.
>> +# support hasn't been detected. Do the same thing for DPDK.
>>  EXTRA_OECONF = " \
>>                   --with-pcap=linux \
>>                   --without-dag \
>> +                 --without-dpdk \
>>                   "
> 
> Can this be converted to a PACKAGECONFIG instead? There is a DPDK
> recipe in a separate layer so it might be useful for someone including
> that layer.

There's no distro feature for dpdk. How would we detect if it is enabled?
Additionally, the configure script has hard-coded paths to
/usr/local/include. I think this really needs to be addressed upstream
before we could actually support dpdk.

--Sean


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] libpcap: Disable DPDK explicitly
  2022-04-05 15:02 ` [OE-core] " Mittal, Anuj
  2022-04-05 15:18   ` Sean Anderson
@ 2022-04-05 16:18   ` Sean Anderson
  1 sibling, 0 replies; 6+ messages in thread
From: Sean Anderson @ 2022-04-05 16:18 UTC (permalink / raw)
  To: Mittal, Anuj, openembedded-core



On 4/5/22 11:02 AM, Mittal, Anuj wrote:
> On Thu, 2022-02-10 at 15:49 -0500, Sean Anderson via
> lists.openembedded.org wrote:
>> libpcap looks for DPDK in the same way it looks for DAG. This can
>> poison
>> the build even if it doesn't find anything. Explicitly disable dpdk.
>>
>> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
>> ---
>>
>>  meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> index 9a8c46e0ef..dbe2fd8157 100644
>> --- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> +++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
>> @@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
>>
>>  # Explicitly disable dag support. We don't have recipe for it and if
>> enabled here,
>>  # configure script poisons the include dirs with /usr/local/include
>> even when the
>> -# support hasn't been detected.
>> +# support hasn't been detected. Do the same thing for DPDK.
>>  EXTRA_OECONF = " \
>>                   --with-pcap=linux \
>>                   --without-dag \
>> +                 --without-dpdk \
>>                   "

Huh, well it looks like this was already applied 

https://git.openembedded.org/openembedded-core/commit/?id=be5442f065da40b41d3cd60793341e22654f2681



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] libpcap: Disable DPDK explicitly
  2022-04-05 15:18   ` Sean Anderson
@ 2022-04-05 16:40     ` Richard Purdie
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2022-04-05 16:40 UTC (permalink / raw)
  To: sean.anderson, Mittal, Anuj, openembedded-core

On Tue, 2022-04-05 at 11:18 -0400, Sean Anderson via lists.openembedded.org
wrote:
> 
> On 4/5/22 11:02 AM, Mittal, Anuj wrote:
> > [You don't often get email from anuj.mittal@intel.com. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]
> > 
> > On Thu, 2022-02-10 at 15:49 -0500, Sean Anderson via
> > lists.openembedded.org wrote:
> > > libpcap looks for DPDK in the same way it looks for DAG. This can
> > > poison
> > > the build even if it doesn't find anything. Explicitly disable dpdk.
> > > 
> > > Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> > > ---
> > > 
> > >  meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++-
> > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> > > b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> > > index 9a8c46e0ef..dbe2fd8157 100644
> > > --- a/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> > > +++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb
> > > @@ -19,10 +19,11 @@ BINCONFIG = "${bindir}/pcap-config"
> > > 
> > >  # Explicitly disable dag support. We don't have recipe for it and if
> > > enabled here,
> > >  # configure script poisons the include dirs with /usr/local/include
> > > even when the
> > > -# support hasn't been detected.
> > > +# support hasn't been detected. Do the same thing for DPDK.
> > >  EXTRA_OECONF = " \
> > >                   --with-pcap=linux \
> > >                   --without-dag \
> > > +                 --without-dpdk \
> > >                   "
> > 
> > Can this be converted to a PACKAGECONFIG instead? There is a DPDK
> > recipe in a separate layer so it might be useful for someone including
> > that layer.
> 
> There's no distro feature for dpdk. How would we detect if it is enabled?
> Additionally, the configure script has hard-coded paths to
> /usr/local/include. I think this really needs to be addressed upstream
> before we could actually support dpdk.

As you mention, the change merged. We don't need it to be a DISTRO_FEATURE in
order for it to be a PACKAGECONFIG so that is a patch we could consider. It
would need to be as a follow up patch as the original has merged now (it was a
valid/correct change in it's own right).

Cheers,

Richard



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-05 17:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 20:49 [PATCH] libpcap: Disable DPDK explicitly Sean Anderson
2022-04-05 14:53 ` Sean Anderson
2022-04-05 15:02 ` [OE-core] " Mittal, Anuj
2022-04-05 15:18   ` Sean Anderson
2022-04-05 16:40     ` Richard Purdie
2022-04-05 16:18   ` Sean Anderson

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.