Hi Everyone, I was failing to build glibc6 on my system using mokomakefile [1] and message was somewhat uncomprehendable, so I crafted a little patch (attached) which spits out a bit more sensible error like
NOTE: Task failed: Failed to split locale en_US into locale+charset so I spotted the victim in my GLIBC_GENERATE_LOCALES [1] http://www.onerussian.com/tmp/glibc.failed.1 -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
From 99696508ac1eec565725a4c6ab9d0ac8f0244e3d Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <[EMAIL PROTECTED]>
Date: Sun, 10 Aug 2008 14:05:30 -0400
Subject: [PATCH] BF: catch exceptions while handling impoperly specified locales
provides sensible error message
---
packages/glibc/glibc-package.bbclass | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/packages/glibc/glibc-package.bbclass b/packages/glibc/glibc-package.bbclass
index 4cb0c55..2bd0571 100644
--- a/packages/glibc/glibc-package.bbclass
+++ b/packages/glibc/glibc-package.bbclass
@@ -224,7 +224,11 @@ python package_do_split_gconvs () {
encodings = {}
for l in supported:
l = l[:-1]
- (locale, charset) = l.split(" ")
+ try:
+ (locale, charset) = l.split(" ")
+ except Exception, e:
+ raise bb.build.FuncFailed("Failed to split locale %s into locale+charset" % l)
+
if utf8_only and charset != 'UTF-8':
continue
m = dot_re.match(locale)
--
1.5.5.4
signature.asc
Description: Digital signature
_______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
