From 0c2bdcb8d4e62301b2a8671973195eded296ce99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 5 Dec 2022 21:35:38 +0700 Subject: [PATCH] dpdk: update to 22.11. --- srcpkgs/dpdk/patches/arm.patch | 17 ----------------- srcpkgs/dpdk/patches/cross-build.patch | 13 +++++++++++++ srcpkgs/dpdk/patches/sphinx-4.0.patch | 10 ---------- srcpkgs/dpdk/template | 18 +++++++++--------- 4 files changed, 22 insertions(+), 36 deletions(-) delete mode 100644 srcpkgs/dpdk/patches/arm.patch create mode 100644 srcpkgs/dpdk/patches/cross-build.patch delete mode 100644 srcpkgs/dpdk/patches/sphinx-4.0.patch diff --git a/srcpkgs/dpdk/patches/arm.patch b/srcpkgs/dpdk/patches/arm.patch deleted file mode 100644 index 5a30e4d4fc16..000000000000 --- a/srcpkgs/dpdk/patches/arm.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git config/meson.build config/meson.build -index 2bafea5..6b15f13 100644 ---- a/config/meson.build -+++ b/config/meson.build -@@ -50,11 +50,7 @@ meson.add_install_script('../buildtools/symlink-drivers-solibs.sh', - pmd_subdir_opt) - - # set the machine type and cflags for it --if meson.is_cross_build() -- machine = host_machine.cpu() --else -- machine = get_option('machine') --endif -+machine = get_option('machine') - - # machine type 'default' is special, it defaults to the per arch agreed common - # minimal baseline needed for DPDK. diff --git a/srcpkgs/dpdk/patches/cross-build.patch b/srcpkgs/dpdk/patches/cross-build.patch new file mode 100644 index 000000000000..167a9f35bbe0 --- /dev/null +++ b/srcpkgs/dpdk/patches/cross-build.patch @@ -0,0 +1,13 @@ +Index: dpdk-22.11/config/meson.build +=================================================================== +--- dpdk-22.11.orig/config/meson.build ++++ dpdk-22.11/config/meson.build +@@ -74,7 +74,7 @@ enable_drivers = '' + platform = get_option('platform') + + # set the cpu_instruction_set and cflags for it +-if meson.is_cross_build() ++if false + cpu_instruction_set = host_machine.cpu() + else + cpu_instruction_set = get_option('cpu_instruction_set') diff --git a/srcpkgs/dpdk/patches/sphinx-4.0.patch b/srcpkgs/dpdk/patches/sphinx-4.0.patch deleted file mode 100644 index cdee0fe98c1a..000000000000 --- a/srcpkgs/dpdk/patches/sphinx-4.0.patch +++ /dev/null @@ -1,10 +0,0 @@ -Index: dpdk-19.08/doc/guides/conf.py -=================================================================== ---- dpdk-19.08.orig/doc/guides/conf.py -+++ dpdk-19.08/doc/guides/conf.py -@@ -410,4 +410,4 @@ def setup(app): - # Process the numref references once the doctree has been created. - app.connect('doctree-resolved', process_numref) - -- app.add_stylesheet('css/custom.css') -+ app.add_css_file('css/custom.css') diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template index 0f74b4c99d64..13337e72b2aa 100644 --- a/srcpkgs/dpdk/template +++ b/srcpkgs/dpdk/template @@ -1,12 +1,12 @@ # Template file for 'dpdk' pkgname=dpdk -version=19.08 -revision=5 +version=22.11 +revision=1 # no musl - uses error.h, execinfo.h and argp.h archs="x86_64 aarch64 ppc64le i686 armv7l" build_style=meson configure_args="-Denable_kmods=false -Denable_docs=true -Db_lto=false" -hostmakedepends="doxygen python3-Sphinx pkg-config elfutils" +hostmakedepends="doxygen python3-Sphinx pkg-config elfutils python3-pyelftools" makedepends="libnuma-devel jansson-devel libpcap-devel zlib-devel openssl-devel libbsd-devel libelf libmnl" depends="python3-pyelftools" @@ -15,18 +15,18 @@ maintainer="Hans-J. Schmid " license="BSD-3-Clause, GPL-2.0-only" homepage="https://www.dpdk.org/" distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz" -checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038 +checksum=ed8b2a2b153f0311ffa065d35af29a098367af44a22b3c33e191e1a74211f2e3 # import py3compat python_version=3 case "${XBPS_TARGET_MACHINE}" in - armv7l*) configure_args+=" -Dmachine=armv7-a";; - aarch64*) configure_args+=" -Dmachine=armv8-a";; - ppc64le*) configure_args+=" -Dmachine=power8";; - *) configure_args+=" -Dmachine=default" + armv7l*) configure_args+=" -Dcpu_instruction_set=armv7-a";; + aarch64*) configure_args+=" -Dcpu_instruction_set=armv8-a";; + ppc64le*) configure_args+=" -Dcpu_instruction_set=power8";; + *) configure_args+=" -Dcpu_instruction_set=generic" esac -CFLAGS="-fcommon" +# CFLAGS="-fcommon" post_install() { vmkdir usr/lib/modules-load.d