summaryrefslogtreecommitdiff
path: root/meta/packages/glibc/glibc-package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-12-22 11:31:21 +0000
committerRichard Purdie <richard@openedhand.com>2006-12-22 11:31:21 +0000
commit46f18ddf41dc4be642978d0052a2118177c71ba2 (patch)
treef526ab448ef99a09caadf4c2fcf18f466139880a /meta/packages/glibc/glibc-package.bbclass
parenta09dab832a6c9a84aac1b10245d4c6cbb29d3e08 (diff)
downloadopenembedded-core-46f18ddf41dc4be642978d0052a2118177c71ba2.tar.gz
openembedded-core-46f18ddf41dc4be642978d0052a2118177c71ba2.tar.bz2
openembedded-core-46f18ddf41dc4be642978d0052a2118177c71ba2.zip
glibc: Fix locale generation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1077 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/glibc/glibc-package.bbclass')
-rw-r--r--meta/packages/glibc/glibc-package.bbclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/packages/glibc/glibc-package.bbclass b/meta/packages/glibc/glibc-package.bbclass
index 84541c69f0..b8f527f97a 100644
--- a/meta/packages/glibc/glibc-package.bbclass
+++ b/meta/packages/glibc/glibc-package.bbclass
@@ -123,23 +123,23 @@ rm -rf ${TMP_LOCALE}
}
python __anonymous () {
- enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
+ enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
- if enabled and int(enabled):
- import re
+ if enabled and int(enabled):
+ import re
- target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
- binary_arches = bb.data.getVar("BINARY_LOCALE_ARCHES", d, 1) or ""
+ target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
+ binary_arches = bb.data.getVar("BINARY_LOCALE_ARCHES", d, 1) or ""
- for regexp in binary_arches.split(" "):
- r = re.compile(regexp)
+ for regexp in binary_arches.split(" "):
+ r = re.compile(regexp)
- if r.match(target_arch):
- depends = bb.data.getVar("DEPENDS", d, 1)
- depends = "%s qemu-native" % depends
- bb.data.setVar("DEPENDS", depends, d)
- bb.data.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "1", d)
- break
+ if r.match(target_arch):
+ depends = bb.data.getVar("DEPENDS", d, 1)
+ depends = "%s qemu-native" % depends
+ bb.data.setVar("DEPENDS", depends, d)
+ bb.data.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "1", d)
+ break
}
do_prep_locale_tree() {