[OE-core] [PATCH 1/3] dbus-test: correct paths in service and conf files

kai.kang at windriver.com kai.kang at windriver.com
Tue Nov 1 07:39:42 UTC 2016


From: Kai Kang <kai.kang at windriver.com>

Build path ${B} exists in some service and conf files of ptest. Replace
with right directory.

Signed-off-by: Kai Kang <kai.kang at windriver.com>
---
 meta/recipes-core/dbus/dbus-test_1.10.10.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/dbus/dbus-test_1.10.10.bb b/meta/recipes-core/dbus/dbus-test_1.10.10.bb
index 650b7ab..29d7f91 100644
--- a/meta/recipes-core/dbus/dbus-test_1.10.10.bb
+++ b/meta/recipes-core/dbus/dbus-test_1.10.10.bb
@@ -54,5 +54,8 @@ do_install_ptest() {
 	for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; done
 	install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test
 	cp -r ${B}/test/data ${D}${PTEST_PATH}/test
+
+	# set right path in service and conf files
+	find ${D} -type f -not -executable -exec sed -i 's#${B}#${PTEST_PATH}#' {} \;
 }
 RDEPENDS_${PN}-ptest += "bash"
-- 
2.10.1




More information about the Openembedded-core mailing list