Skip to content
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

DPDK: install path fixes for meson and Ubuntu 24.04 #3598

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DPDK: prefer newer pyelftools package
  • Loading branch information
mcgov committed Feb 5, 2025
commit adfa8cdb21935583030abb5ae013ac7b1e5aa8f9
9 changes: 8 additions & 1 deletion microsoft/testsuites/dpdk/dpdktestpmd.py
Original file line number Diff line number Diff line change
@@ -224,9 +224,16 @@ def _setup_node(self) -> None:
# which breaks when another tool checks for it's existence before building...
# like cmake, meson, make, autoconf, etc.
self._node.tools[Ninja].install()
if not isinstance(self._os, Debian):
# try multiple avenues for installing pyelftools, preferring the
# more recent convention of prepending apt/dnf/etc python system packages
# with python3-...
if self._os.is_package_in_repo("python3-pyelftools"):
self._os.install_packages("python3-pyelftools")
# then try the older package manager name if it's available
elif self._os.is_package_in_repo("pyelftools"):
self._os.install_packages("pyelftools")
else:
# otherwise try pip. This can fail to install for the system on ubuntu 24.04
self._node.tools[Pip].install_packages("pyelftools")

def _uninstall(self) -> None: