Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | HOMEPAGE = "https://www.sourceware.org/lvm2/" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | SECTION = "utils" |
| 3 | DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | LICENSE = "GPLv2 & LGPLv2.1" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" |
| 7 | |
Brad Bishop | 665fd02 | 2019-08-26 01:32:28 -0400 | [diff] [blame] | 8 | DEPENDS += "libaio" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 10 | SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | file://lvm.conf \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | file://0001-implement-libc-specific-reopen_stream.patch \ |
| 13 | file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ |
| 15 | file://0001-Avoid-bashisms-in-init-scripts.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | file://0005-do-not-build-manual.patch \ |
| 17 | file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 18 | file://reproducible-build.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | " |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 20 | |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 21 | SRCREV = "3e8bd8d1bd70691f09a170785836aeb4f83154e6" |
Brad Bishop | 6a62e0e | 2019-10-21 08:11:42 -0400 | [diff] [blame] | 22 | S = "${WORKDIR}/git" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | inherit autotools-brokensep pkgconfig systemd license |
| 25 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 26 | LVM2_PACKAGECONFIG = "dmeventd" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | LVM2_PACKAGECONFIG_append_class-target = " \ |
| 28 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ |
| 29 | ${@incompatible_license_contains('GPLv3', '', 'thin-provisioning-tools', d)} \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 31 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 32 | # odirect is always enabled because there currently is a bug in |
| 33 | # lib/device/dev-io.c which prevents compiling without it. It is |
| 34 | # better to stick to configurations that were actually tested by |
| 35 | # upstream... |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 36 | PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 39 | PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" |
| 41 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 42 | PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | |
| 44 | # Unset user/group to unbreak install. |
| 45 | EXTRA_OECONF = "--with-user= \ |
| 46 | --with-group= \ |
| 47 | --enable-realtime \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | --enable-cmdlib \ |
| 49 | --enable-pkgconfig \ |
| 50 | --with-usrlibdir=${libdir} \ |
| 51 | --with-systemdsystemunitdir=${systemd_system_unitdir} \ |
| 52 | --disable-thin_check_needs_check \ |
| 53 | --with-thin-check=${sbindir}/thin_check \ |
| 54 | --with-thin-dump=${sbindir}/thin_dump \ |
| 55 | --with-thin-repair=${sbindir}/thin_repair \ |
| 56 | --with-thin-restore=${sbindir}/thin_restore \ |
| 57 | " |
| 58 | |