Patchwork [meta-oe,1/2] ruby: find gems relative to its own location

login
register
mail settings
Submitter Christopher Larson
Date Nov. 27, 2013, 5:50 p.m.
Message ID <1385574620-9408-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/62495/
State Accepted, archived
Headers show

Comments

Christopher Larson - Nov. 27, 2013, 5:50 p.m.
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>
---
 meta-ruby/recipes-devtools/ruby/ruby_1.9.3-p429.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-ruby/recipes-devtools/ruby/ruby_1.9.3-p429.bb b/meta-ruby/recipes-devtools/ruby/ruby_1.9.3-p429.bb
index de51f2f..883bb98 100644
--- a/meta-ruby/recipes-devtools/ruby/ruby_1.9.3-p429.bb
+++ b/meta-ruby/recipes-devtools/ruby/ruby_1.9.3-p429.bb
@@ -17,10 +17,10 @@  SRC_URI[sha256sum] = "d192d1afc46a7ef27b9d0a3c7a67b509048984db2c38907aa82641bdf9
 
 EXTRA_OECONF = "\
     --enable-wide-getaddrinfo \
-    --with-rubygemsdir=${datadir}/rubygems \
     --disable-versioned-paths \
     --disable-rpath \
     --enable-shared \
+    --enable-load-relative \
 "
 
 EXTRA_OEMAKE = " \