eselecting a ruby version that is not also listed in RUBY_TARGETS is not a good idea in general. eselect-ruby should check this. Several options come to mind: 1) only show ruby versions listed in RUBY_TARGETS and perhaps add a second set command to override this 2) give a warning when such a ruby version is eselected and show status with the list command
I'm in favor of option 2). Maybe we can add some pkg_postinst message, via our ruby eclasses, that notifies the user about this issue.
Where is RUBY_TARGETS set, if there is not a setting in /etc/make.conf?
(In reply to Manuel Rüger from comment #1) > I'm in favor of option 2). > Maybe we can add some pkg_postinst message, via our ruby eclasses, that > notifies the user about this issue. profiles/base/make.defaults
I thought about something like that: all_ruby_fakegem_pkg-postinst() { if [[ ${RUBY_TARGETS} =~ .*${RUBY}.* ]]; then ewarn "Your currently eselected ruby is not included in your current RUBY_TARGETS" fi }
*** Bug 485158 has been marked as a duplicate of this bug. ***
*** Bug 484278 has been marked as a duplicate of this bug. ***