diff --git a/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch b/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch new file mode 100644 index 00000000..c1cdb63b --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch @@ -0,0 +1,29 @@ +From c0985ef490736b661df11395c1fc5c00cde88ad5 Mon Sep 17 00:00:00 2001 +From: Li Zhou +Date: Thu, 16 Sep 2021 07:42:24 +0000 +Subject: [PATCH] rdma-core: add python3-dev to depends list for building error + +Add python3-dev to Build-Depends to solve below building error: +CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): + Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) + +Signed-off-by: Li Zhou +--- + debian/control | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/debian/control b/debian/control +index 40c5bcd..2011c5a 100644 +--- a/debian/control ++++ b/debian/control +@@ -7,6 +7,7 @@ Section: net + Priority: optional + Build-Depends: cmake (>= 2.8.11), + cython3 (>= 0.25) | python, ++ python3-dev, + debhelper (>= 9), + debhelper (>= 9.20160709) | dh-systemd, + dh-python, +-- +2.17.1 + diff --git a/userspace/mellanox/rdma-core/debian/deb_patches/series b/userspace/mellanox/rdma-core/debian/deb_patches/series new file mode 100644 index 00000000..e06a9a5b --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/deb_patches/series @@ -0,0 +1 @@ +0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch diff --git a/userspace/mellanox/rdma-core/debian/meta_data.yaml b/userspace/mellanox/rdma-core/debian/meta_data.yaml new file mode 100644 index 00000000..1d22b743 --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/meta_data.yaml @@ -0,0 +1,11 @@ +--- +debver: 52mlnx1 +debname: rdma-core +dl_path: + name: rdma-core-52mlnx1.tgz + url: "https://linux.mellanox.com/public/repo/mlnx_ofed/\ + 5.3-1.0.0.1/SRPMS/rdma-core-52mlnx1.tgz" + md5sum: 072058f44d6cbfc0ce2d9eae369b6fe6 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true