summaryrefslogtreecommitdiffstats
path: root/meta-openstack/classes/ruby.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* ruby.bbclass: move to base layerMark Asselstine2015-09-161-131/+0
| | | | | | | | | | | | | In commit 1aa30310259027ebb87ee95ef914ca3de55d6a09 [puppet: move to base layer] we made puppet available to all sub-layers but since we didn't move the required ruby.bbclass we couldn't actually use it without using meta-openstack. Complete the move by moving the ruby.bbclass to the base layer. At some point I think we still want to remove ruby.bbclass from meta-cloud-services completely and use meta-ruby, but we will do that at another time. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* ruby.bbclass: Error fixLi xin2015-08-101-0/+1
| | | | | | | | | | | When build the recipes which inherit ruby,ERROR will occur as following: ERROR: QA Issue: non debug package contains .debug directory: json path /work/core2-64-oe-linux/json/1.8.3-r0/packages-split/json/usr/lib/ruby/ gems/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/json/ext/.debug/generator.so [debug-files] So modify ruby.bbclass. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* 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>