Re: [gentoo-user] ruby problem preventing my world update

2021-02-14 Thread John Covici
On Sun, 14 Feb 2021 15:04:43 -0500,
Ionen Wolkens wrote:
> 
> [1  ]
> On Sun, Feb 14, 2021 at 02:41:31PM -0500, John Covici wrote:
> > Hi.  In trying to do my world update today, I have run into some kind
> > of ruby problem.
> > 
> > When doing the update portage had me add changes, seems mostly to do
> > with add ruby 3.0 as a ruby_target.  Now, I get the following at the
> > end of my world update log
> [...] 
> > 1: from /usr/lib64/ruby/2.5.0/rubygems.rb:17:in `'
> 
> Unlike python, ruby is not very good at selecting a version that works
> so eselect ruby actually matters. Here it's trying to 2.5.0 while it's
> half uninstalled and unsurprisingly fail.
> 
> Have a look at "eselect ruby list" and set a version that's actually in
> RUBY_TARGETS
> 
> With profile's default that'd be "eselect ruby set ruby26" or 30 if
> that's what you're using now.
> 

Thanks a lot, thatdidit, I wonder if ruby25 is used for anything,
maybe after this is done I will see if depclean can  unmerge it.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



Re: [gentoo-user] ruby problem preventing my world update

2021-02-14 Thread Ionen Wolkens
On Sun, Feb 14, 2021 at 02:41:31PM -0500, John Covici wrote:
> Hi.  In trying to do my world update today, I have run into some kind
> of ruby problem.
> 
> When doing the update portage had me add changes, seems mostly to do
> with add ruby 3.0 as a ruby_target.  Now, I get the following at the
> end of my world update log
[...] 
>   1: from /usr/lib64/ruby/2.5.0/rubygems.rb:17:in `'

Unlike python, ruby is not very good at selecting a version that works
so eselect ruby actually matters. Here it's trying to 2.5.0 while it's
half uninstalled and unsurprisingly fail.

Have a look at "eselect ruby list" and set a version that's actually in
RUBY_TARGETS

With profile's default that'd be "eselect ruby set ruby26" or 30 if
that's what you're using now.

-- 
ionen


signature.asc
Description: PGP signature


[gentoo-user] ruby problem preventing my world update

2021-02-14 Thread John Covici
Hi.  In trying to do my world update today, I have run into some kind
of ruby problem.

When doing the update portage had me add changes, seems mostly to do
with add ruby 3.0 as a ruby_target.  Now, I get the following at the
end of my world update log

>>> Emerging (57 of 237) dev-ruby/racc-1.5.2-r1::gentoo
 * racc-1.5.2.tar.gz BLAKE2B SHA512 size ;-) ...

 [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking racc-1.5.2.tar.gz to 
>>> /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work
>>> Preparing source in /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
Traceback (most recent call last):
3: from :2:in `'
2: from :2:in `require'
1: from /usr/lib64/ruby/2.5.0/rubygems.rb:17:in `'
/usr/lib64/ruby/2.5.0/rubygems.rb:17:in `require': cannot load such file -- 
rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/racc-1.5.2-r1::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 * ebuild.sh, line  125:  Called src_prepare
 *   environment, line 2205:  Called ruby-ng_src_prepare
 *   environment, line 1861:  Called _ruby_invoke_environment 'all' 
'_ruby_apply_patches'
 *   environment, line  717:  Called _ruby_apply_patches
 *   environment, line  552:  Called all_ruby_prepare
 *   environment, line  817:  Called die
 * The specific snippet of code:
 *   rake lib/racc/parser-text.rb || die;
 * 
 * If you need support, post the output of `emerge --info 
'=dev-ruby/racc-1.5.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=dev-ruby/racc-1.5.2-r1::gentoo'`.
 * The complete build log is located at 
'/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'.
 * For convenience, a symlink to the build log is located at 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/temp/environment'.
 * Working directory: 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all/racc-1.5.2'
 * S: '/var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all/racc-1.5.2'

>>> Failed to emerge dev-ruby/racc-1.5.2-r1, Log file:

>>>  '/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'
*** Resuming merge...

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

Calculating dependencies  . done!
 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25] pulled in by:
 * (dev-lang/ruby-2.5.8-r1:2.5/2.5::gentoo, installed)
 * 
 *   >=dev-ruby/bundler-2.1.4[ruby_targets_ruby30] pulled in by:
 * (dev-lang/ruby-3.0.0-r1:3.0/3.0::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/bundler-2.2.4:2/2::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/did_you_mean-1.2.1:2.5/2.5::gentoo, installed)
 * 
 *   virtual/ruby-ssl[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/racc-1.5.2:0/0::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/rdoc-6.3.0:0/0::gentoo, installed)
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-ruby/racc-1.5.2-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'

I tried to emerge dev-ruby/racc, after re-installing
dev-ruby/rubygens, but no joy.

How can I proceed?

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com