summaryrefslogtreecommitdiffstats
path: root/meta-openstack/classes/ruby.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* ruby.bbclass: WARNING FixLi xin2015-07-271-0/+2
| | | | | | | | | | | | | When build the recipes which inherit ruby,WARNING will occur as following: WARNING: QA Issue: mixlib-log: Files/directories were installed but not shipped in any package: /usr/lib/ruby/gems/2.2.0/build_info /usr/lib/ruby/gems/2.2.0/extensions Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. [installed-vs-shipped] So modify ruby.bbclass Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* ruby: Use en_US instead of C localeMark Asselstine2014-05-271-1/+1
| | | | | | | | | | | | | | | | | 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>
* ruby.bbclass is incompatible with older pythonAmy Fong2014-05-241-7/+7
| | | | | | | | subprocess.check_output() doesn't exist in older python2.6* Rewriting as subprocess.Popen Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: fixesAmy Fong2014-05-241-1/+10
| | | | | | | | | | | Make ruby binaries more accessible by creating symlinks from ${libdir}/ruby/gems/${ruby version}/bin/ to /usr/bin RDEPENDS needs to be package specific coderay needs to depends on yard Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add classes/ruby.bbclassAmy Fong2014-05-241-0/+119
In order to build chef we create a new ruby.bbclass to handle packaging ruby gems. The gem install technique we make use of avoids dependency issues which are not easily worked around yet care must be taken to ensure runtime dependencies are properly listed. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>