[packages/ruby/dev-2.1] fix run of locally built ruby
glen
glen at pld-linux.org
Thu Jul 30 23:07:50 CEST 2015
commit 67038d8a72a6cf738be91fd58c91a4139f62e364
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jul 30 21:51:15 2015 +0300
fix run of locally built ruby
ruby.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ruby.spec b/ruby.spec
index 53e0b19..08ed23c 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -527,7 +527,7 @@ cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1
%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html
# detect this runtime, "make install" is affected by operating_system.rb what is installed in system!
-gem_dir=$(./miniruby -I. -Ilib -r rubygems -e 'puts Gem.default_dir')
+gem_dir=$(./miniruby -Ilib -I. -I.ext/common ./tool/runruby.rb -- --disable-gems -r$(basename *-linux-fake.rb .rb) -r rubygems -e 'puts Gem.default_dir')
# Move gems root into common directory, out of Ruby directory structure.
install -d $RPM_BUILD_ROOT%{gem_dir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/e8995a8bbd9a57598140860e25b2aed9582f03d1
More information about the pld-cvs-commit
mailing list