aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dpdk/0002-fix-dependencies.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dpdk/0002-fix-dependencies.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dpdk/0002-fix-dependencies.patch')
-rw-r--r--vcpkg/ports/dpdk/0002-fix-dependencies.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/dpdk/0002-fix-dependencies.patch b/vcpkg/ports/dpdk/0002-fix-dependencies.patch
new file mode 100644
index 0000000..b3f78a5
--- /dev/null
+++ b/vcpkg/ports/dpdk/0002-fix-dependencies.patch
@@ -0,0 +1,42 @@
+diff --git a/config/meson.build b/config/meson.build
+index 34b85f10b5..5ed4625d9e 100644
+--- a/config/meson.build
++++ b/config/meson.build
+@@ -236,12 +236,10 @@ if meson.is_cross_build() and not meson.get_external_property('numa', true)
+ find_libnuma = false
+ endif
+ if find_libnuma
+- numa_dep = cc.find_library('numa', required: false)
+- if numa_dep.found() and cc.has_header('numaif.h')
++ numa_dep = dependency('numa', method: 'pkg-config')
++ if numa_dep.found()
+ dpdk_conf.set10('RTE_HAS_LIBNUMA', true)
+ has_libnuma = true
+- add_project_link_arguments('-lnuma', language: 'c')
+- dpdk_extra_ldflags += '-lnuma'
+ endif
+ endif
+
+diff --git a/lib/eal/linux/meson.build b/lib/eal/linux/meson.build
+index e99ebed256..672c70547b 100644
+--- a/lib/eal/linux/meson.build
++++ b/lib/eal/linux/meson.build
+@@ -21,5 +21,6 @@ sources += files(
+
+ deps += ['kvargs', 'telemetry']
+ if has_libnuma
++ ext_deps += numa_dep
+ dpdk_conf.set10('RTE_EAL_NUMA_AWARE_HUGEPAGES', true)
+ endif
+diff --git a/lib/vhost/meson.build b/lib/vhost/meson.build
+index 51bcf17244..1099a0232f 100644
+--- a/lib/vhost/meson.build
++++ b/lib/vhost/meson.build
+@@ -6,6 +6,7 @@ if not is_linux
+ reason = 'only supported on Linux'
+ endif
+ if has_libnuma
++ ext_deps += numa_dep
+ dpdk_conf.set10('RTE_LIBRTE_VHOST_NUMA', true)
+ endif
+ if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0'))