kea: correctly eliminate build host paths from installed file

Only the ${B} part should be trimmed, not what follows
(which is subject to change, depending on where the sources are).

(From OE-Core rev: 1e3fc9b7592956af9bd93e0a077c5b9f3fd9ca2e)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2025-06-06 22:58:05 +02:00 committed by Richard Purdie
parent e493ed85a3
commit 637de32065

View File

@ -69,7 +69,7 @@ do_install:append() {
sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \
-e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \
${D}${systemd_system_unitdir}/kea-dhcp*service ${D}${sbindir}/keactrl
sed -i "s:${B}/../${BPN}-${PV}:@abs_top_builddir_placeholder@:g" ${D}${sbindir}/kea-admin
sed -i "s:${B}:@abs_top_builddir_placeholder@:g" ${D}${sbindir}/kea-admin
}
do_install:append() {