1. 25 Jul, 2016 1 commit
    • Mark Asselstine's avatar
      ruby.bbclass: pass LDFLAGS via dldflags to avoid QA warnings · f8af5af0
      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: default avatarMark Asselstine <mark.asselstine@windriver.com>
      Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
      f8af5af0
  2. 07 Jun, 2016 1 commit
  3. 19 Jan, 2016 1 commit
    • Jason Wessel's avatar
      ruby-shadow: Work around cross compile gem problem · 9ed0aef7
      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: default avatarJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
      9ed0aef7
  4. 16 Sep, 2015 1 commit
  5. 10 Aug, 2015 1 commit
    • Li xin's avatar
      ruby.bbclass: Error fix · ee23f4fd
      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: default avatarLi Xin <lixin.fnst@cn.fujitsu.com>
      Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
      ee23f4fd
  6. 27 Jul, 2015 1 commit
    • Li xin's avatar
      ruby.bbclass: WARNING Fix · c3f7eeea
      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: default avatarLi Xin <lixin.fnst@cn.fujitsu.com>
      Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
      c3f7eeea
  7. 27 May, 2014 1 commit
    • Mark Asselstine's avatar
      ruby: Use en_US instead of C locale · 96ad965c
      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: default avatarMark Asselstine <mark.asselstine@windriver.com>
      96ad965c
  8. 24 May, 2014 3 commits