[Rubygems-developers] [call for participation] - gem dependencies maven-like project specs

Eric Hodel drbrain at segment7.net
Fri Feb 9 17:19:09 EST 2007


On Feb 9, 2007, at 05:13, Austin Ziegler wrote:
> On 2/9/07, Chad Woolley <thewoolleyman at gmail.com> wrote:
> [major snippage]
>> The whole platform issue needs to be resolved soon too (is it
>> 'i386-mswin32' or 'mswin32'?)
>
> This is, I think, a Ruby issue. I suspect that the answer is no  
> (for the
> same reason no one uses VS2005, yet), but has anyone successfully
> compiled for Win64? What's the tag that will be used for that?
>
> Platform needs to be handled intelligently overall:
>   - *-mswin32 would theoretically mean something that would work on  
> any
> 	architecture that runs Win32. IIRC, WinCE reports itself as Win32.
>   - *-mswin* would theoretically mean something that would work on
> 	either Win32 or Win64.
>   - i386-mswin32 would mean something that works only on 386-class
> 	instructions running Win32.

I was thinking about something like this.  Gems shipping with  
libraries will likely need to specify an architecture and OS.

> For OS X, I'd like to see how Ruby is supposed to work with Universal
> builds (e.g., something that's both powerpc-darwin8 and i686-darwin8).

I don't know what happens if you try to link ppc and universal  
libraries, maybe I'll experiment some day soon...

> (It'll be interesting to see what Apple has done with Leopard's  
> version
> of Ruby.)

The ruby shipped with my copy of 10.4 is already universal:

$ /usr/bin/ruby -ve 'p RUBY_PLATFORM'ruby 1.8.2 (2004-12-25)  
[universal-darwin8.0]
"universal-darwin8.0"

but Config::CONFIG is still messed up:

$ /usr/bin/ruby -vrrbconfig -e 'p Config::CONFIG["target"]'
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
"powerpc-apple-darwin8.0"
$ /usr/bin/ruby -vrrbconfig -e 'p Config::CONFIG["host"]'
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
"powerpc-apple-darwin8.0"
$ /usr/bin/ruby -vrrbconfig -e 'p Config::CONFIG["build"]'
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
"powerpc-apple-darwin8.0"




More information about the Rubygems-developers mailing list