[meta-virtualization] [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment.

Amarnath Valluri amarnath.valluri at intel.com
Wed Feb 8 05:46:34 PST 2017


Signed-off-by: Amarnath Valluri <amarnath.valluri at intel.com>
---
 recipes-extended/libvirt/libvirt_1.3.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb
index c848c99..206f59f 100644
--- a/recipes-extended/libvirt/libvirt_1.3.5.bb
+++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
@@ -213,6 +213,12 @@ PACKAGECONFIG[wireshark] = "--with-wireshark-dissector,--without-wireshark-disse
 # Enable the Python tool support
 require libvirt-python.inc
 
+do_configure_prepend() {
+	systemd_system_unitdir="${@d.getVar('systemd_system_unitdir')}"
+	sed -i -e "s;^SYSTEMD_UNIT_DIR =.*;SYSTEMD_UNIT_DIR = $systemd_system_unitdir;" \
+	     ${S}/daemon/Makefile.am ${S}/src/Makefile.am ${S}/tools/Makefile.am
+}
+
 do_install_append() {
 	install -d ${D}/etc/init.d
 	install -d ${D}/etc/libvirt
-- 
2.7.4



More information about the meta-virtualization mailing list