Commit Graph

38 Commits

Author SHA1 Message Date
Martin Jansa
af60292059 libgxim: move from meta-ruby back to meta-oe
* it was moved to meta-ruby (totherer with imsettings which depends on libgxim)
  because of ruby-native dependency, now when ruby was moved from meta-ruby to
  oe-core we can move libgxim back to meta-oe (which also allows imsettings
  in meta-xfce to depend only on meta-oe as well)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-12-18 12:39:50 +01:00
Khem Raj
b5341db1c2 imsettings: Move from meta-ruby to meta-xfce
It depends on xfconf which is XFCE component, no one
depends on imsettings in meta-ruby so move it close
to its dependencies.

Ideally, xfconf should be turned into PACKAGECONFIG
and this recipe then moved to meta-oe since all kind
of DE's can use it then.

For now it frees meta-ruby from unnecessary dependency on xfce layer

Change-Id: I6b5896b0db504fad49a9da5967d3493e27c627b0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-12-18 12:39:50 +01:00
Martin Jansa
d7f4579816 imsettings: add xfconf dependency and xfce-layer to LAYERDEPENDS
* this isn't optimal, but this issue was ignored by recipe author for too long:
  http://lists.openembedded.org/pipermail/openembedded-devel/2015-July/102253.html
  http://patchwork.openembedded.org/patch/86091/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-16 21:50:11 +01:00
Alexander Kanavin
e04d53bdc8 ruby: remove the recipe due to its move to oe-core
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:37:21 +02:00
Bian Naimeng
06104c03ad libgxim: inherit gettext to fix build error in a non-gplv3 build.
| configure.ac:18: warning: AM_NLS is m4_require'd but not m4_defun'd
  | aclocal.m4:2363: IT_PROG_INTLTOOL is expanded from...
  | aclocal.m4:2545: AC_PROG_INTLTOOL is expanded from...
  | configure.ac:18: the top level
  | configure:12119: error: possibly undefined macro: AM_NLS
  |       If this token and others are legitimate, please use m4_pattern_allow.
  |       See the Autoconf documentation.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-08 16:18:35 +02:00
Mark Asselstine
93b8643135 bundler: remove broad FILES definition
This effectively reverts commit
4e8853ca05 [bundler: Fix QA new Error]

The original QA error is now handled by changes to the ruby.bbclass to
properly handle build_info and extensions directories that Ruby 2.0.0
now creates while installing gems.

This revert isn't specifically required but by removing this broad
definition of FILES the hope is that other ruby recipes won't copy
this behavior which can actually lead to other QA errors/warnings,
depending on what gets installed in the build_info and extensions
directories.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-31 19:43:44 +02:00
Mark Asselstine
7493039308 ruby.bbclass: handle new installation directories
It appears that newer versions of ruby produce additional directories
which were not previously handled by the ruby bbclass, specifically
'build_info' and 'extensions'. This is currently resulting in QA
errors/warnings such as:

ERROR: QA Issue: puppet: Files/directories were installed but not shipped in any package:
  /usr/lib64/ruby/gems/2.2.0/build_info
  /usr/lib64/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]

Add these to our FILES in the bbclass such that they will packaged.

NOTE: several files may exist in the extensions directory such as
gem.build_complete and mkmf.log that we can most likely remove during
do_install. Since ruby installs these by default they have been left
in case their existence is used as some type of stampfile or similar.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-31 19:43:44 +02:00
Bian Naimeng
3f83d88dcb imsettings: fix build error.
multi-line ACLOCAL_AMFLAGS isn't supported by autoreconf, otherwise
a configure error as follow will be caught.

  aclocal: error: non-option arguments are not accepted: '\'.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16 21:09:05 +02:00
Bian Naimeng
e48d73e842 imsettings: add new recipe
imsettings is a delivery framework for general input-method configuration

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-23 12:41:53 +02:00
Armin Kuster
f0221b5f22 bundler: update to 1.9.4
add depends for git.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-08 14:15:25 +02:00
Armin Kuster
5dd01c5175 libgxim: fix world build issues
ERROR: Nothing PROVIDES 'ruby-native' (but /home/akuster/oss/clean/meta-openembedded/meta-oe/recipes-extended/libgxim/libgxim_0.5.0.bb DEPENDS on or otherwise requires it). Close matches:
  db-native
  bc-native
  byacc-native
ERROR: Required build target 'libgxim' has no buildable providers.
Missing or unbuildable dependency chain was: ['libgxim', 'ruby-native']

move libgxim from meta-oe to meta-ruby, it really belongs in meta-gir but it is un-maintained.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-05-11 10:28:54 +02:00
Martin Jansa
41e45a16f6 ruby: explicitly disable dtrace support
both 2.2.1 and 2.2.2 are failing on some hosts native builds with:
| linking miniruby
| load.o: In function `rb_f_load':
| load.c:(.text+0x3af): undefined reference to `RUBY_DTRACE_LOAD_ENTRY_ENABLED'
| load.c:(.text+0x428): undefined reference to `RUBY_DTRACE_LOAD_RETURN_ENABLED'
| load.c:(.text+0x452): undefined reference to `RUBY_DTRACE_LOAD_RETURN'
| load.c:(.text+0x492): undefined reference to `RUBY_DTRACE_LOAD_ENTRY'
| load.o: In function `rb_require_internal':

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-11 10:27:29 +02:00
Armin Kuster
86835b4ac5 ruby: Update to 2.2.2
Includes among other things: CVE-2015-1855: Ruby OpenSSL Hostname Verification

for more info see:
http://svn.ruby-lang.org/repos/ruby/tags/v2_2_2/ChangeLog

also, fixed runtime error.
only include "enable-wide-getaddrinfo" if IVP6 is enabled in disto feature
otherwise 'gem install rails' throws an error for the missing symbol 'getipnodebyname'.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-05-11 10:27:28 +02:00
Armin Kuster
4e8853ca05 bundler: Fix QA new Error
ERROR: QA Issue: bundler: Files/directories were installed but not shipped
  /usr/lib/ruby/gems/2.2.0/build_info
  /usr/lib/ruby/gems/2.2.0/extensions [installed-vs-shipped]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:58:37 +02:00
Armin Kuster
a5889e2d17 meta-ruby: README: update maintainer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:56:14 +02:00
Armin Kuster
9667f17d6e ruby: package update to verison 2.2.1
LIC_FILES_CHKSUM changes:
BDSL: update copyright notice with "2013"
GPL: update to GPLv2
LEGAL: added license info for ccan files

dropped patches since they are now incorperated.

several security fixes included:
CVE-2014-2525
CVE-2014-0160
CVE-2014-2734
CVE-2014-8080
CVE-2014-8090

for addional information:
http://svn.ruby-lang.org/repos/ruby/tags/v2_2_1/ChangeLog

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-04-13 12:56:14 +02:00
Jackie Huang
1796dda194 meta-ruby: Add LAYERVERSION and LAYERDEPENDS
According to README, it depends on oe-core and openembedded-layer

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-11-28 13:41:34 +01:00
Chad Nelson
839a8bb4a7 ruby-lang.org changed the subdomain/hostname of their download server.
Signed-off-by: Chad Nelson <cnelson@agleader.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-10-30 08:59:31 +01:00
Jackie Huang
deaab51df8 ruby: make build deterministic by adding PACKAGECONFIG for valgrind
* disabled by default
* fixes:
ruby/1.9.3-p547-r1.0/ruby-1.9.3-p547/gc.c:43:32:fatal error: valgrind/memcheck.h: No such file or directory

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-10-27 12:50:01 +01:00
Mark Asselstine
fe63c201b1 ruby.inc: DEPEND on libyaml-native
Without this dependency we will see warnings when ever we use the
ruby-native from the sysroot

  ...tmp/sysroots/x86_64-linux/usr/lib/ruby/yaml.rb:84:in `<top (required)>':
  It seems your ruby installation is missing psych (for YAML output).
  To eliminate this warning, please install libyaml and reinstall your ruby.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26 05:42:53 +02:00
Mark Asselstine
8c2e27e686 ruby.bbclass: introduce a class to assist in building gems
In order to allow the building of gems we have created a
ruby.bbclass. The building of gems is much like the building of python
packages in that we rely on building up -native gems in order to
facilitate the cross compiling of the gems that will be built for the
target. When dependencies exist between gems they must be satisfied by
the -native gems installed in the host sysroot. This approach is
feasible since the build process is able to query installed gems
without being affected by the ARCH they were built for. At this point
I have yet to come across a situation where the assumption associated
with this approach have failed but so far focus has only been on x86
and x86-64 builds.

The recipes which inherit the ruby.bbclass can optionally define a BPV
in the case where the gemspec version doesn't always map 1:1 to the
PV. This situation has only been encountered on a few occasions so
the class has been made to default BPV to PV.

To demonstrate the ruby.bbclass in use we have included a recipe to
build the bundler gem. Bundler can be used on a running target to
install gems from rubygems.org, which can be useful in itself when you
don't have recipes available for gems but want to try installing and
running pre-built gems.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26 05:42:52 +02:00
Jackie Huang
efea141c6e ruby: fix race conditions at install-ext
* lib/mkmf.rb (create_makefile): fix race conditions at install-ext.
  target files need to depend on destination directory timestamp
  files, not phony trgets.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-13 23:28:05 +02:00
Roy Li
7815a6d97e ruby: fix a parallel building issue
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-10 16:07:19 +02:00
Roy Li
7ae118b002 ruby: uprev it to 1.9.3-p547
remove ruby-1.9.3-fix-s390x-build.patch, it has been merged into p547

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 15:00:12 +02:00
Amy Fong
2396150459 ruby overwrites configuration files in ruby-native
ruby's install rule is calling install-cross, this overwrites files installed
by ruby-native causing build failures with ruby apps, specifically where gems
are involved, especially on hosts where there is no host ruby:

(from sysroot-native's gem)
gem env
 RubyGems Environment:
   - RUBYGEMS VERSION: 1.8.23
   - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
   - INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/1.9.1
   - RUBY EXECUTABLE: /usr/bin/ruby
   - EXECUTABLE DIRECTORY: /usr/bin
   - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-linux
   - GEM PATHS:
      - /usr/lib64/ruby/gems/1.9.1
      - /folk/afong/.gem/ruby/1.9.1
   - GEM CONFIGURATION:
      - :update_sources => true
      - :verbose => true
      - :benchmark => false
      - :backtrace => false
      - :bulk_threshold => 1000
   - REMOTE SOURCES:
      - http://rubygems.org/

Files affected - fake.rb, rbconfig.rb, config.h, win32.h and ruby libraries.
We should be using the versions from ruby-native.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-10 12:25:40 +02:00
Martin Jansa
27724be322 ruby: add --enable-wide-getaddrinfo to whitelist
* fixes:
  ruby-1.9.3-p429: ruby: configure was passed unrecognised options: --enable-wide-getaddrinfo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-05 18:31:29 +02:00
Michaël Burtin
f3b2dbf15d ruby: remove obsolete extmk_run.patch
This patch does nothing except causing failures from the second build in
the same working directory.

Signed-off-by: Michaël Burtin <mburtin@connected-labs.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-03 20:47:02 +02:00
Christopher Larson
793c1c08cf ruby: find gems relative to its own location
Rather than hardcoding ${datadir}/rubygems, we can let it find the gems
relative to its own location, to make it relocatable.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-12-05 19:48:07 +01:00
Martin Jansa
0bc7948e5b ruby: add dependency on db gdbm readline
* to prevent using bunded versions

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-30 11:17:13 +02:00
Martin Jansa
4568892877 ruby: add missing dependency on ruby-native
* without ruby available on host it fails:
  | NOTE: make LIBRUBYARG=-lruby-static
  |       CC = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86
  |       LD = i586-starfish-linux-ld --sysroot=/OE/sysroots/qemux86
  |       LDSHARED = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86 -shared
  |       CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types -fPIC
  |       XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
  |       CPPFLAGS =   -I. -I.ext/include/i386-linux -I./include -I.
  |       DLDFLAGS = -Wl,-soname,libruby.so.1.9
  |       SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
  | executable host ruby is required. use --with-baseruby option.
  | make: *** [.rbconfig.time] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-08 10:35:55 +02:00
Khem Raj
370e7d2b7d ruby: Upgrade from 1.9.3-p194 -> 1.9.3-p429
Old recipe was having do_install failures
this fixes those too

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-06-29 14:22:46 +02:00
Martin Jansa
2d54ce17a7 README: show github mirror URL in layer dependencies
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-05-03 13:32:03 +02:00
Martin Jansa
7bd0ff1d90 meta-ruby: Fix subject-prefix
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-26 19:41:27 +02:00
Martin Jansa
5e6d374ae7 README: add -M to git send-email example
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-26 19:41:27 +02:00
Martin Jansa
a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Jackie Huang
5df465fcb7 ruby: update to 1.9.3-194
I sent this to oe-core but was told that it's not the right place and
was suggested to send here.

Most of the 1.9.3 patches originate from ruby-1.9.3.194-10.1.fc17.src.rpm

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 22:18:15 +01:00
Jackie Huang
d04b996ec2 ruby: Add from OE-Classic
* No modifications in this commit
* MJ: PR reset, PRIORITY dropped, LICENSE fix, LIC_FILES_CHKSUMs added

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 14:09:56 +01:00
Martin Jansa
a1e6087f09 meta-ruby: add empty layer
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 14:09:40 +01:00