1HOMEPAGE = "https://www.sourceware.org/lvm2/" 2SECTION = "utils" 3DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." 4LICENSE = "GPL-2.0-only & LGPL-2.1-only" 5LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \ 6 file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" 7 8DEPENDS += "libaio" 9 10SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \ 11 file://lvm.conf \ 12 file://0001-implement-libc-specific-reopen_stream.patch \ 13 file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \ 14 file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ 15 file://0001-Avoid-bashisms-in-init-scripts.patch \ 16 file://0005-do-not-build-manual.patch \ 17 file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ 18 file://reproducible-build.patch \ 19 " 20 21SRCREV = "3e8bd8d1bd70691f09a170785836aeb4f83154e6" 22S = "${WORKDIR}/git" 23 24UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" 25 26inherit autotools-brokensep pkgconfig systemd 27 28LVM2_PACKAGECONFIG = "dmeventd" 29LVM2_PACKAGECONFIG:append:class-target = " \ 30 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ 31" 32 33# 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... 37PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}" 38 39PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd" 40PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct" 41PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" 42PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" 43# NOTE: Add thin-provisioning-tools only if your distro policy allows GPL-3.0 license 44PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" 45 46# Unset user/group to unbreak install. 47EXTRA_OECONF = "--with-user= \ 48 --with-group= \ 49 --enable-realtime \ 50 --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