summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch87
-rw-r--r--meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb1
2 files changed, 0 insertions, 88 deletions
diff --git a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch b/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch
deleted file mode 100644
index 9c050b7813..0000000000
--- a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch
+++ /dev/null
@@ -1,87 +0,0 @@
1From 21654e3719e0a289e735918b234f7aae6766e3a1 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 18 Jul 2018 11:26:28 +0800
4Subject: [PATCH] fix configure and compile failures
5
61. Fix do_configure failure
7---------------------------
8|Checking header volume_key/libvolume_key.h existence and usability.
9../tmp/6tvtK.c:1:38: fatal error: volume_key/libvolume_key.h:
10No such file or directory
11| #include <volume_key/libvolume_key.h>
12---------------------------
13We explictly add volume_key and dmraid to DEPENDS, do not need
14configure to test.
15
162. Fix config.h not found
17Add it to configure.ac
18
193. Correct AC_DEFINE
20...
21autoheader: warning: missing template: LIBMOUNT_NEW_ERR_API
22autoheader: Use AC_DEFINE([LIBMOUNT_NEW_ERR_API], [], [Description])
23...
24
25Upstream-Status: Inappropriate [oe specific]
26
27Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
28
29Checking header dmraid/dmraid.h existence and usability.../tmp/
30ktVJ6.c:1:27: fatal error: dmraid/dmraid.h: No such file or directory
31| #include <dmraid/dmraid.h>
32
33fix this by add --disable-dmraid
34
35Signed-off-by: Changqing Li <changqing.li@windriver.com>
36---
37 configure.ac | 12 +++++++-----
38 1 file changed, 7 insertions(+), 5 deletions(-)
39
40diff --git a/configure.ac b/configure.ac
41index a37f337..a8cfe2f 100644
42--- a/configure.ac
43+++ b/configure.ac
44@@ -9,6 +9,8 @@ AC_DISABLE_STATIC
45 AM_INIT_AUTOMAKE([foreign -Wall -Werror -Wno-syntax -Wno-portability])
46 AC_CONFIG_MACRO_DIR([m4])
47
48+AC_CONFIG_HEADERS([config.h])
49+
50 AM_PATH_PYTHON
51
52 AM_PROG_AR
53@@ -194,10 +196,9 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19])
54 AS_IF([test "x$with_crypto" != "xno"],
55 [LIBBLOCKDEV_PKG_CHECK_MODULES([CRYPTSETUP], [libcryptsetup >= 1.6.7])
56 AS_IF([$PKG_CONFIG --atleast-version=2.0 libcryptsetup],
57- [AC_DEFINE([LIBCRYPTSETUP_2])], [])
58+ [AC_DEFINE([LIBCRYPTSETUP_2], [1], [new version of libcryptsetup])])
59 AS_IF([test "x$with_escrow" != "xno"],
60- [LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0])
61- LIBBLOCKDEV_CHECK_HEADER([volume_key/libvolume_key.h], [$GLIB_CFLAGS $NSS_CFLAGS], [libvolume_key.h not available])],
62+ [LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0])],
63 [])
64 ],
65 [])
66@@ -218,7 +219,8 @@ AS_IF([test "x$with_fs" != "xno"],
67 [LIBBLOCKDEV_PKG_CHECK_MODULES([MOUNT], [mount >= 2.23.0])
68 # new versions of libmount has some new functions we can use
69 AS_IF([$PKG_CONFIG --atleast-version=2.30.0 mount],
70- [AC_DEFINE([LIBMOUNT_NEW_ERR_API])], [])
71+ [AC_DEFINE([LIBMOUNT_NEW_ERR_API], [1], [new versions of libmount has some new functions we can use])],
72+ [])
73
74 LIBBLOCKDEV_PKG_CHECK_MODULES([BLKID], [blkid >= 2.23.0])
75 # older versions of libblkid don't support BLKID_SUBLKS_BADCSUM so let's just
76@@ -243,7 +245,7 @@ AS_IF([test "x$with_nvdimm" != "xno"],
77 LIBBLOCKDEV_PKG_CHECK_MODULES([NDCTL], [libndctl >= 58.4])
78 # new versions of libndctl new modes
79 AS_IF([$PKG_CONFIG --atleast-version=60 libndctl],
80- [AC_DEFINE([LIBNDCTL_NEW_MODES])], [])]
81+ [AC_DEFINE([LIBNDCTL_NEW_MODES], [1], [new version of libndctl new modes])], [])]
82 [])
83
84 AS_IF([test "x$with_vdo" != "xno"],
85--
862.7.4
87
diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb
index 5a8b69745a..bf33b968e2 100644
--- a/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb
+++ b/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb
@@ -19,7 +19,6 @@ DEPENDS += " \
19SRCREV = "0debeb45562ac3d8f6f43f6f942b238abab55be9" 19SRCREV = "0debeb45562ac3d8f6f43f6f942b238abab55be9"
20SRC_URI = " \ 20SRC_URI = " \
21 git://github.com/rhinstaller/libblockdev;branch=master \ 21 git://github.com/rhinstaller/libblockdev;branch=master \
22 file://0001-fix-configure-and-compile-failures.patch \
23" 22"
24 23
25S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"