How can I recover Ruby 2.2?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How can I recover Ruby 2.2?

Hubert Hauser
Unfortunaly, I set in /etc/portage/make.conf variable RUBY_TARGETS to
"ruby22 ruby24" and I executed command eselect profile set 2. Now I need
to recovering these changes. I want to have Ruby 2.2. File
/etc/portage/make.conf:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
VIDEO_CARDS="nvidia"
#INPUT_DEVICES="libinput synaptics"
INPUT_DEVICES="libinput synaptics evdev mouse keyboard"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before
changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
#USE="bindist"
USE="userlocales unicode nls tools X a52 aac acl acpi alsa amd64 berkdb \
     -bindist bluetooth branding bzip2 cairo cdda cdr cli colord \
     consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds \
     emboss encode evo exif fam firefox flac fortran gdbm gif glamor \
     -gnome -gnome-keyring -gnome-online-accounts gpm gstreamer \
     gtk iconv introspection ipv6 jpeg lcms ldap libnotify \
     libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nptl \
     ogg opengl openmp pam pango pcre pdf png policykit ppds \
     -pulseaudio qt3support qt4 readline sdl seccomp session spell ssl \
     startup-notification svg -systemd tcpd tiff tracker truetype \
     udev udisks upower usb vorbis wxwidgets x264 xattr xcb xml \
     xv xvid zlib savedconfig xinerama python cjk wifi hardened jack \
     startup-notification custom-cflags java postgres curl lzma socks5 \
     perl v4l fontconfig gphoto2 gsm nls odbc openal scanner threads \
     vaapi xcomposite -ruby_targets_ruby24"
#USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus
dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran
gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer
gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng
modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl
openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4
readline sdl seccomp session spell ssl startup-notification svg tcpd
tiff tools tracker truetype udev udisks unicode upower usb userlocales
vorbis wxwidgets x264 xattr xcb xml xv xvid zlib"
CPU_FLAGS_X86="mmx mmxext sse sse2"
RUBY_TARGETS="ruby22"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
FEATURES="userfetch webrsync-gpg clean-logs binpkg-logs split-log"
PORT_LOGDIR="/var/log/portage"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl
rsync://gentoo.prz.rzeszow.pl/gentoo rsync://ftp.vectranet.pl/gentoo/
http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/"
CONFIG_PROTECT_MASK="/usr/bin/startx"
#FETCHCOMMAND="curl --socks5-hostname 127.0.0.1:9050 --retry 3
--connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
#RESUMECOMMAND="curl -C - --socks5-hostname 127.0.0.1:9050 --retry 3
--connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""

Result of sudo -i emerge --ask --update --deep --newuse @world:

pecan@tux ~ $ sudo -i emerge --ask --update --deep --newuse @world

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] dev-ruby/json-1.8.6-r1 [2.1.0] USE="-doc {-test}"
RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)"

WARNING: One or more updates/rebuilds have been skipped due to a
dependency conflict:

dev-ruby/rubygems:0

  (dev-ruby/rubygems-2.6.13:0/0::gentoo, ebuild scheduled for merge)
conflicts with
    >=dev-ruby/rubygems-2.6.11[ruby_targets_ruby24] required by
(virtual/rubygems-13:0/0::gentoo, installed)
                               ^^^^^^^^^^^^^^^^^^^


Would you like to merge these packages? [Yes/No] No

Quitting.

Result of emerge -pvO virtual/rubygems:

pecan@tux ~ $  emerge -pvO virtual/rubygems

These are the packages that would be merged, in order:

[ebuild     UD ] virtual/rubygems-11::gentoo [13::gentoo]
RUBY_TARGETS="ruby22 (-rbx) (-ruby23) (-ruby24%*)" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.[/code]
[b]sudo eselect ruby list[/b]:
[code]pecan@tux ~ $ sudo eselect ruby list
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
  [2]   ruby24 (with Rubygems)

How can I recover Ruby 2.2 and completely remove Ruby 2.4?

I'm counting for help.