diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2014-05-27 13:30:50 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-27 16:28:33 -0400 |
commit | 96ad965cc70b57d520adca5a120e699c0deaabd9 (patch) | |
tree | 19fe4b9d6239d3e2ac445cc1938098a4812c6c1d /meta-openstack/classes | |
parent | 293cbfc7e52bfb40d6e09e1dc9bd4f76c6e2a3d3 (diff) | |
download | meta-cloud-services-96ad965cc70b57d520adca5a120e699c0deaabd9.tar.gz |
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 <mark.asselstine@windriver.com>
Diffstat (limited to 'meta-openstack/classes')
-rw-r--r-- | meta-openstack/classes/ruby.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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}" | |||
81 | RUBY_BUILD_GEMS ?= "${BPN}.gemspec" | 81 | RUBY_BUILD_GEMS ?= "${BPN}.gemspec" |
82 | RUBY_INSTALL_GEMS ?= "${BPN}-${BPV}.gem" | 82 | RUBY_INSTALL_GEMS ?= "${BPN}-${BPV}.gem" |
83 | 83 | ||
84 | RUBY_COMPILE_FLAGS ?= 'LANG="C.UTF-8" LC_ALL="C.UTF-8"' | 84 | RUBY_COMPILE_FLAGS ?= 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"' |
85 | 85 | ||
86 | ruby_do_compile() { | 86 | ruby_do_compile() { |
87 | for gem in ${RUBY_BUILD_GEMS}; do | 87 | for gem in ${RUBY_BUILD_GEMS}; do |