Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] dpdk: update to 22.11.
@ 2022-12-05 14:53 sgn
  2022-12-05 15:00 ` [PR PATCH] [Updated] " sgn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sgn @ 2022-12-05 14:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 4528 bytes --]

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?=
 <congdanhqx@gmail.com>
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 <knock@myopendoor.de>"
 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

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

* Re: [PR PATCH] [Updated] dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
@ 2022-12-05 15:00 ` sgn
  2022-12-05 15:11 ` sgn
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2022-12-05 15:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 5270 bytes --]

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?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 21:35:38 +0700
Subject: [PATCH 1/2] 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 <knock@myopendoor.de>"
 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

From ee4eeba51221f8f63a6966e5e778fd35b1f45eaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:00:18 +0700
Subject: [PATCH 2/2] fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 13337e72b2aa..bcd9643e17a4 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -54,7 +54,7 @@ dpdk-devel_package() {
 		vmove usr/include
 		vmove usr/lib/*.so
 		vmove usr/lib/*.a
-		vmove usr/lib/dpdk/pmds-${version}/*.so
+		vmove usr/lib/dpdk/pmds-23.0/*.so
 		vmove usr/lib/pkgconfig
 		vmove usr/share/dpdk/examples
 	}

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

* Re: [PR PATCH] [Updated] dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
  2022-12-05 15:00 ` [PR PATCH] [Updated] " sgn
@ 2022-12-05 15:11 ` sgn
  2022-12-05 15:31 ` sgn
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2022-12-05 15:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 6695 bytes --]

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?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 21:35:38 +0700
Subject: [PATCH 1/3] 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 <knock@myopendoor.de>"
 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

From ee4eeba51221f8f63a6966e5e778fd35b1f45eaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:00:18 +0700
Subject: [PATCH 2/3] fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 13337e72b2aa..bcd9643e17a4 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -54,7 +54,7 @@ dpdk-devel_package() {
 		vmove usr/include
 		vmove usr/lib/*.so
 		vmove usr/lib/*.a
-		vmove usr/lib/dpdk/pmds-${version}/*.so
+		vmove usr/lib/dpdk/pmds-23.0/*.so
 		vmove usr/lib/pkgconfig
 		vmove usr/share/dpdk/examples
 	}

From 5da89dc9b0b73c4fcf18efc14b644e36502c67d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:09:49 +0700
Subject: [PATCH 3/3] fixup! fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/template | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index bcd9643e17a4..dc76bebd6585 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -67,16 +67,11 @@ dpdk-dkms_package() {
 	pkg_install() {
 		vmkdir usr/src/dpdk-igb-uio-${version}
 		vmkdir usr/src/dpdk-rte-kni-${version}
-		vcopy "kernel/linux/igb_uio/*" usr/src/dpdk-igb-uio-${version}
 		vcopy "kernel/linux/kni/*" usr/src/dpdk-rte-kni-${version}
-		vcopy ${FILESDIR}/dkms_igb_uio.conf usr/src/dpdk-igb-uio-${version}/dkms.conf
 		vcopy ${FILESDIR}/dkms_rte_kni.conf usr/src/dpdk-rte-kni-${version}/dkms.conf
-		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-igb-uio-${version}/dkms.conf
 		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-rte-kni-${version}/dkms.conf
 		# load modules at boot time
-		echo igb_uio > ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		echo rte_kni > ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
-		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
 		vmove usr/lib/modules-load.d
 	}

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

* Re: [PR PATCH] [Updated] dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
  2022-12-05 15:00 ` [PR PATCH] [Updated] " sgn
  2022-12-05 15:11 ` sgn
@ 2022-12-05 15:31 ` sgn
  2022-12-05 16:03 ` sgn
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2022-12-05 15:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 12374 bytes --]

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?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 21:35:38 +0700
Subject: [PATCH 1/4] 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 <knock@myopendoor.de>"
 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

From ee4eeba51221f8f63a6966e5e778fd35b1f45eaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:00:18 +0700
Subject: [PATCH 2/4] fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 13337e72b2aa..bcd9643e17a4 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -54,7 +54,7 @@ dpdk-devel_package() {
 		vmove usr/include
 		vmove usr/lib/*.so
 		vmove usr/lib/*.a
-		vmove usr/lib/dpdk/pmds-${version}/*.so
+		vmove usr/lib/dpdk/pmds-23.0/*.so
 		vmove usr/lib/pkgconfig
 		vmove usr/share/dpdk/examples
 	}

From 5da89dc9b0b73c4fcf18efc14b644e36502c67d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:09:49 +0700
Subject: [PATCH 3/4] fixup! fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/template | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index bcd9643e17a4..dc76bebd6585 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -67,16 +67,11 @@ dpdk-dkms_package() {
 	pkg_install() {
 		vmkdir usr/src/dpdk-igb-uio-${version}
 		vmkdir usr/src/dpdk-rte-kni-${version}
-		vcopy "kernel/linux/igb_uio/*" usr/src/dpdk-igb-uio-${version}
 		vcopy "kernel/linux/kni/*" usr/src/dpdk-rte-kni-${version}
-		vcopy ${FILESDIR}/dkms_igb_uio.conf usr/src/dpdk-igb-uio-${version}/dkms.conf
 		vcopy ${FILESDIR}/dkms_rte_kni.conf usr/src/dpdk-rte-kni-${version}/dkms.conf
-		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-igb-uio-${version}/dkms.conf
 		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-rte-kni-${version}/dkms.conf
 		# load modules at boot time
-		echo igb_uio > ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		echo rte_kni > ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
-		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
 		vmove usr/lib/modules-load.d
 	}

From 23c79d8df94afb854a25948f9428c72626d47b8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 22:31:27 +0700
Subject: [PATCH 4/4] fixup! fixup! fixup! dpdk: update to 22.11.

---
 common/shlibs | 134 --------------------------------------------------
 1 file changed, 134 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index 965eef4df56f..4a42d68fbf67 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3724,140 +3724,6 @@ libicns.so.1 libicns-0.8.1_1
 librabbitmq.so.4 rabbitmq-c-0.10.0_2
 libuInputPlus.so.0 libuInputPlus-0.1.3_1
 libevdevPlus.so.0 libevdevPlus-0.1.0_1
-librte_lpm.so.2 dpdk-19.08_5
-librte_sched.so.3 dpdk-19.08_5
-librte_eal.so.11 dpdk-19.08_5
-librte_pci.so.1 dpdk-19.08_5
-librte_gro.so.1 dpdk-19.08_5
-librte_jobstats.so.1 dpdk-19.08_5
-librte_bpf.so.1 dpdk-19.08_5
-librte_ip_frag.so.1 dpdk-19.08_5
-librte_port.so.3 dpdk-19.08_5
-librte_latencystats.so.1 dpdk-19.08_5
-librte_pipeline.so.3 dpdk-19.08_5
-librte_distributor.so.1 dpdk-19.08_5
-librte_pmd_vmxnet3.so.1 dpdk-19.08_5
-librte_pmd_dpaa_sec.so.1 dpdk-19.08_5
-librte_common_octeontx.so.1 dpdk-19.08_5
-librte_pmd_iavf.so.1 dpdk-19.08_5
-librte_pmd_octeontx_event.so.1 dpdk-19.08_5
-librte_pmd_ring.so.2 dpdk-19.08_5
-librte_rawdev_skeleton.so.1 dpdk-19.08_5
-librte_pmd_qat.so.1 dpdk-19.08_5
-librte_pmd_hinic.so.1 dpdk-19.08_5
-librte_bus_vmbus.so.2 dpdk-19.08_5
-librte_pmd_null.so.2 dpdk-19.08_5
-librte_pmd_bbdev_null.so.1 dpdk-19.08_5
-librte_common_dpaax.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_event.so.2 dpdk-19.08_5
-librte_pmd_bnxt.so.2 dpdk-19.08_5
-librte_bus_ifpga.so.2 dpdk-19.08_5
-librte_pmd_pcap.so.1 dpdk-19.08_5
-librte_pmd_kni.so.1 dpdk-19.08_5
-librte_pmd_enetc.so.1 dpdk-19.08_5
-librte_pmd_atlantic.so.1 dpdk-19.08_5
-librte_mempool_stack.so.1 dpdk-19.08_5
-librte_pmd_opdl_event.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_cmdif.so.2 dpdk-19.08_5
-librte_pmd_avp.so.1 dpdk-19.08_5
-librte_pmd_cxgbe.so.1 dpdk-19.08_5
-librte_pmd_crypto_scheduler.so.1 dpdk-19.08_5
-librte_pmd_openssl.so.1 dpdk-19.08_5
-librte_pmd_octeontx2_event.so.1 dpdk-19.08_5
-librte_pmd_sfc.so.1 dpdk-19.08_5
-librte_pmd_i40e.so.2 dpdk-19.08_5
-librte_pmd_e1000.so.1 dpdk-19.08_5
-librte_rawdev_octeontx2_dma.so.1 dpdk-19.08_5
-librte_rawdev_ioat.so.1 dpdk-19.08_5
-librte_pmd_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_sw_event.so.1 dpdk-19.08_5
-librte_mempool_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_bbdev_fpga_lte_fec.so.1 dpdk-19.08_5
-librte_rawdev_ntb.so.1 dpdk-19.08_5
-librte_pmd_memif.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_sec.so.2 dpdk-19.08_5
-librte_pmd_failsafe.so.1 dpdk-19.08_5
-librte_pmd_thunderx.so.1 dpdk-19.08_5
-librte_pmd_octeontx.so.1 dpdk-19.08_5
-librte_pmd_dpaa.so.1 dpdk-19.08_5
-librte_pmd_caam_jr.so.1 dpdk-19.08_5
-librte_pmd_virtio.so.1 dpdk-19.08_5
-librte_pmd_octeontx_compress.so.1 dpdk-19.08_5
-librte_pmd_zlib.so.1 dpdk-19.08_5
-librte_bus_pci.so.2 dpdk-19.08_5
-librte_pmd_bond.so.2 dpdk-19.08_5
-librte_pmd_ice.so.1 dpdk-19.08_5
-librte_pmd_skeleton_event.so.1 dpdk-19.08_5
-librte_mempool_ring.so.1 dpdk-19.08_5
-librte_pmd_octeontx2.so.1 dpdk-19.08_5
-librte_mempool_octeontx.so.1 dpdk-19.08_5
-librte_pmd_ark.so.1 dpdk-19.08_5
-librte_pmd_null_crypto.so.1 dpdk-19.08_5
-librte_pmd_ena.so.1 dpdk-19.08_5
-librte_pmd_axgbe.so.1 dpdk-19.08_5
-librte_common_cpt.so.1 dpdk-19.08_5
-librte_pmd_af_packet.so.1 dpdk-19.08_5
-librte_pmd_vhost.so.2 dpdk-19.08_5
-librte_pmd_softnic.so.1 dpdk-19.08_5
-librte_pmd_nfp.so.1 dpdk-19.08_5
-librte_bus_fslmc.so.2 dpdk-19.08_5
-librte_bus_dpaa.so.2 dpdk-19.08_5
-librte_pmd_fm10k.so.1 dpdk-19.08_5
-librte_pmd_bbdev_turbo_sw.so.1 dpdk-19.08_5
-librte_mempool_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_ipn3ke.so.1 dpdk-19.08_5
-librte_pmd_vdev_netvsc.so.1 dpdk-19.08_5
-librte_mempool_dpaa.so.1 dpdk-19.08_5
-librte_pmd_bnx2x.so.1 dpdk-19.08_5
-librte_pmd_enic.so.1 dpdk-19.08_5
-librte_pmd_ixgbe.so.2 dpdk-19.08_5
-librte_common_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_liquidio.so.1 dpdk-19.08_5
-librte_pmd_netvsc.so.2 dpdk-19.08_5
-librte_mempool_bucket.so.1 dpdk-19.08_5
-librte_pmd_virtio_crypto.so.1 dpdk-19.08_5
-librte_pmd_ccp.so.1 dpdk-19.08_5
-librte_bus_vdev.so.2 dpdk-19.08_5
-librte_pmd_tap.so.1 dpdk-19.08_5
-librte_pmd_octeontx_crypto.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_qdma.so.2 dpdk-19.08_5
-librte_pmd_dsw_event.so.1 dpdk-19.08_5
-librte_pmd_dpaa_event.so.1 dpdk-19.08_5
-librte_pmd_ifc.so.1 dpdk-19.08_5
-librte_stack.so.1 dpdk-19.08_5
-librte_kvargs.so.1 dpdk-19.08_5
-librte_security.so.2 dpdk-19.08_5
-librte_bitratestats.so.2 dpdk-19.08_5
-librte_rcu.so.1 dpdk-19.08_5
-librte_gso.so.1 dpdk-19.08_5
-librte_efd.so.1 dpdk-19.08_5
-librte_cmdline.so.2 dpdk-19.08_5
-librte_telemetry.so.1 dpdk-19.08_5
-librte_pdump.so.3 dpdk-19.08_5
-librte_eventdev.so.7 dpdk-19.08_5
-librte_vhost.so.4 dpdk-19.08_5
-librte_net.so.1 dpdk-19.08_5
-librte_meter.so.3 dpdk-19.08_5
-librte_acl.so.2 dpdk-19.08_5
-librte_mempool.so.5 dpdk-19.08_5
-librte_table.so.3 dpdk-19.08_5
-librte_power.so.1 dpdk-19.08_5
-librte_reorder.so.1 dpdk-19.08_5
-librte_ring.so.2 dpdk-19.08_5
-librte_ethdev.so.12 dpdk-19.08_5
-librte_bbdev.so.1 dpdk-19.08_5
-librte_ipsec.so.1 dpdk-19.08_5
-librte_timer.so.1 dpdk-19.08_5
-librte_cfgfile.so.2 dpdk-19.08_5
-librte_member.so.1 dpdk-19.08_5
-librte_compressdev.so.1 dpdk-19.08_5
-librte_mbuf.so.5 dpdk-19.08_5
-librte_hash.so.2 dpdk-19.08_5
-librte_flow_classify.so.1 dpdk-19.08_5
-librte_metrics.so.1 dpdk-19.08_5
-librte_cryptodev.so.8 dpdk-19.08_5
-librte_rawdev.so.1 dpdk-19.08_5
-librte_kni.so.2 dpdk-19.08_5
 libredwg.so.0 libredwg-0.9_1
 libgcj-tools.so.17 libgcj-6.5.0_1
 libgcj_bc.so.1 libgcj-6.5.0_1

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

* Re: [PR PATCH] [Updated] dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
                   ` (2 preceding siblings ...)
  2022-12-05 15:31 ` sgn
@ 2022-12-05 16:03 ` sgn
  2022-12-05 16:04 ` sgn
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2022-12-05 16:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 11053 bytes --]

From fb7fb9aefcdc9e0b76aba5f4b81f9dcc4cdb764b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 21:35:38 +0700
Subject: [PATCH] dpdk: update to 22.11.

---
 common/shlibs                          | 134 -------------------------
 srcpkgs/dpdk/patches/arm.patch         |  17 ----
 srcpkgs/dpdk/patches/cross-build.patch |  13 +++
 srcpkgs/dpdk/patches/sphinx-4.0.patch  |  10 --
 srcpkgs/dpdk/template                  |  25 ++---
 5 files changed, 23 insertions(+), 176 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/common/shlibs b/common/shlibs
index 965eef4df56f..4a42d68fbf67 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3724,140 +3724,6 @@ libicns.so.1 libicns-0.8.1_1
 librabbitmq.so.4 rabbitmq-c-0.10.0_2
 libuInputPlus.so.0 libuInputPlus-0.1.3_1
 libevdevPlus.so.0 libevdevPlus-0.1.0_1
-librte_lpm.so.2 dpdk-19.08_5
-librte_sched.so.3 dpdk-19.08_5
-librte_eal.so.11 dpdk-19.08_5
-librte_pci.so.1 dpdk-19.08_5
-librte_gro.so.1 dpdk-19.08_5
-librte_jobstats.so.1 dpdk-19.08_5
-librte_bpf.so.1 dpdk-19.08_5
-librte_ip_frag.so.1 dpdk-19.08_5
-librte_port.so.3 dpdk-19.08_5
-librte_latencystats.so.1 dpdk-19.08_5
-librte_pipeline.so.3 dpdk-19.08_5
-librte_distributor.so.1 dpdk-19.08_5
-librte_pmd_vmxnet3.so.1 dpdk-19.08_5
-librte_pmd_dpaa_sec.so.1 dpdk-19.08_5
-librte_common_octeontx.so.1 dpdk-19.08_5
-librte_pmd_iavf.so.1 dpdk-19.08_5
-librte_pmd_octeontx_event.so.1 dpdk-19.08_5
-librte_pmd_ring.so.2 dpdk-19.08_5
-librte_rawdev_skeleton.so.1 dpdk-19.08_5
-librte_pmd_qat.so.1 dpdk-19.08_5
-librte_pmd_hinic.so.1 dpdk-19.08_5
-librte_bus_vmbus.so.2 dpdk-19.08_5
-librte_pmd_null.so.2 dpdk-19.08_5
-librte_pmd_bbdev_null.so.1 dpdk-19.08_5
-librte_common_dpaax.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_event.so.2 dpdk-19.08_5
-librte_pmd_bnxt.so.2 dpdk-19.08_5
-librte_bus_ifpga.so.2 dpdk-19.08_5
-librte_pmd_pcap.so.1 dpdk-19.08_5
-librte_pmd_kni.so.1 dpdk-19.08_5
-librte_pmd_enetc.so.1 dpdk-19.08_5
-librte_pmd_atlantic.so.1 dpdk-19.08_5
-librte_mempool_stack.so.1 dpdk-19.08_5
-librte_pmd_opdl_event.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_cmdif.so.2 dpdk-19.08_5
-librte_pmd_avp.so.1 dpdk-19.08_5
-librte_pmd_cxgbe.so.1 dpdk-19.08_5
-librte_pmd_crypto_scheduler.so.1 dpdk-19.08_5
-librte_pmd_openssl.so.1 dpdk-19.08_5
-librte_pmd_octeontx2_event.so.1 dpdk-19.08_5
-librte_pmd_sfc.so.1 dpdk-19.08_5
-librte_pmd_i40e.so.2 dpdk-19.08_5
-librte_pmd_e1000.so.1 dpdk-19.08_5
-librte_rawdev_octeontx2_dma.so.1 dpdk-19.08_5
-librte_rawdev_ioat.so.1 dpdk-19.08_5
-librte_pmd_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_sw_event.so.1 dpdk-19.08_5
-librte_mempool_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_bbdev_fpga_lte_fec.so.1 dpdk-19.08_5
-librte_rawdev_ntb.so.1 dpdk-19.08_5
-librte_pmd_memif.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_sec.so.2 dpdk-19.08_5
-librte_pmd_failsafe.so.1 dpdk-19.08_5
-librte_pmd_thunderx.so.1 dpdk-19.08_5
-librte_pmd_octeontx.so.1 dpdk-19.08_5
-librte_pmd_dpaa.so.1 dpdk-19.08_5
-librte_pmd_caam_jr.so.1 dpdk-19.08_5
-librte_pmd_virtio.so.1 dpdk-19.08_5
-librte_pmd_octeontx_compress.so.1 dpdk-19.08_5
-librte_pmd_zlib.so.1 dpdk-19.08_5
-librte_bus_pci.so.2 dpdk-19.08_5
-librte_pmd_bond.so.2 dpdk-19.08_5
-librte_pmd_ice.so.1 dpdk-19.08_5
-librte_pmd_skeleton_event.so.1 dpdk-19.08_5
-librte_mempool_ring.so.1 dpdk-19.08_5
-librte_pmd_octeontx2.so.1 dpdk-19.08_5
-librte_mempool_octeontx.so.1 dpdk-19.08_5
-librte_pmd_ark.so.1 dpdk-19.08_5
-librte_pmd_null_crypto.so.1 dpdk-19.08_5
-librte_pmd_ena.so.1 dpdk-19.08_5
-librte_pmd_axgbe.so.1 dpdk-19.08_5
-librte_common_cpt.so.1 dpdk-19.08_5
-librte_pmd_af_packet.so.1 dpdk-19.08_5
-librte_pmd_vhost.so.2 dpdk-19.08_5
-librte_pmd_softnic.so.1 dpdk-19.08_5
-librte_pmd_nfp.so.1 dpdk-19.08_5
-librte_bus_fslmc.so.2 dpdk-19.08_5
-librte_bus_dpaa.so.2 dpdk-19.08_5
-librte_pmd_fm10k.so.1 dpdk-19.08_5
-librte_pmd_bbdev_turbo_sw.so.1 dpdk-19.08_5
-librte_mempool_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_ipn3ke.so.1 dpdk-19.08_5
-librte_pmd_vdev_netvsc.so.1 dpdk-19.08_5
-librte_mempool_dpaa.so.1 dpdk-19.08_5
-librte_pmd_bnx2x.so.1 dpdk-19.08_5
-librte_pmd_enic.so.1 dpdk-19.08_5
-librte_pmd_ixgbe.so.2 dpdk-19.08_5
-librte_common_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_liquidio.so.1 dpdk-19.08_5
-librte_pmd_netvsc.so.2 dpdk-19.08_5
-librte_mempool_bucket.so.1 dpdk-19.08_5
-librte_pmd_virtio_crypto.so.1 dpdk-19.08_5
-librte_pmd_ccp.so.1 dpdk-19.08_5
-librte_bus_vdev.so.2 dpdk-19.08_5
-librte_pmd_tap.so.1 dpdk-19.08_5
-librte_pmd_octeontx_crypto.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_qdma.so.2 dpdk-19.08_5
-librte_pmd_dsw_event.so.1 dpdk-19.08_5
-librte_pmd_dpaa_event.so.1 dpdk-19.08_5
-librte_pmd_ifc.so.1 dpdk-19.08_5
-librte_stack.so.1 dpdk-19.08_5
-librte_kvargs.so.1 dpdk-19.08_5
-librte_security.so.2 dpdk-19.08_5
-librte_bitratestats.so.2 dpdk-19.08_5
-librte_rcu.so.1 dpdk-19.08_5
-librte_gso.so.1 dpdk-19.08_5
-librte_efd.so.1 dpdk-19.08_5
-librte_cmdline.so.2 dpdk-19.08_5
-librte_telemetry.so.1 dpdk-19.08_5
-librte_pdump.so.3 dpdk-19.08_5
-librte_eventdev.so.7 dpdk-19.08_5
-librte_vhost.so.4 dpdk-19.08_5
-librte_net.so.1 dpdk-19.08_5
-librte_meter.so.3 dpdk-19.08_5
-librte_acl.so.2 dpdk-19.08_5
-librte_mempool.so.5 dpdk-19.08_5
-librte_table.so.3 dpdk-19.08_5
-librte_power.so.1 dpdk-19.08_5
-librte_reorder.so.1 dpdk-19.08_5
-librte_ring.so.2 dpdk-19.08_5
-librte_ethdev.so.12 dpdk-19.08_5
-librte_bbdev.so.1 dpdk-19.08_5
-librte_ipsec.so.1 dpdk-19.08_5
-librte_timer.so.1 dpdk-19.08_5
-librte_cfgfile.so.2 dpdk-19.08_5
-librte_member.so.1 dpdk-19.08_5
-librte_compressdev.so.1 dpdk-19.08_5
-librte_mbuf.so.5 dpdk-19.08_5
-librte_hash.so.2 dpdk-19.08_5
-librte_flow_classify.so.1 dpdk-19.08_5
-librte_metrics.so.1 dpdk-19.08_5
-librte_cryptodev.so.8 dpdk-19.08_5
-librte_rawdev.so.1 dpdk-19.08_5
-librte_kni.so.2 dpdk-19.08_5
 libredwg.so.0 libredwg-0.9_1
 libgcj-tools.so.17 libgcj-6.5.0_1
 libgcj_bc.so.1 libgcj-6.5.0_1
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..dc76bebd6585 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 <knock@myopendoor.de>"
 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
@@ -54,7 +54,7 @@ dpdk-devel_package() {
 		vmove usr/include
 		vmove usr/lib/*.so
 		vmove usr/lib/*.a
-		vmove usr/lib/dpdk/pmds-${version}/*.so
+		vmove usr/lib/dpdk/pmds-23.0/*.so
 		vmove usr/lib/pkgconfig
 		vmove usr/share/dpdk/examples
 	}
@@ -67,16 +67,11 @@ dpdk-dkms_package() {
 	pkg_install() {
 		vmkdir usr/src/dpdk-igb-uio-${version}
 		vmkdir usr/src/dpdk-rte-kni-${version}
-		vcopy "kernel/linux/igb_uio/*" usr/src/dpdk-igb-uio-${version}
 		vcopy "kernel/linux/kni/*" usr/src/dpdk-rte-kni-${version}
-		vcopy ${FILESDIR}/dkms_igb_uio.conf usr/src/dpdk-igb-uio-${version}/dkms.conf
 		vcopy ${FILESDIR}/dkms_rte_kni.conf usr/src/dpdk-rte-kni-${version}/dkms.conf
-		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-igb-uio-${version}/dkms.conf
 		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-rte-kni-${version}/dkms.conf
 		# load modules at boot time
-		echo igb_uio > ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		echo rte_kni > ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
-		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
 		vmove usr/lib/modules-load.d
 	}

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

* Re: [PR PATCH] [Updated] dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
                   ` (3 preceding siblings ...)
  2022-12-05 16:03 ` sgn
@ 2022-12-05 16:04 ` sgn
  2023-03-06  2:04 ` github-actions
  2023-03-21  1:52 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2022-12-05 16:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages dpdk
https://github.com/void-linux/void-packages/pull/40918

dpdk: update to 22.11.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/40918.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dpdk-40918.patch --]
[-- Type: text/x-diff, Size: 13734 bytes --]

From fb7fb9aefcdc9e0b76aba5f4b81f9dcc4cdb764b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 21:35:38 +0700
Subject: [PATCH 1/2] dpdk: update to 22.11.

---
 common/shlibs                          | 134 -------------------------
 srcpkgs/dpdk/patches/arm.patch         |  17 ----
 srcpkgs/dpdk/patches/cross-build.patch |  13 +++
 srcpkgs/dpdk/patches/sphinx-4.0.patch  |  10 --
 srcpkgs/dpdk/template                  |  25 ++---
 5 files changed, 23 insertions(+), 176 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/common/shlibs b/common/shlibs
index 965eef4df56f..4a42d68fbf67 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3724,140 +3724,6 @@ libicns.so.1 libicns-0.8.1_1
 librabbitmq.so.4 rabbitmq-c-0.10.0_2
 libuInputPlus.so.0 libuInputPlus-0.1.3_1
 libevdevPlus.so.0 libevdevPlus-0.1.0_1
-librte_lpm.so.2 dpdk-19.08_5
-librte_sched.so.3 dpdk-19.08_5
-librte_eal.so.11 dpdk-19.08_5
-librte_pci.so.1 dpdk-19.08_5
-librte_gro.so.1 dpdk-19.08_5
-librte_jobstats.so.1 dpdk-19.08_5
-librte_bpf.so.1 dpdk-19.08_5
-librte_ip_frag.so.1 dpdk-19.08_5
-librte_port.so.3 dpdk-19.08_5
-librte_latencystats.so.1 dpdk-19.08_5
-librte_pipeline.so.3 dpdk-19.08_5
-librte_distributor.so.1 dpdk-19.08_5
-librte_pmd_vmxnet3.so.1 dpdk-19.08_5
-librte_pmd_dpaa_sec.so.1 dpdk-19.08_5
-librte_common_octeontx.so.1 dpdk-19.08_5
-librte_pmd_iavf.so.1 dpdk-19.08_5
-librte_pmd_octeontx_event.so.1 dpdk-19.08_5
-librte_pmd_ring.so.2 dpdk-19.08_5
-librte_rawdev_skeleton.so.1 dpdk-19.08_5
-librte_pmd_qat.so.1 dpdk-19.08_5
-librte_pmd_hinic.so.1 dpdk-19.08_5
-librte_bus_vmbus.so.2 dpdk-19.08_5
-librte_pmd_null.so.2 dpdk-19.08_5
-librte_pmd_bbdev_null.so.1 dpdk-19.08_5
-librte_common_dpaax.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_event.so.2 dpdk-19.08_5
-librte_pmd_bnxt.so.2 dpdk-19.08_5
-librte_bus_ifpga.so.2 dpdk-19.08_5
-librte_pmd_pcap.so.1 dpdk-19.08_5
-librte_pmd_kni.so.1 dpdk-19.08_5
-librte_pmd_enetc.so.1 dpdk-19.08_5
-librte_pmd_atlantic.so.1 dpdk-19.08_5
-librte_mempool_stack.so.1 dpdk-19.08_5
-librte_pmd_opdl_event.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_cmdif.so.2 dpdk-19.08_5
-librte_pmd_avp.so.1 dpdk-19.08_5
-librte_pmd_cxgbe.so.1 dpdk-19.08_5
-librte_pmd_crypto_scheduler.so.1 dpdk-19.08_5
-librte_pmd_openssl.so.1 dpdk-19.08_5
-librte_pmd_octeontx2_event.so.1 dpdk-19.08_5
-librte_pmd_sfc.so.1 dpdk-19.08_5
-librte_pmd_i40e.so.2 dpdk-19.08_5
-librte_pmd_e1000.so.1 dpdk-19.08_5
-librte_rawdev_octeontx2_dma.so.1 dpdk-19.08_5
-librte_rawdev_ioat.so.1 dpdk-19.08_5
-librte_pmd_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_sw_event.so.1 dpdk-19.08_5
-librte_mempool_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_bbdev_fpga_lte_fec.so.1 dpdk-19.08_5
-librte_rawdev_ntb.so.1 dpdk-19.08_5
-librte_pmd_memif.so.1 dpdk-19.08_5
-librte_pmd_dpaa2_sec.so.2 dpdk-19.08_5
-librte_pmd_failsafe.so.1 dpdk-19.08_5
-librte_pmd_thunderx.so.1 dpdk-19.08_5
-librte_pmd_octeontx.so.1 dpdk-19.08_5
-librte_pmd_dpaa.so.1 dpdk-19.08_5
-librte_pmd_caam_jr.so.1 dpdk-19.08_5
-librte_pmd_virtio.so.1 dpdk-19.08_5
-librte_pmd_octeontx_compress.so.1 dpdk-19.08_5
-librte_pmd_zlib.so.1 dpdk-19.08_5
-librte_bus_pci.so.2 dpdk-19.08_5
-librte_pmd_bond.so.2 dpdk-19.08_5
-librte_pmd_ice.so.1 dpdk-19.08_5
-librte_pmd_skeleton_event.so.1 dpdk-19.08_5
-librte_mempool_ring.so.1 dpdk-19.08_5
-librte_pmd_octeontx2.so.1 dpdk-19.08_5
-librte_mempool_octeontx.so.1 dpdk-19.08_5
-librte_pmd_ark.so.1 dpdk-19.08_5
-librte_pmd_null_crypto.so.1 dpdk-19.08_5
-librte_pmd_ena.so.1 dpdk-19.08_5
-librte_pmd_axgbe.so.1 dpdk-19.08_5
-librte_common_cpt.so.1 dpdk-19.08_5
-librte_pmd_af_packet.so.1 dpdk-19.08_5
-librte_pmd_vhost.so.2 dpdk-19.08_5
-librte_pmd_softnic.so.1 dpdk-19.08_5
-librte_pmd_nfp.so.1 dpdk-19.08_5
-librte_bus_fslmc.so.2 dpdk-19.08_5
-librte_bus_dpaa.so.2 dpdk-19.08_5
-librte_pmd_fm10k.so.1 dpdk-19.08_5
-librte_pmd_bbdev_turbo_sw.so.1 dpdk-19.08_5
-librte_mempool_dpaa2.so.2 dpdk-19.08_5
-librte_pmd_ipn3ke.so.1 dpdk-19.08_5
-librte_pmd_vdev_netvsc.so.1 dpdk-19.08_5
-librte_mempool_dpaa.so.1 dpdk-19.08_5
-librte_pmd_bnx2x.so.1 dpdk-19.08_5
-librte_pmd_enic.so.1 dpdk-19.08_5
-librte_pmd_ixgbe.so.2 dpdk-19.08_5
-librte_common_octeontx2.so.1 dpdk-19.08_5
-librte_pmd_liquidio.so.1 dpdk-19.08_5
-librte_pmd_netvsc.so.2 dpdk-19.08_5
-librte_mempool_bucket.so.1 dpdk-19.08_5
-librte_pmd_virtio_crypto.so.1 dpdk-19.08_5
-librte_pmd_ccp.so.1 dpdk-19.08_5
-librte_bus_vdev.so.2 dpdk-19.08_5
-librte_pmd_tap.so.1 dpdk-19.08_5
-librte_pmd_octeontx_crypto.so.1 dpdk-19.08_5
-librte_rawdev_dpaa2_qdma.so.2 dpdk-19.08_5
-librte_pmd_dsw_event.so.1 dpdk-19.08_5
-librte_pmd_dpaa_event.so.1 dpdk-19.08_5
-librte_pmd_ifc.so.1 dpdk-19.08_5
-librte_stack.so.1 dpdk-19.08_5
-librte_kvargs.so.1 dpdk-19.08_5
-librte_security.so.2 dpdk-19.08_5
-librte_bitratestats.so.2 dpdk-19.08_5
-librte_rcu.so.1 dpdk-19.08_5
-librte_gso.so.1 dpdk-19.08_5
-librte_efd.so.1 dpdk-19.08_5
-librte_cmdline.so.2 dpdk-19.08_5
-librte_telemetry.so.1 dpdk-19.08_5
-librte_pdump.so.3 dpdk-19.08_5
-librte_eventdev.so.7 dpdk-19.08_5
-librte_vhost.so.4 dpdk-19.08_5
-librte_net.so.1 dpdk-19.08_5
-librte_meter.so.3 dpdk-19.08_5
-librte_acl.so.2 dpdk-19.08_5
-librte_mempool.so.5 dpdk-19.08_5
-librte_table.so.3 dpdk-19.08_5
-librte_power.so.1 dpdk-19.08_5
-librte_reorder.so.1 dpdk-19.08_5
-librte_ring.so.2 dpdk-19.08_5
-librte_ethdev.so.12 dpdk-19.08_5
-librte_bbdev.so.1 dpdk-19.08_5
-librte_ipsec.so.1 dpdk-19.08_5
-librte_timer.so.1 dpdk-19.08_5
-librte_cfgfile.so.2 dpdk-19.08_5
-librte_member.so.1 dpdk-19.08_5
-librte_compressdev.so.1 dpdk-19.08_5
-librte_mbuf.so.5 dpdk-19.08_5
-librte_hash.so.2 dpdk-19.08_5
-librte_flow_classify.so.1 dpdk-19.08_5
-librte_metrics.so.1 dpdk-19.08_5
-librte_cryptodev.so.8 dpdk-19.08_5
-librte_rawdev.so.1 dpdk-19.08_5
-librte_kni.so.2 dpdk-19.08_5
 libredwg.so.0 libredwg-0.9_1
 libgcj-tools.so.17 libgcj-6.5.0_1
 libgcj_bc.so.1 libgcj-6.5.0_1
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..dc76bebd6585 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 <knock@myopendoor.de>"
 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
@@ -54,7 +54,7 @@ dpdk-devel_package() {
 		vmove usr/include
 		vmove usr/lib/*.so
 		vmove usr/lib/*.a
-		vmove usr/lib/dpdk/pmds-${version}/*.so
+		vmove usr/lib/dpdk/pmds-23.0/*.so
 		vmove usr/lib/pkgconfig
 		vmove usr/share/dpdk/examples
 	}
@@ -67,16 +67,11 @@ dpdk-dkms_package() {
 	pkg_install() {
 		vmkdir usr/src/dpdk-igb-uio-${version}
 		vmkdir usr/src/dpdk-rte-kni-${version}
-		vcopy "kernel/linux/igb_uio/*" usr/src/dpdk-igb-uio-${version}
 		vcopy "kernel/linux/kni/*" usr/src/dpdk-rte-kni-${version}
-		vcopy ${FILESDIR}/dkms_igb_uio.conf usr/src/dpdk-igb-uio-${version}/dkms.conf
 		vcopy ${FILESDIR}/dkms_rte_kni.conf usr/src/dpdk-rte-kni-${version}/dkms.conf
-		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-igb-uio-${version}/dkms.conf
 		sed -i -e "s/@VERSION@/${version}/" ${PKGDESTDIR}/usr/src/dpdk-rte-kni-${version}/dkms.conf
 		# load modules at boot time
-		echo igb_uio > ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		echo rte_kni > ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
-		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/igb_uio.conf
 		chmod 644 ${DESTDIR}/usr/lib/modules-load.d/rte_kni.conf
 		vmove usr/lib/modules-load.d
 	}

From 72671cc5c1a49e6e36709783683507bfea493e53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Mon, 5 Dec 2022 23:04:27 +0700
Subject: [PATCH 2/2] fixup! dpdk: update to 22.11.

---
 srcpkgs/dpdk/patches/cross-build.patch | 30 ++++++++++++++++++++++++++
 srcpkgs/dpdk/template                  |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/dpdk/patches/cross-build.patch b/srcpkgs/dpdk/patches/cross-build.patch
index 167a9f35bbe0..f08b2f5e376a 100644
--- a/srcpkgs/dpdk/patches/cross-build.patch
+++ b/srcpkgs/dpdk/patches/cross-build.patch
@@ -11,3 +11,33 @@ Index: dpdk-22.11/config/meson.build
      cpu_instruction_set = host_machine.cpu()
  else
      cpu_instruction_set = get_option('cpu_instruction_set')
+Index: dpdk-22.11/config/arm/meson.build
+===================================================================
+--- dpdk-22.11.orig/config/arm/meson.build
++++ dpdk-22.11/config/arm/meson.build
+@@ -501,7 +501,7 @@ soc_flags = []
+ if dpdk_conf.get('RTE_ARCH_32')
+     # 32-bit build
+     dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64)
+-    if meson.is_cross_build()
++    if false
+         update_flags = true
+         soc = meson.get_cross_property('platform', '')
+         if soc == ''
+@@ -523,14 +523,14 @@ else
+     dpdk_conf.set('RTE_ARCH', 'armv8')
+     update_flags = true
+     soc_config = {}
+-    if not meson.is_cross_build()
++    if true
+         # for backwards compatibility:
+         #   machine=native is the same behavior as soc=native
+         #   machine=generic/default is the same as soc=generic
+         # cpu_instruction_set holds the proper value - native, generic or cpu
+         # the old behavior only distinguished between generic and native build
+         if machine != 'auto'
+-            if cpu_instruction_set == 'generic'
++            if cpu_instruction_set != 'native'
+                 soc = 'generic'
+             else
+                 soc = 'native'
diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index dc76bebd6585..43b205896912 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -5,7 +5,8 @@ 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"
+configure_args="-Denable_kmods=false -Denable_docs=true -Db_lto=false
+ -Dplatform=generic"
 hostmakedepends="doxygen python3-Sphinx pkg-config elfutils python3-pyelftools"
 makedepends="libnuma-devel jansson-devel libpcap-devel
  zlib-devel openssl-devel libbsd-devel libelf libmnl"

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

* Re: dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
                   ` (4 preceding siblings ...)
  2022-12-05 16:04 ` sgn
@ 2023-03-06  2:04 ` github-actions
  2023-03-21  1:52 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2023-03-06  2:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/40918#issuecomment-1455316507

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

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

* Re: [PR PATCH] [Closed]: dpdk: update to 22.11.
  2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
                   ` (5 preceding siblings ...)
  2023-03-06  2:04 ` github-actions
@ 2023-03-21  1:52 ` github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2023-03-21  1:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

There's a closed pull request on the void-packages repository

dpdk: update to 22.11.
https://github.com/void-linux/void-packages/pull/40918

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

end of thread, other threads:[~2023-03-21  1:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 14:53 [PR PATCH] dpdk: update to 22.11 sgn
2022-12-05 15:00 ` [PR PATCH] [Updated] " sgn
2022-12-05 15:11 ` sgn
2022-12-05 15:31 ` sgn
2022-12-05 16:03 ` sgn
2022-12-05 16:04 ` sgn
2023-03-06  2:04 ` github-actions
2023-03-21  1:52 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).