2018-01-18 18:19:47 -05:00
|
|
|
HOMEPAGE = "https://www.sourceware.org/lvm2/"
|
|
|
|
SECTION = "utils"
|
|
|
|
DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux."
|
2019-01-15 12:34:27 -05:00
|
|
|
LICENSE = "GPLv2 & LGPLv2.1"
|
2018-01-18 18:19:47 -05:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \
|
|
|
|
file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24"
|
|
|
|
|
2020-11-02 11:01:58 -05:00
|
|
|
DEPENDS += "libaio"
|
2018-01-18 18:19:47 -05:00
|
|
|
|
2020-11-02 11:01:58 -05:00
|
|
|
SRC_URI = "git://sourceware.org/git/lvm2.git \
|
2018-01-18 18:19:47 -05:00
|
|
|
file://lvm.conf \
|
|
|
|
file://0001-implement-libc-specific-reopen_stream.patch \
|
|
|
|
file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \
|
|
|
|
file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
|
|
|
|
file://0001-Avoid-bashisms-in-init-scripts.patch \
|
|
|
|
file://0005-do-not-build-manual.patch \
|
|
|
|
file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \
|
2020-11-02 11:01:58 -05:00
|
|
|
file://reproducible-build.patch \
|
2018-01-18 18:19:47 -05:00
|
|
|
"
|
2019-01-15 12:34:27 -05:00
|
|
|
|
2020-11-02 11:01:58 -05:00
|
|
|
SRCREV = "b9391b1b9f0b73303fa21f8f92574d17ce4c2b02"
|
2019-01-15 12:34:27 -05:00
|
|
|
S = "${WORKDIR}/git"
|
2018-01-18 18:19:47 -05:00
|
|
|
|
|
|
|
inherit autotools-brokensep pkgconfig systemd license
|
|
|
|
|
2019-01-15 12:34:27 -05:00
|
|
|
LVM2_PACKAGECONFIG = "dmeventd"
|
2018-01-18 18:19:47 -05:00
|
|
|
LVM2_PACKAGECONFIG_append_class-target = " \
|
|
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
|
2019-01-15 12:34:27 -05:00
|
|
|
${@incompatible_license_contains('GPLv3', '', 'thin-provisioning-tools', d)} \
|
2018-01-18 18:19:47 -05:00
|
|
|
"
|
|
|
|
|
|
|
|
# odirect is always enabled because there currently is a bug in
|
|
|
|
# lib/device/dev-io.c which prevents compiling without it. It is
|
|
|
|
# better to stick to configurations that were actually tested by
|
|
|
|
# upstream...
|
|
|
|
PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}"
|
|
|
|
|
|
|
|
PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
|
|
|
|
PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct"
|
|
|
|
PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
|
|
|
|
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
|
|
|
PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
|
|
|
|
|
|
|
|
# Unset user/group to unbreak install.
|
|
|
|
EXTRA_OECONF = "--with-user= \
|
|
|
|
--with-group= \
|
|
|
|
--enable-realtime \
|
|
|
|
--enable-cmdlib \
|
|
|
|
--enable-pkgconfig \
|
|
|
|
--with-usrlibdir=${libdir} \
|
|
|
|
--with-systemdsystemunitdir=${systemd_system_unitdir} \
|
2019-01-15 12:34:27 -05:00
|
|
|
--disable-thin_check_needs_check \
|
2018-01-18 18:19:47 -05:00
|
|
|
--with-thin-check=${sbindir}/thin_check \
|
|
|
|
--with-thin-dump=${sbindir}/thin_dump \
|
|
|
|
--with-thin-repair=${sbindir}/thin_repair \
|
|
|
|
--with-thin-restore=${sbindir}/thin_restore \
|
|
|
|
"
|
|
|
|
|