summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-19 15:51:06 -0700
committerKhem Raj <raj.khem@gmail.com>2018-08-19 16:09:28 -0700
commit8cec59341a845eb9776a54a5c34e6777f8a332aa (patch)
treed5d2210df6600e9e155c7abf06e36a0a1832bda8
parent45ee3c0e98bd3ed81419aaeae1e7324e486161a2 (diff)
downloadmeta-openembedded-8cec59341a845eb9776a54a5c34e6777f8a332aa.tar.gz
dlm: Build fence only when pacemaker recipe is available
pacemaker is not in meta-networking, and therefore dlm fails to build when meta-cgl is not included, this changeset makes the pacemaker dependency to be optional, and disabled by default so users who have pacemaker in the bbfiles should enable pacemaker support via a bbappend or setting it in config metadata Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-extended/dlm/dlm_4.0.7.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
index f7f7e188c..18843a61f 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
@@ -20,17 +20,24 @@ UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)"
20LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" 20LICENSE = "LGPLv2+ & GPLv2 & GPLv2+"
21LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" 21LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
22 22
23DEPENDS = "corosync systemd pacemaker" 23DEPENDS = "corosync systemd"
24 24
25inherit pkgconfig systemd distro_features_check 25inherit pkgconfig systemd distro_features_check
26 26
27PACKAGECONFIG ??= ""
28
29PACKAGECONFIG[pacemaker] = ",,pacemaker"
30
27SYSTEMD_SERVICE_${PN} = "dlm.service" 31SYSTEMD_SERVICE_${PN} = "dlm.service"
28SYSTEMD_AUTO_ENABLE = "enable" 32SYSTEMD_AUTO_ENABLE = "enable"
29 33
30export EXTRA_OEMAKE = "" 34export EXTRA_OEMAKE = ""
31 35
36DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}"
37
32do_compile_prepend() { 38do_compile_prepend() {
33 sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile 39 sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile
40 sed -i -e "s/ ${DONTBUILD}//g" ${S}/Makefile
34} 41}
35 42
36do_compile () { 43do_compile () {