blob: ca409a6f1fb45196eec9fec87a52ebd23e891be6 [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
Brad Bishop26bdd442019-08-16 17:08:17 -040010SRC_URI = "https://sourceware.org/pub/lvm2/LVM2.${PV}.tgz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011 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 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014 file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
15 file://0001-Avoid-bashisms-in-init-scripts.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016 file://0005-do-not-build-manual.patch \
17 file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018 "
Brad Bishop19323692019-04-05 15:28:33 -040019SRC_URI[md5sum] = "5fc07da5461a3794a751dcfc355827d5"
20SRC_URI[sha256sum] = "550ba750239fd75b7e52c9877565cabffef506bbf6d7f6f17b9700dee56c720f"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022S = "${WORKDIR}/LVM2.${PV}"
23
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024inherit autotools-brokensep pkgconfig systemd license
25
Brad Bishop19323692019-04-05 15:28:33 -040026LVM2_PACKAGECONFIG = "dmeventd"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027LVM2_PACKAGECONFIG_append_class-target = " \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
29 ${@incompatible_license_contains('GPLv3', '', 'thin-provisioning-tools', d)} \
30 udev \
31"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050032
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033# odirect is always enabled because there currently is a bug in
34# lib/device/dev-io.c which prevents compiling without it. It is
35# better to stick to configurations that were actually tested by
36# upstream...
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
42PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
Patrick Williamsddad1a12017-02-23 20:36:32 -060043PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050044PACKAGECONFIG[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 -050045
46# Unset user/group to unbreak install.
47EXTRA_OECONF = "--with-user= \
48 --with-group= \
49 --enable-realtime \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050050 --enable-cmdlib \
51 --enable-pkgconfig \
52 --with-usrlibdir=${libdir} \
53 --with-systemdsystemunitdir=${systemd_system_unitdir} \
54 --disable-thin_check_needs_check \
55 --with-thin-check=${sbindir}/thin_check \
56 --with-thin-dump=${sbindir}/thin_dump \
57 --with-thin-repair=${sbindir}/thin_repair \
58 --with-thin-restore=${sbindir}/thin_restore \
59"
60