Mailinglist Archive: opensuse-bugs (4295 mails)

< Previous Next >
[Bug 1039552] YaST2: y2start depends on /usr/bin/ruby
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 17 May 2017 16:39:46 +0000
  • Message-id: <bug-1039552-21960-sf5huuCrz1@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1039552
http://bugzilla.opensuse.org/show_bug.cgi?id=1039552#c2

--- Comment #2 from Andrew Moore <slewsys@xxxxxxxxx> ---
(In reply to Stefan Hundhammer from comment #1)
Please elaborate:

What exactly is the problem?
What do you mean with "y2start depends on ruby 2.2"?
(And PLEASE don't dump any relevant information in the subject - that gets
lost in a heartbeat).

I don't see any kind of dependency on any specific ruby version here:

https://github.com/yast/yast-ruby-bindings/blob/master/src/y2start/y2start

or even in the .spec file:


https://github.com/yast/yast-ruby-bindings/blob/master/package/yast2-ruby-
bindings.spec#L63

Requires: ruby

It only says "ruby", not "ruby == 2.2" or anything like that.

How does this problem manifest itself? What do you mean with "y2start fails"?

After installing ruby2.4 and replacing /usr/bin/ruby (2.2) via
update-alternatives, invoke /sbin/yast2 from the command-line. Then try
invoking any module. For example, when I attempted to run snapper, the
following diagnostics are written to the terminal (where yast2 was invoked):

Run command: /sbin/yast2 snapper &
/usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- yast (LoadError)
from
/usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from /usr/lib/YaST2/bin/y2start:9:in `<main>'
Run command: /sbin/yast2 snapper &
/usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- yast (LoadError)
from
/usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from /usr/lib/YaST2/bin/y2start:9:in `<main>'

The instructions provided previously resolve this problem.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References