8000 configure.ac: dpdk: tolerate no pkg-config by cpaelzer · Pull Request #2405 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

configure.ac: dpdk: tolerate no pkg-config #2405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2017

Conversation

cpaelzer
Copy link
Contributor

Since pull request #2400 pkg-config works great for dpdk, but not if
there is no pkg-config around at all.
To fix that the PKG_CHECK_MODULES macro needs to define a valid fourth
argument, otherwise it will error out.

This closes 2404

Signed-off-by: Christian Ehrhardt christian.ehrhardt@canonical.com

Since pull request collectd#2400 pkg-config works great for dpdk, but not if
there is no pkg-config around at all.
To fix that the PKG_CHECK_MODULES macro needs to define a valid fourth
argument, otherwise it will error out.

This closes 2404

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
@cpaelzer
Copy link
Contributor Author

Sorry once again, on the former PR the first CI check was good so none of us took the time to evaluate the former ones. Fortunately I've seen this and can provide the fix right away to clean up my mess.

@cpaelzer
Copy link
Contributor Author

Closes #2404

I forgot the # in the commit message, let me know if I shall fix that.

@cpaelzer
Copy link
Contributor Author

Ok, the comment linked it up correctly I think.

@cpaelzer
Copy link
Contributor Author

With the fix in place in a case without pkg-config for dpdk it will now go like:

checking for DPDK... no
configure: no DPDK pkg-config, using defaults
checking rte_config.h usability... yes
checking rte_config.h presence... yes
checking for rte_config.h... yes
checking for rte_eal_init in -ldpdk... yes

That is so much better than aborting

Copy link
Contributor
@bluca bluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

configure.ac Outdated
@@ -2360,7 +2360,8 @@ AC_ARG_WITH([libdpdk],
)

if test "x$with_libdpdk" != "xno"; then
PKG_CHECK_MODULES([DPDK], [libdpdk])
PKG_CHECK_MODULES([DPDK], [libdpdk], [],
[AC_MSG_NOTICE([no DPDK pkg-config, using defaults])])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 2 spaces for indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing to spaces, but the actual indent should be aligned with the [DPDK above right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it shouldn't, the rest of configure.ac also uses 2 spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My re-upload and this comment raced by seconds, pushing another fix to make it 2 as requested.

Fix tab indents to be space based as they should, but keep the
effective indent at the level of the context it belongs to in
PKG_CHECK_MODULES.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
@cpaelzer
Copy link
Contributor Author

Pushed an indent fix as requested.
I made the actual change in a container which has none of my usual setup which would have made me aware of the tab earlier - thanks for spotting it @rubenk

The rest of configure.ac indents not to the context, but by 2 spaces.
Follow that rule to stay in style.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
@cpaelzer
Copy link
Contributor Author

Commit added following 2 spaces now.

@rubenk rubenk merged commit 9e6bf7d into collectd:master Aug 18, 2017
bluca added a commit to bluca/pkg-debian that referenced this pull request Sep 1, 2017
Backport and adapt patches from upstream to use pkg-config when
querying for DPDK:

collectd/collectd#2400
collectd/collectd#2405

This allows DPDK in Debian to fix an upstream multi-arch issue,
where arch-dependents headers are installed in /usr/include breaking
multi-arch co-installability of libdpdk-dev.
The arch-dependent DPDK headers will be moved under /usr/include/<arch>
to fix the issue, and pkg-config --cflags will return the correct
-I values.

Closes #872482
@octo octo added this to the 5.8 milestone Oct 11, 2017
@maryamtahhan maryamtahhan mentioned this pull request Oct 12, 2017
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0