Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
> Also, I am very interested in helping with a test suite for ruby_deploy as > there are other changes I'd like to make to it; I was having a bit of > difficulty getting started due to how ruby_deploy wants to load the compiler. > Please let me know how I can help! I’ve just pushed a spec for `

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Mark Rada
The parts of stdlib that are compiled are being included in the app bundle. The list of which libs are compiled is in rakelib/builder.rake in the AOT_STDLIB constant. There is a bug though, because .rb files should be removed from the stdlib if a .rbo equivalent is present. I don't think that

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
Btw, do you really need the complete stdlib? If not, you can use the --stdlib option to only keep those you really need. (see macruby_deploy --help) On 5 mei 2011, at 13:27, Petr Kaleta wrote: > Thanks for reply, that works. So after deploying, my whole application has > about 45MB (zipped 12MB

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Sounds good for me. On May 5, 2011, at 4:25 PM, Eloy Duran wrote: > Hmm, yes this is a problem. Maybe we should add separate options for > compiling stdlib and gems and start keeping a list of libs known to not work > well with AOT compilation which can then be excluded? I don't like adding >

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
Hmm, yes this is a problem. Maybe we should add separate options for compiling stdlib and gems and start keeping a list of libs known to not work well with AOT compilation which can then be excluded? I don't like adding another option so we could also compile everything with --compile, but this

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Nick Ludlam
I think Laurent and I were discussing some issues with the AOT compiling of certain stdlib files causing problems. My specific case was from the RSS module. https://www.macruby.org/trac/ticket/1020 On 5 May 2011, at 14:39, Eloy Duran wrote: > Aha indeed! Yes we should definitely compile them im

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
Aha indeed! Yes we should definitely compile them imo. But I’m not sure if there’s a good reason for excluding stdlib and gems from compilation. The last time I tried there was no problem with compiling it all. Can you change this in source/bin/ruby_deploy and see if your app works good afterwards?

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Yes, you said, that it compile all files from Resources directory, but gems are embeded in Framework directory. So thats why, they are not compiled. Can be STDLIB compiled as well? - Petr On May 5, 2011, at 2:34 PM, Eloy Duran wrote: > No, that's not right. The embed code is run before the com

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Here is sample application source code + archive http://cl.ly/2m060z0t1C1B18442m33 Than I run: env ARCHS='x86_64' macruby_deploy --compile --embed --gem rest-client --bs MemoryTesting.app Which produced this package http://cl.ly/3Y03050r3q1E0p1q453D In the package contents there you can see,

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
No, that's not right. The embed code is run before the compile code and the compile code uses the following to select all ruby files in the Resources directory of the app bundle: def compile_files Dir.glob(File.join(app_resources, '**', '*.rb')) end It would be great if you can upload a s

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
I have just pushed a fix for this: https://github.com/MacRuby/MacRuby/commit/82ab10ee484a14e4939b8b13c3f4f14fd1298955 Please try it out! Hmm, I’ll have to dig deeper to see how the embedded gems are actually loaded. My assumption was that rubygems would not be loaded at all, which is usually the c

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Now I am looking in the application package and embeded gems are not compiled. And as you can see here http://cl.ly/240t0v3q2O221X3U113u some ruby files compiled are, but there are source files as well. Embeded STDlib is not compiled at all http://cl.ly/2d2D2R2L451m2C2x472J Is this right? On M

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Thanks for reply, that works. So after deploying, my whole application has about 45MB (zipped 12MB). My only question is, can I somehow speedup application start? Now it takes about 10 seconds (loading gems & project files). - Petr On May 5, 2011, at 12:13 PM, Eloy Duran wrote: > No it's not y

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
No it's not your fault, it seems the code assumes a ENV variable that's set by Xcode. This is the offending code: compile_options = { bundle: true, output: obj, files: [source] } # Use Xcode ARCHS env var to determine which archs to compile for compile_options[:archs] = ENV

[MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Petr Kaleta
Hi everyone, I'd like to deploy my Macruby app using: macruby_deploy --compile --embed --gem rest-client --gem sequel --bs Issues.app but I'm getting this error: *** Deployment started *** Embedding MacRuby.framework *** Embed RubyGems libdirs: /Library/Frameworks/MacRuby.framework/Versions/0.1