DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps
@ 2018-11-15 18:26 Luca Boccassi
  2018-11-16 10:26 ` Bruce Richardson
  2018-11-16 10:57 ` [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 " Luca Boccassi
  0 siblings, 2 replies; 7+ messages in thread
From: Luca Boccassi @ 2018-11-15 18:26 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, thomas, Luca Boccassi

Meson can generate the list of private dependencies of libraries
automatically for the pkgconfig file only since version 0.45.0.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 doc/build-sdk-meson.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt
index 508e2cb64..229398bb0 100644
--- a/doc/build-sdk-meson.txt
+++ b/doc/build-sdk-meson.txt
@@ -203,3 +203,9 @@ From examples/helloworld/Makefile::
 
 	build:
 		@mkdir -p $@
+
+NOTE: for --static builds, DPDK needs to be built with Meson >= 0.45 in order to
+fully generate the list of private dependencies. If DPDK is built with an older
+version of Meson, it might be necessary to manually specify dependencies of DPDK
+PMDs/libraries, for example -lmlx5 -lmnl for librte-pmd-mlx5, or the static link
+step might fail.
-- 
2.19.1

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

* Re: [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps
  2018-11-15 18:26 [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps Luca Boccassi
@ 2018-11-16 10:26 ` Bruce Richardson
  2018-11-16 10:52   ` Luca Boccassi
  2018-11-16 10:57 ` [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 " Luca Boccassi
  1 sibling, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2018-11-16 10:26 UTC (permalink / raw)
  To: Luca Boccassi; +Cc: dev, thomas

On Thu, Nov 15, 2018 at 06:26:28PM +0000, Luca Boccassi wrote:
> Meson can generate the list of private dependencies of libraries
> automatically for the pkgconfig file only since version 0.45.0.
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
>  doc/build-sdk-meson.txt | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt
> index 508e2cb64..229398bb0 100644
> --- a/doc/build-sdk-meson.txt
> +++ b/doc/build-sdk-meson.txt
> @@ -203,3 +203,9 @@ From examples/helloworld/Makefile::
>  
>  	build:
>  		@mkdir -p $@
> +
> +NOTE: for --static builds, DPDK needs to be built with Meson >= 0.45 in order to
> +fully generate the list of private dependencies. If DPDK is built with an older
> +version of Meson, it might be necessary to manually specify dependencies of DPDK
> +PMDs/libraries, for example -lmlx5 -lmnl for librte-pmd-mlx5, or the static link
> +step might fail.

Thinking about it more, this doesn't seem to actually be the root-cause of
the reported problem. You said in the other thread that you reproduced the
problem with v0.45.2 which is >= 0.45

/Bruce

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

* Re: [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps
  2018-11-16 10:26 ` Bruce Richardson
@ 2018-11-16 10:52   ` Luca Boccassi
  2018-11-16 10:55     ` Luca Boccassi
  0 siblings, 1 reply; 7+ messages in thread
From: Luca Boccassi @ 2018-11-16 10:52 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, thomas

On Fri, 2018-11-16 at 10:26 +0000, Bruce Richardson wrote:
> On Thu, Nov 15, 2018 at 06:26:28PM +0000, Luca Boccassi wrote:
> > Meson can generate the list of private dependencies of libraries
> > automatically for the pkgconfig file only since version 0.45.0.
> > 
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > ---
> >  doc/build-sdk-meson.txt | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt
> > index 508e2cb64..229398bb0 100644
> > --- a/doc/build-sdk-meson.txt
> > +++ b/doc/build-sdk-meson.txt
> > @@ -203,3 +203,9 @@ From examples/helloworld/Makefile::
> >  
> >  	build:
> >  		@mkdir -p $@
> > +
> > +NOTE: for --static builds, DPDK needs to be built with Meson >=
> > 0.45 in order to
> > +fully generate the list of private dependencies. If DPDK is built
> > with an older
> > +version of Meson, it might be necessary to manually specify
> > dependencies of DPDK
> > +PMDs/libraries, for example -lmlx5 -lmnl for librte-pmd-mlx5, or
> > the static link
> > +step might fail.
> 
> Thinking about it more, this doesn't seem to actually be the root-
> cause of
> the reported problem. You said in the other thread that you
> reproduced the
> problem with v0.45.2 which is >= 0.45
> 
> /Bruce

I think the documentation linked there is wrong - looking at the
release notes in the repository, it's 0.46 that mentions that new
feature, not 0.45:

https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release-notes-for-0.46.0.md#improved-generation-of-pkg-config-files-for-static-only-libraries

I'll check if I can repro with 0.46 to confirm

-- 
Kind regards,
Luca Boccassi

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

* Re: [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps
  2018-11-16 10:52   ` Luca Boccassi
@ 2018-11-16 10:55     ` Luca Boccassi
  0 siblings, 0 replies; 7+ messages in thread
From: Luca Boccassi @ 2018-11-16 10:55 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, thomas

On Fri, 2018-11-16 at 10:52 +0000, Luca Boccassi wrote:
> On Fri, 2018-11-16 at 10:26 +0000, Bruce Richardson wrote:
> > On Thu, Nov 15, 2018 at 06:26:28PM +0000, Luca Boccassi wrote:
> > > Meson can generate the list of private dependencies of libraries
> > > automatically for the pkgconfig file only since version 0.45.0.
> > > 
> > > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > > ---
> > >  doc/build-sdk-meson.txt | 6 ++++++
> > >  1 file changed, 6 insertions(+)
> > > 
> > > diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt
> > > index 508e2cb64..229398bb0 100644
> > > --- a/doc/build-sdk-meson.txt
> > > +++ b/doc/build-sdk-meson.txt
> > > @@ -203,3 +203,9 @@ From examples/helloworld/Makefile::
> > >  
> > >  	build:
> > >  		@mkdir -p $@
> > > +
> > > +NOTE: for --static builds, DPDK needs to be built with Meson >=
> > > 0.45 in order to
> > > +fully generate the list of private dependencies. If DPDK is
> > > built
> > > with an older
> > > +version of Meson, it might be necessary to manually specify
> > > dependencies of DPDK
> > > +PMDs/libraries, for example -lmlx5 -lmnl for librte-pmd-mlx5, or
> > > the static link
> > > +step might fail.
> > 
> > Thinking about it more, this doesn't seem to actually be the root-
> > cause of
> > the reported problem. You said in the other thread that you
> > reproduced the
> > problem with v0.45.2 which is >= 0.45
> > 
> > /Bruce
> 
> I think the documentation linked there is wrong - looking at the
> release notes in the repository, it's 0.46 that mentions that new
> feature, not 0.45:
> 
> https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release
> -notes-for-0.46.0.md#improved-generation-of-pkg-config-files-for-
> static-only-libraries
> 
> I'll check if I can repro with 0.46 to confirm

Yes I can confirm that it's 0.46 that actually fixes the issue, so I'll
send a v2 with the updated version.

-- 
Kind regards,
Luca Boccassi

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

* [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 will fail to list private deps
  2018-11-15 18:26 [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps Luca Boccassi
  2018-11-16 10:26 ` Bruce Richardson
@ 2018-11-16 10:57 ` Luca Boccassi
  2018-11-16 11:47   ` Richardson, Bruce
  1 sibling, 1 reply; 7+ messages in thread
From: Luca Boccassi @ 2018-11-16 10:57 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, thomas, Luca Boccassi

Meson can generate the list of private dependencies of libraries
automatically for the pkgconfig file only since version 0.46.0.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
v2: corrected version, minimum required is meson 0.46

 doc/build-sdk-meson.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt
index 508e2cb64..3d8a69c29 100644
--- a/doc/build-sdk-meson.txt
+++ b/doc/build-sdk-meson.txt
@@ -203,3 +203,9 @@ From examples/helloworld/Makefile::
 
 	build:
 		@mkdir -p $@
+
+NOTE: for --static builds, DPDK needs to be built with Meson >= 0.46 in order to
+fully generate the list of private dependencies. If DPDK is built with an older
+version of Meson, it might be necessary to manually specify dependencies of DPDK
+PMDs/libraries, for example -lmlx5 -lmnl for librte-pmd-mlx5, or the static link
+step might fail.
-- 
2.19.1

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

* Re: [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 will fail to list private deps
  2018-11-16 10:57 ` [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 " Luca Boccassi
@ 2018-11-16 11:47   ` Richardson, Bruce
  2018-11-18 23:51     ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: Richardson, Bruce @ 2018-11-16 11:47 UTC (permalink / raw)
  To: Luca Boccassi, dev; +Cc: thomas



> -----Original Message-----
> From: Luca Boccassi [mailto:bluca@debian.org]
> Sent: Friday, November 16, 2018 10:58 AM
> To: dev@dpdk.org
> Cc: Richardson, Bruce <bruce.richardson@intel.com>; thomas@monjalon.net;
> Luca Boccassi <bluca@debian.org>
> Subject: [PATCH v2] build: document that Meson < 0.46 will fail to list
> private deps
> 
> Meson can generate the list of private dependencies of libraries
> automatically for the pkgconfig file only since version 0.46.0.
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
> v2: corrected version, minimum required is meson 0.46
> 

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

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

* Re: [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 will fail to list private deps
  2018-11-16 11:47   ` Richardson, Bruce
@ 2018-11-18 23:51     ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2018-11-18 23:51 UTC (permalink / raw)
  To: Luca Boccassi; +Cc: dev, Richardson, Bruce

> > Meson can generate the list of private dependencies of libraries
> > automatically for the pkgconfig file only since version 0.46.0.
> > 
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks

Title updated: build: document Meson < 0.46 miss private dependencies

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

end of thread, other threads:[~2018-11-18 23:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15 18:26 [dpdk-dev] [PATCH] build: document that Meson < 0.45 will fail to list private deps Luca Boccassi
2018-11-16 10:26 ` Bruce Richardson
2018-11-16 10:52   ` Luca Boccassi
2018-11-16 10:55     ` Luca Boccassi
2018-11-16 10:57 ` [dpdk-dev] [PATCH v2] build: document that Meson < 0.46 " Luca Boccassi
2018-11-16 11:47   ` Richardson, Bruce
2018-11-18 23:51     ` Thomas Monjalon

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git