From 2317b145ac8fcddf55b4f65266cf50745ddd3de1 Mon Sep 17 00:00:00 2001 From: Dengke Du Date: Wed, 16 Mar 2016 05:06:13 -0400 Subject: pTest-tcl fail fixed http.test httpold.test socket.test failed when run the pTest-tcl,because the tcl script "info hostname" in /usr/lib/tcl/ptest/tests/http.test fail. The file /etc/hosts didn't contain the map from hostname to 127.0.0.1, so it need to add the map. In order to ensure the rootfs correct,add it at build time, add the following command: "sed -i '1s/$/ ${MACHINE}/' ${WORKDIR}/hosts" in do_install() function in the file meta/recipes-core/netbase/netbase_5.3.bb Signed-off-by: Dengke Du --- meta/recipes-core/netbase/netbase_5.3.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/netbase/netbase_5.3.bb b/meta/recipes-core/netbase/netbase_5.3.bb index ccd89ff84f..6688d550ae 100644 --- a/meta/recipes-core/netbase/netbase_5.3.bb +++ b/meta/recipes-core/netbase/netbase_5.3.bb @@ -14,6 +14,7 @@ SRC_URI[md5sum] = "2637a27fd3de02a278d2b5be7e6558c1" SRC_URI[sha256sum] = "81f6c69795044d62b8ad959cf9daf049d0545fd466c52860ad3f933b1e97b88b" do_install () { + sed -i '1s/$/ ${MACHINE}/' ${WORKDIR}/hosts install -d ${D}/${mandir}/man8 ${D}${sysconfdir} install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts install -m 0644 etc-rpc ${D}${sysconfdir}/rpc -- cgit 1.2.3-korg