[Rubygems-developers] [ rubygems-Bugs-25743 ] Gem::Platform#=== bug - returns false when it should return true
noreply at rubyforge.org
noreply at rubyforge.org
Fri May 1 00:03:41 EDT 2009
Bugs item #25743, was opened at 2009-04-30 19:15
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25743&group_id=126
Category: other
Group: v1.3.x
>Status: Closed
Resolution: Rejected
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Gem::Platform#=== bug - returns false when it should return true
Initial Comment:
As per IRC, this appears to be a bug:
irb(main):005:0> s1 = Gem::Platform.new(['universal', 'darwin', '9'])
=> #<Gem::Platform:0x822bac @cpu="universal", @os="darwin", @version="9">
irb(main):006:0> s2 = Gem::Platform.new(['x86', 'darwin', '8'])
=> #<Gem::Platform:0x820d02 @cpu="x86", @os="darwin", @version="8">
irb(main):007:0> s1 === s2
=> false
This caused a user on a newer version of OS X some grief when they tried to install sys-proctable, but it was failing because their platform was 'universal-darwin' but the gem is built as 'x86-darwin'.
Regards,
Dan
----------------------------------------------------------------------
Comment By: Daniel Berger (djberg96)
Date: 2009-04-30 21:03
Message:
Ok, rejected.
----------------------------------------------------------------------
Comment By: Luis Lavena (luislavena)
Date: 2009-04-30 20:49
Message:
It is the expected behavior.
universal-darwin-9 is not compatible with universal-darwin-8
Only universal-darwin is compatible with 9 and 8.
Similar with mswin32-60 and mswin32-80 or mswin32-90, since these link to different CRT version, similar thing happens on OSX.
At least, that was the last time I've checked.
----------------------------------------------------------------------
Comment By: Daniel Berger (djberg96)
Date: 2009-04-30 19:19
Message:
And not a minute after I posted this, I think the problem is actually the versions, i.e. 8 vs 9.
So, perhaps this is expected behavior after all.
Dan
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25743&group_id=126
More information about the Rubygems-developers
mailing list