- 25 Jul, 2016 1 commit
-
-
Mark Asselstine authored
Ruby makes use of the lesser known DLDFLAGS to compose flags passed to the linker. Since DLDFLAGS is composed of arch, ldflags and dldflags instead of overwriting DLDFLAGS we drop the correct flags into dldflags. (lowercase vs uppercase) This will avoid the following QA warnings, such as: No GNU_HASH in the elf binary: './tmp/work/core2-64-overc-linux/ruby-shadow/2.4.1-r0/packages-split/ruby-shadow/usr/lib64/ruby/gems/2.2.0/gems/ruby-shadow-2.4.1/lib/shadow.so' No GNU_HASH in the elf binary: './tmp/work/core2-64-overc-linux/ruby-shadow/2.4.1-r0/packages-split/ruby-shadow/usr/lib64/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/ruby-shadow-2.4.1/shadow.so' [ldflags] Signed-off-by:
Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by:
Bruce Ashfield <bruce.ashfield@windriver.com>
-
- 07 Jun, 2016 1 commit
-
-
Paul Gortmaker authored
The error appears as follows: ERROR: Failure expanding variable RUBY_GEM_VERSION, expression was ${@get_rubygemsversion("build/tmp/sysroots/x86_64-linux/usr/bin")} which triggered exception TypeError: can't use a string pattern on a bytes-like object Adding an explicit utf-8 decode makes it work again. Similar fixes appear in git://git.pokylinux.org/poky 3e309e0aad Signed-off-by:
Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by:
Bruce Ashfield <bruce.ashfield@windriver.com>
-
- 19 Jan, 2016 1 commit
-
-
Jason Wessel authored
Prior to this commit it is not possible to cross build a ruby gem. In fact even on the x86 system the object files for the native gem are generated with the wrong compiler (the host compiler instead of the cross compiler). A better way to fix this in the future would be to use only gems that supported cross compile tool called rake. For now the bbclass can modify the extconf.rb just before creating the gem and insert some code into the Makefile so as to honor the cross compile environment. Signed-off-by:
Jason Wessel <jason.wessel@windriver.com> Signed-off-by:
Bruce Ashfield <bruce.ashfield@windriver.com>
-
- 16 Sep, 2015 1 commit
-
-
Mark Asselstine authored
In commit 1aa30310 [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>
-
- 10 Aug, 2015 1 commit
-
-
Li xin authored
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>
-
- 27 Jul, 2015 1 commit
-
-
Li xin authored
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>
-
- 27 May, 2014 1 commit
-
-
Mark Asselstine authored
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>
-
- 24 May, 2014 3 commits
-
-
Amy Fong authored
subprocess.check_output() doesn't exist in older python2.6* Rewriting as subprocess.Popen Signed-off-by:
Amy Fong <amy.fong@windriver.com>
-
Amy Fong authored
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>
-
Amy Fong authored
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>
-