diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-05-21 09:56:20 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-24 00:27:14 -0400 |
| commit | 9643550aa09597778fbbfc30d93987a247f5a63b (patch) | |
| tree | 3bfd2791e566f9f43490024cf066164e74257105 /meta-openstack | |
| parent | 52ae70c869d4057d418e3fa031e6521482768d67 (diff) | |
| download | meta-cloud-services-9643550aa09597778fbbfc30d93987a247f5a63b.tar.gz | |
Ruby/chef solo: fixes
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>
Diffstat (limited to 'meta-openstack')
10 files changed, 19 insertions, 9 deletions
diff --git a/meta-openstack/classes/ruby.bbclass b/meta-openstack/classes/ruby.bbclass index 6161698..0f20deb 100644 --- a/meta-openstack/classes/ruby.bbclass +++ b/meta-openstack/classes/ruby.bbclass | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | DEPENDS += " \ | 4 | DEPENDS += " \ |
| 5 | ruby-native \ | 5 | ruby-native \ |
| 6 | " | 6 | " |
| 7 | RDEPENDS += " \ | 7 | RDEPENDS_${PN} += " \ |
| 8 | ruby \ | 8 | ruby \ |
| 9 | " | 9 | " |
| 10 | 10 | ||
| @@ -94,6 +94,15 @@ ruby_do_install() { | |||
| 94 | for gem in ${RUBY_INSTALL_GEMS}; do | 94 | for gem in ${RUBY_INSTALL_GEMS}; do |
| 95 | gem install --ignore-dependencies --local --env-shebang --install-dir ${D}/${libdir}/ruby/gems/${RUBY_GEM_VERSION}/ $gem | 95 | gem install --ignore-dependencies --local --env-shebang --install-dir ${D}/${libdir}/ruby/gems/${RUBY_GEM_VERSION}/ $gem |
| 96 | done | 96 | done |
| 97 | |||
| 98 | # create symlink from the gems bin directory to /usr/bin | ||
| 99 | for i in ${D}/${libdir}/ruby/gems/${RUBY_GEM_VERSION}/bin/*; do | ||
| 100 | if [ -e "$i" ]; then | ||
| 101 | if [ ! -d ${D}/${bindir} ]; then mkdir -p ${D}/${bindir}; fi | ||
| 102 | b=`basename $i` | ||
| 103 | ln -sf ${libdir}/ruby/gems/${RUBY_GEM_VERSION}/bin/$b ${D}/${bindir}/$b | ||
| 104 | fi | ||
| 105 | done | ||
| 97 | } | 106 | } |
| 98 | 107 | ||
| 99 | EXPORT_FUNCTIONS do_compile do_install | 108 | EXPORT_FUNCTIONS do_compile do_install |
diff --git a/meta-openstack/recipes-devtools/ruby/chef-zero_git.bb b/meta-openstack/recipes-devtools/ruby/chef-zero_git.bb index 7e8701d..1d8a240 100644 --- a/meta-openstack/recipes-devtools/ruby/chef-zero_git.bb +++ b/meta-openstack/recipes-devtools/ruby/chef-zero_git.bb | |||
| @@ -28,7 +28,7 @@ SRC_URI = " \ | |||
| 28 | 28 | ||
| 29 | inherit ruby | 29 | inherit ruby |
| 30 | 30 | ||
| 31 | RDEPENDS += " \ | 31 | RDEPENDS_${PN} += " \ |
| 32 | mixlib-log \ | 32 | mixlib-log \ |
| 33 | json \ | 33 | json \ |
| 34 | hashie \ | 34 | hashie \ |
diff --git a/meta-openstack/recipes-devtools/ruby/coderay_git.bb b/meta-openstack/recipes-devtools/ruby/coderay_git.bb index cbb743c..3253699 100644 --- a/meta-openstack/recipes-devtools/ruby/coderay_git.bb +++ b/meta-openstack/recipes-devtools/ruby/coderay_git.bb | |||
| @@ -24,3 +24,4 @@ inherit ruby | |||
| 24 | RUBY_COMPILE_FLAGS += "RELEASE=1" | 24 | RUBY_COMPILE_FLAGS += "RELEASE=1" |
| 25 | 25 | ||
| 26 | BBCLASSEXTEND = "native" | 26 | BBCLASSEXTEND = "native" |
| 27 | DEPENDS += "yard" | ||
diff --git a/meta-openstack/recipes-devtools/ruby/mixlib-authentication_git.bb b/meta-openstack/recipes-devtools/ruby/mixlib-authentication_git.bb index eb152e8..b380e01 100644 --- a/meta-openstack/recipes-devtools/ruby/mixlib-authentication_git.bb +++ b/meta-openstack/recipes-devtools/ruby/mixlib-authentication_git.bb | |||
| @@ -22,7 +22,7 @@ SRC_URI = " \ | |||
| 22 | 22 | ||
| 23 | inherit ruby | 23 | inherit ruby |
| 24 | 24 | ||
| 25 | RDEPENDS += " \ | 25 | RDEPENDS_${PN} += " \ |
| 26 | mixlib-log \ | 26 | mixlib-log \ |
| 27 | " | 27 | " |
| 28 | 28 | ||
diff --git a/meta-openstack/recipes-devtools/ruby/net-ssh-gateway_git.bb b/meta-openstack/recipes-devtools/ruby/net-ssh-gateway_git.bb index 7c46b5a..b823a03 100644 --- a/meta-openstack/recipes-devtools/ruby/net-ssh-gateway_git.bb +++ b/meta-openstack/recipes-devtools/ruby/net-ssh-gateway_git.bb | |||
| @@ -26,7 +26,7 @@ SRC_URI = " \ | |||
| 26 | 26 | ||
| 27 | inherit ruby | 27 | inherit ruby |
| 28 | 28 | ||
| 29 | RDEPENDS += " \ | 29 | RDEPENDS_${PN} += " \ |
| 30 | net-ssh \ | 30 | net-ssh \ |
| 31 | " | 31 | " |
| 32 | 32 | ||
diff --git a/meta-openstack/recipes-devtools/ruby/net-ssh-multi_git.bb b/meta-openstack/recipes-devtools/ruby/net-ssh-multi_git.bb index 11527be..86f2807 100644 --- a/meta-openstack/recipes-devtools/ruby/net-ssh-multi_git.bb +++ b/meta-openstack/recipes-devtools/ruby/net-ssh-multi_git.bb | |||
| @@ -26,7 +26,7 @@ SRC_URI = " \ | |||
| 26 | 26 | ||
| 27 | inherit ruby | 27 | inherit ruby |
| 28 | 28 | ||
| 29 | RDEPENDS += " \ | 29 | RDEPENDS_${PN} += " \ |
| 30 | net-ssh \ | 30 | net-ssh \ |
| 31 | net-ssh-gateway \ | 31 | net-ssh-gateway \ |
| 32 | " | 32 | " |
diff --git a/meta-openstack/recipes-devtools/ruby/ohai_git.bb b/meta-openstack/recipes-devtools/ruby/ohai_git.bb index 3dbfe00..6bd31e1 100644 --- a/meta-openstack/recipes-devtools/ruby/ohai_git.bb +++ b/meta-openstack/recipes-devtools/ruby/ohai_git.bb | |||
| @@ -25,7 +25,7 @@ SRC_URI = " \ | |||
| 25 | 25 | ||
| 26 | inherit ruby | 26 | inherit ruby |
| 27 | 27 | ||
| 28 | RDEPENDS += " \ | 28 | RDEPENDS_${PN} += " \ |
| 29 | mime-types \ | 29 | mime-types \ |
| 30 | ipaddress \ | 30 | ipaddress \ |
| 31 | mixlib-cli \ | 31 | mixlib-cli \ |
diff --git a/meta-openstack/recipes-devtools/ruby/pry_git.bb b/meta-openstack/recipes-devtools/ruby/pry_git.bb index 91e3c43..2dc6234 100644 --- a/meta-openstack/recipes-devtools/ruby/pry_git.bb +++ b/meta-openstack/recipes-devtools/ruby/pry_git.bb | |||
| @@ -26,7 +26,7 @@ inherit ruby | |||
| 26 | 26 | ||
| 27 | RUBY_COMPILE_FLAGS = "" | 27 | RUBY_COMPILE_FLAGS = "" |
| 28 | 28 | ||
| 29 | RDEPENDS += " \ | 29 | RDEPENDS_${PN} += " \ |
| 30 | coderay \ | 30 | coderay \ |
| 31 | method-source \ | 31 | method-source \ |
| 32 | slop \ | 32 | slop \ |
diff --git a/meta-openstack/recipes-devtools/ruby/rest-client_git.bb b/meta-openstack/recipes-devtools/ruby/rest-client_git.bb index 9d31e65..0b79cfe 100644 --- a/meta-openstack/recipes-devtools/ruby/rest-client_git.bb +++ b/meta-openstack/recipes-devtools/ruby/rest-client_git.bb | |||
| @@ -23,7 +23,7 @@ SRC_URI = " \ | |||
| 23 | 23 | ||
| 24 | inherit ruby | 24 | inherit ruby |
| 25 | 25 | ||
| 26 | RDEPENDS += " \ | 26 | RDEPENDS_${PN} += " \ |
| 27 | mime-types \ | 27 | mime-types \ |
| 28 | " | 28 | " |
| 29 | 29 | ||
diff --git a/meta-openstack/recipes-support/chef/chef_git.bb b/meta-openstack/recipes-support/chef/chef_git.bb index b2b82e6..11c651d 100644 --- a/meta-openstack/recipes-support/chef/chef_git.bb +++ b/meta-openstack/recipes-support/chef/chef_git.bb | |||
| @@ -33,7 +33,7 @@ DEPENDS += " \ | |||
| 33 | bundler-native \ | 33 | bundler-native \ |
| 34 | " | 34 | " |
| 35 | 35 | ||
| 36 | RDEPENDS += " \ | 36 | RDEPENDS_${PN} += " \ |
| 37 | ruby \ | 37 | ruby \ |
| 38 | chef-zero \ | 38 | chef-zero \ |
| 39 | coderay \ | 39 | coderay \ |
