diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2.inc')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index d95366f97e..0ff17aed5c 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -15,17 +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 = "016e469caf856f1eb8dde39df0d1aa2e74225aed" | 21 | SRCREV = "8817523c5682a7fd83770d3f58a99c436f7e73f7" |
23 | S = "${WORKDIR}/git" | 22 | PV = "2.03.32" |
24 | 23 | ||
25 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" | 24 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" |
26 | 25 | ||
27 | inherit autotools-brokensep pkgconfig systemd | 26 | inherit autotools-brokensep pkgconfig systemd |
28 | 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 | |||
29 | LVM2_PACKAGECONFIG = "dmeventd" | 51 | LVM2_PACKAGECONFIG = "dmeventd" |
30 | LVM2_PACKAGECONFIG:append:class-target = " \ | 52 | LVM2_PACKAGECONFIG:append:class-target = " \ |
31 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ | 53 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ |
@@ -58,7 +80,3 @@ EXTRA_OECONF = "--with-user= \ | |||
58 | --with-thin-repair=${sbindir}/thin_repair \ | 80 | --with-thin-repair=${sbindir}/thin_repair \ |
59 | --with-thin-restore=${sbindir}/thin_restore \ | 81 | --with-thin-restore=${sbindir}/thin_restore \ |
60 | " | 82 | " |
61 | |||
62 | # 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 | ||
63 | # after it was uncommented in the later in 2.03.12 with https://github.com/lvmteam/lvm2/commit/60eb608d66c2056a78e81f27db3da14139d9faab | ||
64 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', " -fuse-ld=bfd", '', d)}" | ||