On Sun, Aug 20 2017, Alec Ten Harmsel wrote:
> On 08/20/2017 08:19 AM, allan gottlieb wrote:
>> I am currently running ruby21 (ruby-2.1.9).
>> All such versions of ruby are masked so this is clearly a mistake
>> on my part. I was alerted to this error by dev-ruby/rdoc-4.2.0
>> failing to build on today's emerge --update @world
>>
>> After I do
>> eselect ruby set ruby22
>> can I simply
>> emerge --update @world
>> or must I explicitly rebuild some ruby packages?
>
> I don't believe that will be enough. You should update RUBY_TARGETS in
> /etc/portage/make.conf if you have it set. If you don't have it set
> and are still getting this error, that's a bug and should be filed on
> b.g.o. I have a custom RUBY_TARGETS as I do some ruby development, so
> I don't have a vanilla system to test this on.
>
> Also, you'll have to run a slightly different command to update (since
> RUBY_TARGETS, PYTHON_TARGETS, etc. are USE flags underneath):
>
> emerge --update --newuse --deep @world
>
> You shouldn't have to 'eselect ruby' either - portage will do this for
> you while updating.
>
> Alec
Not sure I understand.
1. I should have been more complete about the command I run
MAKEOPTS="--jobs=8 --load-average=5"
emerge --ask --deep --tree --jobs --load-average=5 \
--update --changed-use --with-bdeps=y @world
2. I do not have "ruby" or "RUBY" anywhere in the tree rooted
at /etc/portage
3. emerge did not offer to upgrade RUBY_TARGETS does
not seem happy with ruby21 since the emerge output includes
[ebuild R ] dev-ruby/test-unit-3.1.9 RUBY_TARGETS="(-ruby21%*)"
[ebuild R ] dev-ruby/rdoc-4.2.0 RUBY_TARGETS="(-ruby21%*)"
[ebuild R ] dev-ruby/minitest-5.8.4 RUBY_TARGETS="(-ruby21%*)"
4. I synced the tree today just before the emerge. Might I have picked
up an inconsistent tree and hence should I resync?
5. The emerge error msg is below.
6. I have NOT done the eselect ruby set ruby 22.
Thanks for you help
allan
================================================================
>>> Install rdoc-4.2.0 into /var/tmp/portage/dev-ruby/rdoc-4.2.0/image/
>>> category dev-ruby
* Running install phase for ruby22 ...
* Running install phase for all ...
* ERROR: dev-ruby/rdoc-4.2.0::gentoo failed (install phase):
* USE Flag 'ruby_targets_ruby21' not in IUSE for dev-ruby/rdoc-4.2.0
*
* Call stack:
* ebuild.sh, line 115: Called src_install
* environment, line 4405: Called ruby-ng_src_install
* environment, line 4105: Called _ruby_invoke_environment 'all'
'all_ruby_install'
* environment, line 540: Called all_ruby_install
* environment, line 636: Called use 'ruby_targets_ruby21'
* phase-helpers.sh, line 200: Called die
* The specific snippet of code:
* die "USE Flag '${u}' not in IUSE for
${CATEGORY}/${PF}"
*
* If you need support, post the output of `emerge --info
'=dev-ruby/rdoc-4.2.0::gentoo'`,
* the complete build log and the output of `emerge -pqv
'=dev-ruby/rdoc-4.2.0::gentoo'`.