FS#75888 - [ruby-io-wait] cannot load such file -- io/wait

Attached to Project: Community Packages
Opened by Hamish Claxton (Verequies) - Monday, 12 September 2022, 09:53 GMT
Last edited by Andreas Schleifer (Segaja) - Wednesday, 05 October 2022, 21:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Andreas Schleifer (Segaja)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

`<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- io/wait (LoadError)`

This task depends upon

Closed by  Andreas Schleifer (Segaja)
Wednesday, 05 October 2022, 21:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  Packages have been fixed in [community]
Comment by Bert Peters (bertptrs) - Monday, 12 September 2022, 16:53 GMT
Can reproduce this issue. Easiest way is to start an interactive ruby shell with `irb`, then run `require "io/wait"`. This will return false, despite the files being present. I'm far from an expert on ruby so I'm less sure how to further diagnose this issue.
Comment by Hamish Claxton (Verequies) - Monday, 12 September 2022, 20:30 GMT
Reading /var/log/pacman.log, I was able to downgrade and find a set of Ruby packages where io/wait was working.
It seems upgrading to ruby >= 3.0.4-8 breaks io/wait. I've attached a working package list for those who need this working as a temporary work around.
Comment by Toolybird (Toolybird) - Monday, 12 September 2022, 22:57 GMT
There's a new ruby-io-wait in community-testing with major changes "restructure stdlib to fit into ruby structure". Can someone run testing?
Comment by Hamish Claxton (Verequies) - Monday, 12 September 2022, 23:12 GMT
Okay, I've tested the updated version and it works now. I am compiling/installing GitLab from source (which works with previous versions of the ruby 3.0.4 packages) to test this.
Similar issues are being had now with ruby-uri:
'<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- uri'

Perhaps ruby-uri and other packages need the same restructuring too? I can make a new issue if needed.
Comment by Bert Peters (bertptrs) - Tuesday, 13 September 2022, 06:27 GMT
Can confirm, issue is fixed for io/wait, now a few others are still problematic. From my own testing:

- time
- logger
- json
- uri

Worked around this for the time being by manually adding them to bundler, would be great if they're fixed!
Comment by Hamish Claxton (Verequies) - Monday, 19 September 2022, 23:04 GMT
ruby-uri seems to be fixed in the latest package releases.
Now getting an error with ruby-open-uri.
'<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- open-uri (LoadError)'
Comment by Andreas Schleifer (Segaja) - Tuesday, 20 September 2022, 07:04 GMT
I'm working on fixes in -testing and hope i can push them all to [community] soon.
Comment by Hamish Claxton (Verequies) - Sunday, 25 September 2022, 06:44 GMT
open-uri appears to work now, but the installation of GitLab from source now breaks with 'Psych::BadAlias: Unknown alias: base'
I have made a separate issue for ruby-psych for this.
Note that if I downgrade all ruby packages to those I have specified above in 'ruby-versions-working.txt', it starts working again.
It seems something with the restructuring broke ruby-psych.
Comment by Andreas Schleifer (Segaja) - Sunday, 25 September 2022, 10:30 GMT
Thanks for testing, I have assigned myself to https://bugs.archlinux.org/index.php?do=details&task_id=76004 and I will look into this before I push the entire bunch to [community].
Comment by Andreas Schleifer (Segaja) - Wednesday, 05 October 2022, 21:40 GMT
The bug was fixed on [community-testing] and it was now moved to [community]

Loading...