public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Ruby - 3 versions - seriously????
Date: Sat, 2 Sep 2017 22:57:12 +0200	[thread overview]
Message-ID: <9dfc7db0-cf95-e420-5f1d-c664ab547f2f@gmail.com> (raw)
In-Reply-To: <7b8d7e5b-51d5-2bc2-e1be-e4c9e5510bda@wht.com.au>

On 02/09/2017 15:33, Andrew Lowe wrote:
> Hi all,
> 	I'm in the process of doing a world update and due to a failed compile,
> I have cause to look up through the list of stuff to compile/update.
> Imagine my surprise when I saw there were three versions of Ruby wanting
> to update:
> 
> [ebuild     U  ] dev-lang/ruby-2.4.1-r4 [2.4.1-r3]
> [ebuild     U  ] dev-lang/ruby-2.3.4-r4 [2.3.4-r3]
> [ebuild     U  ] dev-lang/ruby-2.2.7-r4 [2.2.7-r3]
> 
> Have I managed to stuff up something on my machine or is this really the
> case, there has to be three versions? And to make matters worse, they
> are not big version jumps, + 0.1 -> 2.2, 2.3 & 2.4.
> 
> 	I would prefer to get rid of Ruby, but, if memory serves me correctly,
> someone associated with the kernel decided it would be a good idea to
> use yet another language for something, obviously Python wasn't good
> enough....
> 
> 	Thoughts on the magically multiplying Rubies would be greatly appreciated,


Welcome to the giant clusterfuck that is RubyWorld(tm). Just be thankful
you don't have to support corporate internal code written in it. Or
package gems.

OK, so disclaimer up front. I detest Ruby. I hate it with a passion.

You have to understand what Ruby is. It is not a language. It is 5
languages. Like python27 and python3 are really different languages with
much in common. The difference is the python devs have solid reasons for
doing python3 and the transition has been mostly smooth. Each new minor
version of ruby is a whole new language and the devs are OK with large
breaking changes between minor version numbers.

So why 3 rubys? Because they are 3 languages and you have packages that
for whatever reason are tied to different rubys. Just pretend to
yourself that they aren't really ruby22, ruby23 and ruby24 - they are
php, perl and python (or whatever 3 language names you like that help
you get past the 3 rubys! thing).

You probably need all 3. As housekeeping, you can put this in make.conf:
RUBY_TARGETS="ruby22",
and remove all ruby versions from world
and let depclean, revdep-rebuild and emerge world take care of the details.

-- 
Alan McKinnon
alan.mckinnon@gmail.com



  parent reply	other threads:[~2017-09-02 21:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-02 13:33 [gentoo-user] Ruby - 3 versions - seriously???? Andrew Lowe
2017-09-02 13:57 ` Peter Humphrey
2017-09-02 20:57 ` Alan McKinnon [this message]
2017-09-02 21:37   ` Marvin Gülker
2017-09-03  2:18     ` R0b0t1
2017-09-03 10:31       ` Marvin Gülker
2017-09-03 20:35         ` R0b0t1
2017-09-04  6:49           ` Marvin Gülker
2017-09-04 17:07             ` R0b0t1
2017-09-04 17:49               ` Michael Orlitzky
2017-09-04 21:15                 ` R0b0t1
2017-09-04 20:32               ` Marvin Gülker
2017-09-04 23:40                 ` R0b0t1
2017-09-05 12:46                 ` konsolebox
2017-09-03  6:08   ` [gentoo-user] " Hans de Graaff
2017-09-03  5:54 ` Hans de Graaff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9dfc7db0-cf95-e420-5f1d-c664ab547f2f@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox