]> git.pld-linux.org Git - packages/ruby.git/commitdiff
fix run of locally built ruby
authorElan Ruusamäe <glen@delfi.ee>
Thu, 30 Jul 2015 18:51:15 +0000 (21:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 30 Jul 2015 18:51:15 +0000 (21:51 +0300)
ruby.spec

index 53e0b19f5b472350ed0935a06c0881151769912d..08ed23cbe50c0f3d3efa4bc5702bff79bc273adf 100644 (file)
--- 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}
This page took 0.126828 seconds and 4 git commands to generate.