summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDengke Du <dengke.du@windriver.com>2016-03-16 05:06:13 -0400
committerDengke Du <dengke.du@windriver.com>2016-03-16 05:27:32 -0400
commit2317b145ac8fcddf55b4f65266cf50745ddd3de1 (patch)
tree7e68ec86d64741de4d75dc90cadc98af6f38c2c1
parent8debfea81e69d038bd2d56314b272cb74f5582ed (diff)
downloadopenembedded-core-contrib-2317b145ac8fcddf55b4f65266cf50745ddd3de1.tar.gz
openembedded-core-contrib-2317b145ac8fcddf55b4f65266cf50745ddd3de1.tar.bz2
openembedded-core-contrib-2317b145ac8fcddf55b4f65266cf50745ddd3de1.zip
pTest-tcl fail fixeddengke/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 <dengke.du@windriver.com>
-rw-r--r--meta/recipes-core/netbase/netbase_5.3.bb1
1 files changed, 1 insertions, 0 deletions
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