Description of problem: gem2rpm uses a previously deprecated uri-open api that has been removed from Ruby 3.0. Version-Release number of selected component (if applicable): rubygem-gem2rpm-1.0.1-7.fc34.noarch How reproducible: Always Steps to Reproduce: 1. Run: gem2rpm --fetch something "something" is non-existing gem, but it always fails when using --fetch Actual results: /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `initialize': No such file or directory @ rb_sysopen - https://rubygems.org/api/v1/gems/something.json (Errno::ENOENT) from /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `open' from /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `<top (required)>' from /usr/bin/gem2rpm:23:in `load' from /usr/bin/gem2rpm:23:in `<main>' Expected results: Gem fetch failed with error: 404 Not Found Additional info: The following change fixes the problem: --- /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm.orig 2021-04-24 08:29:46.075929560 +0200 +++ /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm 2021-04-24 08:31:50.231335838 +0200 @@ -52,12 +52,12 @@ if options[:fetch] gem_uri = '' begin - open("https://rubygems.org/api/v1/gems/#{gemfile}.json") do |f| + URI.open("https://rubygems.org/api/v1/gems/#{gemfile}.json") do |f| gem_uri = f.read.match(/"gem_uri":\s*"(.*?)",/m)[1] gemfile = URI.parse(gem_uri).path.split('/').last gemfile = File.join(out_dir, gemfile) - open(gemfile, 'w') do |gf| - gf.write(open(gem_uri).read) + URI.open(gemfile, 'w') do |gf| + gf.write(URI.open(gem_uri).read) end end rescue OpenURI::HTTPError => e
This is fixed upstream: https://bugzilla.redhat.com/show_bug.cgi?id=1953150 I just did not find the cycles to cut the new release :/ Sorry.
Ups, wrong copy/paste: https://github.com/fedora-ruby/gem2rpm/commit/3ccc64b1f343d11a6be32c62e24f563c12eda24e
FEDORA-2021-f699f56eef has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f699f56eef
FEDORA-2021-f699f56eef has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-c3ad43f275 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c3ad43f275
FEDORA-2021-b3f5710609 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b3f5710609
FEDORA-2021-c3ad43f275 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c3ad43f275` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c3ad43f275 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-b3f5710609 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b3f5710609` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b3f5710609 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-b3f5710609 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-c3ad43f275 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.