summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-26 18:12:43 -0700
committerKhem Raj <raj.khem@gmail.com>2022-03-26 18:15:11 -0700
commit31d9f6afcd32766b96cf9e0f6bf205cf876b91e9 (patch)
tree83b1de10a5278be7b654a3daf3f6178aa76702b9
parent95d0c57188bcc766ad61b558118b160a11c48de3 (diff)
downloadmeta-openembedded-31d9f6afcd32766b96cf9e0f6bf205cf876b91e9.tar.gz
pmdk: Fix build with newer ndctl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch69
-rw-r--r--meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb3
2 files changed, 71 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch b/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch
new file mode 100644
index 0000000000..0b03ffdea5
--- /dev/null
+++ b/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch
@@ -0,0 +1,69 @@
1From 932252c0ba54a51c8bcf58b747656e29cdebfa6a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Mar 2022 13:06:50 -0700
4Subject: [PATCH] use daxctl/libdaxctl.h instead of ndctl/libdaxctl.h
5
6Upstream-Status: Submitted [https://github.com/pmem/pmdk/pull/5413]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 src/libpmem2/badblocks_ndctl.c | 2 +-
10 src/libpmem2/region_namespace_ndctl.c | 2 +-
11 src/libpmem2/usc_ndctl.c | 2 +-
12 src/tools/daxio/daxio.c | 2 +-
13 4 files changed, 4 insertions(+), 4 deletions(-)
14
15diff --git a/src/libpmem2/badblocks_ndctl.c b/src/libpmem2/badblocks_ndctl.c
16index 9a5910bba..cc637f7f4 100644
17--- a/src/libpmem2/badblocks_ndctl.c
18+++ b/src/libpmem2/badblocks_ndctl.c
19@@ -16,7 +16,7 @@
20 #include <sys/sysmacros.h>
21 #include <fcntl.h>
22 #include <ndctl/libndctl.h>
23-#include <ndctl/libdaxctl.h>
24+#include <daxctl/libdaxctl.h>
25
26 #include "libpmem2.h"
27 #include "pmem2_utils.h"
28diff --git a/src/libpmem2/region_namespace_ndctl.c b/src/libpmem2/region_namespace_ndctl.c
29index 1383796a9..e31185984 100644
30--- a/src/libpmem2/region_namespace_ndctl.c
31+++ b/src/libpmem2/region_namespace_ndctl.c
32@@ -6,7 +6,7 @@
33 */
34
35 #include <ndctl/libndctl.h>
36-#include <ndctl/libdaxctl.h>
37+#include <daxctl/libdaxctl.h>
38 #include <sys/sysmacros.h>
39 #include <fcntl.h>
40
41diff --git a/src/libpmem2/usc_ndctl.c b/src/libpmem2/usc_ndctl.c
42index be63e879b..c58032a83 100644
43--- a/src/libpmem2/usc_ndctl.c
44+++ b/src/libpmem2/usc_ndctl.c
45@@ -5,7 +5,7 @@
46 * usc_ndctl.c -- pmem2 usc function for platforms using ndctl
47 */
48 #include <ndctl/libndctl.h>
49-#include <ndctl/libdaxctl.h>
50+#include <daxctl/libdaxctl.h>
51 #include <sys/types.h>
52 #include <sys/sysmacros.h>
53 #include <fcntl.h>
54diff --git a/src/tools/daxio/daxio.c b/src/tools/daxio/daxio.c
55index 66cd0b7ae..7f2c89d48 100644
56--- a/src/tools/daxio/daxio.c
57+++ b/src/tools/daxio/daxio.c
58@@ -21,7 +21,7 @@
59 #include <string.h>
60
61 #include <ndctl/libndctl.h>
62-#include <ndctl/libdaxctl.h>
63+#include <daxctl/libdaxctl.h>
64 #include <libpmem.h>
65
66 #include "util.h"
67--
682.35.1
69
diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb
index 4354c83371..33d04099c9 100644
--- a/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb
+++ b/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb
@@ -11,7 +11,8 @@ DEPENDS:append:libc-musl = " fts"
11 11
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13 13
14SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.11;protocol=https" 14SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.11;protocol=https \
15 file://0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch"
15SRCREV = "5b21904a257eff47f2e87fcbf2de46111f03ddd8" 16SRCREV = "5b21904a257eff47f2e87fcbf2de46111f03ddd8"
16 17
17inherit autotools-brokensep pkgconfig 18inherit autotools-brokensep pkgconfig