summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/lsb/lsbsetup
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-04-22 14:03:53 +0800
committerSaul Wold <sgw@linux.intel.com>2011-04-22 22:04:00 -0700
commit06d75b1e554791daf7e7cfeebc78d7f240969c97 (patch)
tree236d6a0f47bb6940c492d44aee7476a7a90effe5 /meta/recipes-extended/lsb/lsbsetup
parenta7cb3808a8bfda836405f5e218690b9fb4e9375e (diff)
downloadopenembedded-core-06d75b1e554791daf7e7cfeebc78d7f240969c97.tar.gz
openembedded-core-06d75b1e554791daf7e7cfeebc78d7f240969c97.tar.bz2
openembedded-core-06d75b1e554791daf7e7cfeebc78d7f240969c97.zip
lsbsetup: add some workaround for LSB tests
Add some workaround for LSB libstdcpp and tcl tests. Recreate locales for libstdcpp test, and resolve localhost is for tcl test [Yocto 898] Bump PR, update LICENSE information and installed file mode Signed-off-by: Kang Kai <kai.kang@windriver.com>
Diffstat (limited to 'meta/recipes-extended/lsb/lsbsetup')
-rw-r--r--meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
index 7ce823ea6e..a8189e5944 100644
--- a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
+++ b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright (c) 2005-2010 Wind River Systems, Inc.
+# Copyright (C) 2010-2011 Wind River Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -201,6 +201,19 @@ fi
addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g`
echo -e "you should input ${addr}:8888 on your browser"
+#workaround to add part of locales for LSB test
+localedef -i ja_JP -f EUC-JP ja_JP.eucjp
+localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15
+localedef -i en_US -f UTF-8 en_US.UTF-8
+localedef -i se_NO -f UTF-8 se_NO.UTF-8
+localedef -i de_DE -f ISO-8859-1 de_DE
+
+#resolve localhost
+LOCALHOST=`hostname`
+if ! `grep -F -q "$LOCALHOST" /etc/hosts`; then
+ echo "127.0.0.1 $LOCALHOST" >> /etc/hosts
+fi
+
#Step 10
echo "Done!!"