From: Scott Murray Date: Mon, 13 Jul 2020 21:45:11 +0000 (-0400) Subject: meta-rcar-gen3: fix rc.pvr weston dependency X-Git-Tag: 9.99.2~14 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=fa4a9da20cbfe75e3bc260974c14f853d0733851;p=AGL%2Fmeta-agl.git meta-rcar-gen3: fix rc.pvr weston dependency Add a do_install_append to fix rc.pvr systemd unit weston dependency, it needs to be weston@.service to work with YP dunfell / 3.1. Bug-AGL: SPEC-3380, SPEC-3443 Signed-off-by: Scott Murray Change-Id: I5f2a6d858c09812ab06e7a1a572fdd96801a8269 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25012 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller Reviewed-by: Stéphane Desneux --- diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend index b902fc9b6..e50822f92 100644 --- a/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend +++ b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend @@ -1 +1,8 @@ require checksum_control.inc + +do_install_append() { + # Fix weston dependency, needs to be weston@.service + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} ; then + sed -i 's/^RequiredBy=weston.service$/RequiredBy=weston@.service/' ${D}${systemd_system_unitdir}/rc.pvr.service + fi +}