| |
@@ -526,6 +526,13 @@
|
| |
|
| |
|
| |
%prep
|
| |
+ # Ensure ruby package is not install to run "make install" correctly.
|
| |
+ # Gem.default_dir in tool/rbinstall.rb in the process of "make install"
|
| |
+ # overridden by /usr/share/rubygems/rubygems/defaults/operating_system.rb
|
| |
+ # installs default gems to wrong path.
|
| |
+ # https://github.com/ruby/ruby/blob/v2_5_3/tool/rbinstall.rb#L734-L736
|
| |
+ rpm -q --quiet ruby && false
|
| |
+
|
| |
%setup -q -n %{ruby_archive}
|
| |
|
| |
# Remove bundled libraries to be sure they are not used.
|
| |
I want to add check if ruby package is not installed to
ruby.spec
file.Because when normal user run src.rpm file created by the
ruby.spec
byrpmbuild
command with installedruby
package, the build becomes error.Below line is wrong.
It should be like this.
installing default gems from lib: /usr/share/ruby/gems/ (build_info, cache, doc, extensions, gems, specifications)
This is
Gem.default_dir
overridden by installed /usr/share/rubygems/rubygems/defaults/operating_system.rb is used intool/rbinstall.rb
.https://github.com/ruby/ruby/blob/v2_5_3/tool/rbinstall.rb#L734-L736
This check is good for someone to create binary RPMs by
rpmbuild
command.After the modification
The check works.