From: Eloy D. <elo...@gm...> - 2007-07-13 22:35:49
|
I have finally been able to build the whole ruby package as universal binaries. I checked if gems (or any extconf based lib) directly build as universals as well, which is indeed the case: eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# gem install libxml-ruby Building native extensions. This could take a while... Successfully installed libxml-ruby-0.3.8.4 eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# file /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle: Mach-O universal binary with 2 architectures /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle (for architecture i386): Mach-O bundle i386 /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle (for architecture ppc): Mach-O bundle ppc Eloy On 7/13/07, Eloy Duran <elo...@gm...> wrote: > It really depends on the gem.... > Like I said earlier Hpricot for instance builds as a universal binary > without any problems. > > Getting ruby to play nice with universal is the first hurdle. > I have it finally compiling as a universal, the only last problem is > with the openssl lib. > Once that's done I'll have a look at if mkmf needs additional patching > for C extensions to build as universal binaries. > > Eloy > > On 7/13/07, Tim Perrett <he...@ti...> wrote: > > I had a thought about this... > > > > I have been looking at the locomotive project, and the slingshot > > VM........ both of which has there own internal ruby environment. > > With locomotive you have to select either PPC or Intel bundles; > > slingshot on the other hand is only available for intel. > > > > Rather than trying to re-invent the wheel would it be fair to say > > that those who have gone before us couldn't make universal gem > > compilation work so thats why they have had to use platform specific > > implementations? > > > > Cheers > > > > Tim > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > |
From: <jea...@gm...> - 2007-07-14 04:17:42
|
the source for slingshot is now available: http://svn.joyent.com/opensource/slingshot/ i wonder if this might help out at all? cheers, jean-pierre On 7/13/07, Eloy Duran <elo...@gm...> wrote: > > I have finally been able to build the whole ruby package as universal > binaries. > I checked if gems (or any extconf based lib) directly build as > universals as well, which is indeed the case: > > eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# gem > install libxml-ruby > Building native extensions. This could take a while... > Successfully installed libxml-ruby-0.3.8.4 > > eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# file > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4 > /ext/xml/libxml_so.bundle > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4 > /ext/xml/libxml_so.bundle: > Mach-O universal binary with 2 architectures > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4 > /ext/xml/libxml_so.bundle > (for architecture i386): Mach-O bundle i386 > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4 > /ext/xml/libxml_so.bundle > (for architecture ppc): Mach-O bundle ppc > > Eloy > > On 7/13/07, Eloy Duran <elo...@gm...> wrote: > > It really depends on the gem.... > > Like I said earlier Hpricot for instance builds as a universal binary > > without any problems. > > > > Getting ruby to play nice with universal is the first hurdle. > > I have it finally compiling as a universal, the only last problem is > > with the openssl lib. > > Once that's done I'll have a look at if mkmf needs additional patching > > for C extensions to build as universal binaries. > > > > Eloy > > > > On 7/13/07, Tim Perrett <he...@ti...> wrote: > > > I had a thought about this... > > > > > > I have been looking at the locomotive project, and the slingshot > > > VM........ both of which has there own internal ruby environment. > > > With locomotive you have to select either PPC or Intel bundles; > > > slingshot on the other hand is only available for intel. > > > > > > Rather than trying to re-invent the wheel would it be fair to say > > > that those who have gone before us couldn't make universal gem > > > compilation work so thats why they have had to use platform specific > > > implementations? > > > > > > Cheers > > > > > > Tim > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Rubycocoa-talk mailing list > > > Rub...@li... > > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2007-07-14 13:01:39
|
Fantastic work Eloy! So to clarify, what your saying is that when you compile gems which need ruby extensions and they are universal? Being able to bundle a universal ruby bin inside an RC app would solve pretty much all the architecture problems in dealing with PPC/ Intel differences. Both locomotive and slingshot would be interested in that i expect! I know when we were chatting you mentioned distribution through mac ports? How would one do it from source to get a universal bin? Cheers - Tim On 13 Jul 2007, at 23:23, Eloy Duran wrote: > I have finally been able to build the whole ruby package as > universal binaries. > I checked if gems (or any extconf based lib) directly build as > universals as well, which is indeed the case: |
From: Jon B. <jo...@gm...> - 2007-07-14 13:07:55
|
Last time I checked it was Intel only, still seems to be the case ... [MacBook-Pro:~/Desktop]$ wget -q http://svn.joyent.com/opensource/ slingshot/osx/VM/bin/ruby [MacBook-Pro:~/Desktop]$ file ruby ruby: Mach-O executable i386 - Jon On Jul 14, 2007, at 12:17 AM, jea...@gm... wrote: > > the source for slingshot is now available: > http://svn.joyent.com/opensource/slingshot/ > > i wonder if this might help out at all? > > cheers, > jean-pierre > > > On 7/13/07, Eloy Duran <elo...@gm...> wrote: > I have finally been able to build the whole ruby package as > universal binaries. > I checked if gems (or any extconf based lib) directly build as > universals as well, which is indeed the case: > > eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# gem > install libxml-ruby > Building native extensions. This could take a while... > Successfully installed libxml-ruby-0.3.8.4 > > eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# file > /opt/local/lib/ruby/gems/1.8/gems/libxml- ruby-0.3.8.4/ext/xml/ > libxml_so.bundle > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/ > libxml_so.bundle: > Mach-O universal binary with 2 architectures > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4 /ext/xml/ > libxml_so.bundle > (for architecture i386): Mach-O bundle i386 > /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/ > libxml_so.bundle > (for architecture ppc): Mach-O bundle ppc > > Eloy > > On 7/13/07, Eloy Duran < elo...@gm...> wrote: > > It really depends on the gem.... > > Like I said earlier Hpricot for instance builds as a universal > binary > > without any problems. > > > > Getting ruby to play nice with universal is the first hurdle. > > I have it finally compiling as a universal, the only last problem is > > with the openssl lib. > > Once that's done I'll have a look at if mkmf needs additional > patching > > for C extensions to build as universal binaries. > > > > Eloy > > > > On 7/13/07, Tim Perrett <he...@ti...> wrote: > > > I had a thought about this... > > > > > > I have been looking at the locomotive project, and the slingshot > > > VM........ both of which has there own internal ruby environment. > > > With locomotive you have to select either PPC or Intel bundles; > > > slingshot on the other hand is only available for intel. > > > > > > Rather than trying to re-invent the wheel would it be fair to say > > > that those who have gone before us couldn't make universal gem > > > compilation work so thats why they have had to use platform > specific > > > implementations? > > > > > > Cheers > > > > > > Tim > > > > > > > ---------------------------------------------------------------------- > --- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Rubycocoa-talk mailing list > > > Rub...@li... > > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: <jea...@gm...> - 2007-07-16 01:48:29
|
On 7/14/07, Jon Baer <jo...@gm...> wrote: > > Last time I checked it was Intel only, still seems to be the case ... > > [MacBook-Pro:~/Desktop]$ wget -q > http://svn.joyent.com/opensource/slingshot/osx/VM/bin/ruby > [MacBook-Pro:~/Desktop]$ file ruby > ruby: Mach-O executable i386 > bugger, quite right - how about slingshot's gem/plugin bundling capabilities? is standaloneify working for others now? cheers, jean-pierre |
From: Jon B. <jo...@gm...> - 2007-07-15 02:06:50
|
Just curious, has anyone tried running RubyCocoa apps with this package? http://rubyosx.rubyforge.org/ - Jon On Jul 14, 2007, at 9:01 AM, Tim Perrett wrote: > Fantastic work Eloy! > > So to clarify, what your saying is that when you compile gems which > need ruby extensions and they are universal? > > Being able to bundle a universal ruby bin inside an RC app would > solve pretty much all the architecture problems in dealing with PPC/ > Intel differences. Both locomotive and slingshot would be interested > in that i expect! > > I know when we were chatting you mentioned distribution through mac > ports? How would one do it from source to get a universal bin? > > Cheers > > - Tim > > > On 13 Jul 2007, at 23:23, Eloy Duran wrote: > >> I have finally been able to build the whole ruby package as >> universal binaries. >> I checked if gems (or any extconf based lib) directly build as >> universals as well, which is indeed the case: > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-07-15 11:28:10
|
Is it just me or does that read as if its a universal version of ruby? Ive just tried it installing it, and it appears that it installs ruby in /usr/local/bin tim-perretts-computer:/usr/local/bin timperrett$ ./ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] Further to what we have been talking about on this list we could take a universial ruby distribution and put that inside our application couldn't we? Having said that, how would RC know to use the ruby within the application? Cheers Tim On 15 Jul 2007, at 03:06, Jon Baer wrote: > Just curious, has anyone tried running RubyCocoa apps with this > package? > > http://rubyosx.rubyforge.org/ > > - Jon |
From: Jon B. <jo...@gm...> - 2007-07-15 17:26:52
|
Not sure about this but here is my guess: If you create a folder VM under your project and lay down all the files this installer provides and include the universal builds of your gems and then somehow modify your PATH to run only that Ruby executable under VM folder (im guessing this will have to occur within main.m), you would really get standalone app with your own Ruby distro. Since you can have a file ~/.MacOSX/environment.plist I wonder if there might be something RC developer could add to Info.plist that could tweak the PATH setting? (Or this might be something which can be done already?) Like you said before this will definitely add nice bloat to your project but @ least you can guarantee / provide your own runtime for users not familiar w/ Ruby setup < 10.4. - Jon On Jul 15, 2007, at 7:27 AM, Tim Perrett wrote: > Is it just me or does that read as if its a universal version of ruby? > > Ive just tried it installing it, and it appears that it installs ruby > in /usr/local/bin > > tim-perretts-computer:/usr/local/bin timperrett$ ./ruby -v > ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] > > Further to what we have been talking about on this list we could take > a universial ruby distribution and put that inside our application > couldn't we? Having said that, how would RC know to use the ruby > within the application? > > Cheers > > Tim > > > On 15 Jul 2007, at 03:06, Jon Baer wrote: > >> Just curious, has anyone tried running RubyCocoa apps with this >> package? >> >> http://rubyosx.rubyforge.org/ >> >> - Jon > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |