Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582556 - [Pentoo overlay] dev-ruby/rubydns-1.0.3-r1 gemspec doesn't match ebuild dependencies
Summary: [Pentoo overlay] dev-ruby/rubydns-1.0.3-r1 gemspec doesn't match ebuild depen...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anton Bolshakov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 582614
  Show dependency tree
 
Reported: 2016-05-09 11:36 UTC by Mike Auty (RETIRED)
Modified: 2016-05-10 00:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2016-05-09 11:36:58 UTC
Hiya,

When trying to install bettercap, it throws up the following complaint:


 * Running prepare phase for ruby20 ...
Resolving dependencies...
Bundler could not find compatible versions for gem "timers":
  In Gemfile:
    bettercap was resolved to 1.5.4, which depends on
      rubydns (>= 1.0.3, ~> 1.0) was resolved to 1.0.3, which depends on
        timers (~> 4.0.1)

Could not find gem 'timers (~> 4.0.1)', which is required by gem 'rubydns (>= 1.0.3, ~> 1.0)', in any of the sources.


due to lines like this in the gemspec:


    s.add_dependency(%q<timers>.freeze, ["~> 4.0.1"])


It appears that doesn't get checked when installing the rubydns package itself, but then does get checked when bettercap does a ruby dependency check.  The rubydns ebuild has:


ruby_add_rdepend "...
                dev-ruby/timers:4"


which can be satisfied by timer-4.1.1, whereas 4.1.1 will not satisfy the gemspec (only 4.0.0 to <4.1.0 will).

The rdepend line therefore needs to be changed to =dev-ruby/timers-4.0.1 or similar (since there are no other versions in the 4.0 range, this should be suitable).
Comment 1 Anton Bolshakov 2016-05-09 19:26:48 UTC
Nice catch. Any idea why they want 4.0.x specifically? We may need to slot times into :4.0 and 4.1 if there an API change. If not, I would rather patch gemspec instead
Comment 2 Anton Bolshakov 2016-05-09 19:44:30 UTC
https://github.com/celluloid/timers/blob/master/CHANGES.md
Based on the changelog, there are 4.0.x and 4.1.x series.

So it looks like timers needs to be re-slotted
Comment 3 Anton Bolshakov 2016-05-10 00:22:06 UTC
https://github.com/pentoo/pentoo-overlay/commit/86b193c8e4bb323da2e4f15f19559bbc208354ac

ok, I've changed it to =timers-4.0* for now, until bug #582614 is fixed