diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-02-18 03:10:08 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-02-22 13:16:47 +0100 |
commit | 698d512877b9a4716bb2f08c86cedab26cbb524c (patch) | |
tree | 2945ea541adcba1955285b880ae2ae42b7933c6d /meta-oe/recipes-support | |
parent | b790d81e60e5e14037c6fb3ab32e4d980d353619 (diff) | |
download | meta-openembedded-698d512877b9a4716bb2f08c86cedab26cbb524c.tar.gz |
lvm2: Add a PACKAGECONFIG for udev support
The added dependency on util-linux is necessary to avoid the following
QA warning which appears when the dependency on udev is removed:
WARNING: lvm2-2.02.166-r0 do_package_qa: QA Issue: lvm2 rdepends on
util-linux-libblkid, but it isn't a build dependency, missing
util-linux in DEPENDS or PACKAGECONFIG? [build-deps]
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 7c4bbb98c..5d228ea96 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -1,10 +1,11 @@ | |||
1 | SECTION = "utils" | 1 | SECTION = "utils" |
2 | DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." | 2 | DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." |
3 | DEPENDS_append_class-target = " udev" | ||
4 | LICENSE = "GPLv2 & LGPLv2" | 3 | LICENSE = "GPLv2 & LGPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \ | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \ |
6 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" | 5 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" |
7 | 6 | ||
7 | DEPENDS += "util-linux" | ||
8 | |||
8 | SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ | 9 | SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ |
9 | file://lvm.conf \ | 10 | file://lvm.conf \ |
10 | file://0001-implement-libc-specific-reopen_stream.patch \ | 11 | file://0001-implement-libc-specific-reopen_stream.patch \ |
@@ -20,6 +21,7 @@ LVM2_PACKAGECONFIG = "" | |||
20 | LVM2_PACKAGECONFIG_append_class-target = " \ | 21 | LVM2_PACKAGECONFIG_append_class-target = " \ |
21 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ |
22 | thin-provisioning-tools \ | 23 | thin-provisioning-tools \ |
24 | udev \ | ||
23 | " | 25 | " |
24 | 26 | ||
25 | PACKAGECONFIG ??= "${LVM2_PACKAGECONFIG}" | 27 | PACKAGECONFIG ??= "${LVM2_PACKAGECONFIG}" |
@@ -34,6 +36,7 @@ PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct" | |||
34 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" | 36 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" |
35 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" | 37 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" |
36 | PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" | 38 | PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" |
39 | PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udev-prefix=,--disable-udev_sync --disable-udev_rules,udev" | ||
37 | 40 | ||
38 | # Unset user/group to unbreak install. | 41 | # Unset user/group to unbreak install. |
39 | EXTRA_OECONF = "--with-user= \ | 42 | EXTRA_OECONF = "--with-user= \ |
@@ -51,17 +54,6 @@ EXTRA_OECONF = "--with-user= \ | |||
51 | --with-thin-dump=${sbindir}/thin_dump \ | 54 | --with-thin-dump=${sbindir}/thin_dump \ |
52 | --with-thin-repair=${sbindir}/thin_repair \ | 55 | --with-thin-repair=${sbindir}/thin_repair \ |
53 | --with-thin-restore=${sbindir}/thin_restore \ | 56 | --with-thin-restore=${sbindir}/thin_restore \ |
54 | ${EXTRA_OECONF_UDEV} \ | ||
55 | " | ||
56 | |||
57 | EXTRA_OECONF_UDEV = " \ | ||
58 | --disable-udev_sync \ | ||
59 | --disable-udev_rules \ | ||
60 | " | ||
61 | EXTRA_OECONF_UDEV_class-target = " \ | ||
62 | --enable-udev_sync \ | ||
63 | --enable-udev_rules \ | ||
64 | --with-udev-prefix= \ | ||
65 | " | 57 | " |
66 | 58 | ||
67 | CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe" | 59 | CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe" |