Re: [opensuse-ruby] How to run current versions of ruby on Leap

2017-06-28 Thread Marcus Rückert
On Wed, 28 Jun 2017 16:01:47 +0200
Cornelius Schumacher  wrote:

> On 2017 M06 28, Wed 14:58:33 CEST Marcus Rückert wrote:
> > 
> > as the ruby maintainer i can recommend this way if you can't live
> > with versioned binaries.  
> 
> The problem with versioned binaries is that it's incovenient to type,
> and more importantly that all documentation, examples, snippets,
> scripts you can find out there are assuming non-versioned binaries.
> It would be nicer to have a way to work with Ruby which works out of
> the box for everybody.

I really hope that having to call a binary with a slightly different
name is something that the average developer can do.

And as i said this only affects a few very core binaries. all our
rubygem rpms are using update-alternatives.

> > As Josef pointed out already do not change the system ruby.  
> 
> Might it be possible to make YaST use a versioned version of Ruby, so
> that the system Ruby would be a bit more flexible?

Sure. Will you and your team help with the work and the maintenance
to keep it working in the long run?

darix

-- 
  openSUSE - SUSE Linux is my linux
  openSUSE is good for you
  www.opensuse.org
--
To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org



Re: [opensuse-ruby] How to run current versions of ruby on Leap

2017-06-28 Thread Cornelius Schumacher
On 2017 M06 28, Wed 13:38:59 CEST Henne Vogelsang wrote:
> Hey,
> 
> On 27.06.2017 16:13, Cornelius Schumacher wrote:
> > What is our stance on this? Are there any pointers?
> 
> Install the packaged version you want. Handle ruby by linking it into a
> directory that is in front of your path.
> 
> ln -sf /usr/bin/ruby.ruby$VERSION ~/bin/ruby
> ln -sf /usr/bin/gem.ruby$VERSION ~/bin/gem

This has to be done for every executable which is installed by a gem. Is there 
some more convenient way than doing that manually?

-- 
Cornelius Schumacher 
-- 
To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org



Re: [opensuse-ruby] How to run current versions of ruby on Leap

2017-06-28 Thread Cornelius Schumacher
On 2017 M06 28, Wed 14:58:33 CEST Marcus Rückert wrote:
> 
> as the ruby maintainer i can recommend this way if you can't live with
> versioned binaries.

The problem with versioned binaries is that it's incovenient to type, and more 
importantly that all documentation, examples, snippets, scripts you can find 
out there are assuming non-versioned binaries. It would be nicer to have a way 
to work with Ruby which works out of the box for everybody.

> As Josef pointed out already do not change the system ruby.

Might it be possible to make YaST use a versioned version of Ruby, so that the 
system Ruby would be a bit more flexible?

-- 
Cornelius Schumacher 
--
To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org



Re: [opensuse-ruby] How to run current versions of ruby on Leap

2017-06-28 Thread Marcus Rückert
On Wed, 28 Jun 2017 13:38:59 +0200
Henne Vogelsang  wrote:

> Hey,
> 
> On 27.06.2017 16:13, Cornelius Schumacher wrote:
> 
> > What is our stance on this? Are there any pointers?  
> 
> Install the packaged version you want. Handle ruby by linking it into
> a directory that is in front of your path.
> 
> ln -sf /usr/bin/ruby.ruby$VERSION ~/bin/ruby
> ln -sf /usr/bin/gem.ruby$VERSION ~/bin/gem

as the ruby maintainer i can recommend this way if you can't live with
versioned binaries.

As Josef pointed out already do not change the system ruby.

Now if we as openSUSE project would want to have /usr/bin/ruby variable
the following things need to be done:

1. fix all shebang lines to use a version ruby path.
2. make sure all packages require the version used in their shebang
   line.
3. switch code to update-alternatives for /usr/bin/ruby.

   darix

-- 
  openSUSE - SUSE Linux is my linux
  openSUSE is good for you
  www.opensuse.org
-- 
To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org



Re: [opensuse-ruby] How to run current versions of ruby on Leap

2017-06-28 Thread Henne Vogelsang

Hey,

On 27.06.2017 16:13, Cornelius Schumacher wrote:


What is our stance on this? Are there any pointers?


Install the packaged version you want. Handle ruby by linking it into a 
directory that is in front of your path.


ln -sf /usr/bin/ruby.ruby$VERSION ~/bin/ruby
ln -sf /usr/bin/gem.ruby$VERSION ~/bin/gem

Henne

--
Henne Vogelsang
http://www.opensuse.org
Everybody has a plan, until they get hit.
- Mike Tyson
--
To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org