summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/parted/files/dm_check.patch22
-rw-r--r--meta/recipes-extended/parted/parted_3.2.bb1
2 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-extended/parted/files/dm_check.patch b/meta/recipes-extended/parted/files/dm_check.patch
new file mode 100644
index 0000000000..5f3c4ddae8
--- /dev/null
+++ b/meta/recipes-extended/parted/files/dm_check.patch
@@ -0,0 +1,22 @@
1parted: change check for device-manager
2
3Other ptests use this method.
4
5Upstream-Status: Submitted [bug-parted@gnu.org]
6
7Signed-off-by: Joe Slater <joe.slater@windriver.com>
8
9
10--- a/tests/t6001-psep.sh
11+++ b/tests/t6001-psep.sh
12@@ -19,7 +19,9 @@
13 . "${srcdir=.}/init.sh"; path_prepend_ ../parted
14
15 require_root_
16-(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed"
17+
18+test "x$ENABLE_DEVICE_MAPPER" = xyes \
19+ || skip_ "no device-mapper support"
20
21 # Device maps names - should be random to not conflict with existing ones on
22 # the system
diff --git a/meta/recipes-extended/parted/parted_3.2.bb b/meta/recipes-extended/parted/parted_3.2.bb
index 13d7d6676c..21a815345a 100644
--- a/meta/recipes-extended/parted/parted_3.2.bb
+++ b/meta/recipes-extended/parted/parted_3.2.bb
@@ -18,6 +18,7 @@ SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \
18 file://run-ptest \ 18 file://run-ptest \
19 file://Makefile \ 19 file://Makefile \
20 file://0001-libparted-Use-read-only-when-probing-devices-on-linu.patch \ 20 file://0001-libparted-Use-read-only-when-probing-devices-on-linu.patch \
21 file://dm_check.patch \
21" 22"
22 23
23SRC_URI[md5sum] = "0247b6a7b314f8edeb618159fa95f9cb" 24SRC_URI[md5sum] = "0247b6a7b314f8edeb618159fa95f9cb"