FS#69948 - [ruby-cairo] needs ruby-native-package-installer and red-colors gems as runtime dependencies

Attached to Project: Community Packages
Opened by Blesko (bleskodev) - Thursday, 11 March 2021, 21:16 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 11 May 2021, 01:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Currently ruby-cairo gem package lists ruby-native-package-installer gem package as 'make' dependency.
According to ruby gems site: https://rubygems.org/gems/cairo, native-package-installer gem is a runtime dependency.
Also, from version 1.17.4, cairo gem has a new runtime dependency: red-colors. This gem does not seem to have a package in Arch Linux.
The result is that rub-cairo gem (and by consequence ruby-gtk3 gem which depends on ruby-cairo) are not usable (exception is raised, see steps to reproduce).


Additional info:
* package version(s): ruby-cairo 1.17.5-1

Steps to reproduce:
1. verify that ruby-cairo and ruby-native-package-installer gems are not installed.
2. install ruby-cairo
3. launch interactive ruby: irb
4. when in the interactive ruby, issue: require 'cairo'
5. the exception is raised: Gem:MissingSpecError

6. To have more information, in the interactive ruby run the following code:
begin
require 'cairo'
rescue LoadError => e
puts e.message
end

The output should be something like:
Could not find 'native-package-installer' (>= 1.0.3) among 51 total gem(s)

7. install ruby-native-package-installer
8. repeat steps 3-6

This time, the output of the step 6 should be something like:
Could not find 'red-colors' (>= 0) among 51 total gem(s)

9. install red-colors using 'gem' (gem install red-colors)
10. repeat steps 3-4

Output of step 4 should be:
=> true

No, errors, cairo gem works.
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Tuesday, 11 May 2021, 01:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  ruby-cairo-1.17.5-3
Comment by Eivind (mokkurkalve) - Thursday, 11 March 2021, 22:00 GMT
This bug prevents me from upgrading the rubyripper AUR package i currently maintain.

~$rrip_gui
Could not find 'red-colors' (>= 0) among 79 total gem(s)
Checked in 'GEM_PATH=/home/eivind/.local/share/gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0' at: /usr/lib/ruby/gems/2.7.0/specifications/cairo-1.17.5.gemspec, execute `gem env` for more information
The ruby-gtk3 library (or one of its dependencies) could not be found. Is it correctly installed?
Comment by Eivind (mokkurkalve) - Wednesday, 14 April 2021, 18:32 GMT
The problem is still present in ruby-cairo 1.17.5-2 with ruby 3.0.1-1.
require 'cairo' still complainig about missing 'red-colors' and I can't get ruby-gtk3 to work.
Manually issuing "gem install red-colors" fixes the problem.
Comment by Anatol Pomozov (anatolik) - Tuesday, 11 May 2021, 00:25 GMT
Looking at it...
Comment by Anatol Pomozov (anatolik) - Tuesday, 11 May 2021, 00:33 GMT
Please try ruby-cairo-1.17.5-3 and let me know if you still see the issue
Comment by Eivind (mokkurkalve) - Tuesday, 11 May 2021, 00:55 GMT
The issue is fully solved. You can close the bug. Thank you!

Loading...