diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2.inc')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 29cc7425ba..0ff17aed5c 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -15,18 +15,39 @@ SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \ | |||
15 | file://0005-do-not-build-manual.patch \ | 15 | file://0005-do-not-build-manual.patch \ |
16 | file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ | 16 | file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ |
17 | file://reproducible-build.patch \ | 17 | file://reproducible-build.patch \ |
18 | file://0001-configure.ac-check-egrep.patch \ | ||
19 | file://0001-include-libgen.h-for-basename.patch \ | 18 | file://0001-include-libgen.h-for-basename.patch \ |
20 | " | 19 | " |
21 | 20 | ||
22 | SRCREV = "90ec2cd92f6367c431dd8dae55d0cbe7e196734f" | 21 | SRCREV = "8817523c5682a7fd83770d3f58a99c436f7e73f7" |
23 | S = "${WORKDIR}/git" | 22 | PV = "2.03.32" |
24 | PV = "2.03.24" | ||
25 | 23 | ||
26 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" | 24 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" |
27 | 25 | ||
28 | inherit autotools-brokensep pkgconfig systemd | 26 | inherit autotools-brokensep pkgconfig systemd |
29 | 27 | ||
28 | def get_dm_version(p): | ||
29 | import re | ||
30 | |||
31 | fn = p + '/VERSION_DM' | ||
32 | try: | ||
33 | f = open(fn, 'r') | ||
34 | except IOError: | ||
35 | return None | ||
36 | |||
37 | lines = f.readlines() | ||
38 | f.close() | ||
39 | for line in lines: | ||
40 | m = re.match(r'(\w+)[-. ](\w+)[-. ](\w+)', line.strip()) | ||
41 | if m: | ||
42 | return ".".join([m.group(1), m.group(2), m.group(3)]) | ||
43 | |||
44 | return None | ||
45 | |||
46 | DM_VERSION = '${@get_dm_version("${S}")}' | ||
47 | python do_package:prepend() { | ||
48 | d.setVar('PKGV:libdevmapper', d.getVar("DM_VERSION")) | ||
49 | } | ||
50 | |||
30 | LVM2_PACKAGECONFIG = "dmeventd" | 51 | LVM2_PACKAGECONFIG = "dmeventd" |
31 | LVM2_PACKAGECONFIG:append:class-target = " \ | 52 | LVM2_PACKAGECONFIG:append:class-target = " \ |
32 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ | 53 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ |
@@ -59,7 +80,3 @@ EXTRA_OECONF = "--with-user= \ | |||
59 | --with-thin-repair=${sbindir}/thin_repair \ | 80 | --with-thin-repair=${sbindir}/thin_repair \ |
60 | --with-thin-restore=${sbindir}/thin_restore \ | 81 | --with-thin-restore=${sbindir}/thin_restore \ |
61 | " | 82 | " |
62 | |||
63 | # gold doesn't like multiple dm_bitset_parse_list definitions in libdm/.exported_symbols.DM_1_02_138 and libdm/.exported_symbols.DM_1_02_129 | ||
64 | # after it was uncommented in the later in 2.03.12 with https://github.com/lvmteam/lvm2/commit/60eb608d66c2056a78e81f27db3da14139d9faab | ||
65 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', " -fuse-ld=bfd", '', d)}" | ||