From e7e9216ccead73fdf6054301e68396ab04710c6f Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 23 Sep 2022 16:04:20 +0300 Subject: weston-ini-conf.bb: Change from append to an inline edit We don't really support section entries with the same name, so rather than appending a new key entry value under the same section, use sed to edit the configuration file in place. Fixes 6a8a33f99a66ae1 Bug-AGL: SPEC-4528 Signed-off-by: Marius Vlad Change-Id: I12b982dd7e6dd8d11e5fb373c8cba0b1e762c485 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28019 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 --- meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb index d0f0eb556..152e13ca8 100644 --- a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb +++ b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb @@ -56,8 +56,7 @@ do_compile() { sed -i -e '$ d' ${WORKDIR}/weston.ini.default cat ${WORKDIR}/weston.ini.default > ${WORKDIR}/weston.ini.default-no-activate - echo "[core]" >> ${WORKDIR}/weston.ini.default-no-activate - echo "activate-by-default=false" >> ${WORKDIR}/weston.ini.default-no-activate + sed -i -e 's#\[core\]#[core]\nactivate-by-default=false#' ${WORKDIR}/weston.ini.default-no-activate # Do it again, but filter fragments to configure for landscape # and a corresponding landscape-inverted that is 180 degrees -- cgit 1.2.3-korg