From 96ad965cc70b57d520adca5a120e699c0deaabd9 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Tue, 27 May 2014 13:30:50 -0400 Subject: ruby: Use en_US instead of C locale If a builder doesn't have the C locale an error can occur: | DEBUG: Executing shell function do_compile | /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) | ERROR: While executing gem ... (ArgumentError) | invalid byte sequence in US-ASCII | WARNING: ..../mime-types-1.25.1-r0/temp/do_compile/run.do_compile.5389:95 exit 1 from | LANG="C.UTF-8" LC_ALL="C.UTF-8" gem build $gem | ERROR: Function failed: do_compile (see ..../mime-types-1.25.1-r0/temp/do_compile/log.do_compile.5389 for further information) Use the en_US locale instead which tends to be more widely available and from the looks of things usually recommended. Signed-off-by: Mark Asselstine --- meta-openstack/classes/ruby.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-openstack/classes/ruby.bbclass b/meta-openstack/classes/ruby.bbclass index 09baebd..947613e 100644 --- a/meta-openstack/classes/ruby.bbclass +++ b/meta-openstack/classes/ruby.bbclass @@ -81,7 +81,7 @@ export GEM_HOME = "${STAGING_DIR_NATIVE}/usr/lib/ruby/gems/${RUBY_GEM_VERSION}" RUBY_BUILD_GEMS ?= "${BPN}.gemspec" RUBY_INSTALL_GEMS ?= "${BPN}-${BPV}.gem" -RUBY_COMPILE_FLAGS ?= 'LANG="C.UTF-8" LC_ALL="C.UTF-8"' +RUBY_COMPILE_FLAGS ?= 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"' ruby_do_compile() { for gem in ${RUBY_BUILD_GEMS}; do -- cgit v1.2.3-54-g00ecf