Gentoo Archives: gentoo-user

From: Hubert Hauser <hubot@××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How can I recover Ruby 2.2?
Date: Fri, 06 Oct 2017 17:27:40
Message-Id: 5bb41d0a-fc41-24a9-104f-847d5427fbd4@mail.com
1 Unfortunaly, I set in /etc/portage/make.conf variable RUBY_TARGETS to
2 "ruby22 ruby24" and I executed command eselect profile set 2. Now I need
3 to recovering these changes. I want to have Ruby 2.2. File
4 /etc/portage/make.conf:
5 # These settings were set by the catalyst build script that automatically
6 # built this stage.
7 # Please consult /usr/share/portage/config/make.conf.example for a more
8 # detailed example.
9 CFLAGS="-march=native -O2 -pipe"
10 CXXFLAGS="${CFLAGS}"
11 MAKEOPTS="-j5"
12 VIDEO_CARDS="nvidia"
13 #INPUT_DEVICES="libinput synaptics"
14 INPUT_DEVICES="libinput synaptics evdev mouse keyboard"
15 # WARNING: Changing your CHOST is not something that should be done lightly.
16 # Please consult http://www.gentoo.org/doc/en/change-chost.xml before
17 changing.
18 CHOST="x86_64-pc-linux-gnu"
19 # These are the USE and USE_EXPAND flags that were used for
20 # buidling in addition to what is provided by the profile.
21 #USE="bindist"
22 USE="userlocales unicode nls tools X a52 aac acl acpi alsa amd64 berkdb \
23      -bindist bluetooth branding bzip2 cairo cdda cdr cli colord \
24      consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds \
25      emboss encode evo exif fam firefox flac fortran gdbm gif glamor \
26      -gnome -gnome-keyring -gnome-online-accounts gpm gstreamer \
27      gtk iconv introspection ipv6 jpeg lcms ldap libnotify \
28      libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nptl \
29      ogg opengl openmp pam pango pcre pdf png policykit ppds \
30      -pulseaudio qt3support qt4 readline sdl seccomp session spell ssl \
31      startup-notification svg -systemd tcpd tiff tracker truetype \
32      udev udisks upower usb vorbis wxwidgets x264 xattr xcb xml \
33      xv xvid zlib savedconfig xinerama python cjk wifi hardened jack \
34      startup-notification custom-cflags java postgres curl lzma socks5 \
35      perl v4l fontconfig gphoto2 gsm nls odbc openal scanner threads \
36      vaapi xcomposite -ruby_targets_ruby24"
37 #USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
38 bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus
39 dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran
40 gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer
41 gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng
42 modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl
43 openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4
44 readline sdl seccomp session spell ssl startup-notification svg tcpd
45 tiff tools tracker truetype udev udisks unicode upower usb userlocales
46 vorbis wxwidgets x264 xattr xcb xml xv xvid zlib"
47 CPU_FLAGS_X86="mmx mmxext sse sse2"
48 RUBY_TARGETS="ruby22"
49 PORTDIR="/usr/portage"
50 DISTDIR="${PORTDIR}/distfiles"
51 PKGDIR="${PORTDIR}/packages"
52 FEATURES="userfetch webrsync-gpg clean-logs binpkg-logs split-log"
53 PORT_LOGDIR="/var/log/portage"
54 PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
55 GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl
56 rsync://gentoo.prz.rzeszow.pl/gentoo rsync://ftp.vectranet.pl/gentoo/
57 http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/"
58 CONFIG_PROTECT_MASK="/usr/bin/startx"
59 #FETCHCOMMAND="curl --socks5-hostname 127.0.0.1:9050 --retry 3
60 --connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
61 #RESUMECOMMAND="curl -C - --socks5-hostname 127.0.0.1:9050 --retry 3
62 --connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
63
64 Result of sudo -i emerge --ask --update --deep --newuse @world:
65
66 pecan@tux ~ $ sudo -i emerge --ask --update --deep --newuse @world
67
68  * IMPORTANT: 2 news items need reading for repository 'gentoo'.
69  * Use eselect news read to view new items.
70
71
72 These are the packages that would be merged, in order:
73
74 Calculating dependencies... done!
75 [ebuild  NS    ] dev-ruby/json-1.8.6-r1 [2.1.0] USE="-doc {-test}"
76 RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)"
77
78 WARNING: One or more updates/rebuilds have been skipped due to a
79 dependency conflict:
80
81 dev-ruby/rubygems:0
82
83   (dev-ruby/rubygems-2.6.13:0/0::gentoo, ebuild scheduled for merge)
84 conflicts with
85     >=dev-ruby/rubygems-2.6.11[ruby_targets_ruby24] required by
86 (virtual/rubygems-13:0/0::gentoo, installed)
87                                ^^^^^^^^^^^^^^^^^^^
88
89
90 Would you like to merge these packages? [Yes/No] No
91
92 Quitting.
93
94 Result of emerge -pvO virtual/rubygems:
95
96 pecan@tux ~ $  emerge -pvO virtual/rubygems
97
98 These are the packages that would be merged, in order:
99
100 [ebuild     UD ] virtual/rubygems-11::gentoo [13::gentoo]
101 RUBY_TARGETS="ruby22 (-rbx) (-ruby23) (-ruby24%*)" 0 KiB
102
103 Total: 1 package (1 downgrade), Size of downloads: 0 KiB
104
105  * IMPORTANT: 2 news items need reading for repository 'gentoo'.
106  * Use eselect news read to view new items.[/code]
107 [b]sudo eselect ruby list[/b]:
108 [code]pecan@tux ~ $ sudo eselect ruby list
109 Available Ruby profiles:
110   [1]   ruby22 (with Rubygems) *
111   [2]   ruby24 (with Rubygems)
112
113 How can I recover Ruby 2.2 and completely remove Ruby 2.4?
114
115 I'm counting for help.