blob: 26a887ea10b924f990dcbd601242e8421f0a06f1 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001HOMEPAGE = "https://www.sourceware.org/lvm2/"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002SECTION = "utils"
3DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux."
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004LICENSE = "GPLv2 & LGPLv2.1"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006 file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24"
7
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008DEPENDS += "util-linux libaio"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \
11 file://lvm.conf \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012 file://0001-implement-libc-specific-reopen_stream.patch \
13 file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \
14 file://0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch \
15 file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
16 file://0001-Avoid-bashisms-in-init-scripts.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017 file://0005-do-not-build-manual.patch \
18 file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019 "
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020
21UPSTREAM_CHECK_URI = "ftp://sources.redhat.com/pub/lvm2/"
22UPSTREAM_CHECK_REGEX = "LVM2\.(?P<pver>\d+(\.\d+)+)"
23
Patrick Williamsb48b7b42016-08-17 15:04:38 -050024S = "${WORKDIR}/LVM2.${PV}"
25
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026inherit autotools-brokensep pkgconfig systemd license
27
28LVM2_PACKAGECONFIG = "dmeventd lvmetad"
29LVM2_PACKAGECONFIG_append_class-target = " \
30 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
31 ${@incompatible_license_contains('GPLv3', '', 'thin-provisioning-tools', d)} \
32 udev \
33"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035# odirect is always enabled because there currently is a bug in
36# lib/device/dev-io.c which prevents compiling without it. It is
37# better to stick to configurations that were actually tested by
38# upstream...
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
42PACKAGECONFIG[lvmetad] = "--enable-lvmetad,--disable-lvmetad"
43PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
45PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
Patrick Williamsddad1a12017-02-23 20:36:32 -060046PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050047PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050048
49# Unset user/group to unbreak install.
50EXTRA_OECONF = "--with-user= \
51 --with-group= \
52 --enable-realtime \
53 --enable-applib \
54 --enable-cmdlib \
55 --enable-pkgconfig \
56 --with-usrlibdir=${libdir} \
57 --with-systemdsystemunitdir=${systemd_system_unitdir} \
58 --disable-thin_check_needs_check \
59 --with-thin-check=${sbindir}/thin_check \
60 --with-thin-dump=${sbindir}/thin_dump \
61 --with-thin-repair=${sbindir}/thin_repair \
62 --with-thin-restore=${sbindir}/thin_restore \
63"
64