Summary: | dev-ruby/did_you_mean-1.5.0 rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | carlphilippreh, esavier, ionen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log |
Description
Leonid Kopylov
2021-03-15 09:59:08 UTC
Created attachment 691554 [details]
build.log
# eselect ruby list Available Ruby profiles: [1] ruby25 (with Rubygems) [2] ruby26 (with Rubygems) [3] ruby27 (with Rubygems) * [4] ruby30 (with Rubygems) # eselect ruby set 4 Successfully switched to profile: ruby30 switching to ruby30 - didn't help It seems that there are a lot of different issues around ruby. I have the same problem, i prevents me to perform proper fresh installation. I am using systemd profile. Technically, it is possible to downgrade but i am failing to emerge 1.4.0. From a quick look may be widespread ruby issues affecting many packages. I can reproduce if I add ruby27 to my RUBY_TARGETS, but no issues (for me) if just ruby26. i also have similar issue if i set only ruby26 Some of the packages in ~amd64 are pulling ruby30 either way. I tried ruby27 without any proper results. Currently, i am bypassing it by just adding --keep-going and leaving it did not fully update, but this is not a proper way. Also i tried to mask some packages that are causing problems, but at some point i was just left with ruby installed directly to / with error "can not create gemspec file". (In reply to Mateusz Matejuk from comment #6) > Some of the packages in ~amd64 are pulling ruby30 either way. That's a long standing bug where ruby-single packages (ruby-fakegem is fine) try to get the latest supported ruby even if it's not needed nor in your TARGETS. If you had "dev-lang/ruby -~amd64" in package.accept_keywords, then those packages will stop asking for it unless they genuinely don't have stable ruby support. (In reply to Leonid Kopylov from comment #5) > i also have similar issue if i set only ruby26 I assume your current ruby26 may be broken as well at this point and it's causing other things to fail. Emerging only-26 from scratch would probably work (does for me anyway). With a broken ruby27 I'm getting this when installing rubygems (any version): * The ebuild is installing to one or more unexpected paths: * * /auto_gem.rb * /rubygems * /rubygems.rb * /ubygems.rb Likely because: local sld=$(ruby_rbconfig_value 'sitelibdir') which is: ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']" Is failing and there's no error check causing quite a mess. even with ruby26 only installed, i have a lot of ruby-related packages unable to install dev-ruby/rdoc-6.1.2 failed with ruby26 error Created attachment 692589 [details]
build.log
Does anyone had any luck with this? It blocks pretty large chunk of updates for ~amd64, including security ones. As I wrote in the comment below, we can workaround the problem by adding "--disable=did_you_mean" to ruby_rbconfig_value() in ruby-ng.eclass and ruby_fakegem_metadata_gemspec() in ruby-fakegem.eclass. https://bugs.gentoo.org/705346#c5 Okay, sure, thank you very much. I will test it tonight. I am not really familiar with Ruby that much, so I am unable to tell if that will mess something up down the line (for whatever is dependent on this) but i will try it, nonetheless, and report what happened. This is blocking the updates for more than 2 months now. it works great as a bypass, but update still hangs on dev-ruby/minitest-5.14.4 https://bugs.gentoo.org/780900 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=922cd9af2eedc7e9dc5b8cae7dff419b53beefb5 commit 922cd9af2eedc7e9dc5b8cae7dff419b53beefb5 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2021-05-01 05:08:07 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2021-05-01 05:11:22 +0000 ruby-ng.eclass: die on errors in ruby_rbconfig_value Die on errors in ruby_rbconfig_value, so that any issues with it cause an immediate stop, rather than returning a nil value which may propagate into installed ebuilds and cause hard-to-diagnose issues. Closes: https://bugs.gentoo.org/776322 Signed-off-by: Hans de Graaff <graaff@gentoo.org> eclass/ruby-ng.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |